mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
drop react v18 support (#921)
<!--
Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md
-->
<!-- RECURSEML_SUMMARY:START -->
## High-level PR Summary
This PR updates the peer dependency requirements across multiple
package.json files to remove support for React 18.2 and only specify
React 19.0.0-rc.0 or newer as the minimum required version. The change
affects React, React DOM, and their corresponding TypeScript type
packages.
⏱️ Estimated Review Time: 5-15 minutes
<details>
<summary>💡 Review Order Suggestion</summary>
| Order | File Path |
|-------|-----------|
| 1 | `packages/react/package.json` |
| 2 | `packages/stack/package.json` |
| 3 | `packages/template/package-template.json` |
| 4 | `packages/template/package.json` |
</details>
[](https://discord.gg/n3SsVDAW6U)
<!-- RECURSEML_SUMMARY:END -->
<!-- ELLIPSIS_HIDDEN -->
----
> [!IMPORTANT]
> Update peer dependencies to require React 19.0.0 or newer across
multiple packages.
>
> - **Peer Dependencies**:
> - Updated minimum peer dependency to React 19.0.0 for `react`,
`react-dom`, `@types/react`, and `@types/react-dom` in
`packages/react/package.json`, `packages/stack/package.json`, and
`packages/template/package.json`.
> - Removed support for React 18.2 in peer dependencies across all
affected `package.json` files.
> - **Dev Dependencies**:
> - Updated development dependencies to React 19.0.0 in
`packages/react/package.json`, `packages/stack/package.json`, and
`packages/template/package.json`.
> - **Misc**:
> - No runtime behavior changes; only stricter dependency constraints.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=stack-auth%2Fstack-auth&utm_source=github&utm_medium=referral)<sup>
for fa6ee35f32. You can
[customize](https://app.ellipsis.dev/stack-auth/settings/summaries) this
summary. It will automatically update as commits are pushed.</sup>
----
<!-- ELLIPSIS_HIDDEN -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Chores**
* Raised peer dependency minimums to React 19.0.0 for react, react-dom,
@types/react, and @types/react-dom across packages.
* Bumped development dependencies used for building and testing to React
19.x.
* Applies to templates, stack packages, UI/shared packages, and
development tooling; no runtime behavior changes—only stricter
dependency requirements.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
This commit is contained in:
parent
8a77e07f19
commit
88e6900546
@ -60,7 +60,7 @@
|
||||
"i18next-parser": "^9.0.2",
|
||||
"postcss": "^8.4.38",
|
||||
"postcss-nested": "^6.0.1",
|
||||
"react": "^18.2.0",
|
||||
"react": "^19.0.0",
|
||||
"rimraf": "^5.0.5",
|
||||
"tailwindcss": "^3.4.4",
|
||||
"tsup": "^8.0.2",
|
||||
|
||||
@ -61,8 +61,8 @@
|
||||
"yup": "^1.4.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@types/react": ">=18.2 || >=19.0.0-rc.0",
|
||||
"react": ">=18.2 || >=19.0.0-rc.0"
|
||||
"@types/react": ">=19.0.0",
|
||||
"react": ">=19.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@types/react": {
|
||||
@ -83,8 +83,8 @@
|
||||
"i18next-parser": "^9.0.2",
|
||||
"postcss": "^8.4.38",
|
||||
"postcss-nested": "^6.0.1",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0",
|
||||
"rimraf": "^5.0.5",
|
||||
"tailwindcss": "^3.4.4",
|
||||
"tsup": "^8.0.2",
|
||||
|
||||
@ -31,10 +31,10 @@
|
||||
],
|
||||
"peerDependencies": {
|
||||
"next": ">=14.1 || >=15.0.0-rc.0",
|
||||
"react": ">=18.2 || >=19.0.0-rc.0",
|
||||
"react-dom": ">=18.2 || >=19.0.0-rc.0",
|
||||
"@types/react": ">=18.3.12 || >=19.0.0-rc.0",
|
||||
"@types/react-dom": ">=18.3.1 || >=19.0.0-rc.0"
|
||||
"react": ">=19.0.0",
|
||||
"react-dom": ">=19.0.0",
|
||||
"@types/react": ">=19.0.0",
|
||||
"@types/react-dom": ">=19.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@types/react": {
|
||||
@ -46,8 +46,8 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"rimraf": "^5.0.5",
|
||||
"react": "^18.2",
|
||||
"react-dom": "^18.2",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0",
|
||||
"next": "^14.1.0"
|
||||
}
|
||||
}
|
||||
|
||||
@ -32,10 +32,10 @@
|
||||
}
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@types/react": ">=18.2 || >=19.0.0-rc.0",
|
||||
"@types/react-dom": ">=18.2 || >=19.0.0-rc.0",
|
||||
"react": ">=18.2 || >=19.0.0-rc.0",
|
||||
"react-dom": ">=18.2 || >=19.0.0-rc.0",
|
||||
"@types/react": ">=19.0.0",
|
||||
"@types/react-dom": ">=19.0.0",
|
||||
"react": ">=19.0.0",
|
||||
"react-dom": ">=19.0.0",
|
||||
"yup": "^1.4.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
@ -75,8 +75,8 @@
|
||||
"@types/elliptic": "^6.4.18",
|
||||
"@types/semver": "^7.5.8",
|
||||
"@types/uuid": "^9.0.8",
|
||||
"react": "^18.2",
|
||||
"react-dom": "^18.2",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0",
|
||||
"rimraf": "^5.0.5"
|
||||
}
|
||||
}
|
||||
|
||||
@ -24,10 +24,10 @@
|
||||
}
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@types/react": ">=18.2.12 || >=19.0.0-rc.0",
|
||||
"@types/react-dom": ">=18.2.12 || >=19.0.0-rc.0",
|
||||
"react": ">=18.2 || >=19.0.0-rc.0",
|
||||
"react-dom": ">=18.2 || >=19.0.0-rc.0",
|
||||
"@types/react": ">=19.0.0",
|
||||
"@types/react-dom": ">=19.0.0",
|
||||
"react": ">=19.0.0",
|
||||
"react-dom": ">=19.0.0",
|
||||
"yup": "^1.4.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
@ -86,10 +86,10 @@
|
||||
"tailwind-merge": "^2.5.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react": "^18.2.12",
|
||||
"@types/react-dom": "^18.2.12",
|
||||
"react": "^18.2",
|
||||
"react-dom": "^18.2",
|
||||
"@types/react": "^19.0.0",
|
||||
"@types/react-dom": "^19.0.0",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0",
|
||||
"rimraf": "^5.0.10"
|
||||
}
|
||||
}
|
||||
|
||||
@ -62,11 +62,11 @@
|
||||
"yup": "^1.4.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@types/react": ">=18.2 || >=19.0.0-rc.0",
|
||||
"@types/react-dom": ">=18.2 || >=19.0.0-rc.0",
|
||||
"react-dom": ">=18.2 || >=19.0.0-rc.0",
|
||||
"@types/react": ">=19.0.0",
|
||||
"@types/react-dom": ">=19.0.0",
|
||||
"react-dom": ">=19.0.0",
|
||||
"next": ">=14.1 || >=15.0.0-canary.0 || >=15.0.0-rc.0",
|
||||
"react": ">=18.2 || >=19.0.0-rc.0"
|
||||
"react": ">=19.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@types/react-dom": {
|
||||
@ -91,8 +91,8 @@
|
||||
"next": "^14.1.0",
|
||||
"postcss": "^8.4.38",
|
||||
"postcss-nested": "^6.0.1",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0",
|
||||
"rimraf": "^5.0.5",
|
||||
"tailwindcss": "^3.4.4",
|
||||
"tsup": "^8.0.2",
|
||||
|
||||
@ -98,13 +98,13 @@
|
||||
},
|
||||
"//": "IF_PLATFORM react-like",
|
||||
"peerDependencies": {
|
||||
"@types/react": ">=18.2 || >=19.0.0-rc.0",
|
||||
"@types/react": ">=19.0.0",
|
||||
"//": "IF_PLATFORM next",
|
||||
"@types/react-dom": ">=18.2 || >=19.0.0-rc.0",
|
||||
"react-dom": ">=18.2 || >=19.0.0-rc.0",
|
||||
"@types/react-dom": ">=19.0.0",
|
||||
"react-dom": ">=19.0.0",
|
||||
"next": ">=14.1 || >=15.0.0-canary.0 || >=15.0.0-rc.0",
|
||||
"//": "END_PLATFORM",
|
||||
"react": ">=18.2 || >=19.0.0-rc.0"
|
||||
"react": ">=19.0.0"
|
||||
},
|
||||
"//": "END_PLATFORM",
|
||||
"//": "IF_PLATFORM react-like",
|
||||
@ -135,9 +135,9 @@
|
||||
"next": "^14.1.0",
|
||||
"postcss": "^8.4.38",
|
||||
"postcss-nested": "^6.0.1",
|
||||
"react": "^18.2.0",
|
||||
"react": "^19.0.0",
|
||||
"//": "NEXT_LINE_PLATFORM react-like",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-dom": "^19.0.0",
|
||||
"rimraf": "^5.0.5",
|
||||
"tailwindcss": "^3.4.4",
|
||||
"tsup": "^8.0.2",
|
||||
|
||||
@ -67,11 +67,11 @@
|
||||
"yup": "^1.4.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@types/react": ">=18.2 || >=19.0.0-rc.0",
|
||||
"@types/react-dom": ">=18.2 || >=19.0.0-rc.0",
|
||||
"react-dom": ">=18.2 || >=19.0.0-rc.0",
|
||||
"@types/react": ">=19.0.0",
|
||||
"@types/react-dom": ">=19.0.0",
|
||||
"react-dom": ">=19.0.0",
|
||||
"next": ">=14.1 || >=15.0.0-canary.0 || >=15.0.0-rc.0",
|
||||
"react": ">=18.2 || >=19.0.0-rc.0"
|
||||
"react": ">=19.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@types/react-dom": {
|
||||
@ -96,8 +96,8 @@
|
||||
"next": "^14.1.0",
|
||||
"postcss": "^8.4.38",
|
||||
"postcss-nested": "^6.0.1",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0",
|
||||
"rimraf": "^5.0.5",
|
||||
"tailwindcss": "^3.4.4",
|
||||
"tsup": "^8.0.2",
|
||||
|
||||
1344
pnpm-lock.yaml
1344
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user