mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
<!--
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>
147 lines
4.9 KiB
JSON
147 lines
4.9 KiB
JSON
{
|
|
"//": "IF_PLATFORM template",
|
|
"name": "@stackframe/template",
|
|
"//": "ELSE_IF_PLATFORM js",
|
|
"name": "@stackframe/js",
|
|
"//": "ELSE_IF_PLATFORM next",
|
|
"name": "@stackframe/stack",
|
|
"//": "ELSE_IF_PLATFORM react",
|
|
"name": "@stackframe/react",
|
|
"//": "END_PLATFORM",
|
|
|
|
"//": "NEXT_LINE_PLATFORM template",
|
|
"private": true,
|
|
"version": "2.8.41",
|
|
"sideEffects": false,
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": {
|
|
"default": "./dist/esm/index.js"
|
|
},
|
|
"require": {
|
|
"default": "./dist/index.js"
|
|
}
|
|
}
|
|
},
|
|
"homepage": "https://stack-auth.com",
|
|
"scripts": {
|
|
"typecheck": "tsc --noEmit",
|
|
"clean": "rimraf dist && rimraf node_modules",
|
|
"lint": "eslint --ext .tsx,.ts .",
|
|
|
|
"//": "IF_PLATFORM template react-like",
|
|
"build": "rimraf dist && pnpm run css && tsup-node",
|
|
"dev": "rimraf dist && concurrently -n \"build,codegen\" -k \"tsup-node --watch\" \"pnpm run codegen:watch\"",
|
|
"codegen": "pnpm run css",
|
|
"codegen:watch": "pnpm run css:watch"
|
|
,"//": "ELSE_PLATFORM",
|
|
"build": "rimraf dist && tsup-node",
|
|
"dev": "rimraf dist && tsup-node --watch"
|
|
,"//": "END_PLATFORM",
|
|
|
|
"//": "IF_PLATFORM template react-like"
|
|
,"css": "pnpm run css-tw && pnpm run css-sc",
|
|
"css:watch": "concurrently -n \"tw,sc\" -k \"pnpm run css-tw:watch\" \"pnpm run css-sc:watch\"",
|
|
"css-tw:watch": "tailwindcss -i ./src/global.css -o ./src/generated/tailwind.css --watch",
|
|
"css-tw": "tailwindcss -i ./src/global.css -o ./src/generated/tailwind.css",
|
|
"css-sc": "tsx ./scripts/process-css.ts ./src/generated/tailwind.css ./src/generated/global-css.ts",
|
|
"css-sc:watch": "chokidar --silent './src/generated/tailwind.css' -c 'pnpm run css-sc' --throttle 2000"
|
|
,"//": "END_PLATFORM",
|
|
|
|
"//": "IF_PLATFORM template"
|
|
,"codegen": "pnpm run css && pnpm run quetzal",
|
|
"codegen:watch": "concurrently -n \"css,quetzal\" -k \"pnpm run css:watch\" \"pnpm run quetzal:watch\"",
|
|
"override-env-local-for-quetzal": "echo \"\\n$STACK_ENV_LOCAL_PACKAGE_BUILD_OVERRIDE_FOR_QUETZAL\\n\" >> .env.local",
|
|
"quetzal": "rimraf quetzal-translations && pnpm run override-env-local-for-quetzal && quetzal-process-translations && tsx ./scripts/merge-quetzal-translations.ts",
|
|
"quetzal:ignore-errors": "pnpm run quetzal || echo Quetzal failed, probably because the API key is missing. We will just ignore it",
|
|
"quetzal:watch": "chokidar --silent \"src/**/*\" -i \"src/generated/quetzal-translations.ts\" -c 'pnpm run quetzal:ignore-errors' --throttle 2000"
|
|
,"//": "END_PLATFORM"
|
|
},
|
|
"files": [
|
|
"README.md",
|
|
"dist",
|
|
"CHANGELOG.md",
|
|
"LICENSE"
|
|
],
|
|
"dependencies": {
|
|
"@hookform/resolvers": "^3.3.4",
|
|
"@simplewebauthn/browser": "^11.0.0",
|
|
"//": "NEXT_LINE_PLATFORM next",
|
|
"@stackframe/stack-sc": "workspace:*",
|
|
"@stackframe/stack-shared": "workspace:*",
|
|
"//": "NEXT_LINE_PLATFORM react-like",
|
|
"@stackframe/stack-ui": "workspace:*",
|
|
"@tanstack/react-table": "^8.20.5",
|
|
"//": "NEXT_LINE_PLATFORM react-like",
|
|
"browser-image-compression": "^2.0.2",
|
|
"color": "^4.2.3",
|
|
"cookie": "^0.6.0",
|
|
"jose": "^5.2.2",
|
|
"js-cookie": "^3.0.5",
|
|
"//": "NEXT_LINE_PLATFORM react-like",
|
|
"lucide-react": "^0.378.0",
|
|
"oauth4webapi": "^2.10.3",
|
|
"@oslojs/otp": "^1.1.0",
|
|
"qrcode": "^1.5.4",
|
|
"//": "NEXT_LINE_PLATFORM react-like",
|
|
"react-easy-crop": "^5.4.1",
|
|
"//": "NEXT_LINE_PLATFORM react-like",
|
|
"react-hook-form": "^7.51.4",
|
|
"rimraf": "^5.0.5",
|
|
"//": "NEXT_LINE_PLATFORM react-like",
|
|
"tailwindcss-animate": "^1.0.7",
|
|
"tsx": "^4.7.2",
|
|
"yup": "^1.4.0"
|
|
},
|
|
"//": "IF_PLATFORM react-like",
|
|
"peerDependencies": {
|
|
"@types/react": ">=19.0.0",
|
|
"//": "IF_PLATFORM next",
|
|
"@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": ">=19.0.0"
|
|
},
|
|
"//": "END_PLATFORM",
|
|
"//": "IF_PLATFORM react-like",
|
|
"peerDependenciesMeta": {
|
|
"//": "IF_PLATFORM next",
|
|
"@types/react-dom": {
|
|
"optional": true
|
|
},
|
|
"//": "END_PLATFORM",
|
|
"@types/react": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"//": "END_PLATFORM",
|
|
"devDependencies": {
|
|
"@quetzallabs/i18n": "^0.1.19",
|
|
"@types/color": "^3.0.6",
|
|
"@types/cookie": "^0.6.0",
|
|
"@types/js-cookie": "^3.0.6",
|
|
"@types/qrcode": "^1.5.5",
|
|
"@types/react-avatar-editor": "^13.0.3",
|
|
"autoprefixer": "^10.4.17",
|
|
"chokidar-cli": "^3.0.0",
|
|
"esbuild": "^0.20.2",
|
|
"i18next": "^23.14.0",
|
|
"i18next-parser": "^9.0.2",
|
|
"//": "NEXT_LINE_PLATFORM next",
|
|
"next": "^14.1.0",
|
|
"postcss": "^8.4.38",
|
|
"postcss-nested": "^6.0.1",
|
|
"react": "^19.0.0",
|
|
"//": "NEXT_LINE_PLATFORM react-like",
|
|
"react-dom": "^19.0.0",
|
|
"rimraf": "^5.0.5",
|
|
"tailwindcss": "^3.4.4",
|
|
"tsup": "^8.0.2",
|
|
"convex": "^1.27.0"
|
|
}
|
|
}
|