@taggor/contract 0.3.0 → 0.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/dist/.tsbuildinfo +1 -1
- package/dist/artifact-keys.d.ts +1 -1
- package/dist/artifact-keys.js +1 -1
- package/dist/build-diagnostic.d.ts +1 -1
- package/dist/build-diagnostic.js +1 -1
- package/dist/contract-version.d.ts +8 -8
- package/dist/contract-version.d.ts.map +1 -1
- package/dist/contract-version.js +8 -8
- package/dist/contract-version.js.map +1 -1
- package/dist/diagnostic-catalog.js +2 -2
- package/dist/error-catalog.d.ts +39 -0
- package/dist/error-catalog.d.ts.map +1 -1
- package/dist/error-catalog.js +39 -0
- package/dist/error-catalog.js.map +1 -1
- package/dist/human-actions.d.ts +2 -2
- package/dist/human-actions.d.ts.map +1 -1
- package/dist/human-actions.js +21 -0
- package/dist/human-actions.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/json-schema.d.ts +1 -2
- package/dist/json-schema.d.ts.map +1 -1
- package/dist/json-schema.js +1 -2
- package/dist/json-schema.js.map +1 -1
- package/dist/manifest.d.ts +1 -1
- package/dist/manifest.js +1 -1
- package/dist/migrate.js +1 -1
- package/dist/plan-pricing.js +1 -1
- package/dist/plan-usage.js +1 -1
- package/dist/prop-types.js +1 -1
- package/dist/prop-types.js.map +1 -1
- package/dist/props.d.ts +1 -1
- package/dist/props.js +1 -1
- package/dist/source-archive.js +1 -1
- package/dist/source-package.d.ts +3 -2
- package/dist/source-package.d.ts.map +1 -1
- package/dist/source-package.js +3 -2
- package/dist/source-package.js.map +1 -1
- package/dist/ssr-kv.d.ts +1 -1
- package/dist/ssr-kv.js +1 -1
- package/dist/tag-name.d.ts +1 -1
- package/dist/tag-name.js +1 -1
- package/dist/value-check.js +1 -1
- package/dist/value-schema.d.ts +1 -1
- package/dist/value-schema.js +1 -1
- package/dist/zod-free.d.ts +1 -1
- package/dist/zod-free.js +1 -1
- package/package.json +1 -1
- package/schema/DEPLOYED +1 -1
package/dist/value-check.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* applied to a JS value) and `parseBoundedJson` (JSON text with length and nesting limits checked
|
|
4
4
|
* before `JSON.parse`). The string format patterns live in `value-patterns.ts`.
|
|
5
5
|
*
|
|
6
|
-
* The runtime cannot import Zod (its bundle budget
|
|
6
|
+
* The runtime cannot import Zod (its bundle budget), yet it must validate `array` and
|
|
7
7
|
* `object` props that come from attributes, properties or `<script type="application/json">`
|
|
8
8
|
* (TAG-303, TAG-304). `checkValue` is that validator. It interprets the declared data with a
|
|
9
9
|
* `switch`, never generates code, and builds a fresh value with only the declared fields, so
|
package/dist/value-schema.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Declarative value schemas of component contract v1 (TAG-201).
|
|
3
3
|
*
|
|
4
4
|
* A value schema describes a JSON value with plain data (`{ type: "number", min: 0 }`), never with
|
|
5
|
-
* code, regular expressions or expressions (golden rule 5
|
|
5
|
+
* code, regular expressions or expressions (golden rule 5). It types the payload of
|
|
6
6
|
* `array`/`object` props, the `detail` of events, the fields of data collections and the props of
|
|
7
7
|
* track events. Nesting is limited to `MANIFEST_LIMITS.valueSchemaDepth` levels by construction:
|
|
8
8
|
* each level only refers to the level below, so the generated JSON Schema is finite too.
|
package/dist/value-schema.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Declarative value schemas of component contract v1 (TAG-201).
|
|
3
3
|
*
|
|
4
4
|
* A value schema describes a JSON value with plain data (`{ type: "number", min: 0 }`), never with
|
|
5
|
-
* code, regular expressions or expressions (golden rule 5
|
|
5
|
+
* code, regular expressions or expressions (golden rule 5). It types the payload of
|
|
6
6
|
* `array`/`object` props, the `detail` of events, the fields of data collections and the props of
|
|
7
7
|
* track events. Nesting is limited to `MANIFEST_LIMITS.valueSchemaDepth` levels by construction:
|
|
8
8
|
* each level only refers to the level below, so the generated JSON Schema is finite too.
|
package/dist/zod-free.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* `@taggor/contract/zod-free` (TAG-205): the part of the contract the browser runtime may import as
|
|
3
3
|
* values. Nothing reachable from here imports Zod (zod-free.test.ts walks the import graph), so the
|
|
4
4
|
* runtime gets the prop type catalog, the prop ↔ attribute mapping, the reserved names and the
|
|
5
|
-
* limits without the 23 to 33 KB gz of Zod
|
|
5
|
+
* limits without the 23 to 33 KB gz of Zod. Everything else stays `import type`.
|
|
6
6
|
* TAG-207 added the contract version verdict (`checkContractVersion`, the runtime warns with it),
|
|
7
7
|
* `migrateManifest` and the `__proto__` guard. TAG-206 added `checkStyleReferences`, the check of
|
|
8
8
|
* the parts and CSS variables a component's CSS uses against its manifest. TAG-223 exported
|
package/dist/zod-free.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* `@taggor/contract/zod-free` (TAG-205): the part of the contract the browser runtime may import as
|
|
3
3
|
* values. Nothing reachable from here imports Zod (zod-free.test.ts walks the import graph), so the
|
|
4
4
|
* runtime gets the prop type catalog, the prop ↔ attribute mapping, the reserved names and the
|
|
5
|
-
* limits without the 23 to 33 KB gz of Zod
|
|
5
|
+
* limits without the 23 to 33 KB gz of Zod. Everything else stays `import type`.
|
|
6
6
|
* TAG-207 added the contract version verdict (`checkContractVersion`, the runtime warns with it),
|
|
7
7
|
* `migrateManifest` and the `__proto__` guard. TAG-206 added `checkStyleReferences`, the check of
|
|
8
8
|
* the parts and CSS variables a component's CSS uses against its manifest. TAG-223 exported
|
package/package.json
CHANGED
package/schema/DEPLOYED
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# The contract versions https://taggor.dev/schema/ serves (
|
|
1
|
+
# The contract versions https://taggor.dev/schema/ serves (TAG-2534). One <major>.<minor>
|
|
2
2
|
# per line. A listed version's lines in published/SHA256SUMS never change or vanish
|
|
3
3
|
# (scripts/snapshot-seal-check.ts); this marker only grows. Not generated: the deploy ticket writes it,
|
|
4
4
|
# and each new minor joins it in the PR of the deploy that serves it.
|