@open-pioneer/core 4.7.0 → 4.7.1-dev-test-snapshot.20260821120534

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 CHANGED
@@ -1,21 +1,27 @@
1
1
  # @open-pioneer/core
2
2
 
3
+ ## 4.7.1-dev-test-snapshot.20260821120534
4
+
5
+ ### Patch Changes
6
+
7
+ - 7d5283e: Updated dependencies.
8
+
3
9
  ## 4.7.0
4
10
 
5
11
  ### Minor Changes
6
12
 
7
13
  - 7c7e6d1: Add shallowEqual and deepEqual helper function to compare two objects.
8
14
 
9
- Examples:
15
+ Examples:
10
16
 
11
- ```ts
12
- import { shallowEqual, deepEqual } from "@open-pioneer/core";
17
+ ```ts
18
+ import { shallowEqual, deepEqual } from "@open-pioneer/core";
13
19
 
14
- shallowEqual({ a: 1 }, { a: 1 }); // true
15
- shallowEqual({ a: { x: 1 } }, { a: { x: 1 } }); // false
16
- deepEqual({ a: { x: 1 } }, { a: { x: 1 } }); // true
17
- deepEqual([1, [2, 3]], [1, [2, 3]]); // true
18
- ```
20
+ shallowEqual({ a: 1 }, { a: 1 }); // true
21
+ shallowEqual({ a: { x: 1 } }, { a: { x: 1 } }); // false
22
+ deepEqual({ a: { x: 1 } }, { a: { x: 1 } }); // true
23
+ deepEqual([1, [2, 3]], [1, [2, 3]]); // true
24
+ ```
19
25
 
20
26
  - e433296: Update Chakra UI to 3.36.1
21
27
 
@@ -85,13 +91,13 @@
85
91
  ### Major Changes
86
92
 
87
93
  - 9477e54: Update dependencies
88
- - React 19
89
- - Vite 6
90
- - FormatJS 3
91
- - Open Pioneer Build Tools
92
- - ...
94
+ - React 19
95
+ - Vite 6
96
+ - FormatJS 3
97
+ - Open Pioneer Build Tools
98
+ - ...
93
99
 
94
- For more details, see https://github.com/open-pioneer/trails-core-packages/pull/81
100
+ For more details, see https://github.com/open-pioneer/trails-core-packages/pull/81
95
101
 
96
102
  ## 2.4.0
97
103
 
@@ -99,12 +105,12 @@
99
105
 
100
106
  - e3802fb: Introduce the `NumberParser` class for parsing strings in a specified locale.
101
107
 
102
- ```js
103
- import { NumberParser } from "@open-pioneer/core";
108
+ ```js
109
+ import { NumberParser } from "@open-pioneer/core";
104
110
 
105
- const parser = new NumberParser("de-DE");
106
- const number = parser.parse("1.234,56");
107
- ```
111
+ const parser = new NumberParser("de-DE");
112
+ const number = parser.parse("1.234,56");
113
+ ```
108
114
 
109
115
  ### Patch Changes
110
116
 
