react-leaflet
Advanced tools
Comparing version 3.2.2 to 4.0.0-alpha.0
{ | ||
"name": "react-leaflet", | ||
"version": "3.2.2", | ||
"version": "4.0.0-alpha.0", | ||
"description": "React components for Leaflet maps", | ||
"main": "cjs/index.js", | ||
"module": "esm/index.js", | ||
"types": "types/index.d.ts", | ||
"sideEffects": false, | ||
"scripts": { | ||
"build:clean": "del cjs esm types umd", | ||
"build:cjs": "babel src --out-dir cjs --extensions .ts,.tsx", | ||
"build:esm": "cross-env BABEL_ENV=esm babel src --out-dir esm --extensions .ts,.tsx", | ||
"build:types": "tsc --emitDeclarationOnly", | ||
"build:umd": "cross-env BABEL_ENV=rollup NODE_ENV=development rollup -c", | ||
"build:umd:min": "cross-env BABEL_ENV=rollup NODE_ENV=production rollup -c", | ||
"build": "yarn run build:clean && yarn run build:cjs && yarn run build:esm && yarn run build:types && yarn run build:umd && yarn run build:umd:min", | ||
"test:types": "tsc --noEmit", | ||
"test:unit": "cross-env BABEL_ENV=development NODE_ENV=test jest", | ||
"test": "yarn run test:types && yarn run test:unit", | ||
"start": "yarn run test && yarn run build", | ||
"prepare": "yarn run build" | ||
}, | ||
"repository": { | ||
@@ -39,27 +21,50 @@ "type": "git", | ||
"homepage": "https://react-leaflet.js.org", | ||
"type": "module", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"exports": { | ||
".": "./lib/index.js", | ||
"./*": "./lib/*.js" | ||
}, | ||
"files": [ | ||
"cjs/*", | ||
"esm/*", | ||
"types/*", | ||
"umd/*" | ||
"lib/*" | ||
], | ||
"sideEffects": false, | ||
"scripts": { | ||
"build:clean": "del lib", | ||
"build:js": "swc src -d ./lib --config-file ../../swc.json", | ||
"build:types": "tsc --emitDeclarationOnly", | ||
"build": "yarn run build:clean && yarn run build:js && yarn run build:types", | ||
"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", | ||
"prepublishOnly": "package-check" | ||
}, | ||
"dependencies": { | ||
"@react-leaflet/core": "^1.1.1" | ||
"@react-leaflet/core": "^2.0.0-alpha.0" | ||
}, | ||
"peerDependencies": { | ||
"leaflet": "^1.7.1", | ||
"react": "^17.0.1", | ||
"react-dom": "^17.0.1" | ||
"react": "^18.0.0-rc", | ||
"react-dom": "^18.0.0-rc" | ||
}, | ||
"devDependencies": { | ||
"@rollup/plugin-babel": "^5.3.0", | ||
"@rollup/plugin-commonjs": "^21.0.0", | ||
"@rollup/plugin-node-resolve": "^13.0.5", | ||
"@rollup/plugin-replace": "^3.0.0", | ||
"rollup": "^2.58.0", | ||
"rollup-plugin-terser": "^7.0.0" | ||
"@react-leaflet/jest-resolver": "^1.0.0", | ||
"@types/leaflet": "^1.7.8" | ||
}, | ||
"jest": { | ||
"testEnvironment": "jsdom" | ||
"extensionsToTreatAsEsm": [ | ||
".ts", | ||
".tsx" | ||
], | ||
"resolver": "@react-leaflet/jest-resolver", | ||
"testEnvironment": "jsdom", | ||
"transform": { | ||
"^.+\\.(t|j)sx?$": [ | ||
"@swc/jest" | ||
] | ||
} | ||
} | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
2
Yes
49095
51
820
1
+ Added@react-leaflet/core@2.1.0(transitive)
+ Addedreact@18.3.1(transitive)
+ Addedreact-dom@18.3.1(transitive)
+ Addedscheduler@0.23.2(transitive)
- Removed@react-leaflet/core@1.1.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedreact@17.0.2(transitive)
- Removedreact-dom@17.0.2(transitive)
- Removedscheduler@0.20.2(transitive)