Scrivito JS SDK 1.39.0 Released

Posted on February 13, 2024

Improvements

Enhanced data classes

The Scrivito SDK now offers all attributes of a data class as placeholders for its instances, unless configured otherwise via the editing configuration.

As a developer using Scrivito.provideDataClass to load external data, you can now also return IDs of the Number type in the connection callbacks. This will save you some inconvenience if your custom API uses this format for IDs.

Furthermore, when building connections to external data sources using Scrivito.provideDataClass, the parameters for the index callback now include the number of items requested by the SDK. Passing this value to the external data provider, e.g., a backend service, may save loading time.

Determining the URL of a data item's details page

You can now determine the URL of a data item’s details page using the SDK’s new Scrivito.urlForDataItem API function. Setting up a details page for a data item is easy.


Further changes and fixed bugs

  • The new Scrivito.getInstanceId API allows users to easily identify the current instance ID configured in Scrivito.configure. This can be particularly useful when integrating Scrivito with external libraries or packages.

  • Opening a permalink pointing to a binary object, e.g., a PDF file, now keeps the browser history in a consistent state. Prior to version 1.39.0, the behavior of the back button depended on the browser used, so that it was not possible for some users to navigate back.


Thanks again for using Scrivito!