@fusion.dev/helix-core 0.153.0 → 0.154.0
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/custom-elements.json
CHANGED
|
@@ -27826,7 +27826,7 @@
|
|
|
27826
27826
|
"name": "options",
|
|
27827
27827
|
"optional": true,
|
|
27828
27828
|
"type": {
|
|
27829
|
-
"text": "Intl.NumberFormatOptions"
|
|
27829
|
+
"text": "Intl.NumberFormatOptions | null"
|
|
27830
27830
|
}
|
|
27831
27831
|
}
|
|
27832
27832
|
],
|
|
@@ -32230,7 +32230,7 @@
|
|
|
32230
32230
|
"type": {
|
|
32231
32231
|
"text": "string"
|
|
32232
32232
|
},
|
|
32233
|
-
"default": "'0.
|
|
32233
|
+
"default": "'0.154.0'",
|
|
32234
32234
|
"description": "The version of the package this file ships in.\n\n**Written by `fusion/scripts/version.mjs`** wherever it writes the package's\n`package.json`, and stamped back into the repository beside it after a\nrelease, so the two never disagree; a spec beside this holds them to it.\nNothing else in the running code knows which release it is."
|
|
32235
32235
|
}
|
|
32236
32236
|
],
|
|
@@ -32790,6 +32790,6 @@
|
|
|
32790
32790
|
],
|
|
32791
32791
|
"helix": {
|
|
32792
32792
|
"package": "@fusion.dev/helix-core",
|
|
32793
|
-
"version": "0.
|
|
32793
|
+
"version": "0.154.0"
|
|
32794
32794
|
}
|
|
32795
32795
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* build and cheap to call, and a control formats on every update.
|
|
9
9
|
*/
|
|
10
10
|
/** Writes a number in a locale with `Intl.NumberFormat` options. */
|
|
11
|
-
export declare const formatNumber: (value: number, locale?: string, options?: Intl.NumberFormatOptions) => string;
|
|
11
|
+
export declare const formatNumber: (value: number, locale?: string, options?: Intl.NumberFormatOptions | null) => string;
|
|
12
12
|
/**
|
|
13
13
|
* A share, from 0 to 1, as a locale writes a whole percentage: `40%`, or
|
|
14
14
|
* `40 %` in French. For `aria-valuetext`, since a bare `aria-valuenow` is read
|
|
@@ -3,7 +3,7 @@ const formatter = (locale, options) => {
|
|
|
3
3
|
const key = `${locale}|${JSON.stringify(options ?? {})}`;
|
|
4
4
|
let found = held.get(key);
|
|
5
5
|
if (!found) {
|
|
6
|
-
found = new Intl.NumberFormat(locale || undefined, options);
|
|
6
|
+
found = new Intl.NumberFormat(locale || undefined, options ?? undefined);
|
|
7
7
|
held.set(key, found);
|
|
8
8
|
}
|
|
9
9
|
return found;
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.154.0';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fusion.dev/helix-core",
|
|
3
3
|
"description": "Helix element primitives: base classes, mixins, decorators, utilities.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.154.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ross Sheppard <ross.sheppard@fusion.dev>",
|
|
7
7
|
"repository": {
|
|
@@ -56,11 +56,11 @@
|
|
|
56
56
|
"bugs": "https://github.com/project-fusion/fusion/issues",
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@floating-ui/dom": "^1.8.0",
|
|
59
|
-
"@fusion.dev/helix-icons": "0.
|
|
59
|
+
"@fusion.dev/helix-icons": "0.154.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@fusion.dev/helix-cem": "0.
|
|
63
|
-
"@fusion.dev/helix-testing": "0.
|
|
62
|
+
"@fusion.dev/helix-cem": "0.154.0",
|
|
63
|
+
"@fusion.dev/helix-testing": "0.154.0",
|
|
64
64
|
"@lit-labs/ssr": "^4.1.0",
|
|
65
65
|
"lit": "^3.2.1"
|
|
66
66
|
},
|