Skip to content

Commit

Permalink
Migrate to React 19
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Dec 6, 2024
1 parent 36e3bff commit 6410899
Show file tree
Hide file tree
Showing 27 changed files with 603 additions and 597 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ jobs:
react-dom: { version: '^18', types: '^18' },
},
{
version: 'rc',
types: 'npm:types-react@rc',
react-dom: { version: 'rc', types: 'npm:types-react-dom@rc' },
version: '^19',
types: '^19',
react-dom: { version: '^19', types: '^19' },
},
]

Expand Down Expand Up @@ -140,9 +140,9 @@ jobs:
react-dom: { version: '^18', types: '^18' },
},
{
version: 'rc',
types: 'npm:types-react@rc',
react-dom: { version: 'rc', types: 'npm:types-react-dom@rc' },
version: '^19',
types: '^19',
react-dom: { version: '^19', types: '^19' },
},
]

Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"devDependencies": {
"@manaflair/redux-batch": "^1.0.0",
"@types/nanoid": "^2.1.0",
"@types/react": "npm:types-react@rc",
"@types/react": "^19.0.1",
"async-mutex": "^0.3.2",
"axios": "^0.20.0",
"formik": "^2.1.5",
Expand Down
8 changes: 4 additions & 4 deletions examples/action-listener/counter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"dependencies": {
"@reduxjs/toolkit": "^1.8.0",
"@types/node": "^12.0.0",
"@types/react": "npm:types-react@rc",
"@types/react-dom": "npm:types-react-dom@rc",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.1",
"clsx": "1.1.1",
"react": "19.0.0-rc.1",
"react-dom": "19.0.0-rc.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-redux": "^9.1.2",
"react-scripts": "5.0.1",
"typescript": "~4.9"
Expand Down
8 changes: 4 additions & 4 deletions examples/query/react/advanced/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"main": "src/index.tsx",
"dependencies": {
"@reduxjs/toolkit": "^1.6.0-rc.1",
"react": "19.0.0-rc.1",
"react-dom": "19.0.0-rc.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-redux": "^9.1.2",
"react-scripts": "5.0.1"
},
"devDependencies": {
"@types/react": "npm:types-react@rc",
"@types/react-dom": "npm:types-react-dom@rc",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.1",
"typescript": "~4.9"
},
"eslintConfig": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
"@reduxjs/toolkit": "^1.6.0-rc.1",
"framer-motion": "^2.9.5",
"msw": "^0.40.2",
"react": "19.0.0-rc.1",
"react-dom": "19.0.0-rc.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-icons": "3.11.0",
"react-redux": "^9.1.2",
"react-router-dom": "6.3.0",
"react-scripts": "5.0.1"
},
"devDependencies": {
"@types/react": "npm:types-react@rc",
"@types/react-dom": "npm:types-react-dom@rc",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.1",
"typescript": "~4.9"
},
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions examples/query/react/authentication/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
"@reduxjs/toolkit": "^1.6.0-rc.1",
"framer-motion": "^2.9.5",
"msw": "^0.40.2",
"react": "19.0.0-rc.1",
"react-dom": "19.0.0-rc.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-icons": "3.11.0",
"react-redux": "^9.1.2",
"react-router-dom": "6.3.0",
"react-scripts": "5.0.1"
},
"devDependencies": {
"@types/react": "npm:types-react@rc",
"@types/react-dom": "npm:types-react-dom@rc",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.1",
"typescript": "~4.9"
},
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions examples/query/react/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
"main": "src/index.tsx",
"dependencies": {
"@reduxjs/toolkit": "^1.6.0-rc.1",
"react": "19.0.0-rc.1",
"react-dom": "19.0.0-rc.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-redux": "^9.1.2",
"react-scripts": "5.0.1"
},
"devDependencies": {
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.1.0",
"@types/jest": "^26.0.23",
"@types/react": "npm:types-react@rc",
"@types/react-dom": "npm:types-react-dom@rc",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.1",
"msw": "^0.40.2",
"typescript": "~4.9"
},
Expand Down
8 changes: 4 additions & 4 deletions examples/query/react/conditional-fetching/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"main": "src/index.tsx",
"dependencies": {
"@reduxjs/toolkit": "^1.6.0-rc.1",
"react": "19.0.0-rc.1",
"react-dom": "19.0.0-rc.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-redux": "^9.1.2",
"react-scripts": "5.0.1"
},
"devDependencies": {
"@types/react": "npm:types-react@rc",
"@types/react-dom": "npm:types-react-dom@rc",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.1",
"typescript": "~4.9"
},
"eslintConfig": {
Expand Down
8 changes: 4 additions & 4 deletions examples/query/react/deduping-queries/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"main": "src/index.tsx",
"dependencies": {
"@reduxjs/toolkit": "^1.6.0-rc.1",
"react": "19.0.0-rc.1",
"react-dom": "19.0.0-rc.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-redux": "^9.1.2",
"react-scripts": "5.0.1"
},
"devDependencies": {
"@types/react": "npm:types-react@rc",
"@types/react-dom": "npm:types-react-dom@rc",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.1",
"typescript": "~4.9"
},
"eslintConfig": {
Expand Down
8 changes: 4 additions & 4 deletions examples/query/react/graphql-codegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"graphql": "^15.5.0",
"graphql-request": "^3.4.0",
"msw": "0.40.2",
"react": "19.0.0-rc.1",
"react-dom": "19.0.0-rc.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-icons": "3.11.0",
"react-redux": "^9.1.2",
"react-router-dom": "6.3.0",
Expand All @@ -34,8 +34,8 @@
"@graphql-codegen/typescript-rtk-query": "^1.1.0",
"@graphql-typed-document-node/core": "^3.1.0",
"@types/faker": "^5.5.5",
"@types/react": "npm:types-react@rc",
"@types/react-dom": "npm:types-react-dom@rc",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.1",
"@types/webpack-env": "^1.16.0",
"concurrently": "^6.2.0",
"cross-env": "^7.0.3",
Expand Down
8 changes: 4 additions & 4 deletions examples/query/react/graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@
"graphql": "^15.5.0",
"graphql-request": "^3.4.0",
"msw": "0.40.2",
"react": "19.0.0-rc.1",
"react-dom": "19.0.0-rc.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-icons": "3.11.0",
"react-redux": "^9.1.2",
"react-router-dom": "6.3.0",
"react-scripts": "5.0.1"
},
"devDependencies": {
"@types/faker": "^5.5.5",
"@types/react": "npm:types-react@rc",
"@types/react-dom": "npm:types-react-dom@rc",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.1",
"typescript": "~4.2.4"
},
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions examples/query/react/kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"dependencies": {
"@reduxjs/toolkit": "1.8.1",
"msw": "^0.40.2",
"react": "19.0.0-rc.1",
"react-dom": "19.0.0-rc.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-redux": "^9.1.2",
"react-router-dom": "6.3.0",
"react-scripts": "5.0.1"
Expand All @@ -20,8 +20,8 @@
"@testing-library/react": "^16.1.0",
"@types/jest": "^26.0.23",
"@types/node": "^14.14.6",
"@types/react": "npm:types-react@rc",
"@types/react-dom": "npm:types-react-dom@rc",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.1",
"typescript": "~4.9",
"whatwg-fetch": "^3.4.1"
},
Expand Down
8 changes: 4 additions & 4 deletions examples/query/react/mutations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@
"@reduxjs/toolkit": "^1.6.0-rc.1",
"framer-motion": "^2.9.5",
"msw": "^0.40.2",
"react": "19.0.0-rc.1",
"react-dom": "19.0.0-rc.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-icons": "3.11.0",
"react-redux": "^9.1.2",
"react-router-dom": "6.3.0",
"react-scripts": "5.0.1"
},
"devDependencies": {
"@types/react": "npm:types-react@rc",
"@types/react-dom": "npm:types-react-dom@rc",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.1",
"typescript": "~4.9"
},
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions examples/query/react/optimistic-update/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
"@reduxjs/toolkit": "^1.6.0-rc.1",
"framer-motion": "^2.9.5",
"msw": "^0.40.2",
"react": "19.0.0-rc.1",
"react-dom": "19.0.0-rc.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-icons": "3.11.0",
"react-redux": "^9.1.2",
"react-router-dom": "6.3.0",
"react-scripts": "5.0.1",
"uuid": "^8.3.2"
},
"devDependencies": {
"@types/react": "npm:types-react@rc",
"@types/react-dom": "npm:types-react-dom@rc",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.1",
"typescript": "~4.9",
"whatwg-fetch": "^3.4.1"
},
Expand Down
8 changes: 4 additions & 4 deletions examples/query/react/pagination/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
"faker": "^5.5.3",
"framer-motion": "^2.9.5",
"msw": "^0.40.2",
"react": "19.0.0-rc.1",
"react-dom": "19.0.0-rc.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-icons": "^5.0.1",
"react-redux": "^9.1.2",
"react-scripts": "5.0.1"
},
"devDependencies": {
"@types/faker": "^5.5.5",
"@types/react": "npm:types-react@rc",
"@types/react-dom": "npm:types-react-dom@rc",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.1",
"typescript": "~4.9"
},
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions examples/query/react/polling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"main": "src/index.tsx",
"dependencies": {
"@reduxjs/toolkit": "^1.6.0-rc.1",
"react": "19.0.0-rc.1",
"react-dom": "19.0.0-rc.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-redux": "^9.1.2",
"react-scripts": "5.0.1"
},
"devDependencies": {
"@types/react": "npm:types-react@rc",
"@types/react-dom": "npm:types-react-dom@rc",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.1",
"typescript": "~4.9"
},
"eslintConfig": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@
"faker": "^5.5.3",
"framer-motion": "^2.9.5",
"msw": "^0.40.2",
"react": "19.0.0-rc.1",
"react-dom": "19.0.0-rc.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-icons": "3.11.0",
"react-redux": "^9.1.2",
"react-router-dom": "6.3.0",
"react-scripts": "5.0.1"
},
"devDependencies": {
"@types/faker": "^5.5.5",
"@types/react": "npm:types-react@rc",
"@types/react-dom": "npm:types-react-dom@rc",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.1",
"typescript": "~4.9"
},
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions examples/query/react/prefetching-automatic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@
"faker": "^5.5.3",
"framer-motion": "^2.9.5",
"msw": "^0.40.2",
"react": "19.0.0-rc.1",
"react-dom": "19.0.0-rc.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-icons": "3.11.0",
"react-redux": "^9.1.2",
"react-router-dom": "6.3.0",
"react-scripts": "5.0.1"
},
"devDependencies": {
"@types/faker": "^5.5.5",
"@types/react": "npm:types-react@rc",
"@types/react-dom": "npm:types-react-dom@rc",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.1",
"typescript": "~4.9"
},
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions examples/query/react/prefetching/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@
"faker": "^5.5.3",
"framer-motion": "^2.9.5",
"msw": "^0.40.2",
"react": "19.0.0-rc.1",
"react-dom": "19.0.0-rc.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-icons": "3.11.0",
"react-redux": "^9.1.2",
"react-router-dom": "6.3.0",
"react-scripts": "5.0.1"
},
"devDependencies": {
"@types/faker": "^5.5.5",
"@types/react": "npm:types-react@rc",
"@types/react-dom": "npm:types-react-dom@rc",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.1",
"typescript": "~4.9"
},
"scripts": {
Expand Down
Loading

0 comments on commit 6410899

Please sign in to comment.