@fusion.dev/helix-diagnostics 0.0.0-dev → 0.0.2
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/dist/analyze.d.ts +1 -1
- package/dist/analyze.js +1 -1
- package/dist/index.d.ts +3 -4
- package/dist/index.js +3 -4
- package/dist/manifest.d.ts +2 -2
- package/dist/report.d.ts +3 -3
- package/dist/report.js +1 -1
- package/package.json +4 -4
package/dist/analyze.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export declare const analyze: (rules: Located[], tags: Map<string, Published>, f
|
|
|
37
37
|
* later can improve on: by the time a page can be scanned, the losing class is
|
|
38
38
|
* unreachable and all that is left is an identity mismatch to infer from. So
|
|
39
39
|
* this reads `duplicateRegistrations()` rather than re-deriving it, which is
|
|
40
|
-
* `
|
|
40
|
+
* `AGENTS.md`'s rule about where a fix lives applied to a detector.
|
|
41
41
|
*
|
|
42
42
|
* The identity check stays as a fallback, for the copy that never went through
|
|
43
43
|
* Helix's own decorator: a fork, a hand-written `customElements.define`, or a
|
package/dist/analyze.js
CHANGED
|
@@ -188,7 +188,7 @@ export const analyze = (rules, tags, from, answered = new Map()) => {
|
|
|
188
188
|
* later can improve on: by the time a page can be scanned, the losing class is
|
|
189
189
|
* unreachable and all that is left is an identity mismatch to infer from. So
|
|
190
190
|
* this reads `duplicateRegistrations()` rather than re-deriving it, which is
|
|
191
|
-
* `
|
|
191
|
+
* `AGENTS.md`'s rule about where a fix lives applied to a detector.
|
|
192
192
|
*
|
|
193
193
|
* The identity check stays as a fallback, for the copy that never went through
|
|
194
194
|
* Helix's own decorator: a fork, a hand-written `customElements.define`, or a
|
package/dist/index.d.ts
CHANGED
|
@@ -69,10 +69,9 @@ export interface Options {
|
|
|
69
69
|
*
|
|
70
70
|
* **It returns coverage and findings together and offers no way to have one
|
|
71
71
|
* without the other.** A collector that cannot read cross-origin sheets reports
|
|
72
|
-
* the same empty array whether it read everything or nothing
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
* meaningful beside the `coverage` that says what was looked at.
|
|
72
|
+
* the same empty array whether it read everything or nothing. An empty
|
|
73
|
+
* `findings` is only meaningful beside the `coverage` that says what was looked
|
|
74
|
+
* at.
|
|
76
75
|
*
|
|
77
76
|
* Cheap enough to call on a route change. There is no observer and no polling
|
|
78
77
|
* loop: sheets that arrive later are found by calling it again.
|
package/dist/index.js
CHANGED
|
@@ -39,10 +39,9 @@ import { index } from './manifest.js';
|
|
|
39
39
|
*
|
|
40
40
|
* **It returns coverage and findings together and offers no way to have one
|
|
41
41
|
* without the other.** A collector that cannot read cross-origin sheets reports
|
|
42
|
-
* the same empty array whether it read everything or nothing
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* meaningful beside the `coverage` that says what was looked at.
|
|
42
|
+
* the same empty array whether it read everything or nothing. An empty
|
|
43
|
+
* `findings` is only meaningful beside the `coverage` that says what was looked
|
|
44
|
+
* at.
|
|
46
45
|
*
|
|
47
46
|
* Cheap enough to call on a route change. There is no observer and no polling
|
|
48
47
|
* loop: sheets that arrive later are found by calling it again.
|
package/dist/manifest.d.ts
CHANGED
|
@@ -37,8 +37,8 @@ export interface Tier {
|
|
|
37
37
|
/**
|
|
38
38
|
* What one tag publishes, per tier.
|
|
39
39
|
*
|
|
40
|
-
* Not `Element
|
|
41
|
-
*
|
|
40
|
+
* Not `Element`: that name shadows the DOM's own `Element` wherever both are in
|
|
41
|
+
* scope, and `analyze.ts` needs both in the same file.
|
|
42
42
|
*/
|
|
43
43
|
export interface Published {
|
|
44
44
|
hooks: Map<string, Set<string>>;
|
package/dist/report.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* **A bare pass is a lie this collector is structurally capable of telling.**
|
|
6
6
|
* Cross-origin stylesheets throw on `.cssRules`, and a run that could not read
|
|
7
7
|
* half its input reports the same empty array as a run that read all of it.
|
|
8
|
-
* `
|
|
8
|
+
* `fusion prose`'s `dialect` shipped in exactly that condition for weeks: green, and
|
|
9
9
|
* incapable of being anything else. So `Report` has no `findings` that can be
|
|
10
10
|
* destructured away from the `coverage` that qualifies them, and the console
|
|
11
11
|
* sink prints coverage first whether or not anything was found.
|
|
@@ -17,8 +17,8 @@ export interface Origin {
|
|
|
17
17
|
*
|
|
18
18
|
* **There is no line number and there cannot be one.** CSSOM exposes
|
|
19
19
|
* `cssText` and an index within the sheet; the byte offset in the authored
|
|
20
|
-
* file is not in the object model at any level.
|
|
21
|
-
*
|
|
20
|
+
* file is not in the object model at any level. A line was asked for, and
|
|
21
|
+
* this is the honest substitute: the text of the rule is what a
|
|
22
22
|
* reader searches for, and it survives minification and bundling in a way a
|
|
23
23
|
* line number would not.
|
|
24
24
|
*/
|
package/dist/report.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* **A bare pass is a lie this collector is structurally capable of telling.**
|
|
6
6
|
* Cross-origin stylesheets throw on `.cssRules`, and a run that could not read
|
|
7
7
|
* half its input reports the same empty array as a run that read all of it.
|
|
8
|
-
* `
|
|
8
|
+
* `fusion prose`'s `dialect` shipped in exactly that condition for weeks: green, and
|
|
9
9
|
* incapable of being anything else. So `Report` has no `findings` that can be
|
|
10
10
|
* destructured away from the `coverage` that qualifies them, and the console
|
|
11
11
|
* sink prints coverage first whether or not anything was found.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fusion.dev/helix-diagnostics",
|
|
3
3
|
"description": "Finds the Helix mistakes that are valid CSS: dead parts, misnamed hooks, two copies of the library.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ross Sheppard <ross.sheppard@fusion.dev>",
|
|
7
7
|
"repository": {
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"sideEffects": false,
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "tsc -p tsconfig.json",
|
|
27
|
-
"
|
|
28
|
-
"
|
|
27
|
+
"test": "bun test src",
|
|
28
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
29
29
|
},
|
|
30
30
|
"bugs": "https://github.com/project-fusion/fusion/issues",
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@fusion.dev/helix-testing": "0.0.
|
|
32
|
+
"@fusion.dev/helix-testing": "0.0.2",
|
|
33
33
|
"@types/bun": "^1.3.0"
|
|
34
34
|
},
|
|
35
35
|
"homepage": "https://fusion.dev",
|