Skip to content

Releases: marsidev/react-turnstile

v1.1.0

18 Nov 22:16
Compare
Choose a tag to compare

🚀 Features

  • Added support for React 19 (#93)
    View changes on GitHub

v1.0.2

07 Sep 02:52
Compare
Choose a tag to compare

   🐞 Bug Fixes

    View changes on GitHub

v1.0.1

28 Aug 15:47
Compare
Choose a tag to compare

   🐞 Bug Fixes

  • 'use client'; banner that was no longer being output  -  by @faiare (54f90)
    View changes on GitHub

v1.0.0

21 Aug 17:18
Compare
Choose a tag to compare

🚨 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

  • Added callback onTimeout
  • Added render options refreshTimeout and feedbackEnabled (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
    View changes on GitHub

v0.7.2

10 Jul 19:49
Compare
Choose a tag to compare

   🐞 Bug Fixes

  • Resetting widgets solved ref back to false on widget unmount  -  by @kkatsi (77f36)
    View changes on GitHub

v0.7.1

06 Jun 18:41
Compare
Choose a tag to compare

   🐞 Bug Fixes

    View changes on GitHub

v0.7.0

03 Jun 21:02
Compare
Choose a tag to compare

   🐞 Bug Fixes

  • Change script injection method to prevent multiple scripts console warning  -  by @marsidev (66f85)
    • Now we always use a single Turnstile script
    • Now is not mandatory to set unique IDs when using multiple widgets, but it's still suggested for semantic reasons
    • The new logic for the script injection was inspired by this other library: Le0Developer/react-turnstile 🙌

   🚀 Features

    View changes on GitHub

v0.6.1

11 May 00:19
Compare
Choose a tag to compare

   🐞 Bug Fixes

    View changes on GitHub

v0.6.0

27 Apr 03:27
Compare
Choose a tag to compare

What's Changed

Bug Fixes

  • Prevent widget to be removed when onWidgetLoad exists by @marsidev in #66

Minor changes

Full Changelog: v0.5.4...v0.6.0

v0.5.4

04 Apr 19:01
Compare
Choose a tag to compare

   🐞 Bug Fixes

    View changes on GitHub