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.
1.1.5 - 2026-01-30
- Added named export for Turnstile component (#45)
1.1.4 - 2024-09-24
onSuccesscallback with the additionalpreClearanceObtainedargumentflexibleoption forsizeprop
- Update
turnstile-typesto v1.2.3
1.1.3 - 2024-02-19
- React peer dependency version to v16.13.1
1.1.2 - 2023-09-18
onAfterInteractive,onBeforeInteractive,onUnsupportedcallbacks
onVerifyis no longer required
- Custom
retrylogic (issue fixed upstream in Turnstile itself)
- Remount issue with certain callbacks (#15)
1.1.1 - 2023-06-25
useTurnstilehookfixedSizeoption to reduce layout shift- Missing argument for
onExpire BoundTurnstileObjectargument to callbacks
global->globalNamespace(name conflict) (#10)- Implement
retrylogic ourselves (#14) - Missing
onErrorerror argument passthrough
1.1.0 - 2023-03-09
refreshExpiredoptionlanguageoptionappearanceoptionexecutionoption
- Temporary load callback function is now removed after load
onTimeoutcallback not properly registeringrefnot passing properly - passuserRefinsteadglobalThiserrors on older browsers
autoResetOnExpire- userefreshExpiredinstead
1.0.6 - 2022-11-25
- Support for the new
onTimeoutcallback autoResetOnExpirefor automatically resetting the Turnstile widget once the token expiresretry&retryInterval- custom
refargument for using your own ref (#7)
1.0.5 - 2022-10-22
- require module support (#6)
sizesupport
1.0.4 - 2022-10-11
onLoadcallback now includes the turnstile widget id (#5)
1.0.3 - 2022-10-05
- Race condition by using
useRefinstead ofcreateRef(#4)
1.0.2 - 2022-10-05
- Experimental (undocumented) fields
responseFieldandresponseFieldNamefor controlling the<input />element generated by Turnstile. styleprop 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.