@objectstack/lint 17.3.0 → 17.4.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/CHANGELOG.md +779 -1
- package/dist/index.cjs +2279 -1368
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +778 -439
- package/dist/index.d.ts +778 -439
- package/dist/index.js +2212 -1311
- package/dist/index.js.map +1 -1
- package/dist/{runtime-B8F5-Cbg.d.cts → runtime-S3OZQDZV.d.cts} +13 -2
- package/dist/{runtime-B8F5-Cbg.d.ts → runtime-S3OZQDZV.d.ts} +13 -2
- package/dist/runtime.cjs +2388 -1538
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.d.cts +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +2345 -1489
- package/dist/runtime.js.map +1 -1
- package/package.json +4 -4
|
@@ -70,6 +70,15 @@ type AuthoringRuleTier = 'gating' | 'advisory';
|
|
|
70
70
|
* `os validate`'s verdict to give), so it runs BOTH tiers on the normalized
|
|
71
71
|
* stack. Every rule here is written to tolerate that — it is what `os lint`
|
|
72
72
|
* already did for the reference-integrity suite and the security linter.
|
|
73
|
+
* Since #16095 the `parsed` tier under `os lint` is that same normalized stack
|
|
74
|
+
* with its inline `handler` callables LOWERED to a metadata `body` (the
|
|
75
|
+
* `lowerCallables` pass `os build` runs before its parse) — still unparsed,
|
|
76
|
+
* still the same input, but carrying the `body.source` the `hook-body-*` /
|
|
77
|
+
* `hook-api-update-readonly-*` family opens on. Without it the family judged
|
|
78
|
+
* only hooks authored with an explicit `body`, which the reference app never
|
|
79
|
+
* writes (39 of 39 hooks are `handler` functions), while `os build` judged
|
|
80
|
+
* them all along. `normalized`-tier rules keep the un-lowered input on every
|
|
81
|
+
* command, so a rule that reads a live function value belongs there.
|
|
73
82
|
*
|
|
74
83
|
* ## What `normalized` does NOT buy, measured (#6073)
|
|
75
84
|
*
|
|
@@ -189,8 +198,10 @@ interface AuthoringRuleRun extends AuthoringRuleContext {
|
|
|
189
198
|
/** `normalizeStackInput` output — pre-Zod-parse. Always required. */
|
|
190
199
|
normalized: AnyRec$1;
|
|
191
200
|
/**
|
|
192
|
-
* Post-Zod-parse stack.
|
|
193
|
-
*
|
|
201
|
+
* Post-Zod-parse stack. `os lint`, which does not parse, hands this the
|
|
202
|
+
* normalized stack with its inline callables lowered to metadata bodies
|
|
203
|
+
* (#16095, see `AuthoringRuleInputTier`); omitted, `parsed` rules read
|
|
204
|
+
* `normalized`.
|
|
194
205
|
*/
|
|
195
206
|
parsed?: AnyRec$1;
|
|
196
207
|
}
|
|
@@ -70,6 +70,15 @@ type AuthoringRuleTier = 'gating' | 'advisory';
|
|
|
70
70
|
* `os validate`'s verdict to give), so it runs BOTH tiers on the normalized
|
|
71
71
|
* stack. Every rule here is written to tolerate that — it is what `os lint`
|
|
72
72
|
* already did for the reference-integrity suite and the security linter.
|
|
73
|
+
* Since #16095 the `parsed` tier under `os lint` is that same normalized stack
|
|
74
|
+
* with its inline `handler` callables LOWERED to a metadata `body` (the
|
|
75
|
+
* `lowerCallables` pass `os build` runs before its parse) — still unparsed,
|
|
76
|
+
* still the same input, but carrying the `body.source` the `hook-body-*` /
|
|
77
|
+
* `hook-api-update-readonly-*` family opens on. Without it the family judged
|
|
78
|
+
* only hooks authored with an explicit `body`, which the reference app never
|
|
79
|
+
* writes (39 of 39 hooks are `handler` functions), while `os build` judged
|
|
80
|
+
* them all along. `normalized`-tier rules keep the un-lowered input on every
|
|
81
|
+
* command, so a rule that reads a live function value belongs there.
|
|
73
82
|
*
|
|
74
83
|
* ## What `normalized` does NOT buy, measured (#6073)
|
|
75
84
|
*
|
|
@@ -189,8 +198,10 @@ interface AuthoringRuleRun extends AuthoringRuleContext {
|
|
|
189
198
|
/** `normalizeStackInput` output — pre-Zod-parse. Always required. */
|
|
190
199
|
normalized: AnyRec$1;
|
|
191
200
|
/**
|
|
192
|
-
* Post-Zod-parse stack.
|
|
193
|
-
*
|
|
201
|
+
* Post-Zod-parse stack. `os lint`, which does not parse, hands this the
|
|
202
|
+
* normalized stack with its inline callables lowered to metadata bodies
|
|
203
|
+
* (#16095, see `AuthoringRuleInputTier`); omitted, `parsed` rules read
|
|
204
|
+
* `normalized`.
|
|
194
205
|
*/
|
|
195
206
|
parsed?: AnyRec$1;
|
|
196
207
|
}
|