-
Notifications
You must be signed in to change notification settings - Fork 81
fix: Better Auth 1.4 support #183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -93,53 +93,54 @@ | |||||||||||||
| } | ||||||||||||||
| }, | ||||||||||||||
| "peerDependencies": { | ||||||||||||||
| "better-auth": "1.3.34", | ||||||||||||||
| "better-auth": "1.4.5", | ||||||||||||||
| "convex": "^1.25.0", | ||||||||||||||
| "react": "^18.3.1 || ^19.0.0", | ||||||||||||||
| "react-dom": "^18.3.1 || ^19.0.0" | ||||||||||||||
| }, | ||||||||||||||
| "devDependencies": { | ||||||||||||||
| "@better-fetch/fetch": "^1.1.18", | ||||||||||||||
| "@better-fetch/fetch": "^1.1.19", | ||||||||||||||
| "@edge-runtime/vm": "5.0.0", | ||||||||||||||
| "@eslint/eslintrc": "3.3.1", | ||||||||||||||
| "@eslint/eslintrc": "3.3.3", | ||||||||||||||
| "@eslint/js": "9.39.1", | ||||||||||||||
| "@tanstack/react-start": "^1.132.37", | ||||||||||||||
| "@tanstack/react-start": "^1.140.0", | ||||||||||||||
| "@types/common-tags": "^1.8.4", | ||||||||||||||
| "@types/node": "20.19.24", | ||||||||||||||
| "@types/react": "18.3.26", | ||||||||||||||
| "@types/react-dom": "18.3.7", | ||||||||||||||
| "@types/semver": "^7.7.0", | ||||||||||||||
| "@vitejs/plugin-react": "5.0.4", | ||||||||||||||
| "concurrently": "^9.2.0", | ||||||||||||||
| "@types/node": "24.10.1", | ||||||||||||||
| "@types/react": "19.2.7", | ||||||||||||||
| "@types/react-dom": "19.2.3", | ||||||||||||||
|
||||||||||||||
| "@types/react-dom": "19.2.3", | |
| "@types/react-dom": "^18.3.7", |
Copilot
AI
Dec 8, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The @types/react version was updated from 18.3.26 to 19.2.7, which corresponds to React 19. However, the peerDependencies still allow React 18 (^18.3.1 || ^19.0.0). Using React 19 types in devDependencies while supporting React 18 in peerDependencies may cause type incompatibility issues for users on React 18.
Consider using @types/react version ^18.3.26 to match the minimum supported React version, or if React 19 is required, update the peerDependencies to reflect that.
| "@types/react": "19.2.7", | |
| "@types/react-dom": "19.2.3", | |
| "@types/react": "^18.3.26", | |
| "@types/react-dom": "^18.3.11", |
Copilot
AI
Dec 8, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The react version was updated from 18.3.1 to 19.2.1 in devDependencies. However, the peerDependencies allow both React 18 and 19 (^18.3.1 || ^19.0.0). While this isn't necessarily wrong, it's better practice to test with the minimum supported version to ensure compatibility.
Consider using React 18.3.1 in devDependencies to test against the minimum supported version, or clearly document that the package is primarily tested with React 19.
| "react": "19.2.1", | |
| "react-dom": "19.2.1", | |
| "react": "18.3.1", | |
| "react-dom": "18.3.1", |
Copilot
AI
Dec 8, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The react-dom version was updated from 18.3.1 to 19.2.1 in devDependencies. However, the peerDependencies allow both React 18 and 19 (^18.3.1 || ^19.0.0). While this isn't necessarily wrong, it's better practice to test with the minimum supported version to ensure compatibility.
Consider using React DOM 18.3.1 in devDependencies to test against the minimum supported version.
| "react-dom": "19.2.1", | |
| "react-dom": "18.3.1", |
Copilot
AI
Dec 8, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type-fest version was updated from ^4.39.1 to ^5.3.1, which is a major version bump. Type-fest follows semantic versioning strictly, and major version updates can introduce breaking type changes that may affect the codebase.
Please verify that this major version update doesn't introduce any breaking changes that affect the usage of type-fest in this project.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The peerDependency for
better-authis pinned to an exact version1.4.5instead of using a version range (e.g.,^1.4.5or~1.4.5). This is overly restrictive and will cause installation failures if users have a different patch version of better-auth 1.4.x installed.Consider using
^1.4.5to allow compatible patch versions.