Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[5.12.1] - 2025-10-15
Section titled “[5.12.1] - 2025-10-15”- Return identifier for Node instances in
toStringfunction inapp-dataandglobal-app-data.
[5.12.0] - 2025-10-09
Section titled “[5.12.0] - 2025-10-09”- Add
iteratorToArray,nodeIteratorToArray,listToArrayandsetToArrayutility functions to convert these data structures into arrays.
[5.11.0] - 2025-09-04
Section titled “[5.11.0] - 2025-09-04”- Add type-safe wrapper for
@sitevision/api/server/appDataand@sitevision/api/server/globalAppData. - Adjust types for
fetchJsonandurlParamsto work better with TypeScript.
[5.10.1] - 2025-06-26
Section titled “[5.10.1] - 2025-06-26”- Adjust types for rendering functions.
[5.10.0] - 2025-05-30
Section titled “[5.10.0] - 2025-05-30”- Add new utility function
preventDefaultto prevent default behavior of events in a more readable way.
[5.9.1] - 2025-03-27
Section titled “[5.9.1] - 2025-03-27”- Update type definitions.
[5.9.0] - 2025-03-17
Section titled “[5.9.0] - 2025-03-17”- Add
idPrefixwhen rendering Svelte on the server to avoid conflicts with other apps. - Add type definitions.
[5.8.3] - 2025-02-14
Section titled “[5.8.3] - 2025-02-14”- Update license.
[5.8.2] - 2025-02-14
Section titled “[5.8.2] - 2025-02-14”- Update README and tagging in
package.json.
[5.8.1] - 2024-10-28
Section titled “[5.8.1] - 2024-10-28”- Pass props properly to Svelte 5 server render function.
- Update JSDoc to correct new paths for deprecated functions.
[5.8.0] - 2024-10-21
Section titled “[5.8.0] - 2024-10-21”- Restructure rendering function for different Svelte versions.
- Add rendering function for Svelte 5.
- Deprecate old Svelte rendering functions.
[5.7.2] - 2024-08-21
Section titled “[5.7.2] - 2024-08-21”- Add
?version=0properly togetRouteUriwhen called in offline mode.
[5.7.1] - 2024-08-07
Section titled “[5.7.1] - 2024-08-07”- Change widget detection to use
window.sv.PageContext.dashboardId. - Options in
fetchJsonis now optional.
[5.7.0] - 2024-05-23
Section titled “[5.7.0] - 2024-05-23”- Add widget support for
fetchJson.
[5.6.5] - 2024-01-25
Section titled “[5.6.5] - 2024-01-25”- Fix asynchronous handling of error in
fetchJson.
[5.6.4] - 2024-01-18
Section titled “[5.6.4] - 2024-01-18”- Cast
Packages.java.util.UUID.randomUUID()tostring.
[5.6.3] - 2024-01-15
Section titled “[5.6.3] - 2024-01-15”- Only remove values in
stringifyParamsif they areundefined,nullor an empty string.
[5.6.2] - 2023-12-14
Section titled “[5.6.2] - 2023-12-14”- Update to correct homepage in
package.json.
[5.6.1] - 2023-12-14
Section titled “[5.6.1] - 2023-12-14”- Hydrate when children other than HTML Elements exist in target.
- New argument for client side Svelte rendering for
hydrate.
[5.6.0] - 2023-11-23
Section titled “[5.6.0] - 2023-11-23”- New constants:
isServerandisBrowser. - New function:
generateId. - Throw more clear error when JSON response can’t be parsed in
fetchJson. - Webpack support for usage with
@sitevision/sitevision-scripts.
[5.5.2] - 2023-08-28
Section titled “[5.5.2] - 2023-08-28”- Respect hash when updating URL parameters with
updateUrlParamsandsetUrlParams.
[5.5.1] - 2023-08-25
Section titled “[5.5.1] - 2023-08-25”- Don’t remove
?fromlocation.searchwhen parsing parameters ingetUrlParamsandupdateUrlParams.
[5.5.0] - 2023-08-25
Section titled “[5.5.0] - 2023-08-25”- Remove abort controllers in
fetchJsonsince it’s better to handle this seperatly case by case.
[5.4.1] - 2023-08-22
Section titled “[5.4.1] - 2023-08-22”- Add
/edit-app-configto ignored URI infetchJson.
[5.4.0] - 2023-08-09
Section titled “[5.4.0] - 2023-08-09”- Add
fetchJsonfunction to make requests to app routes or other resources.
[5.3.0] - 2023-07-06
Section titled “[5.3.0] - 2023-07-06”- Added helper functions for managing parameters in the URL-field.
[5.2.2] - 2023-01-31
Section titled “[5.2.2] - 2023-01-31”- Fix
parseParamsexport.
[5.2.1] - 2023-01-31
Section titled “[5.2.1] - 2023-01-31”- Fix homepage url.
- More lenient with peerDependency
@sitevision/api.
[5.2.0] - 2023-01-31
Section titled “[5.2.0] - 2023-01-31”- New function
parseParamsto parse query parameters from an URL, URI or query string.
[5.1.0] - 2022-05-27
Section titled “[5.1.0] - 2022-05-27”- New function
stringifyParamsto stringify query parameters to a Sitevision compatible format. - Possible to pass a parameters object to
getRouteUri. - All common constants and functions are now usable in hooks.
- Deprecate
getViewUrisince it’s not used in WebApps 2.
[5.0.0] - 2022-02-08
Section titled “[5.0.0] - 2022-02-08”- Using WebApps 2 for rendering apps.
- Removed
getAppData, usegetAppPropsinstead. - Removed
server/render, useres.agnosticRenderfor framework agnostic rendering. - Removed
server/renderTemplate, used for rendering underscore templates.
[4.2.1] - 2021-09-06
Section titled “[4.2.1] - 2021-09-06”- Underscore is misspelled in
renderTemplate.
[4.2.0] - 2021-08-20
Section titled “[4.2.0] - 2021-08-20”- Added
getAppPropsfor getting props passed to the app when rendering. getAppDatadeprecated due to confusion, usegetAppPropsinstead.
[4.1.4] - 2021-05-25
Section titled “[4.1.4] - 2021-05-25”- Return empty object instead of undefined when app data isn’t set.
- Remove
vueas optional dependency.
[4.1.3] - 2021-03-31
Section titled “[4.1.3] - 2021-03-31”- Consistent rendering when using
serverServerandrenderfor Svelte. - Docs for Svelte
renderServerfunction.
[4.1.2] - 2021-02-24
Section titled “[4.1.2] - 2021-02-24”- Escape tags when parsing data to prevent closure of script tags.
[4.1.1] - 2021-02-17
Section titled “[4.1.1] - 2021-02-17”- Validation error for
idon script tags, even though it’s allowed.
[4.1.0] - 2021-02-17
Section titled “[4.1.0] - 2021-02-17”- Put app data and metadata in script elements instead of data attributes.
[4.0.1] - 2021-01-28
Section titled “[4.0.1] - 2021-01-28”- Crashes when no data is passed to app and then trying to call
getAppData.
[4.0.0] - 2021-01-27
Section titled “[4.0.0] - 2021-01-27”A much needed major overhaul of the package. See MIGRATION.
- Major refactoring of package.
- Exports for render functions are moved.
- All documented constants and functions from base import (
@soleil-se/app-util) now works both in a server and client context. - Settings for selector is moved from server to client rendering functions.
- Removed
noScriptoption inrender(formerlyrenderApp) has been removed. If a no script message is needed use thehtmloption wrapped in<noscript>. - Removed
@soleil-se/app-util/app-datahas been removed, use getAppData from@soleil-se/app-util.
[3.0.3] - 2020-11-03
Section titled “[3.0.3] - 2020-11-03”- Nothing, Lerna wanted to publish…
[3.0.2] - 2020-10-19
Section titled “[3.0.2] - 2020-10-19”- Nothing, Lerna wanted to publish…
[3.0.1] - 2020-09-28
Section titled “[3.0.1] - 2020-09-28”- Homepage link
[3.0.0] - 2020-09-28
Section titled “[3.0.0] - 2020-09-28”- Svelte support.
- New exports:
uniqueId- A unique id for the app instance.
[2.4.1] - 2020-09-01
Section titled “[2.4.1] - 2020-09-01”- App data with single quotes crashes app in edit mode, use double quotes instead.
[2.4.0] - 2020-05-26
Section titled “[2.4.0] - 2020-05-26”getViewUrireturns correct URI when in offline mode and in the Addons view.
[2.3.0] - 2020-05-22
Section titled “[2.3.0] - 2020-05-22”renderAppnow acceptsreqas a setting to opimize script loading when multiple instances of the app exists. Ifreqis present the script will only be loaded once in all browsers except IE11 that needs a unique script src for the currentScript polyfill to work.noScriptinrenderAppwas not wrapped in a<noscript>tag.
[2.2.0] - 2020-05-20
Section titled “[2.2.0] - 2020-05-20”renderTemplatefunction is now available inside templates rendered by the function.
[2.1.4] - 2020-04-07
Section titled “[2.1.4] - 2020-04-07”getViewUrihad incorrect portlet ID.
[2.1.3] - 2020-02-25
Section titled “[2.1.3] - 2020-02-25”- Add timestamp to script url in edit mode as well.
[2.1.2] - 2020-02-21
Section titled “[2.1.2] - 2020-02-21”- Wrapped
renderAppscript in svDocReady in edit mode to be sure it executes when other bundles are loaded.
[2.1.1] - 2020-02-14
Section titled “[2.1.1] - 2020-02-14”- Updated readme, heading levels and examples.
[2.1.0] - 2020-02-14
Section titled “[2.1.0] - 2020-02-14”- App data import in client,
@soleil-se/app-util/app-data. getViewUrito get the URI that also renders the page.isOnlineto see if the app is online.vueis now an optional depedency.
[2.0.0] - 2020-02-12
Section titled “[2.0.0] - 2020-02-12”- Now using
currentScriptto reference the script element the app is running in to pass data when usingrenderApp. renderAppis no longer using appName.renderis now called directly in./app_src/client/index.js.renderandAppno longer needs to be exported from./app_src/client/index.js.