@soleil-se/app-util 5.14.0 → 5.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/package.json +19 -4
- package/server/index.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,10 @@ All notable changes to this project will be documented in this file.
|
|
|
7
7
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
8
8
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
9
9
|
|
|
10
|
+
## [5.14.1] - 2026-05-15
|
|
11
|
+
|
|
12
|
+
- Add exports to package.json for better support in ESM environments.
|
|
13
|
+
|
|
10
14
|
## [5.14.0] - 2026-04-24
|
|
11
15
|
|
|
12
16
|
- `localizedCompareBy` now accepts objects with a `key` and optional `order` (`'asc'` | `'desc'`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soleil-se/app-util",
|
|
3
|
-
"version": "5.14.
|
|
3
|
+
"version": "5.14.1",
|
|
4
4
|
"description": "Utility functions for WebApps, RESTApps and Widgets in Sitevision.",
|
|
5
5
|
"main": "./common/index.js",
|
|
6
6
|
"author": "Soleil AB",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"svelte"
|
|
17
17
|
],
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@sitevision/api": "^
|
|
20
|
-
"svelte": "^5.
|
|
19
|
+
"@sitevision/api": "^2026.4.2",
|
|
20
|
+
"svelte": "^5.55.7"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@sitevision/api": "*"
|
|
@@ -25,5 +25,20 @@
|
|
|
25
25
|
"scripts": {
|
|
26
26
|
"create-type-definitions": "node ../../utils/createTypeDefinitions.js ./common/index.js ./common/localized-compare/index.js ./client/index.js ./client/svelte/index.js ./client/svelte/3/index.js ./client/svelte/4/index.js ./client/svelte/5/index.js ./server/index.js ./server/svelte/index.js ./server/svelte/3/index.js ./server/svelte/4/index.js ./server/svelte/5/index.js ./server/app-data/index.js ./server/global-app-data/index.js"
|
|
27
27
|
},
|
|
28
|
-
"
|
|
28
|
+
"exports": {
|
|
29
|
+
".": "./common/index.js",
|
|
30
|
+
"./client": "./client/index.js",
|
|
31
|
+
"./client/fetch-json": "./client/fetch-json/index.js",
|
|
32
|
+
"./client/prevent-default": "./client/prevent-default/index.js",
|
|
33
|
+
"./client/url-params": "./client/url-params/index.js",
|
|
34
|
+
"./client/svelte/3": "./client/svelte/3/index.js",
|
|
35
|
+
"./client/svelte/4": "./client/svelte/4/index.js",
|
|
36
|
+
"./client/svelte/5": "./client/svelte/5/index.js",
|
|
37
|
+
"./server": "./server/index.js",
|
|
38
|
+
"./server/app-data": "./server/app-data/index.js",
|
|
39
|
+
"./server/global-app-data": "./server/global-app-data/index.js",
|
|
40
|
+
"./server/svelte/3": "./server/svelte/3/index.js",
|
|
41
|
+
"./server/svelte/4": "./server/svelte/4/index.js",
|
|
42
|
+
"./server/svelte/5": "./server/svelte/5/index.js"
|
|
43
|
+
}
|
|
29
44
|
}
|
package/server/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* Make native requires work with @sitevision/sitevision-scripts that uses Webpack */
|
|
2
|
-
/* eslint-disable camelcase, no-undef
|
|
2
|
+
/* eslint-disable camelcase, no-undef */
|
|
3
3
|
/**
|
|
4
4
|
* Require a module natively, bypassing Webpack bundling.
|
|
5
5
|
* This function behaves like CommonJS require() and is used to import
|
|
@@ -16,7 +16,7 @@ export function nativeRequire(module) {
|
|
|
16
16
|
if (typeof __non_webpack_require__ !== 'undefined') return __non_webpack_require__(module);
|
|
17
17
|
return require(module);
|
|
18
18
|
}
|
|
19
|
-
/* eslint-enable camelcase, no-undef
|
|
19
|
+
/* eslint-enable camelcase, no-undef */
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* @typedef {import('@sitevision/api/types/javax/jcr/Node').Node} Node
|