Enhances React 18/19 compatibility, dependency updates - #22
Open
esitarz wants to merge 17 commits into
Open
Conversation
Expand peer ranges so React 19 consumers can install without peer conflicts, while keeping 18.3.1 as the minimum. Co-authored-by: Cursor <cursoragent@cursor.com>
StrictMode remounts left duplicate Axios interceptors, and useAuthMutation returned onError instead of calling it. Also import JSX types for React 19 typecheck. Co-authored-by: Cursor <cursoragent@cursor.com>
Cover provider context, auth query/mutation gating, form wiring, and StrictMode interceptor lifecycle without deprecated test utils. Co-authored-by: Cursor <cursoragent@cursor.com>
Run lint/test/build against React 18.3.1 and 19, inspect npm pack output, and smoke-install the tarball in an isolated consumer. Co-authored-by: Cursor <cursoragent@cursor.com>
Update install guidance and changelog; migrate ESLint to flat config so CI lint works on ESLint 9. Co-authored-by: Cursor <cursoragent@cursor.com>
Add `test:consumer` script to `package.json` to run the packed consumer validation against React 18.3.1 and 19. Update `scripts/validate-consumer.mjs` to: - Remove `npm install --legacy-peer-deps`, as peer dependency issues are now resolved. - Refine version checking to use `includes` for more flexible matching of React and ReactDOM versions, accommodating release candidates.
Upgrades the library to resolve a deprecation warning present in v6.10.0, which incorrectly introduced breaking changes and recommended upgrading to v7.0.0.
Update GitHub Actions to their latest major versions for improved stability and features. Upgrade Node.js from v20 to v24 (LTS). Switch to `npm ci` and enable `npm cache` for more reliable and faster dependency installations. Add `--package-lock=false` to `npm install --no-save` for consistency during matrix testing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant updates to improve the SDK's compatibility with React 18 and React 19, alongside critical bug fixes and comprehensive CI/testing enhancements.
Key Features & Improvements:
React 18 & 19 Support:
reactandreact-dompeer dependency ranges to^18.3.1 || ^19.0.0.README.mdto clearly document supported React versions.Enhanced Stability & Error Handling:
useAuthMutationcorrectly invokes the providedonErrorcallback with full mutation context.localStorageaccess increateAsyncStoragePersisterfor improved server-side rendering (SSR) compatibility.CI/CD & Testing Upgrades:
npm ci).npm packinspection and consumer validation to ensure package integrity and compatibility..gitignoreto include new test-related artifacts.Build & Linting Modernization:
axios,react-hook-form, and its resolvers in the library bundle to prevent duplication.pathpolyfill for Swagger Parser in Vite build configuration.