Skip to content

Commit

Permalink
Allow React 19 prereleases as peer dependencies (#31638)
Browse files Browse the repository at this point in the history
Allow React 19 prereleases as a step toward supporting Next.js 15.

GitOrigin-RevId: e6143aa12858d85b3fb985785b21f4a2de2fdf96
  • Loading branch information
thomasballinger authored and Convex, Inc. committed Nov 19, 2024
1 parent 09d7597 commit 4166896
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 5 deletions.
20 changes: 17 additions & 3 deletions npm-packages/common/config/rush/common-versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,31 @@
* against the latest TypeScript, the one our users are most likely
* to be using.
*/
"typescript": ["5.0.4", "~5.6.2"],
"typescript": ["5.0.4", "~5.6.2", "^5"],
/**
* These are for private-demos/tanstack-start to closely match
* These are for private-demos/tanstack-start to closely match
* https://github.com/TanStack/router
* specifically https://github.com/TanStack/router/blob/main/examples/react/start-basic-react-query/package.json
*/
"@vitejs/plugin-react": ["^4.3.1"],
/**
* These are for private-demos/nextjs-15-app to closely match
* npx create-next-app@latest next-15-app
*/
"next": ["15.0.3"],
"react": ["19.0.0-rc-66855b96-20241106"],
"react-dom": ["19.0.0-rc-66855b96-20241106"],
//"typescript": ["^5"],
"@types/node": ["^20"],
"@types/react": ["^18"],
"@types/react-dom": ["^18"],
//"eslint": ["^8"],
"eslint-config-next": ["15.0.3"],

/**
* Until an upgrade to ESLint 9 is done
*/
"eslint": ["^8.29.0"],
"eslint": ["^8.29.0", "^8"],
"eslint-plugin-react-hooks": ["^4.6.2"]
}
}
15 changes: 15 additions & 0 deletions npm-packages/convex/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## 1.17.1

- Use local Prettier settings to format code in `convex/_generated` if found.
- Extend supported react and react-dom peerDependencies to include v19
prereleases. This is temporary, only stable React 19 releases will be
supported in the long term.
- Hook up Sentry reporting for local deployments, opted-into by
`npx convex dev --local`. This telemetry will be made configurable before this
feature is released more broadly. This is being called out here for
transparency regarding telemetry, but this `--local` feature is not yet ready
for general consumption. Please don't use it unless you're excited to help
test unfinished features and willing to have errors submitted to Convex.
- Don't try to bundle .txt or .md files in the convex/ directory.
- Don't include credentials in HTTP client requests.

## 1.17.0

- Disallow extra arguments to CLI commands.
Expand Down
4 changes: 2 additions & 2 deletions npm-packages/convex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@
"peerDependencies": {
"@auth0/auth0-react": "^2.0.1",
"@clerk/clerk-react": "^4.12.8 || ^5.0.0",
"react": "^17.0.2 || ^18.0.0",
"react-dom": "^17.0.2 || ^18.0.0"
"react": "^17.0.2 || ^18.0.0 || ^19.0.0-0",
"react-dom": "^17.0.2 || ^18.0.0 || ^19.0.0-0"
},
"peerDependenciesMeta": {
"react": {
Expand Down

0 comments on commit 4166896

Please sign in to comment.