Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 1.69 KB

CHANGELOG.md

File metadata and controls

37 lines (23 loc) · 1.69 KB

Changelog

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.

Added

  • Added some missing stubbed missing implementations so they can be used before proper Userflow.js is loaded from CDN.

Added

  • module build in ESM format.
  • It will now detect whether the user's browser supports ES2020 features and load either a modern Userflow.js version (small and fast in modern browsers) or a legacy Userflow.js version (larger but supports older browsers).

Changed

  • Now only using ES5 syntax (enforced via ESLint rules) to possibly support IE11 without transpilation one day.
  • BREAKING CHANGE: The scripts are now loaded from js.userflow.com instead of js.getuserflow.com, which means your app's Content Security header may need an update. Please consult our CSP guide.

Removed

  • loadUserflow() was removed. Calling any of the userflow.*() methods will automatically load Userflow.js from CDN.
  • Deprecated userflow.startFlow() was removed. Use userflow.start() instead.
  • Deprecated userflow.endAllFlows() was removed. Use userflow.endAll() instead.
  • Deprecated IdentifyParams type was removed. Use Attributes instead.
  • Deprecated immediate: boolean option was removed - no longer relevant.