Skip to content
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

v1.0.0 #84

Merged
merged 16 commits into from
Aug 21, 2024
Merged

v1.0.0 #84

merged 16 commits into from
Aug 21, 2024

Conversation

marsidev
Copy link
Owner

@marsidev marsidev commented Aug 20, 2024

v1.0.0 Release

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 version 0.7.2 or upgrade your project to ESM.

  • Removed "auto" widget size due to is not even a valid size for Cloudflare Turnstile.
    We have been sending undefined when the size was "auto", so if you were using this size, then you can simply remove it.

  • Peer dependencies for react and react-dom have been updated to 17.x and above.

Features

Fixes

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

Copy link

codesandbox bot commented Aug 20, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

vercel bot commented Aug 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-turnstile ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 20, 2024 1:52pm

Copy link

docs-page bot commented Aug 20, 2024

To view this pull requests documentation preview, visit the following URL:

docs.page/marsidev/react-turnstile~84

Documentation is deployed and generated using docs.page.

@marsidev marsidev self-assigned this Aug 21, 2024
@marsidev marsidev marked this pull request as ready for review August 21, 2024 16:09
@marsidev marsidev merged commit fddb625 into main Aug 21, 2024
6 checks passed
@marsidev marsidev deleted the feature/release-2024-08 branch August 21, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compact widget size changed. Update to use new "flexible" sizing and "feedback-enabled" prop
1 participant