diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md
index fa0b94a6..2a6f3b16 100644
--- a/.github/ISSUE_TEMPLATE/bug-report.md
+++ b/.github/ISSUE_TEMPLATE/bug-report.md
@@ -28,4 +28,4 @@ Please describe.
### Steps to reproduce
-Please provide the simplest example possible to reproduce the issue, based on [this CodePen](https://codepen.io/PaulLeCam/pen/OJxEbBW).
+Please provide the simplest example possible to reproduce the issue, based on [this StackBlitz](https://stackblitz.com/edit/react-leaflet-v4?file=src/App.js).
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 05834044..71bee2a7 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -24,4 +24,4 @@ If you are looking for implementations of features provided by plugins, they wil
Please check among existing issues (open **and** closed) if the problem you encounter has not been solved before.\
If you have questions about React or Leaflet not directly related to this library, please ask them using their respective support platforms.\
-For any other issue, please provide a simple description, if relevant with codes examples. You can use [this CodePen](https://codepen.io/PaulLeCam/pen/OJxEbBW) as a starting example.
+For any other issue, please provide a simple description, if relevant with codes examples. You can use [this StackBlitz](https://stackblitz.com/edit/react-leaflet-v4?file=src/App.js) as a starting example.
diff --git a/package.json b/package.json
index d21746c3..91681343 100644
--- a/package.json
+++ b/package.json
@@ -18,36 +18,36 @@
"devDependencies": {
"@skypack/package-check": "^0.2.2",
"@swc/cli": "^0.1.55",
- "@swc/core": "^1.2.183",
+ "@swc/core": "^1.2.205",
"@swc/jest": "^0.2.21",
- "@testing-library/react": "^13.2.0",
- "@testing-library/react-hooks": "^8.0.0",
- "@types/jest": "^27.5.1",
- "@types/leaflet": "^1.7.10",
+ "@testing-library/react": "^13.3.0",
+ "@testing-library/react-hooks": "^8.0.1",
+ "@types/jest": "^28.1.3",
+ "@types/leaflet": "^1.7.11",
"@types/warning": "^3.0.0",
- "@typescript-eslint/eslint-plugin": "^5.23.0",
- "@typescript-eslint/parser": "^5.23.0",
+ "@typescript-eslint/eslint-plugin": "^5.29.0",
+ "@typescript-eslint/parser": "^5.29.0",
"cross-env": "^7.0.3",
"del-cli": "^4.0.1",
- "eslint": "^8.15.0",
+ "eslint": "^8.18.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^6.0.0",
- "eslint-plugin-react": "^7.28.0",
- "eslint-plugin-react-hooks": "^4.5.0",
- "jest": "^28.1.0",
- "jest-environment-jsdom": "^28.1.0",
+ "eslint-plugin-react": "^7.30.1",
+ "eslint-plugin-react-hooks": "^4.6.0",
+ "jest": "^28.1.1",
+ "jest-environment-jsdom": "^28.1.1",
"leaflet": "^1.8.0",
- "prettier": "^2.6.2",
- "prettier-eslint": "^14.0.3",
- "react": "^18.1.0",
- "react-dom": "^18.1.0",
- "react-test-renderer": "^18.1.0",
+ "prettier": "^2.7.1",
+ "prettier-eslint": "^15.0.1",
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0",
+ "react-test-renderer": "^18.2.0",
"ts-jest-resolver": "^2.0.0",
- "turbo": "^1.2.9",
- "typescript": "^4.6.4"
+ "turbo": "^1.3.1",
+ "typescript": "^4.7.4"
},
"jest": {
"projects": [
diff --git a/packages/react-leaflet/__tests__/MapContainer.tsx b/packages/react-leaflet/__tests__/MapContainer.tsx
index 6695cbe0..afd68dc1 100644
--- a/packages/react-leaflet/__tests__/MapContainer.tsx
+++ b/packages/react-leaflet/__tests__/MapContainer.tsx
@@ -14,6 +14,20 @@ describe('MapContainer', () => {
expect(container).toMatchSnapshot()
})
+ test('re-renders the containing div', () => {
+ const { container, rerender } = render(
+