Current Version
The latest stable version is v1.4.2. This library follows semantic versioning.Migrating to v1.4.x
What’s New
- v1.4.2: Security dependency updates and bug fixes
- v1.4.1: Fixed race condition when loading Turnstile script
- v1.4.0: Updated dependencies and CI configurations
Changes
v1.4.2 - Security Updates
v1.4.2 - Security Updates
Fixed: Security vulnerabilities in dependenciesNo breaking changes. Update normally:What’s Fixed:
feedbackEnabledoption can now be set tofalseproperly- Security patches for
minimatch,rollup, andajv
v1.4.1 - Race Condition Fix
v1.4.1 - Race Condition Fix
Fixed: Widget sometimes fails to render due to script loading race conditionNo code changes required. The fix is automatic:What’s Fixed:
- Script loading race condition resolved
- Widget now polls for
window.turnstileto ensure proper initialization
Migrating to v1.3.x
What’s New
- v1.3.0: Added
rerenderOnCallbackChangeprop - v1.3.1: Fixed
getResponsePromisereturn type
Changes
v1.3.0 - rerenderOnCallbackChange Prop
v1.3.0 - rerenderOnCallbackChange Prop
Added: New After (fixed with new prop):Note: The default behavior is unchanged (
rerenderOnCallbackChange prop to control widget re-renderingMigration: No changes required. This is a new opt-in feature.Before (stale closures issue):rerenderOnCallbackChange={false}).v1.3.1 - TypeScript Improvements
v1.3.1 - TypeScript Improvements
Fixed: After:
getResponsePromise return type now correctly excludes undefinedMigration: If you were using type assertions, you can remove them:Before:Migrating to v1.2.x
Changes
v1.2.0 - renderConfig Dependencies
v1.2.0 - renderConfig Dependencies
Fixed: Missing dependencies in The widget now properly re-renders when options change.
renderConfig causing stale propsMigration: No code changes required. Update normally:Migrating to v1.1.x
Changes
v1.1.0 - React 19 Support
v1.1.0 - React 19 Support
Added: Support for React 19Migration: No changes required. The library now supports React 17, 18, and 19:
Migrating to v1.0.x
Breaking Changes
v1.0.0 - ESM Only and Peer Dependencies
v1.0.0 - ESM Only and Peer Dependencies
Breaking: Library now ships as ESM onlyMigration:
-
Ensure your project supports ESM
For Next.js, ensure you’re on Next.js 13+:
-
Update peer dependencies
React 17+ is now required:
- Update imports No changes to import syntax, but ensure your bundler supports ESM.
- CommonJS builds removed
- Only ESM exports available
- Minimum React version is now 17.0.2
v1.0.0 - refreshExpired Option
v1.0.0 - refreshExpired Option
Breaking: After:Values:
autoResetOnExpire prop removedMigration: Use refreshExpired option insteadBefore:'auto'(default): Automatically refresh when expired'manual': Show refresh button to user'never': Never refresh
v1.0.1 - 'use client' Directive
v1.0.1 - 'use client' Directive
Fixed: Missing
'use client' directive in build outputMigration: No changes required if you’re already using client components.This fix ensures the library works properly in Next.js App Router without manual configuration.v1.0.2 - Default Exports
v1.0.2 - Default Exports
Fixed: Added default exports for better compatibilityMigration: Both import styles now work:
Version History
| Version | Release Date | Key Changes |
|---|---|---|
| 1.4.2 | 2025-03 | Security updates, feedbackEnabled fix |
| 1.4.1 | 2025-02 | Race condition fix |
| 1.4.0 | 2025-01 | Dependency updates |
| 1.3.1 | 2024 | TypeScript improvements |
| 1.3.0 | 2024 | rerenderOnCallbackChange prop |
| 1.2.0 | 2024 | renderConfig dependencies fix |
| 1.1.0 | 2024 | React 19 support |
| 1.0.2 | 2024 | Default exports |
| 1.0.1 | 2024 | ’use client’ directive fix |
| 1.0.0 | 2024 | ESM only, refreshExpired option |
Upgrade Path
From 0.x to Latest
If you’re on a very old version, upgrade incrementally:From 1.x to Latest
No breaking changes within 1.x versions:Getting Help
If you encounter issues during migration:- Check the Troubleshooting Guide
- Review GitHub Issues
- Read the Changelog
- Open a new issue with your migration problem
Stay Updated
GitHub Releases
Subscribe to release notifications
npm Package
View package updates