Skip to content

Commit

Permalink
v2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulLeCam committed Jun 9, 2019
1 parent 099efe5 commit 1647568
Show file tree
Hide file tree
Showing 8 changed files with 1,395 additions and 1,132 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v2.4.0 (2019-06-09)

- Added `ZoomPanOptions` and `FitBoundsOptions` to `Map` component ([PR #593](https://github.com/PaulLeCam/react-leaflet/pull/593) by _scailbc_).
- Updated Flow types support for Flow v0.100.
- [website] Updated Docusaurus.

## v2.3.0 (2019-05-12)

- Updated Leaflet dependency to v1.5.
Expand Down
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-leaflet",
"version": "2.3.0",
"version": "2.4.0",
"description": "React components for Leaflet maps",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down Expand Up @@ -49,7 +49,7 @@
"src/*"
],
"dependencies": {
"@babel/runtime": "^7.4.4",
"@babel/runtime": "^7.4.5",
"fast-deep-equal": "^2.0.1",
"hoist-non-react-statics": "^3.3.0",
"warning": "^4.0.3"
Expand All @@ -61,13 +61,13 @@
},
"devDependencies": {
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.4",
"@babel/core": "^7.4.5",
"@babel/plugin-proposal-class-properties": "^7.4.4",
"@babel/plugin-proposal-export-default-from": "^7.2.0",
"@babel/plugin-transform-proto-to-assign": "^7.4.4",
"@babel/plugin-transform-runtime": "^7.4.4",
"@babel/plugin-transform-strict-mode": "^7.2.0",
"@babel/preset-env": "^7.4.4",
"@babel/preset-env": "^7.4.5",
"@babel/preset-flow": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"babel-eslint": "^10.0.1",
Expand All @@ -76,33 +76,33 @@
"babel-plugin-dev-expression": "^0.2.1",
"cross-env": "^5.2.0",
"eslint": "^5.16.0",
"eslint-config-prettier": "^4.2.0",
"eslint-plugin-flowtype": "^3.8.2",
"eslint-plugin-import": "^2.17.2",
"eslint-plugin-node": "^9.0.1",
"eslint-config-prettier": "^4.3.0",
"eslint-plugin-flowtype": "^3.9.1",
"eslint-plugin-import": "^2.17.3",
"eslint-plugin-node": "^9.1.0",
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-promise": "^4.1.1",
"eslint-plugin-react": "^7.13.0",
"file-loader": "^3.0.1",
"flow-bin": "^0.98.1",
"flow-copy-source": "^2.0.4",
"flow-typed": "^2.5.1",
"file-loader": "^4.0.0",
"flow-bin": "^0.100.0",
"flow-copy-source": "^2.0.6",
"flow-typed": "^2.5.2",
"jest": "^24.8.0",
"leaflet": "^1.5.1",
"prettier": "^1.17.0",
"prettier": "^1.18.2",
"prettier-eslint": "^8.8.2",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"rimraf": "^2.6.2",
"rollup": "^1.11.3",
"rollup": "^1.14.5",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-commonjs": "^9.3.4",
"rollup-plugin-node-resolve": "^4.2.4",
"rollup-plugin-commonjs": "^10.0.0",
"rollup-plugin-node-resolve": "^5.0.1",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-uglify": "^6.0.2",
"webpack": "^4.30.0",
"webpack-cli": "^3.3.2",
"webpack-dev-server": "^3.3.1"
"webpack": "^4.33.0",
"webpack-cli": "^3.3.3",
"webpack-dev-server": "^3.7.1"
},
"jest": {
"collectCoverage": true
Expand Down
2 changes: 1 addition & 1 deletion src/GeoJSON.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class GeoJSON extends Path<LeafletElement, Props> {

updateLeafletElement(fromProps: Props, toProps: Props) {
if (typeof toProps.style === 'function') {
this.setStyle(toProps.style)
this.leafletElement.setStyle(toProps.style)
} else {
this.setStyleIfChanged(fromProps, toProps)
}
Expand Down
4 changes: 2 additions & 2 deletions src/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ type Props = {
duration?: number,
noMoveStart?: boolean,
bounds?: LatLngBounds,
boundsOptions?: {
boundsOptions?: {|
paddingTopLeft?: Point,
paddingBottomRight?: Point,
padding?: Point,
maxZoom?: number,
},
|},
children: Node,
className?: string,
id?: string,
Expand Down
4 changes: 2 additions & 2 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"crowdin-download": "crowdin --config ../crowdin.yaml download -b master"
},
"dependencies": {
"highlight.js": "^9.15.6"
"highlight.js": "^9.15.8"
},
"devDependencies": {
"docusaurus": "~1.9.0"
"docusaurus": "~1.11.1"
}
}
3 changes: 3 additions & 0 deletions website/versioned_docs/version-v2/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ This is the top-level component that must be mounted for child components to be
**Dynamic properties**

- `animate: boolean` (optional): If `true`, panning will always be animated if possible. Defaults to `false`.
- `duration: number` (optional): Duration of animated panning, in seconds. Defaults to `0.25`.
- `easeLinearity: number` (optional): The curvature factor of panning animation easing (third parameter of the Cubic Bezier curve). 1.0 means linear animation, and the smaller this number, the more bowed the curve. Defaults to `0.25`.
- `noMoveStart: boolean` (optional): If true, panning won't fire movestart event on start (used internally for panning inertia). Defaults to `false`.
- `bounds: bounds` (optional): A rectangle for the map to contain. It will be centered, and the map will zoom in as close as it can while still showing the full bounds. Changes are compared using the [`🍃 equals() method of LatLngBounds`](http://leafletjs.com/reference-1.5.0.html#latlngbounds-equals).
- `boundsOptions: Object` (optional): Options passed to the `fitBounds()` method.
- `boxZoom: boolean` (optional): If `true`, the map can be zoomed to a rectangular area specified by dragging the mouse while pressing the shift key. Defaults to true.
Expand Down
Loading

0 comments on commit 1647568

Please sign in to comment.