-
Notifications
You must be signed in to change notification settings - Fork 14
Add agent V4 support #180
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
Add agent V4 support #180
Conversation
8ffef84 to
437d58a
Compare
437d58a to
3f4afaf
Compare
Coverage report
Test suite run success21 tests passing in 15 suites. Report generated by 🧪jest coverage report action from 64c0c9c Show full coverage report
|
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.
Pull request overview
This PR migrates the FingerprintJS Pro React SDK to Agent V4, transitioning the build tooling from Rollup and Jest to Vite and Vitest for improved developer experience.
Changes:
- Migrated build system from Rollup to Vite and test framework from Jest to Vitest
- Added
usePromiseStorehook to deduplicate concurrent API requests - Updated documentation links to point to new docs.fingerprint.com domain
- Renamed
FpjsProvidertoFpProviderthroughout codebase and examples
Reviewed changes
Copilot reviewed 25 out of 28 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| vite.config.ts | New Vite build configuration replacing Rollup setup |
| vitest.config.ts | New Vitest test configuration with jsdom environment and Istanbul coverage |
| src/utils/use-promise-store.ts | New hook for deduplicating concurrent requests with same cache key |
| src/utils/use-const.ts | New utility hook for persistent values across renders |
| src/components/fp-provider.tsx | Integration of usePromiseStore to prevent duplicate requests |
| src/index.ts | Changed from wildcard export to named Fp export for agent types |
| package.json | Updated dependencies to Agent V4 and migrated to Vite/Vitest tooling |
| README.md | Updated documentation links and FpProvider references |
| tests/*.test.tsx | Migrated tests from Jest to Vitest syntax |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
I'm considering whether we should use |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…o feature/INTER-1708-agent-v4
I like this idea, unless anyone objects, let’s do this. |
…ent-v4 # Conflicts: # package.json
This PR will create a major release 🚀3.0.0 (2026-01-27)⚠ BREAKING CHANGES
Features
Build System
|
|
🎉 This PR is included in version 3.0.0-test.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 3.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 3.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
1 similar comment
|
🎉 This PR is included in version 3.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This PR adds official support to Agent V4.
Overview of changes
usePromiseStoreto avoid duplicate requests. This functionality was previously provided by the SPA library, but we plan to depreciate it.