react-leaflet-measure 3.0.0-beta.1 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -12,7 +12,7 @@ for [react-leaflet](https://github.com/PaulLeCam/react-leaflet).
12
12
 
13
13
  Coordinate, linear, and area measure control for [Leaflet](http://leafletjs.com) maps. Extends [L.Control](http://leafletjs.com/reference.html#control).
14
14
 
15
- *Tested with React 19.2.0, Leaflet 1.9.4, React-Leaflet 5.0.0, React-Leaflet 4.0.0*
15
+ *Tested with React 19.2.1, Leaflet 1.9.4, React-Leaflet 5.0.0, React-Leaflet 4.0.0*
16
16
 
17
17
 
18
18
  ## Demos
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-leaflet-measure",
3
- "version": "3.0.0-beta.1",
3
+ "version": "3.0.0",
4
4
  "description": "React wrapper of leaflet-measure. Coordinate, linear, and area measure control for Leaflet maps.",
5
5
  "main": "dist/react-leaflet-measure.min.js",
6
6
  "scripts": {
@@ -51,6 +51,7 @@
51
51
  "css-loader": "^7.1.2",
52
52
  "eslint": "^9.39.1",
53
53
  "eslint-plugin-react": "^7.37.5",
54
+ "identity-obj-proxy": "^3.0.0",
54
55
  "jest": "^30.2.0",
55
56
  "jest-environment-jsdom": "^30.2.0",
56
57
  "leaflet": "^1.9.4",
@@ -68,11 +69,18 @@
68
69
  },
69
70
  "jest": {
70
71
  "collectCoverage": true,
72
+ "moduleNameMapper": {
73
+ "\\.(css|less|scss|sass)$": "identity-obj-proxy"
74
+ },
75
+ "testEnvironment": "jsdom",
71
76
  "transform": {
72
77
  "^.+\\.[jt]sx?$": "babel-jest"
73
78
  },
74
79
  "testMatch": [
75
80
  "**/__tests__/**/?(*.)+(spec|test).[jt]s?(x)"
81
+ ],
82
+ "transformIgnorePatterns": [
83
+ "/node_modules/(?!react-leaflet|@react-leaflet|leaflet)/"
76
84
  ]
77
85
  }
78
86
  }
package/babel.config.js DELETED
@@ -1,20 +0,0 @@
1
- module.exports = {
2
- presets: [
3
- ['@babel/preset-env', { modules: false }],
4
- '@babel/preset-react'
5
- ],
6
- plugins: [
7
- '@babel/plugin-transform-class-properties'
8
- ],
9
- env: {
10
- test: {
11
- presets: [
12
- '@babel/preset-env',
13
- '@babel/preset-react'
14
- ],
15
- plugins: [
16
- '@babel/plugin-transform-class-properties'
17
- ],
18
- },
19
- },
20
- };