Skip to content

Commit c13eead

Browse files
committedMar 23, 2020
Update dependencies
1 parent 4eba8f5 commit c13eead

7 files changed

+399
-179
lines changed
 

‎.babelrc

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@babel/preset-flow",
2424
"@babel/preset-react"
2525
],
26-
"plugins": [["@babel/plugin-transform-runtime", { "version": "^7.8.3" }]]
26+
"plugins": [["@babel/plugin-transform-runtime", { "version": "^7.9.2" }]]
2727
},
2828
"rollup": {
2929
"presets": [
@@ -40,7 +40,7 @@
4040
"@babel/preset-flow",
4141
"@babel/preset-react"
4242
],
43-
"plugins": [["@babel/plugin-transform-runtime", { "version": "^7.8.3" }]]
43+
"plugins": [["@babel/plugin-transform-runtime", { "version": "^7.9.2" }]]
4444
},
4545
"jsnext": {
4646
"presets": [
@@ -61,7 +61,7 @@
6161
"plugins": [
6262
[
6363
"@babel/plugin-transform-runtime",
64-
{ "useESModules": true, "version": "^7.8.3" }
64+
{ "useESModules": true, "version": "^7.9.2" }
6565
]
6666
]
6767
}

‎CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## master
2+
3+
[website] Bump Leaflet docs links to v1.6.0 ([PR #686](https://github.com/PaulLeCam/react-leaflet/pull/686) by _moondef_).
4+
15
## v2.6.3 (2020-03-13)
26

37
Fixed regression in v2.6.2 handling `maxZoom` and `minZoom` options in `Map` component.

‎package.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"src/*"
5050
],
5151
"dependencies": {
52-
"@babel/runtime": "^7.8.7",
52+
"@babel/runtime": "^7.9.2",
5353
"fast-deep-equal": "^3.1.1",
5454
"hoist-non-react-statics": "^3.3.2",
5555
"warning": "^4.0.3"
@@ -61,39 +61,39 @@
6161
},
6262
"devDependencies": {
6363
"@babel/cli": "^7.8.4",
64-
"@babel/core": "^7.8.7",
64+
"@babel/core": "^7.9.0",
6565
"@babel/plugin-proposal-class-properties": "^7.8.3",
6666
"@babel/plugin-proposal-export-default-from": "^7.8.3",
6767
"@babel/plugin-transform-proto-to-assign": "^7.8.3",
68-
"@babel/plugin-transform-runtime": "^7.8.3",
68+
"@babel/plugin-transform-runtime": "^7.9.0",
6969
"@babel/plugin-transform-strict-mode": "^7.8.3",
70-
"@babel/preset-env": "^7.8.7",
71-
"@babel/preset-flow": "^7.8.3",
72-
"@babel/preset-react": "^7.8.3",
70+
"@babel/preset-env": "^7.9.0",
71+
"@babel/preset-flow": "^7.9.0",
72+
"@babel/preset-react": "^7.9.1",
7373
"babel-eslint": "^10.1.0",
7474
"babel-jest": "^25.1.0",
75-
"babel-loader": "^8.0.6",
75+
"babel-loader": "^8.1.0",
7676
"babel-plugin-dev-expression": "^0.2.2",
7777
"cross-env": "^7.0.2",
7878
"eslint": "^6.8.0",
79-
"eslint-config-prettier": "^6.10.0",
79+
"eslint-config-prettier": "^6.10.1",
8080
"eslint-plugin-flowtype": "^4.6.0",
8181
"eslint-plugin-import": "^2.20.1",
8282
"eslint-plugin-node": "^11.0.0",
8383
"eslint-plugin-prettier": "^3.1.2",
8484
"eslint-plugin-promise": "^4.2.1",
8585
"eslint-plugin-react": "^7.19.0",
86-
"flow-bin": "^0.120.1",
86+
"flow-bin": "^0.121.0",
8787
"flow-copy-source": "^2.0.9",
88-
"flow-typed": "^3.0.0",
88+
"flow-typed": "^3.1.0",
8989
"jest": "^25.1.0",
9090
"leaflet": "^1.6.0",
91-
"prettier": "^1.19.1",
91+
"prettier": "^2.0.1",
9292
"prettier-eslint": "^9.0.1",
93-
"react": "^16.13.0",
94-
"react-dom": "^16.13.0",
93+
"react": "^16.13.1",
94+
"react-dom": "^16.13.1",
9595
"rimraf": "^3.0.2",
96-
"rollup": "^2.0.6",
96+
"rollup": "^2.1.0",
9797
"rollup-plugin-babel": "^4.4.0",
9898
"rollup-plugin-commonjs": "^10.1.0",
9999
"rollup-plugin-node-resolve": "^5.2.0",

‎src/LayersControl.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ class LayersControl extends MapControl<LeafletElement, LayersControlProps> {
183183
}
184184

185185
render() {
186-
const children = Children.map(this.props.children, child => {
186+
const children = Children.map(this.props.children, (child) => {
187187
return child ? cloneElement(child, this.controlProps) : null
188188
})
189189
return <Fragment>{children}</Fragment>

‎src/MapEvented.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default class MapEvented<
3535
const el = this.leafletElement
3636
if (!el) return
3737

38-
Object.keys(this._leafletEvents).forEach(ev => {
38+
Object.keys(this._leafletEvents).forEach((ev) => {
3939
el.off(ev, this._leafletEvents[ev])
4040
})
4141
}
@@ -60,14 +60,14 @@ export default class MapEvented<
6060
if (el == null || el.on == null) return {}
6161

6262
const diff = { ...prev }
63-
Object.keys(prev).forEach(ev => {
63+
Object.keys(prev).forEach((ev) => {
6464
if (next[ev] == null || prev[ev] !== next[ev]) {
6565
delete diff[ev]
6666
el.off(ev, prev[ev])
6767
}
6868
})
6969

70-
Object.keys(next).forEach(ev => {
70+
Object.keys(next).forEach((ev) => {
7171
if (prev[ev] == null || next[ev] !== prev[ev]) {
7272
diff[ev] = next[ev]
7373
el.on(ev, next[ev])

‎src/utils/updateClassName.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ const splitClassName = (className: string = ''): Array<string> => {
77
}
88

99
export const addClassName = (container: HTMLElement, className: string) => {
10-
splitClassName(className).forEach(cls => {
10+
splitClassName(className).forEach((cls) => {
1111
DomUtil.addClass(container, cls)
1212
})
1313
}
1414

1515
export const removeClassName = (container: HTMLElement, className: string) => {
16-
splitClassName(className).forEach(cls => {
16+
splitClassName(className).forEach((cls) => {
1717
DomUtil.removeClass(container, cls)
1818
})
1919
}

‎yarn.lock

+372-156
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.