@schibsted/account-sdk-browser
Advanced tools
Changelog
v3.0.0-rc.6 (2018-06-25)
Identity.agreementUrl
has been removed. This function called an endpoint on the Schibsted
account backend that will be removed due to GDPR, and so it makes no sense to keep it in the SDK.Changelog
v3.0.0-rc.5 (2018-06-21)
Identity.getVisitorId
and all references to visitor
including the
emitting of the visitor
event is removed in this version. If you depend on it, now's the time to
stop doing that.regeneratorRuntime
was bound to the window
globally before
loading Identity
, Monetization
and Payment
. Third time's the charm, though 🤞🏼Identity.getUserId
and Identity.getUserUuid
now behave according to their documentation,
which is to say that they reject the returned Promise if the user is logged in, but not connected
to this merchant.Identity.accountUrl
and Identity.phonesUrl
did not take a redirectUri
parameter, causing the Schibsted account backend to render a default Back to [Site]
link on that
web page. Now you should be able to pick any valid redirect uri here.Changelog
v3.0.0-rc.4 (2018-05-29)
es5
directory have been rewritten to CommonJS syntax (yes, like in the good 'ol days). I still don't
fully understand what was happening here, but at least now it seems like it works for peoplehasSession()
used a cached valuewindow
have all been wrapped in functions, so that it can be loaded in Server-side rendering
contexts2^31 - 1
(just under
25 days). This has been fixed by capping the cache time to that maximum valueIdentity
class has been updatedChangelog
v3.0.0-rc.3 (2018-05-14)
!== localhost
for the logic to work in most (all?) browsersMonetization.hasProduct
and Monetization.hasSubscription
Changelog
v3.0.0-rc.2 (2018-04-30)
urlMapper
now doesn't perform calls like new URL('PRE')
without first checking if 'PRE'
is a
key in our url map object. This should ensure that outdated browsers like IE11 (that require a
polyfill for WHATWG URL
) don't get flustered in this scenario.Changelog
v3.0.0-rc.1 (2018-04-24)
#24 — Change from CommonJS to ES Modules syntax (that is — change from require/module.exports to using import/export syntax). Yeah, this is a change that touched basically all the files in the whole project, but shouldn't really change the usage much. It is a breaking change for some people using the CommonJS format. If you find yourself in this group, your change should be:
// from when you were using rc.0 or older:
const Identity = require('@schibsted/account-sdk-browser/identity')
// to now, using rc.1:
const { Identity } = require('@schibsted/account-sdk-browser/identity')
If you already used the syntax const { Identity } = require('@schibsted/account-sdk-browser')
(that is — not the bundle-optimized version), then no change should be necessary
Identity.logout()
docs
should now be up to dateIdentity.logout()
function to not clear all of its cookies. In the worst case, this could in turn cause the browser
to be confused about whether a user was logged in or notredirectUri
is different
between the old 2.x versions of the SDK and this 3.x version. Also, a section on the OpenID
Connect parameter state
has been addedChangelog
v3.0.0-rc.0 (2018-04-10)
Identity.getUserUuidId
is renamed to Identity.getUserUuid
. This was a typo in the
previous function name that was not detected until now :-/Identity.getSpId
now returns string|null
instead of string|undefined
.enableVarnishCookie()
is called. Previously,
calling hasSession
after calling enableVarnishCookie
would re-use any cached value and thus
skip setting the varnish cookie.Identity.getVisitorId
is now marked async
in the codebase. It always returned a
Promise, so functionally it does the same as before. Syntax has just been modernised.Changelog
v3.0.0-beta.7 (2018-04-03)
build.sh
script has the only change.Changelog
v3.0.0-beta.5 (2018-03-21)
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 beChangelog
v3.0.0-beta.4 (2018-03-19)
loginHint
parameter on
the Indentity.login()
and Identity.loginUrl()
functions. This enables the caller to pre-fill
the user identifier (email or phone number)