Skip to content

Commit

Permalink
v4.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulLeCam committed Aug 22, 2022
1 parent fd9fde6 commit 94ad702
Show file tree
Hide file tree
Showing 90 changed files with 1,129 additions and 14,868 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
strict-peer-dependencies=false
19 changes: 16 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## v4.0.2 (2022-08-22)

- Fix typos in getting started docs
([PR #1013](https://github.com/PaulLeCam/react-leaflet/pull/1013) by
[jacobtylerwalls](https://github.com/jacobtylerwalls))
- Fixing useRef() usage in createElementHook to prevent unnecessary Leaflet
object creation
([PR #1014](https://github.com/PaulLeCam/react-leaflet/pull/1014) by
[abac](https://github.com/abac))

## v4.0.1 (2022-06-25)

Fix calling `map.remove()` on `MapContainer` unmounting.
Expand All @@ -12,8 +22,10 @@ Changes from v3:
- ES2020 is the new compilation target version.
- Removed `useMapElement` hook.
- Removed `MapConsumer` component.
- Removed `whenCreated` property from the `MapContainer` component (a `ref` callback can be used instead).
- Removed `onOpen` and `onClose` properties from `Popup` and `Tooltip` components.
- Removed `whenCreated` property from the `MapContainer` component (a `ref`
callback can be used instead).
- Removed `onOpen` and `onClose` properties from `Popup` and `Tooltip`
components.
- Removed CommonJS distribution.
- Removed UMD distribution.

Expand Down Expand Up @@ -52,7 +64,8 @@ Updated React dependencies to v18 stable.
- Removed `useMapElement` hook.
- Removed `MapConsumer` component.
- Removed `whenCreated` property from the `MapContainer` component.
- Removed `onOpen` and `onClose` properties from `Popup` and `Tooltip` components.
- Removed `onOpen` and `onClose` properties from `Popup` and `Tooltip`
components.
- Removed CommonJS distribution.
- Removed UMD distribution.

Expand Down
26 changes: 11 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,40 @@
"scripts": {
"lint": "eslint './packages/**/*.ts' './packages/**/*.tsx'",
"test": "jest",
"types:core": "yarn workspace @react-leaflet/core run build:types",
"types:react-leaflet": "yarn workspace react-leaflet run build:types",
"build:types": "yarn run types:core && yarn run types:react-leaflet",
"build:website": "yarn workspace website run build",
"build": "yarn turbo run build:clean && yarn run build:types && yarn turbo run build:js && yarn run build:website"
"build": "turbo run build:clean && pnpm run build:types && turbo run build:js"
},
"devDependencies": {
"@skypack/package-check": "^0.2.2",
"@swc/cli": "^0.1.55",
"@swc/core": "^1.2.205",
"@swc/jest": "^0.2.21",
"@swc/core": "^1.2.241",
"@swc/jest": "^0.2.22",
"@testing-library/react": "^13.3.0",
"@testing-library/react-hooks": "^8.0.1",
"@types/jest": "^28.1.3",
"@types/jest": "^28.1.7",
"@types/leaflet": "^1.7.11",
"@types/warning": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^5.29.0",
"@typescript-eslint/parser": "^5.29.0",
"@typescript-eslint/eslint-plugin": "^5.33.1",
"@typescript-eslint/parser": "^5.33.1",
"cross-env": "^7.0.3",
"del-cli": "^4.0.1",
"eslint": "^8.18.0",
"del-cli": "^5.0.0",
"eslint": "^8.22.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.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"jest": "^28.1.1",
"jest-environment-jsdom": "^28.1.1",
"jest": "^28.1.3",
"jest-environment-jsdom": "^28.1.3",
"leaflet": "^1.8.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.3.1",
"turbo": "^1.4.3",
"typescript": "^4.7.4"
},
"jest": {
Expand Down
12 changes: 6 additions & 6 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-leaflet/core",
"version": "2.0.0",
"version": "2.0.1",
"description": "React Leaflet core",
"repository": {
"type": "git",
Expand Down Expand Up @@ -32,12 +32,12 @@
"build:clean": "del lib",
"build:js": "swc src -d ./lib --config-file ../../.swcrc",
"build:types": "tsc --emitDeclarationOnly",
"build": "yarn run build:clean && yarn run build:types && yarn run build:js",
"build": "pnpm run build:clean && pnpm run build:types && pnpm run build:js",
"test:types": "tsc --noEmit",
"test:unit": "cross-env NODE_ENV=test jest",
"test": "yarn run test:types && yarn run test:unit",
"start": "yarn run test && yarn run build",
"prepare": "yarn run build",
"test": "pnpm run test:types && pnpm run test:unit",
"start": "pnpm run test && pnpm run build",
"prepare": "pnpm run build",
"prepublishOnly": "package-check"
},
"peerDependencies": {
Expand All @@ -46,7 +46,7 @@
"react-dom": "^18.0.0"
},
"devDependencies": {
"@types/react": "^18.0.15",
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6"
},
"jest": {
Expand Down
33 changes: 0 additions & 33 deletions packages/docusaurus-plugin/LICENSE.md

This file was deleted.

23 changes: 0 additions & 23 deletions packages/docusaurus-plugin/index.js

This file was deleted.

19 changes: 0 additions & 19 deletions packages/docusaurus-plugin/package.json

This file was deleted.

16 changes: 8 additions & 8 deletions packages/react-leaflet/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-leaflet",
"version": "4.0.1",
"version": "4.0.2",
"description": "React components for Leaflet maps",
"repository": {
"type": "git",
Expand Down Expand Up @@ -33,26 +33,26 @@
"build:clean": "del lib",
"build:js": "swc src -d ./lib --config-file ../../.swcrc",
"build:types": "tsc --emitDeclarationOnly",
"build": "yarn run build:clean && yarn run build:types && yarn run build:js",
"build": "pnpm run build:clean && pnpm run build:types && pnpm run build:js",
"test:types": "tsc --noEmit",
"test:unit": "cross-env NODE_ENV=test jest",
"test": "yarn run test:types && yarn run test:unit",
"start": "yarn run test && yarn run build",
"prepare": "yarn run build",
"test": "pnpm run test:types && pnpm run test:unit",
"start": "pnpm run test && pnpm run build",
"prepare": "pnpm run build",
"prepublishOnly": "package-check"
},
"dependencies": {
"@react-leaflet/core": "^2.0.0"
"@react-leaflet/core": "^2.0.1"
},
"peerDependencies": {
"leaflet": "^1.8.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"devDependencies": {
"@types/geojson": "^7946.0.8",
"@types/geojson": "^7946.0.10",
"@types/leaflet": "^1.7.11",
"@types/react": "^18.0.15",
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6"
},
"jest": {
Expand Down
Loading

0 comments on commit 94ad702

Please sign in to comment.