@soleil-se/app-util 5.6.3 → 5.6.4
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 +6 -2
- package/common/index.js +3 -1
- package/package.json +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.6.4] - 2024-01-18
|
|
11
|
+
|
|
12
|
+
- Cast `Packages.java.util.UUID.randomUUID()` to `string`.
|
|
13
|
+
|
|
10
14
|
## [5.6.3] - 2024-01-15
|
|
11
15
|
|
|
12
16
|
- Only remove values in `stringifyParams` if they are `undefined`, `null` or an empty string.
|
|
@@ -116,14 +120,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
116
120
|
## [4.0.0] - 2021-01-27
|
|
117
121
|
|
|
118
122
|
A much needed major overhaul of the package.
|
|
119
|
-
See [MIGRATION](
|
|
123
|
+
See [MIGRATION](/packages/soleil-api/webapp-util/migration/).
|
|
120
124
|
|
|
121
125
|
- Major refactoring of package.
|
|
122
126
|
- Exports for render functions are moved.
|
|
123
127
|
- All documented constants and functions from base import (`@soleil-api/webapp-util`) now works both in a server and client context.
|
|
124
128
|
- Settings for selector is moved from server to client rendering functions.
|
|
125
129
|
- Removed `noScript` option in `render` (formerly `renderApp`) has been removed. If a no script message is needed use the `html` option wrapped in `<noscript>`.
|
|
126
|
-
- Removed `@soleil-api/webapp-util/app-data` has been removed, use
|
|
130
|
+
- Removed `@soleil-api/webapp-util/app-data` has been removed, use getAppData from `@soleil-api/webapp-util`.
|
|
127
131
|
|
|
128
132
|
## [3.0.3] - 2020-11-03
|
|
129
133
|
|
package/common/index.js
CHANGED
|
@@ -63,7 +63,9 @@ export function getNamespace(prefix = 'app') {
|
|
|
63
63
|
* @returns {string} Unique identifier.
|
|
64
64
|
*/
|
|
65
65
|
export function generateId(prefix = 'id') {
|
|
66
|
-
const uuid = isServer
|
|
66
|
+
const uuid = isServer
|
|
67
|
+
? Packages.java.util.UUID.randomUUID().toString()
|
|
68
|
+
: window.crypto.randomUUID();
|
|
67
69
|
return `${prefix}_${uuid}`.replace(/-/g, '');
|
|
68
70
|
}
|
|
69
71
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soleil-se/app-util",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.4",
|
|
4
4
|
"description": "Utility and rendering functions for WebApps.",
|
|
5
5
|
"main": "./common/index.js",
|
|
6
6
|
"author": "Soleil AB",
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"@sitevision/api": "*"
|
|
16
16
|
},
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "a0b6562f68aa56e089f547d7c3d85ac18a367367",
|
|
18
18
|
"dependencies": {}
|
|
19
19
|
}
|