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>



[![Need help? Join our
Discord](https://img.shields.io/badge/Need%20help%3F%20Join%20our%20Discord-5865F2?style=plastic&logo=discord&logoColor=white)](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:
BilalG1 2025-10-06 12:46:34 -07:00 committed by GitHub
parent 8a77e07f19
commit 88e6900546
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 536 additions and 894 deletions

View File

@ -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",

View File

@ -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",

View File

@ -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"
}
}

View File

@ -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"
}
}

View File

@ -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"
}
}

View File

@ -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",

View File

@ -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",

View File

@ -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",

File diff suppressed because it is too large Load Diff