Socket
Socket
Sign inDemoInstall

react-turnstile

Package Overview
Dependencies
5
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
2Next

1.1.3

Diff

Changelog

Source

[1.1.3] - 2024-02-19

Changed

  • React peer dependency version to v16.13.1
le0developer
published 1.1.2 •

Changelog

Source

[1.1.2] - 2023-09-18

Added

  • onAfterInteractive, onBeforeInteractive, onUnsupported callbacks

Changed

  • onVerify is no longer required

Removed

  • Custom retry logic (issue fixed upstream in Turnstile itself)

Fixed

  • Remount issue with certain callbacks (#15)
le0developer
published 1.1.1 •

Changelog

Source

[1.1.1] - 2023-06-25

Added

  • useTurnstile hook
  • fixedSize option to reduce layout shift
  • Missing argument for onExpire
  • BoundTurnstileObject argument to callbacks

Fixed

  • global -> globalNamespace (name conflict) (#10)
  • Implement retry logic ourselves (#14)
  • Missing onError error argument passthrough
le0developer
published 1.1.0 •

Changelog

Source

[1.1.0] - 2023-03-09

Added

  • refreshExpired option
  • language option
  • appearance option
  • execution option

Changed

  • Temporary load callback function is now removed after load

Fixed

  • onTimeout callback not properly registering
  • ref not passing properly - pass userRef instead
  • globalThis errors on older browsers

Removed

  • autoResetOnExpire - use refreshExpired instead
le0developer
published 1.0.6 •

Changelog

Source

[1.0.6] - 2022-11-25

Added

  • Support for the new onTimeout callback
  • autoResetOnExpire for automatically resetting the Turnstile widget once the token expires
  • retry & retryInterval
  • custom ref argument for using your own ref (#7)
le0developer
published 1.0.5 •

Changelog

Source

[1.0.5] - 2022-10-22

Added

  • require module support (#6)
  • size support
le0developer
published 1.0.4 •

Changelog

Source

[1.0.4] - 2022-10-11

Changed

  • onLoad callback now includes the turnstile widget id (#5)
le0developer
published 1.0.3 •

Changelog

Source

[1.0.3] - 2022-10-05

Fixed

  • Race condition by using useRef instead of createRef (#4)
le0developer
published 1.0.2 •

Changelog

Source

[1.0.2] - 2022-10-05

Added

  • Experimental (undocumented) fields responseField and responseFieldName for controlling the <input /> element generated by Turnstile.
  • style prop which is directly passed to the internal <div />

Changes

  • Using explicit rendering for Turnstile now which prevents implicit renders (also undocumented)
  • Using turnstile.remove() to remove widgets after being unloaded

Fixed

  • A race condition when loading Turnstile on page load in dev mode has been fixed
  • Callback props will now update as expected
  • Entrypoint pointing to the wrong file (#3)
le0developer
published 1.0.1 •

Changelog

Source

[1.0.1] - 2022-10-01

Fixed

  • Fix double render in vite (#1)
  • Fix tslib being a dependency (#2)
2Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc