All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
onSuccess
callback with the additionalpreClearanceObtained
argument
- React peer dependency version to v16.13.1
1.1.2 - 2023-09-18
onAfterInteractive
,onBeforeInteractive
,onUnsupported
callbacks
onVerify
is no longer required
- Custom
retry
logic (issue fixed upstream in Turnstile itself)
- Remount issue with certain callbacks (#15)
1.1.1 - 2023-06-25
useTurnstile
hookfixedSize
option to reduce layout shift- Missing argument for
onExpire
BoundTurnstileObject
argument to callbacks
global
->globalNamespace
(name conflict) (#10)- Implement
retry
logic ourselves (#14) - Missing
onError
error argument passthrough
1.1.0 - 2023-03-09
refreshExpired
optionlanguage
optionappearance
optionexecution
option
- Temporary load callback function is now removed after load
onTimeout
callback not properly registeringref
not passing properly - passuserRef
insteadglobalThis
errors on older browsers
autoResetOnExpire
- userefreshExpired
instead
1.0.6 - 2022-11-25
- Support for the new
onTimeout
callback autoResetOnExpire
for automatically resetting the Turnstile widget once the token expiresretry
&retryInterval
- custom
ref
argument for using your own ref (#7)
1.0.5 - 2022-10-22
- require module support (#6)
size
support
1.0.4 - 2022-10-11
onLoad
callback now includes the turnstile widget id (#5)
1.0.3 - 2022-10-05
- Race condition by using
useRef
instead ofcreateRef
(#4)
1.0.2 - 2022-10-05
- Experimental (undocumented) fields
responseField
andresponseFieldName
for controlling the<input />
element generated by Turnstile. style
prop which is directly passed to the internal<div />
- Using explicit rendering for Turnstile now which prevents implicit renders (also undocumented)
- Using
turnstile.remove()
to remove widgets after being unloaded
- 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)
1.0.1 - 2022-10-01
- Fix double render in vite (#1)
- Fix tslib being a dependency (#2)
1.0.0 - 2022-09-29
Initial release.