@fusion.dev/helix-core 0.137.0 → 0.139.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
|
@@ -14392,7 +14392,7 @@
|
|
|
14392
14392
|
}
|
|
14393
14393
|
}
|
|
14394
14394
|
],
|
|
14395
|
-
"description": "Tells the listener, where there is one, that `element` has rendered for the\nfirst time.\n\n**A listener that throws never breaks the element.** The
|
|
14395
|
+
"description": "Tells the listener, where there is one, that `element` has rendered for the\nfirst time.\n\n**A listener that throws never breaks the element, nor the page.** The\nerror is printed once, and the render that called this finishes as if\nnothing listened. It used to be thrown again on a later microtask, which\nreached `window.onerror`, a team's error tracker, and Cypress, which fails a\ntest on any uncaught error: a diagnostics listener is the last thing that\nshould fail somebody's tests."
|
|
14396
14396
|
}
|
|
14397
14397
|
],
|
|
14398
14398
|
"exports": [
|
|
@@ -15455,7 +15455,7 @@
|
|
|
15455
15455
|
"type": {
|
|
15456
15456
|
"text": "string"
|
|
15457
15457
|
},
|
|
15458
|
-
"default": "'0.
|
|
15458
|
+
"default": "'0.139.0'",
|
|
15459
15459
|
"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."
|
|
15460
15460
|
}
|
|
15461
15461
|
],
|
|
@@ -15473,6 +15473,6 @@
|
|
|
15473
15473
|
],
|
|
15474
15474
|
"helix": {
|
|
15475
15475
|
"package": "@fusion.dev/helix-core",
|
|
15476
|
-
"version": "0.
|
|
15476
|
+
"version": "0.139.0"
|
|
15477
15477
|
}
|
|
15478
15478
|
}
|
|
@@ -35,8 +35,11 @@ export declare const noteVersion: () => void;
|
|
|
35
35
|
* Tells the listener, where there is one, that `element` has rendered for the
|
|
36
36
|
* first time.
|
|
37
37
|
*
|
|
38
|
-
* **A listener that throws never breaks the element
|
|
39
|
-
*
|
|
40
|
-
*
|
|
38
|
+
* **A listener that throws never breaks the element, nor the page.** The
|
|
39
|
+
* error is printed once, and the render that called this finishes as if
|
|
40
|
+
* nothing listened. It used to be thrown again on a later microtask, which
|
|
41
|
+
* reached `window.onerror`, a team's error tracker, and Cypress, which fails a
|
|
42
|
+
* test on any uncaught error: a diagnostics listener is the last thing that
|
|
43
|
+
* should fail somebody's tests.
|
|
41
44
|
*/
|
|
42
45
|
export declare const reportUsage: (element: HTMLElement) => void;
|
|
@@ -9,6 +9,7 @@ export const noteVersion = () => {
|
|
|
9
9
|
}
|
|
10
10
|
store[VERSIONS_SLOT] = listed;
|
|
11
11
|
};
|
|
12
|
+
let told = false;
|
|
12
13
|
export const reportUsage = (element) => {
|
|
13
14
|
const listener = globalThis[USAGE_SLOT];
|
|
14
15
|
if (typeof listener !== 'function') {
|
|
@@ -18,8 +19,9 @@ export const reportUsage = (element) => {
|
|
|
18
19
|
listener(element);
|
|
19
20
|
}
|
|
20
21
|
catch (error) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
if (!told) {
|
|
23
|
+
told = true;
|
|
24
|
+
console.error('helix: a usage listener threw, and the element rendered as usual. Later failures are not printed.', error);
|
|
25
|
+
}
|
|
24
26
|
}
|
|
25
27
|
};
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.139.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.139.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ross Sheppard <ross.sheppard@fusion.dev>",
|
|
7
7
|
"repository": {
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"bugs": "https://github.com/project-fusion/fusion/issues",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@floating-ui/dom": "^1.8.0",
|
|
37
|
-
"@fusion.dev/helix-icons": "0.
|
|
37
|
+
"@fusion.dev/helix-icons": "0.139.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@fusion.dev/helix-cem": "0.
|
|
41
|
-
"@fusion.dev/helix-testing": "0.
|
|
40
|
+
"@fusion.dev/helix-cem": "0.139.0",
|
|
41
|
+
"@fusion.dev/helix-testing": "0.139.0",
|
|
42
42
|
"@lit-labs/ssr": "^4.1.0",
|
|
43
43
|
"lit": "^3.2.1"
|
|
44
44
|
},
|