Releases: marsidev/react-turnstile
Releases · marsidev/react-turnstile
v1.4.2
v1.4.1
🐞 Bug Fixes
View changes on GitHub
v1.4.0
v1.3.1
🐞 Bug Fixes
View changes on GitHub
v1.3.0
🚀 Features
View changes on GitHub
v1.2.0
v1.1.0
v1.0.2
v1.0.1
🐞 Bug Fixes
View changes on GitHub
v1.0.0
🚨 Breaking Changes
-
Now we ship ESM-only code, this will decrease the bundle size significantly.
If you are a CommonJS user, I suggest you to keep using the version0.7.2or upgrade your project to ESM. -
Removed "auto" widget size due to is not even a valid size for Cloudflare Turnstile.
We have been sendingundefinedwhen the size was "auto", so if you were using this size, then you can simply remove it. -
Peer dependencies for
reactandreact-domhave been updated to 17.x and above.
🚀 Features
- Added callback
onTimeout - Added render options
refreshTimeoutandfeedbackEnabled(Closes #82) - Added new "flexible" widget size (Closes #82)
🐛 Fixes
- Updated "compact" widget size to 150x140 (Closes #85)
🛠 Misc
Build
- We migrated from unbuild to tsup
- The generated build is now minified, this will decrease the bundle size significantly.
TypeScript
- Improved type definitions. Now we expose these types:
AppearanceMode,ExecutionMode,FailureRetryMode,RefreshExpiredMode,RefreshTimeoutMode,WidgetSize. Inspired by @types/cloudflare-turnstile
Other
- Updated dependencies
- Updated docs
- Added issue templates and policies