react-leaflet-semicircle
Advanced tools
Comparing version 0.3.0 to 1.0.0
@@ -7,2 +7,15 @@ ### Changelog | ||
### [1.0.0](https://github.com/clementallen/react-leaflet-semicircle/compare/v0.3.0...v1.0.0) | ||
> 12 January 2019 | ||
- Added more tests [`#12`](https://github.com/clementallen/react-leaflet-semicircle/pull/12) | ||
- Added build step [`#11`](https://github.com/clementallen/react-leaflet-semicircle/pull/11) | ||
- Initial tests [`#10`](https://github.com/clementallen/react-leaflet-semicircle/pull/10) | ||
- docs(readme): add Greenkeeper badge [`#9`](https://github.com/clementallen/react-leaflet-semicircle/pull/9) | ||
- Added eslint [`#6`](https://github.com/clementallen/react-leaflet-semicircle/pull/6) | ||
- Added initial tests [`f6ffb53`](https://github.com/clementallen/react-leaflet-semicircle/commit/f6ffb53a85e87de65f6070143e0c0fa469eecf90) | ||
- Added more AbstractComponent tests [`53d67af`](https://github.com/clementallen/react-leaflet-semicircle/commit/53d67af011d41516f480d2f63600ebc73628098c) | ||
- Only update props if they have changed [`34d1240`](https://github.com/clementallen/react-leaflet-semicircle/commit/34d1240989d5dfae688df178859346e9f295a82e) | ||
#### [0.3.0](https://github.com/clementallen/react-leaflet-semicircle/compare/v0.2.0...v0.3.0) | ||
@@ -9,0 +22,0 @@ |
{ | ||
"name": "react-leaflet-semicircle", | ||
"version": "0.3.0", | ||
"version": "1.0.0", | ||
"description": "React wrapper of leaflet-semicircle", | ||
"main": "src/index.js", | ||
"main": "dist/index.js", | ||
"module": "src/index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 0", | ||
"test": "jest", | ||
"coverage": "jest --coverage", | ||
"lint": "eslint ./src/**/*.js ./__tests__/**/*.js", | ||
"changelog": "auto-changelog -p --tag-prefix v", | ||
"release": "np", | ||
"version": "npm run changelog && git add CHANGELOG.md" | ||
"version": "npm run changelog && git add CHANGELOG.md", | ||
"build": "babel src --out-dir dist", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
@@ -33,8 +38,21 @@ "repository": { | ||
"devDependencies": { | ||
"@babel/cli": "^7.2.3", | ||
"@babel/core": "^7.2.2", | ||
"@babel/preset-env": "^7.2.3", | ||
"@babel/preset-react": "^7.0.0", | ||
"auto-changelog": "^1.10.3", | ||
"babel-core": "^7.0.0-bridge.0", | ||
"babel-jest": "^23.6.0", | ||
"enzyme": "^3.8.0", | ||
"enzyme-adapter-react-16": "^1.7.1", | ||
"eslint": "^5.12.0", | ||
"eslint-plugin-prettier": "^3.0.1", | ||
"eslint-plugin-react": "^7.12.3", | ||
"jest": "^23.6.0", | ||
"leaflet": "^1.4.0", | ||
"np": "^3.1.0", | ||
"prettier": "^1.15.3", | ||
"react": "^16.7.0", | ||
"react-dom": "^16.7.0", | ||
"react-leaflet": "^2.1.4" | ||
"react-leaflet": "^2.2.0" | ||
}, | ||
@@ -41,0 +59,0 @@ "peerDependencies": { |
@@ -8,3 +8,3 @@ # react-leaflet-semicircle | ||
[![](https://img.shields.io/david/dev/clementallen/react-leaflet-semicircle.svg?style=flat-square)](https://david-dm.org/clementallen/react-leaflet-semicircle?type=dev) | ||
[![](https://img.shields.io/codeclimate/maintainability/clementallen/react-leaflet-semicircle.svg?style=flat-square)](https://codeclimate.com/github/clementallen/react-leaflet-semicircle) | ||
[![](https://img.shields.io/codeclimate/maintainability/clementallen/react-leaflet-semicircle.svg?style=flat-square)](https://codeclimate.com/github/clementallen/react-leaflet-semicircle) [![Greenkeeper badge](https://badges.greenkeeper.io/clementallen/react-leaflet-semicircle.svg)](https://greenkeeper.io/) | ||
@@ -11,0 +11,0 @@ React wrapper of [leaflet-semicircle](https://github.com/jieter/Leaflet-semicircle) |
@@ -6,3 +6,4 @@ import { Path } from 'react-leaflet'; | ||
createLeafletElement(props) { | ||
const { position, ...options } = props; | ||
// props.leaflet is not used but destructured out so it's not passed to this.leafletComponent | ||
const { position, leaflet, ...options } = props; // eslint-disable-line no-unused-vars | ||
return new this.leafletComponent(position, options); | ||
@@ -12,4 +13,8 @@ } | ||
updateLeafletElement(fromProps, { startAngle, stopAngle }) { | ||
this.leafletElement.setStartAngle(startAngle); | ||
this.leafletElement.setStopAngle(stopAngle); | ||
if (fromProps.startAngle !== startAngle) { | ||
this.setStartAngle(startAngle); | ||
} | ||
if (fromProps.stopAngle !== stopAngle) { | ||
this.setStopAngle(stopAngle); | ||
} | ||
} | ||
@@ -30,6 +35,4 @@ | ||
get leafletComponent() { | ||
throw new Error( | ||
'leafletComponent getter not implemented' | ||
); | ||
throw new Error('leafletComponent getter not implemented'); | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
24079
12
207
0
19
1