- Add support for setting the
guardContextvalue introduced in1.1.0through a HTML meta tag.
- Add the
guardContextSDK option to associate with a Friendly Guard screening flow if used in that context (no effect for normal implementations).
- Fix a destroyed widget continuing to retry its iframe load, which logged retry warnings and could move the widget into an error state after it was destroyed. This shows up in React StrictMode, which mounts, unmounts and mounts again.
- Lengthen the iframe load retry timeouts so that slow or lossy connections have more time to finish loading.
- Add "opens in new tab" aria-label to the Friendly Captcha link.
- There are no changes from
0.2.3to1.0.0. There have never been incompatible API changes, so it should be safe to upgrade to1.0.0from any current version.
- Support for fallback endpoints (for retrying with a different endpoint when the primary one is unreachable).
- Fix
startMode: "focus"not working if the widget is mounted under a shadow root (e.g. in a web component).
- Remove indexedDB codepaths and dependencies (they were unused).
- Update development and test dependencies.
- New product launch: Risk Intelligence
- Add
user-select: noneand-webkit-tap-highlight-color: transparenton the widget iframe to prevent highlighting the whole widget. - Add
box-sizing: border-boxon widget placeholder to prevent layout issues.
- Underline the Friendly Captcha link in non-hover states.
- Fix package.json
exportsblock to support importing modules fromsrc/directory.
- Add placeholder localizations for more languages.
- Add suport for exposing
WidgetModefrom the API in thefrc:widget.statechangeevent.
- Add
user-select: nonestyle to Friendly Captcha link to prevent text selection. - Add SDK support for CommonJS.
- Fix rare case of wrongly resolving page language.
- Encode debug information in the response in case the user agent can not connect to Friendly Captcha at all.
- Add a specific error code that represents the widget being unreachable.
- Localize placeholder texts and error messages.
- Improve fallback message after all retries failed.
- Add fallback message after all retries failed.
- Decrease agent and widget timeouts.
- Fix a bug that caused the SDK to fail to load on some older browsers.
- Correctly position the banner for right-to-left languages.
- Localize iframe title when the widget language changes.
- Increase banner text contrast ratio.
- Increase agent and widget timeouts.
- Improve performance by throttling stack trace generation.
- Add a
titleattribute to the widget iframe for accessibility. - Limits the size of an internal queue to prevent a memory leak which became an issue when calling certain functions on every frame or browser event.
- Make agent and widget iframe retry timeouts exponential
- Defer initialization of
document.bodyevent listeners until DOM is ready.
- Fixed a regression that broken configuring widget API endpoints in the SDK constructor.
- Fixed a bug that sometimes caused widget timeout errors when using the
euAPI endpoint.
- Allowed disabling of the
window.evalpatching usingdisableEvalPatchingwhen creating the SDK.
- Removed debug message printed to console when a message was ignored from a non-Friendly Captcha iframe source.
- Remove patching of
Promise.prototype.constructorto avoid issues with Angular and other libraries that extend or overwritePromise.
- Change how we patch Promise to avoid issues with libraries that extend/overwrite it (Angular with zones in particular).
- Fix wrapping of Promise constructor, which lead to issues in Chrome <= 45 (released September 2015) and Firefox <= 40.
- Fix use of ES features in non-compat build, which caused Safari 11.1 and 12.1 to fail to load the SDK.
- The minified bundle size has been reduced (4%).
- Fix
deviceorientationanddevicemotiondeprecation warnings in Firefox browsers on desktop. - Fix a bug that was breaking the
toString()method of some browser built-ins.
Date: 2024-06-20
- The root element the widget is mounted to is no longer deleted when
Destroy()is called.
Date: 2024-04-19
- Use
frcWidgetproperty instead ofdata-attachedattribute to check if the widget has been attached
Date: 2024-04-09
- Added
titleattribute to widget error data
Date: 2024-01-22
- Fix for shorthands (
"eu","global")api-endpointnot working on widget HTML elements. - Internal changes around storage (prefering
SessionStorageover anything persistent between sessions).
Date: 2024-01-16
- Compatibility improvements for Internet Explorer 11 and Safari 10.1 (and older).
Date: 2024-01-02
- Fixed documentation generation.
Date: 2023-12-13
- Removed some unused typings, renamed some things to save on bundle size a bit.
Date: 2023-12-12
- Library and built script files are no longer in the
distfolder, so you can remove/distfrom import/script paths.
Date: 2023-12-08
Initial release.