JavaScript
Release notes for all SDK JS versions
v0.18.5
New:
Added cookie-based authentication in Identify kit
Fixes:
Improved handling of cases where the Identify service is enabled but not properly configured, preventing errors that occurred when the SDK tried to load an assets list that was empty or in the wrong format.
Corrected element state when underlying data updates. We fixed a case where the
onElementUpdatedevent didn't reflect the element's new state when the element wasclosed— the callback could still reportopen.Corrected state recalculation logic when elements transition into an active state. We fixed a problem where events starting from a
scheduledstate did not fire their update or state-change callbacks when becomingactive.Ensured
onProjectListingsUpdated()returns correct listings. We fixed issues where the callback was triggered again when the app returned to the foreground and where newly created or started events were not reflected in the updated listings.
Migration guide
Cookie-based authentication
The Credentials type now supports both cookie-based and bearer-token authentication:
type Credentials = {
token: 'cookie' | string;
};'cookie'— use browser cookiesstring— use bearer token (existing behaviour)
If you already use a token string: nothing changes.
To use cookie-based auth:
Behaviour
'cookie'— SDK uses cookie-based authenticationstring— SDK usesAuthorization: Bearer <token>
No API changes, no breaking changes.
v0.18.4
New:
Support for configuring the title of the iframe in the embedded Experience. The title can be set either through the
getExperience()configuration or by using thetitleattribute on the custom element.
Migration guide
Using npm module:
Using custom element:
v0.18.3
New
A new package,
@monterosa/sdk-storage-kit, has been introduced. The following storage-related functions have been migrated from@monterosa/sdk-launcher-kitto@monterosa/sdk-storage-kit:
Migration guide
Before
After
v0.18.2
Fixes:
ConnectKit behaviour in Nextjs env
v0.18.1
Fixes:
A fix to a -1 percentage issue. In rare circumstances SDK was inaccurately calculating vote percentages resulting in one of the answer options getting -1%.
Percentages calculation approach has been replaced with a different approach based on Hamilton’s method. This method produces fairer results as we illustrate in the table below.
v0.18.0
All SDK packages have been re-deployed to the public npmjs.com registry under the @monterosa organisation.
Migration guide
Update package names to use the new sdk- prefix, for example:
Update Import Statements
Install Updated Packages
Remove GitLab Private Registry Configuration
Remove entries manually. Open your local .npmrc file and delete the following lines:
Remove entries via npm CLI:
v0.17.1
Internal package @monterosa-sdk/enmasse renamed to @monterosa-sdk/enmasse-kit
v0.17.0
Support added for
allowattribute in static embed tag. Allows control over enabling browser features within Experience, such as access to the microphone, camera, battery status, and so on.Support added for
allowFullScreenattribute in static embed tag. Enables full screen mode support for the Experience iframe. This enables older browsers compatibility.Added Identify Kit support to the static embed tag. This is a temporary change to simplify migration from some of the previous versions of SDK to this one.
v0.16.16
New:
Static embedding supports
persistentStoragewhich allows to enable persistent storage
v0.16.15
New:
Implemented automatic reconnection when the app is brought into the foreground or when the device comes back online
Fixes:
Event history refetch issue under certain conditions
Time synchronisation with the server upon connection to Enmasse
v0.16.14
Fixes:
Invoke onElementPublished() only when event is initialised
getElements() that returns empty dataset under certain conditions
Constant disconnect in inactive tabs
connect() function to re-establish connection after forced disconnect
Historical events initialisation
v0.16.13
Fixes:
improved handling of the finished events
v0.16.12
New:
Adds onEventAdded() and onEventRemoved() functions
Deprecations:
onEventPublished()
Fixes:
onElementPublished(), onElementUpdated() and onElementRevoked() for multiple events
v0.16.11
Fixes:
Avoid server-side rendering errors and warnings
Avoids raising warnings when the Experience is embedded from a server-side rendering context.
Last updated

