changelogs.md


userflow/userflow.js

Repository  -  API  -  Source

2.1.2

Fixed

  • Added missing stub of userflow.start method.

2.1.1

Fixed

  • Support importing userflow.js with server-side rendering such as with Next.js.

2.1.0

Added

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

2.0.0

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.