|
1 | 1 | {
|
2 | 2 | "name": "react-redux",
|
3 |
| - "version": "8.1.3", |
| 3 | + "version": "9.0.0-rc.0", |
4 | 4 | "description": "Official React bindings for Redux",
|
5 | 5 | "keywords": [
|
6 | 6 | "react",
|
|
12 | 12 | "homepage": "https://github.com/reduxjs/react-redux",
|
13 | 13 | "repository": "github:reduxjs/react-redux",
|
14 | 14 | "bugs": "https://github.com/reduxjs/react-redux/issues",
|
15 |
| - "main": "./lib/index.js", |
16 |
| - "types": "./es/index.d.ts", |
17 |
| - "unpkg": "dist/react-redux.js", |
18 |
| - "module": "es/index.js", |
| 15 | + "module": "dist/react-redux.legacy-esm.js", |
| 16 | + "main": "dist/cjs/index.js", |
| 17 | + "types": "dist/react-redux.d.ts", |
| 18 | + "exports": { |
| 19 | + "./package.json": "./package.json", |
| 20 | + ".": { |
| 21 | + "types": "./dist/react-redux.d.ts", |
| 22 | + "react-server": "./dist/rsc.mjs", |
| 23 | + "import": "./dist/react-redux.mjs", |
| 24 | + "default": "./dist/cjs/index.js" |
| 25 | + }, |
| 26 | + "./alternate-renderers": { |
| 27 | + "types": "./dist/react-redux.d.ts", |
| 28 | + "import": "./dist/react-redux.alternate-renderers.mjs" |
| 29 | + } |
| 30 | + }, |
| 31 | + "sideEffects": false, |
19 | 32 | "files": [
|
20 |
| - "dist", |
21 |
| - "lib", |
22 |
| - "src", |
23 |
| - "es" |
| 33 | + "dist" |
24 | 34 | ],
|
25 | 35 | "scripts": {
|
26 |
| - "build:commonjs": "cross-env BABEL_ENV=commonjs babel src --extensions \".js,.ts,.tsx\" --out-dir lib", |
27 |
| - "build:es": "babel src --extensions \".js,.ts,.tsx\" --out-dir es", |
28 |
| - "build:umd": "cross-env NODE_ENV=development rollup -c -o dist/react-redux.js", |
29 |
| - "build:umd:min": "cross-env NODE_ENV=production rollup -c -o dist/react-redux.min.js", |
30 |
| - "build:types": "tsc", |
31 |
| - "build": "yarn build:types && yarn build:commonjs && yarn build:es && yarn build:umd && yarn build:umd:min", |
| 36 | + "build": "tsup", |
32 | 37 | "clean": "rimraf lib dist es coverage",
|
33 | 38 | "api-types": "api-extractor run --local",
|
34 | 39 | "format": "prettier --write \"{src,test}/**/*.{js,ts,tsx}\" \"docs/**/*.md\"",
|
|
40 | 45 | "coverage": "codecov"
|
41 | 46 | },
|
42 | 47 | "peerDependencies": {
|
43 |
| - "@types/react": "^16.8 || ^17.0 || ^18.0", |
44 |
| - "@types/react-dom": "^16.8 || ^17.0 || ^18.0", |
45 |
| - "react": "^16.8 || ^17.0 || ^18.0", |
46 |
| - "react-dom": "^16.8 || ^17.0 || ^18.0", |
47 |
| - "react-native": ">=0.59", |
48 |
| - "redux": "^4 || ^5.0.0-beta.0" |
| 48 | + "@types/react": "^18.2.41", |
| 49 | + "@types/react-dom": "^18.2.17", |
| 50 | + "react": "^18.0", |
| 51 | + "react-dom": "^18.0", |
| 52 | + "react-native": ">=0.71", |
| 53 | + "redux": "^5.0.0-rc.0" |
49 | 54 | },
|
50 | 55 | "peerDependenciesMeta": {
|
51 | 56 | "@types/react": {
|
|
65 | 70 | }
|
66 | 71 | },
|
67 | 72 | "dependencies": {
|
68 |
| - "@babel/runtime": "^7.12.1", |
69 |
| - "@types/hoist-non-react-statics": "^3.3.1", |
70 | 73 | "@types/use-sync-external-store": "^0.0.3",
|
71 |
| - "hoist-non-react-statics": "^3.3.2", |
72 |
| - "react-is": "^18.0.0", |
73 | 74 | "use-sync-external-store": "^1.0.0"
|
74 | 75 | },
|
75 | 76 | "devDependencies": {
|
76 | 77 | "@babel/cli": "^7.12.1",
|
77 | 78 | "@babel/core": "^7.12.3",
|
78 | 79 | "@babel/plugin-proposal-decorators": "^7.12.1",
|
79 | 80 | "@babel/plugin-proposal-object-rest-spread": "^7.12.1",
|
| 81 | + "@babel/plugin-transform-flow-strip-types": "^7.22.5", |
80 | 82 | "@babel/plugin-transform-react-display-name": "^7.12.1",
|
81 | 83 | "@babel/plugin-transform-react-jsx": "^7.12.1",
|
82 | 84 | "@babel/plugin-transform-runtime": "^7.12.1",
|
83 | 85 | "@babel/preset-env": "^7.12.1",
|
84 | 86 | "@babel/preset-typescript": "^7.14.5",
|
85 | 87 | "@microsoft/api-extractor": "^7.18.1",
|
86 |
| - "@reduxjs/toolkit": "^1.9.5", |
87 |
| - "@rollup/plugin-babel": "^5.2.1", |
88 |
| - "@rollup/plugin-commonjs": "^15.1.0", |
89 |
| - "@rollup/plugin-node-resolve": "^9.0.0", |
90 |
| - "@rollup/plugin-replace": "^2.3.3", |
| 88 | + "@reduxjs/toolkit": "^2.0.0-beta.4", |
91 | 89 | "@testing-library/jest-dom": "^5.11.5",
|
92 | 90 | "@testing-library/jest-native": "^3.4.3",
|
93 | 91 | "@testing-library/react": "13.0.0",
|
94 | 92 | "@testing-library/react-12": "npm:@testing-library/react@^12",
|
95 | 93 | "@testing-library/react-hooks": "^3.4.2",
|
96 | 94 | "@testing-library/react-native": "^7.1.0",
|
97 |
| - "@types/object-assign": "^4.0.30", |
98 |
| - "@types/react": "^18", |
99 |
| - "@types/react-dom": "^18", |
100 |
| - "@types/react-is": "^17", |
| 95 | + "@types/react": "^18.2.41", |
| 96 | + "@types/react-dom": "^18.2.17", |
101 | 97 | "@types/react-native": "^0.67.4",
|
102 | 98 | "@typescript-eslint/eslint-plugin": "^4.28.0",
|
103 | 99 | "@typescript-eslint/parser": "^4.28.0",
|
104 | 100 | "babel-eslint": "^10.1.0",
|
105 |
| - "babel-jest": "^26.6.1", |
| 101 | + "babel-jest": "^29", |
106 | 102 | "codecov": "^3.8.0",
|
107 | 103 | "cross-env": "^7.0.2",
|
108 | 104 | "eslint": "^7.12.0",
|
|
111 | 107 | "eslint-plugin-prettier": "^3.1.4",
|
112 | 108 | "eslint-plugin-react": "^7.21.5",
|
113 | 109 | "glob": "^7.1.6",
|
114 |
| - "jest": "^26.6.1", |
| 110 | + "jest": "^29", |
| 111 | + "jest-environment-jsdom": "^29.5.0", |
| 112 | + "metro-react-native-babel-preset": "^0.76.6", |
115 | 113 | "prettier": "^2.1.2",
|
116 |
| - "react": "18.0.0", |
117 |
| - "react-17": "npm:react@^17", |
118 |
| - "react-dom": "18.0.0", |
119 |
| - "react-dom-17": "npm:react-dom@^17", |
120 |
| - "react-native": "^0.64.1", |
| 114 | + "react": "18.2.0", |
| 115 | + "react-dom": "18.2.0", |
| 116 | + "react-native": "^0.71.11", |
121 | 117 | "react-test-renderer": "18.0.0",
|
122 |
| - "react-test-renderer-17": "npm:react-test-renderer@^17", |
123 |
| - "redux": "^4.0.5", |
| 118 | + "redux": "^5.0.0-beta.0", |
124 | 119 | "rimraf": "^3.0.2",
|
125 |
| - "rollup": "^2.32.1", |
126 |
| - "rollup-plugin-terser": "^7.0.2", |
127 |
| - "ts-jest": "26.5.6", |
128 |
| - "typescript": "^4.3.4" |
| 120 | + "ts-jest": "^29", |
| 121 | + "tsup": "^7.0.0", |
| 122 | + "typescript": "^5.0" |
129 | 123 | }
|
130 | 124 | }
|
0 commit comments