stack/packages/stack-shared/package.json
BilalG1 88e6900546
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>
2025-10-06 12:46:34 -07:00

83 lines
1.8 KiB
JSON

{
"name": "@stackframe/stack-shared",
"version": "2.8.41",
"scripts": {
"build": "rimraf dist && tsup-node",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"clean": "rimraf dist && rimraf node_modules",
"dev": "tsup-node --watch",
"lint": "eslint --ext .tsx,.ts ."
},
"files": [
"README.md",
"dist",
"CHANGELOG.md",
"LICENSE"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": {
"default": "./dist/index.js"
},
"default": "./dist/esm/index.js"
},
"./dist/*": {
"types": "./dist/*.d.ts",
"require": {
"default": "./dist/*.js"
},
"default": "./dist/esm/*.js"
}
},
"peerDependencies": {
"@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": {
"react": {
"optional": true
},
"@types/react": {
"optional": true
},
"@types/react-dom": {
"optional": true
},
"yup": {
"optional": true
}
},
"dependencies": {
"@aws-sdk/client-kms": "^3.876.0",
"@opentelemetry/api": "^1.9.0",
"@simplewebauthn/browser": "^11.0.0",
"@vercel/functions": "^2.0.0",
"async-mutex": "^0.5.0",
"bcryptjs": "^3.0.2",
"crc": "^4.3.2",
"elliptic": "^6.5.7",
"esbuild-wasm": "^0.20.2",
"ip-regex": "^5.0.0",
"jose": "^5.2.2",
"oauth4webapi": "^2.10.3",
"semver": "^7.6.3",
"uuid": "^9.0.1"
},
"devDependencies": {
"@sentry/nextjs": "^10.11.0",
"@simplewebauthn/types": "^11.0.0",
"@types/bcryptjs": "^3.0.0",
"@types/elliptic": "^6.4.18",
"@types/semver": "^7.5.8",
"@types/uuid": "^9.0.8",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"rimraf": "^5.0.5"
}
}