package/deprecated.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"deprecated.js","sources":["deprecated.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2023-2025 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\n\nlet enabled = typeof __PRINT_DEPRECATIONS__ !== \"undefined\" ? __PRINT_DEPRECATIONS__ : true;\n\n/**\n * Options supported by {@link deprecated}.\n */\nexport interface DeprecatedOptions {\n /**\n * The package that contains the deprecated entity.\n */\n packageName?: string;\n\n /**\n * The entity name (class name, function name, option, ...) that was deprecated.\n */\n name: string;\n\n /**\n * The version or date in which the entity was deprecated.\n */\n since: string;\n\n /**\n * Available alternatives, if any.\n * Should be a succinct message like `use xyz instead`.\n */\n alternative?: string;\n}\n\n/**\n * To dynamically enable/disable deprecations at runtime.\n *\n * Currently only used for other tests in this project.\n *\n * @internal\n */\nexport function setDeprecationWarningsEnabled(newEnabled: boolean) {\n enabled = newEnabled;\n}\n\n/**\n * Creates a deprecation helper for a deprecated entity.\n *\n * This helper is used to print a deprecation warning to the browser console\n * when the deprecated functionality is being used.\n *\n * Returns a _function_ that should be called when the deprecated entity is being used.\n * The function will print a deprecation warning when usage is detected for the first time.\n * Any further calls will have no effect to prevent spamming the console.\n *\n * > NOTE: Deprecation warnings are only printed in development builds.\n *\n * Example:\n *\n * ```js\n * const printDeprecation = deprecated({\n * name: \"someFunctionName\",\n * packageName: \"some-package\",\n * since: \"v1.2.3\",\n * alternative: \"use xyz instead\"\n * });\n *\n * // Later, when the deprecated function is actually being used:\n * function someFunctionName() {\n * printDeprecation();\n * // ...\n * } *\n * ```\n */\nexport function deprecated(options: DeprecatedOptions): () => void {\n if (!enabled || !import.meta.env.DEV) {\n return () => {}; // do nothing\n }\n\n let called = false;\n return function deprecationHelper() {\n if (!enabled || called) {\n return;\n }\n\n called = true;\n console.warn(buildDeprecationWarning(options));\n };\n}\n\nfunction buildDeprecationWarning(options: DeprecatedOptions): string {\n const { packageName, name, since, alternative } = options;\n const packageInfo = packageName ? ` in ${packageName}` : \"\";\n const alternativeInfo = alternative ? `, ${alternative}` : \"\";\n const message = `⚠️ DEPRECATED: ${name}${packageInfo} (since ${since}${alternativeInfo}) - Please update your code as this may be removed in future versions.`;\n return message;\n}\n"],"names":[],"mappings":"AAGA,IAAI,OAAA,GAAU,OAAO,sBAAA,KAA2B,WAAA,GAAc,sBAAA,GAAyB,IAAA;AAoEhF,SAAS,WAAW,OAAA,EAAwC;AAC/D,EAAA,IAAI,CAAC,OAAA,IAAW,CAAC,MAAA,CAAA,IAAA,CAAY,IAAI,GAAA,EAAK;AAClC,IAAA,OAAO,MAAM;AAAA,IAAC,CAAA;AAAA,EAClB;AAEA,EAAA,IAAI,MAAA,GAAS,KAAA;AACb,EAAA,OAAO,SAAS,iBAAA,GAAoB;AAChC,IAAA,IAAI,CAAC,WAAW,MAAA,EAAQ;AACpB,MAAA;AAAA,IACJ;AAEA,IAAA,MAAA,GAAS,IAAA;AACT,IAAA,OAAA,CAAQ,IAAA,CAAK,uBAAA,CAAwB,OAAO,CAAC,CAAA;AAAA,EACjD,CAAA;AACJ;AAEA,SAAS,wBAAwB,OAAA,EAAoC;AACjE,EAAA,MAAM,EAAE,WAAA,EAAa,IAAA,EAAM,KAAA,EAAO,aAAY,GAAI,OAAA;AAClD,EAAA,MAAM,WAAA,GAAc,WAAA,GAAc,CAAA,IAAA,EAAO,WAAW,CAAA,CAAA,GAAK,EAAA;AACzD,EAAA,MAAM,eAAA,GAAkB,WAAA,GAAc,CAAA,EAAA,EAAK,WAAW,CAAA,CAAA,GAAK,EAAA;AAC3D,EAAA,MAAM,OAAA,GAAU,4BAAkB,IAAI,CAAA,EAAG,WAAW,CAAA,QAAA,EAAW,KAAK,GAAG,eAAe,CAAA,sEAAA,CAAA;AACtF,EAAA,OAAO,OAAA;AACX;;;;"}
1
+ {"version":3,"file":"deprecated.js","sources":["deprecated.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2023-2025 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\n\nlet enabled = typeof __PRINT_DEPRECATIONS__ !== \"undefined\" ? __PRINT_DEPRECATIONS__ : true;\n\n/**\n * Options supported by {@link deprecated}.\n */\nexport interface DeprecatedOptions {\n /**\n * The package that contains the deprecated entity.\n */\n packageName?: string;\n\n /**\n * The entity name (class name, function name, option, ...) that was deprecated.\n */\n name: string;\n\n /**\n * The version or date in which the entity was deprecated.\n */\n since: string;\n\n /**\n * Available alternatives, if any.\n * Should be a succinct message like `use xyz instead`.\n */\n alternative?: string;\n}\n\n/**\n * To dynamically enable/disable deprecations at runtime.\n *\n * Currently only used for other tests in this project.\n *\n * @internal\n */\nexport function setDeprecationWarningsEnabled(newEnabled: boolean) {\n enabled = newEnabled;\n}\n\n/**\n * Creates a deprecation helper for a deprecated entity.\n *\n * This helper is used to print a deprecation warning to the browser console\n * when the deprecated functionality is being used.\n *\n * Returns a _function_ that should be called when the deprecated entity is being used.\n * The function will print a deprecation warning when usage is detected for the first time.\n * Any further calls will have no effect to prevent spamming the console.\n *\n * > NOTE: Deprecation warnings are only printed in development builds.\n *\n * Example:\n *\n * ```js\n * const printDeprecation = deprecated({\n * name: \"someFunctionName\",\n * packageName: \"some-package\",\n * since: \"v1.2.3\",\n * alternative: \"use xyz instead\"\n * });\n *\n * // Later, when the deprecated function is actually being used:\n * function someFunctionName() {\n * printDeprecation();\n * // ...\n * } *\n * ```\n */\nexport function deprecated(options: DeprecatedOptions): () => void {\n if (!enabled || !import.meta.env.DEV) {\n return () => {}; // do nothing\n }\n\n let called = false;\n return function deprecationHelper() {\n if (!enabled || called) {\n return;\n }\n\n called = true;\n // oxlint-disable-next-line no-console\n console.warn(buildDeprecationWarning(options));\n };\n}\n\nfunction buildDeprecationWarning(options: DeprecatedOptions): string {\n const { packageName, name, since, alternative } = options;\n const packageInfo = packageName ? ` in ${packageName}` : \"\";\n const alternativeInfo = alternative ? `, ${alternative}` : \"\";\n const message = `⚠️ DEPRECATED: ${name}${packageInfo} (since ${since}${alternativeInfo}) - Please update your code as this may be removed in future versions.`;\n return message;\n}\n"],"names":[],"mappings":"AAGA,IAAI,OAAA,GAAU,OAAO,sBAAA,KAA2B,WAAA,GAAc,sBAAA,GAAyB,IAAA;AAoEhF,SAAS,WAAW,OAAA,EAAwC;AAC/D,EAAA,IAAI,CAAC,OAAA,IAAW,CAAC,MAAA,CAAA,IAAA,CAAY,IAAI,GAAA,EAAK;AAClC,IAAA,OAAO,MAAM;AAAA,IAAC,CAAA;AAAA,EAClB;AAEA,EAAA,IAAI,MAAA,GAAS,KAAA;AACb,EAAA,OAAO,SAAS,iBAAA,GAAoB;AAChC,IAAA,IAAI,CAAC,WAAW,MAAA,EAAQ;AACpB,MAAA;AAAA,IACJ;AAEA,IAAA,MAAA,GAAS,IAAA;AAET,IAAA,OAAA,CAAQ,IAAA,CAAK,uBAAA,CAAwB,OAAO,CAAC,CAAA;AAAA,EACjD,CAAA;AACJ;AAEA,SAAS,wBAAwB,OAAA,EAAoC;AACjE,EAAA,MAAM,EAAE,WAAA,EAAa,IAAA,EAAM,KAAA,EAAO,aAAY,GAAI,OAAA;AAClD,EAAA,MAAM,WAAA,GAAc,WAAA,GAAc,CAAA,IAAA,EAAO,WAAW,CAAA,CAAA,GAAK,EAAA;AACzD,EAAA,MAAM,eAAA,GAAkB,WAAA,GAAc,CAAA,EAAA,EAAK,WAAW,CAAA,CAAA,GAAK,EAAA;AAC3D,EAAA,MAAM,OAAA,GAAU,4BAAkB,IAAI,CAAA,EAAG,WAAW,CAAA,QAAA,EAAW,KAAK,GAAG,eAAe,CAAA,sEAAA,CAAA;AACtF,EAAA,OAAO,OAAA;AACX;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@open-pioneer/core",
4
- "version": "4.7.0",
4
+ "version": "4.7.1-dev-test-snapshot.20260821120534",
5
5
  "description": "Contains basic utility functions and classes used by the @open-pioneer project.",
6
6
  "keywords": [
7
7
  "open-pioneer-trails"
@@ -17,6 +17,10 @@
17
17
  "@conterra/reactivity-events": "^0.8.6",
18
18
  "fast-equals": "^6.0.2"
19
19
  },
20
+ "publishConfig": {
21
+ "directory": "dist",
22
+ "linkDirectory": false
23
+ },
20
24
  "exports": {
21
25
  "./package.json": "./package.json",
22
26
  ".": {