- Webpack options needed tweaking, so -beta.6 didn't work at all. The code in this version is
otherwise identical to -beta.6, so the
build.sh
script has the only change.
-
ES5 generation has been added. This is an opt-in feature, so a user can do:
// Either 1) const Account = require('@schibsted/account-sdk-browser'); // ... or 2) const Account = require('@schibsted/account-sdk-browser/es5'); // The shortcuts work as well (if you only want Identity stuff, for instance): const Identity = require('@schibsted/account-sdk-browser/es5/identity');
- Removed
parcel-bundler
and started usingwebpack
instead. This was done to ease the production of ES5 code
- An issue where
Identity.hasSession
would call the backend server(s) with a wrong autologin parameter has been fixed. This could potentially cause the user to not be auto-logged-in when they were supposed to be
- There is only one change in this release, and that is the addition of a
loginHint
parameter on theIndentity.login()
andIdentity.loginUrl()
functions. This enables the caller to pre-fill the user identifier (email or phone number)
- Issue #8 is fixed by not relying on URLSearchParams to create query strings.
This release has only one notable change, and it is the fix from this PR so we correctly fall back to calling SPiD when a call to the hasSession service fails with a LoginException. Thanks to Terje Andersen who found and helped to identify this issue.
This is the initial public release. Hello, world!