@knime/utils 2.0.3 → 2.0.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 -0
- package/README.md +6 -5
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# KNIME® Frontend – Utils
|
|
2
2
|
|
|
3
|
-
It contains framework-agnostic utility functions and constants shared across KNIME projects — date/time formatting, hotkey helpers, string and number utilities, HTML sanitization, file-size and file-extension helpers,
|
|
3
|
+
It contains framework-agnostic utility functions and constants shared across KNIME projects — date/time formatting, hotkey helpers, string and number utilities, HTML sanitization, file-size and file-extension helpers, platform detection, debounce and promise helpers. It has no Vue dependency and can be used from any TypeScript/JavaScript project.
|
|
4
4
|
|
|
5
5
|
It's published as npm package: [@knime/utils]
|
|
6
6
|
|
|
7
7
|
## Why is this not a `@knime/kds-*` package?
|
|
8
8
|
|
|
9
|
-
`@knime/utils` predates the design system and is consumed beyond it. It keeps its original name and is **versioned independently**
|
|
9
|
+
`@knime/utils` predates the design system and is consumed beyond it. It keeps its original name and is **versioned independently** — it is _not_ part of the `@knime/kds-*` Changesets group, so its major version moves on its own schedule. It is also pure TypeScript (no Vue, no styles), so its build does not need the Vue/CSS toolchain the component packages use.
|
|
10
10
|
|
|
11
11
|
## Development
|
|
12
12
|
|
|
@@ -31,13 +31,14 @@ See https://github.com/nuxt/consola for details.
|
|
|
31
31
|
|
|
32
32
|
## Building
|
|
33
33
|
|
|
34
|
-
To build the package as an ES library:
|
|
34
|
+
To build the package as an ES library (type-check, then Vite build):
|
|
35
35
|
|
|
36
36
|
```sh
|
|
37
|
-
pnpm run build
|
|
37
|
+
pnpm run build:utils # from the monorepo root
|
|
38
|
+
pnpm run build # or from packages/utils
|
|
38
39
|
```
|
|
39
40
|
|
|
40
|
-
Results are saved to `dist/` (compiled ESM plus type declarations
|
|
41
|
+
Results are saved to `dist/` (compiled ESM plus type declarations).
|
|
41
42
|
|
|
42
43
|
## Using the utilities in an application
|
|
43
44
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/utils",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "Internal utility functions and constants shared across @knime packages.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"date-fns": "2.30.0",
|
|
40
40
|
"date-fns-tz": "2.0.0",
|
|
41
|
-
"dompurify": "^3.4.
|
|
41
|
+
"dompurify": "^3.4.17",
|
|
42
42
|
"pretty-bytes": "^7.1.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|