Skip to content

Commit

Permalink
pkg: Update react (#3298)
Browse files Browse the repository at this point in the history
* pkg: Update react

* pkg: Update type packages too

* internal: Update tests for react 19

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Nathaniel Tucker <[email protected]>
  • Loading branch information
renovate[bot] and ntucker authored Dec 6, 2024
1 parent 4d272fe commit ebfbe14
Show file tree
Hide file tree
Showing 23 changed files with 293 additions and 249 deletions.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,12 @@ jobs:
YARN_ENABLE_GLOBAL_CACHE=false yarn remove @react-navigation/native @react-navigation/native-stack react-native-screens
YARN_ENABLE_GLOBAL_CACHE=false yarn workspace @data-client/react remove @react-navigation/native
YARN_ENABLE_GLOBAL_CACHE=false yarn add --dev react@<< parameters.react-version >> react-dom@<< parameters.react-version >> react-test-renderer@<< parameters.react-version >> @testing-library/react@^12.0.0 @testing-library/react-hooks @react-navigation/native@^6.0.0 @react-navigation/native-stack@^6.0.0 react-native-screens@^3.0.0
YARN_ENABLE_GLOBAL_CACHE=false yarn workspaces foreach -W --include @data-client/img --include @data-client/react --include @data-client/ssr --include @data-client/test --include @data-client/use-enhanced-reducer add --dev react@<< parameters.react-version >> react-dom@<< parameters.react-version >> react-test-renderer@<< parameters.react-version >>
YARN_ENABLE_GLOBAL_CACHE=false yarn workspace @data-client/react add @react-navigation/native@^6.0.0
YARN_ENABLE_GLOBAL_CACHE=false yarn workspace @data-client/test add @testing-library/react@^12.0.0
elif [ "<< parameters.react-version >>" == "^18" ]; then
YARN_ENABLE_GLOBAL_CACHE=false yarn add --dev react@<< parameters.react-version >> react-dom@<< parameters.react-version >> react-test-renderer@<< parameters.react-version >>
YARN_ENABLE_GLOBAL_CACHE=false yarn workspaces foreach -W --include @data-client/img --include @data-client/react --include @data-client/ssr --include @data-client/test --include @data-client/use-enhanced-reducer add --dev react@<< parameters.react-version >> react-dom@<< parameters.react-version >> react-test-renderer@<< parameters.react-version >>
fi
- run:
command: |
Expand Down
4 changes: 2 additions & 2 deletions examples/benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
"@data-client/normalizr": "workspace:^",
"benchmark": "^2.1.4",
"normalizr": "^3.6.2",
"react": "^19.0.0-rc.1"
"react": "^19.0.0"
},
"devDependencies": {
"@anansi/webpack-config": "^20.0.0",
"@babel/core": "7.26.0",
"@babel/node": "7.26.0",
"@types/babel__core": "^7",
"@types/benchmark": "2.1.5",
"@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react": "19.0.0",
"webpack": "^5.76.2",
"webpack-cli": "^5.1.4"
}
Expand Down
4 changes: 2 additions & 2 deletions examples/coin-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
"@data-client/rest": "^0.14.0",
"d3": "^7.9.0",
"history": "*",
"react": "^19.0.0-rc.1",
"react-dom": "^19.0.0-rc.1"
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"main": "src/index.ts",
"types": "src/index.ts",
Expand Down
93 changes: 46 additions & 47 deletions examples/github-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions examples/github-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
"@linaria/shaker": "5.0.3",
"@types/lodash": "4.14.192",
"@types/parse-link-header": "^2.0.0",
"@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react-dom": "npm:types-react-dom@19.0.0",
"@types/react": "19.0.0",
"@types/react-dom": "19.0.0",
"@types/uuid": "^10.0.0",
"react-refresh": "0.14.2",
"react-refresh": "0.16.0",
"serve": "14.2.4",
"webpack": "5.96.1",
"webpack-cli": "5.1.4",
Expand All @@ -53,8 +53,8 @@
"@js-temporal/polyfill": "^0.4.4",
"antd": "5.22.3",
"parse-link-header": "^2.0.0",
"react": "19.0.0-rc.1",
"react-dom": "19.0.0-rc.1",
"react": "19.0.0",
"react-dom": "19.0.0",
"react-error-boundary": "^4.0.0",
"react-markdown": "9.0.1",
"rehype-highlight": "7.0.1",
Expand Down
40 changes: 21 additions & 19 deletions examples/nextjs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@
"@data-client/rest": "^0.14.0",
"@number-flow/react": "^0.4.0",
"@types/node": "22.10.1",
"@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react-dom": "npm:types-react-dom@19.0.0",
"@types/react": "19.0.0",
"@types/react-dom": "19.0.0",
"clsx": "^2.1.1",
"next": "15.0.3",
"react": "19.0.0-rc.1",
"react-dom": "19.0.0-rc.1",
"react": "19.0.0",
"react-dom": "19.0.0",
"tar-fs": "^3.0.6",
"tunnel-agent": "^0.6.0",
"typescript": "^5.4.5"
},
"overrides": {
"@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react-dom": "npm:types-react-dom@19.0.0"
"@types/react": "19.0.0",
"@types/react-dom": "19.0.0"
}
}
Loading

0 comments on commit ebfbe14

Please sign in to comment.