Skip to content

Commit

Permalink
v2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulLeCam committed Oct 22, 2018
1 parent 3c41984 commit 0f1196b
Show file tree
Hide file tree
Showing 8 changed files with 2,003 additions and 1,120 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v2.1.1 (2018-10-22)

- Fixed regression when updating the `className` prop of the `Map` component.
- [internal] Use ESM babel runtime ([PR #527](https://github.com/PaulLeCam/react-leaflet/pull/527) by _eanajavi_).
- [website] Indicate `react-leaflet-locate-control` as not compatible with v2 ([PR #528](https://github.com/PaulLeCam/react-leaflet/pull/528) by _eanajavi_).

## v2.1.0 (2018-10-06)

- Added support for dynamic `attribution` prop in layers.
Expand Down
3 changes: 1 addition & 2 deletions docs/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ open pull requests to update this list!
| [`react-leaflet-geojson-cluster`](https://www.npmjs.com/package/react-leaflet-geojson-cluster) | unknown |
| [`react-leaflet-google`](https://www.npmjs.com/package/react-leaflet-google) | **yes** |
| [`react-leaflet-heatmap-layer`](https://www.npmjs.com/package/react-leaflet-heatmap-layer) | unknown |
| [`react-leaflet-locate-control`](https://www.npmjs.com/package/react-leaflet-locate-control) | **no**
|
| [`react-leaflet-locate-control`](https://www.npmjs.com/package/react-leaflet-locate-control) | **no** |
| [`react-leaflet-markercluster`](https://www.npmjs.com/package/react-leaflet-markercluster) | unknown |
| [`react-leaflet-marker-layer`](https://www.npmjs.com/package/react-leaflet-marker-layer) | unknown |
| [`react-leaflet-measure`](https://www.npmjs.com/package/react-leaflet-measure) | unknown |
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-leaflet",
"version": "2.1.0",
"version": "2.1.1",
"description": "React components for Leaflet maps",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down Expand Up @@ -78,15 +78,15 @@
"babel-plugin-dev-expression": "^0.2.1",
"babel-plugin-lodash": "^3.3.4",
"cross-env": "^5.2.0",
"eslint": "^5.6.1",
"eslint": "^5.7.0",
"eslint-config-prettier": "^3.1.0",
"eslint-plugin-flowtype": "^2.50.3",
"eslint-plugin-flowtype": "^3.0.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-node": "^7.0.1",
"eslint-plugin-prettier": "^3.0.0",
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-react": "^7.11.1",
"flow-bin": "^0.82.0",
"flow-bin": "^0.83.0",
"flow-copy-source": "^2.0.2",
"flow-typed": "^2.5.1",
"jest": "^23.6.0",
Expand All @@ -96,13 +96,13 @@
"react": "^16.5.2",
"react-dom": "^16.5.2",
"rimraf": "^2.6.2",
"rollup": "^0.66.4",
"rollup": "^0.66.6",
"rollup-plugin-babel": "^4.0.3",
"rollup-plugin-commonjs": "^9.1.8",
"rollup-plugin-commonjs": "^9.2.0",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-replace": "^2.0.0",
"rollup-plugin-replace": "^2.1.0",
"rollup-plugin-uglify": "^6.0.0",
"webpack": "^4.20.2",
"webpack": "^4.22.0",
"webpack-serve": "^2.0.2"
},
"jest": {
Expand Down
7 changes: 6 additions & 1 deletion src/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ export default class Map extends MapEvented<LeafletElement, Props> {

_updating: boolean = false

constructor(props: Props) {
super(props)
this.className = props.className
}

createLeafletElement(props: Props): LeafletElement {
const { viewport, ...options } = props
if (viewport) {
Expand Down Expand Up @@ -322,7 +327,7 @@ export default class Map extends MapEvented<LeafletElement, Props> {
render() {
return (
<div
className={this.props.className}
className={this.className}
id={this.props.id}
ref={this.bindContainer}
style={this.props.style}>
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.12.0"
"highlight.js": "^9.13.1"
},
"devDependencies": {
"docusaurus": "~1.4.0"
"docusaurus": "~1.5.0"
}
}
8 changes: 4 additions & 4 deletions website/versioned_docs/version-v2/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ open pull requests to update this list!
| ---------------------------------------------------------------------------------------------------------------- | ------------------ |
| [`leaflet-react-track-player`](https://www.npmjs.com/package/leaflet-react-track-player) | unknown |
| [`react-leaflet-ant-path`](https://www.npmjs.com/package/react-leaflet-ant-path) | unknown |
| [`react-leaflet-bing`](https://www.npmjs.com/package/react-leaflet-bing) | unknown |
| [`react-leaflet-bing`](https://www.npmjs.com/package/react-leaflet-bing) | **yes** |
| [`react-leaflet-choropleth`](https://www.npmjs.com/package/react-leaflet-choropleth) | unknown |
| [`react-leaflet-cluster-layer`](https://www.npmjs.com/package/react-leaflet-cluster-layer) | unknown |
| [`react-leaflet-control`](https://www.npmjs.com/package/react-leaflet-control) | unknown |
Expand All @@ -28,17 +28,17 @@ open pull requests to update this list!
| [`react-leaflet-freedraw`](https://www.npmjs.com/package/react-leaflet-freedraw) | **yes** |
| [`react-leaflet-fullscreen-control`](https://www.npmjs.com/package/react-leaflet-fullscreen-control) | unknown |
| [`react-leaflet-geojson-cluster`](https://www.npmjs.com/package/react-leaflet-geojson-cluster) | unknown |
| [`react-leaflet-google`](https://www.npmjs.com/package/react-leaflet-google) | unknown |
| [`react-leaflet-google`](https://www.npmjs.com/package/react-leaflet-google) | **yes** |
| [`react-leaflet-heatmap-layer`](https://www.npmjs.com/package/react-leaflet-heatmap-layer) | unknown |
| [`react-leaflet-locate-control`](https://www.npmjs.com/package/react-leaflet-locate-control) | unknown |
| [`react-leaflet-locate-control`](https://www.npmjs.com/package/react-leaflet-locate-control) | **no** |
| [`react-leaflet-markercluster`](https://www.npmjs.com/package/react-leaflet-markercluster) | unknown |
| [`react-leaflet-marker-layer`](https://www.npmjs.com/package/react-leaflet-marker-layer) | unknown |
| [`react-leaflet-measure`](https://www.npmjs.com/package/react-leaflet-measure) | unknown |
| [`react-leaflet-nmscale`](https://www.npmjs.com/package/@marfle/react-leaflet-nmscale) | **yes** |
| [`react-leaflet-pane`](https://www.npmjs.com/package/react-leaflet-pane) | unknown |
| [`react-leaflet-rotatedmarker`](https://www.npmjs.com/package/react-leaflet-rotatedmarker) | unknown |
| [`react-leaflet-search`](https://www.npmjs.com/package/react-leaflet-search) | **yes** |
| [`react-leaflet-shapefile`](https://www.npmjs.com/package/react-leaflet-shapefile) | unknown |
| [`react-leaflet-shapefile`](https://www.npmjs.com/package/react-leaflet-shapefile) | **no** |
| [`react-leaflet-sidebarv2`](https://www.npmjs.com/package/react-leaflet-sidebarv2) | unknown |
| [`react-leaflet-sidetabs`](https://www.npmjs.com/package/react-leaflet-sidetabs) | **yes** |
| [`react-leaflet-vectorgrid`](https://www.npmjs.com/package/react-leaflet-vectorgrid) | unknown |
Expand Down
Loading

0 comments on commit 0f1196b

Please sign in to comment.