@taggor/contract 0.3.0 → 0.5.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 +11 -11
- package/dist/artifact-keys.d.ts.map +1 -1
- package/dist/artifact-keys.js +11 -11
- package/dist/artifact-keys.js.map +1 -1
- package/dist/assets.d.ts +5 -5
- package/dist/assets.js +5 -5
- package/dist/bounded-path.d.ts +2 -2
- package/dist/bounded-path.js +2 -2
- package/dist/bounded.d.ts +2 -2
- package/dist/bounded.js +2 -2
- package/dist/build-diagnostic.d.ts +5 -5
- package/dist/build-diagnostic.js +5 -5
- package/dist/component-types.d.ts +7 -7
- package/dist/component-types.js +4 -4
- package/dist/component-types.js.map +1 -1
- package/dist/consent-text.d.ts +1 -1
- package/dist/consent-text.js +1 -1
- package/dist/contract-version.d.ts +17 -16
- package/dist/contract-version.d.ts.map +1 -1
- package/dist/contract-version.js +17 -16
- package/dist/contract-version.js.map +1 -1
- package/dist/credential-fields.d.ts +1 -1
- package/dist/credential-fields.js +1 -1
- package/dist/css-tokens.d.ts +1 -1
- package/dist/css-tokens.js +1 -1
- package/dist/css-value.d.ts +4 -4
- package/dist/css-value.js +4 -4
- package/dist/data-api.d.ts +11 -11
- package/dist/data-api.js +14 -14
- package/dist/data-api.js.map +1 -1
- package/dist/denylist-keys.d.ts +1 -1
- package/dist/denylist-keys.js +4 -4
- package/dist/diagnostic-catalog.d.ts +44 -36
- package/dist/diagnostic-catalog.d.ts.map +1 -1
- package/dist/diagnostic-catalog.js +44 -40
- package/dist/diagnostic-catalog.js.map +1 -1
- package/dist/dom-members.snapshot.d.ts +4 -4
- package/dist/dom-members.snapshot.js +8 -8
- package/dist/early-loading.d.ts +1 -1
- package/dist/early-loading.js +1 -1
- package/dist/error-catalog.d.ts +106 -7
- package/dist/error-catalog.d.ts.map +1 -1
- package/dist/error-catalog.js +143 -48
- package/dist/error-catalog.js.map +1 -1
- package/dist/executable-config.d.ts +1 -1
- package/dist/freeze.d.ts +2 -2
- package/dist/freeze.js +2 -2
- package/dist/gunzip.d.ts +3 -3
- package/dist/gunzip.js +4 -4
- package/dist/gunzip.js.map +1 -1
- package/dist/hostname.d.ts +5 -6
- package/dist/hostname.d.ts.map +1 -1
- package/dist/hostname.js +7 -8
- package/dist/hostname.js.map +1 -1
- package/dist/human-actions.d.ts +4 -4
- 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 +5 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/json-schema.d.ts +15 -16
- package/dist/json-schema.d.ts.map +1 -1
- package/dist/json-schema.js +22 -23
- package/dist/json-schema.js.map +1 -1
- package/dist/key-checksum.d.ts +1 -1
- package/dist/key-checksum.js +1 -1
- package/dist/libraries.d.ts +4 -4
- package/dist/libraries.d.ts.map +1 -1
- package/dist/libraries.js +4 -4
- package/dist/libraries.js.map +1 -1
- package/dist/limit-catalog.d.ts +17 -17
- package/dist/limit-catalog.d.ts.map +1 -1
- package/dist/limit-catalog.js +30 -30
- package/dist/limit-catalog.js.map +1 -1
- package/dist/limits.d.ts +15 -15
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +16 -16
- package/dist/limits.js.map +1 -1
- package/dist/locale-tag.d.ts +2 -2
- package/dist/locale-tag.js +2 -2
- package/dist/make-diagnostic.d.ts +2 -3
- package/dist/make-diagnostic.d.ts.map +1 -1
- package/dist/make-diagnostic.js.map +1 -1
- package/dist/manifest-compat-diagnostics.d.ts +1 -1
- package/dist/manifest-compat.js +1 -1
- package/dist/manifest.d.ts +22 -23
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +32 -33
- package/dist/manifest.js.map +1 -1
- package/dist/metering.d.ts +17 -18
- package/dist/metering.d.ts.map +1 -1
- package/dist/metering.js +17 -18
- package/dist/metering.js.map +1 -1
- package/dist/migrate.d.ts +1 -1
- package/dist/migrate.js +5 -5
- package/dist/migrate.js.map +1 -1
- package/dist/money.d.ts +2 -2
- package/dist/money.js +2 -2
- package/dist/names.d.ts +4 -4
- package/dist/names.js +4 -4
- package/dist/overage-pricing.d.ts +1 -1
- package/dist/overage-pricing.js +1 -1
- package/dist/plan-ids.d.ts +1 -1
- package/dist/plan-ids.js +1 -1
- package/dist/plan-limits.d.ts +13 -13
- package/dist/plan-limits.d.ts.map +1 -1
- package/dist/plan-limits.js +8 -8
- package/dist/plan-limits.js.map +1 -1
- package/dist/plan-pricing.d.ts +10 -12
- package/dist/plan-pricing.d.ts.map +1 -1
- package/dist/plan-pricing.js +12 -14
- package/dist/plan-pricing.js.map +1 -1
- package/dist/plan-usage.d.ts +18 -18
- package/dist/plan-usage.d.ts.map +1 -1
- package/dist/plan-usage.js +19 -20
- package/dist/plan-usage.js.map +1 -1
- package/dist/preview-token.js +2 -2
- package/dist/prop-names.d.ts +5 -5
- package/dist/prop-names.d.ts.map +1 -1
- package/dist/prop-names.js +10 -10
- package/dist/prop-names.js.map +1 -1
- package/dist/prop-type-docs.js +1 -1
- package/dist/prop-types.d.ts +6 -6
- package/dist/prop-types.js +17 -17
- package/dist/prop-types.js.map +1 -1
- package/dist/props.d.ts +5 -5
- package/dist/props.js +6 -6
- package/dist/props.js.map +1 -1
- package/dist/proto-guard.js +3 -3
- package/dist/proto-guard.js.map +1 -1
- package/dist/runtime-errors.d.ts +2 -2
- package/dist/runtime-errors.js +2 -2
- package/dist/runtime-pointers.d.ts +2 -2
- package/dist/runtime-pointers.js +2 -2
- package/{schema → dist/schema}/component-manifest.v1.json +5 -5
- package/dist/secret-scan.d.ts +10 -10
- package/dist/secret-scan.d.ts.map +1 -1
- package/dist/secret-scan.js +15 -16
- package/dist/secret-scan.js.map +1 -1
- package/dist/semver.d.ts +2 -2
- package/dist/semver.js +2 -2
- package/dist/server-key.js +1 -1
- package/dist/site-manifest-keys.d.ts +11 -11
- package/dist/site-manifest-keys.d.ts.map +1 -1
- package/dist/site-manifest-keys.js +18 -18
- package/dist/site-manifest-keys.js.map +1 -1
- package/dist/site-manifest.d.ts +2 -2
- package/dist/site-manifest.js +9 -9
- package/dist/site-manifest.js.map +1 -1
- package/dist/source-archive.d.ts +13 -13
- package/dist/source-archive.js +25 -25
- package/dist/source-archive.js.map +1 -1
- package/dist/source-package-corpus.d.ts +3 -4
- package/dist/source-package-corpus.d.ts.map +1 -1
- package/dist/source-package-corpus.js +4 -6
- package/dist/source-package-corpus.js.map +1 -1
- package/dist/source-package.d.ts +18 -17
- package/dist/source-package.d.ts.map +1 -1
- package/dist/source-package.js +16 -15
- package/dist/source-package.js.map +1 -1
- package/dist/source-secrets.js +1 -1
- package/dist/ssr-cap.d.ts +1 -1
- package/dist/ssr-cap.js +4 -4
- package/dist/ssr-kv.d.ts +2 -2
- package/dist/ssr-kv.js +2 -2
- package/dist/ssr-render.d.ts +2 -2
- package/dist/ssr-render.d.ts.map +1 -1
- package/dist/ssr-render.js +3 -3
- package/dist/ssr-render.js.map +1 -1
- package/dist/ssr-version-ledger.js +3 -3
- package/dist/style-references.d.ts +2 -3
- package/dist/style-references.d.ts.map +1 -1
- package/dist/style-references.js +10 -11
- package/dist/style-references.js.map +1 -1
- package/dist/support-contact.d.ts +11 -0
- package/dist/support-contact.d.ts.map +1 -0
- package/dist/support-contact.js +11 -0
- package/dist/support-contact.js.map +1 -0
- package/dist/tag-name.d.ts +6 -6
- package/dist/tag-name.d.ts.map +1 -1
- package/dist/tag-name.js +7 -7
- package/dist/tag-name.js.map +1 -1
- package/dist/tar-writer.js +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/dist/text-codec.d.ts +2 -2
- package/dist/text-codec.js +2 -2
- package/dist/url-value.d.ts +1 -1
- package/dist/url-value.js +6 -6
- package/dist/usage-guard.d.ts +16 -16
- package/dist/usage-guard.js +15 -15
- package/dist/usage-mirror.d.ts +5 -5
- package/dist/value-check.d.ts +6 -6
- package/dist/value-check.js +21 -21
- package/dist/value-check.js.map +1 -1
- package/dist/value-patterns.js +2 -2
- package/dist/value-schema.d.ts +4 -4
- package/dist/value-schema.d.ts.map +1 -1
- package/dist/value-schema.js +5 -5
- package/dist/value-schema.js.map +1 -1
- package/dist/zod-free.d.ts +25 -24
- package/dist/zod-free.d.ts.map +1 -1
- package/dist/zod-free.js +26 -25
- package/dist/zod-free.js.map +1 -1
- package/package.json +9 -10
- package/schema/DEPLOYED +0 -12
- package/schema/published/SHA256SUMS +0 -41
- package/schema/published/build-diagnostic/v1.10.json +0 -83
- package/schema/published/build-diagnostic/v1.11.json +0 -83
- package/schema/published/build-diagnostic/v1.3.json +0 -83
- package/schema/published/build-diagnostic/v1.4.json +0 -83
- package/schema/published/build-diagnostic/v1.5.json +0 -83
- package/schema/published/build-diagnostic/v1.6.json +0 -83
- package/schema/published/build-diagnostic/v1.7.json +0 -83
- package/schema/published/build-diagnostic/v1.8.json +0 -83
- package/schema/published/build-diagnostic/v1.9.json +0 -83
- package/schema/published/component-manifest/v1.10.json +0 -1443
- package/schema/published/component-manifest/v1.11.json +0 -1443
- package/schema/published/component-manifest/v1.3.json +0 -1411
- package/schema/published/component-manifest/v1.4.json +0 -1419
- package/schema/published/component-manifest/v1.5.json +0 -1437
- package/schema/published/component-manifest/v1.6.json +0 -1437
- package/schema/published/component-manifest/v1.7.json +0 -1437
- package/schema/published/component-manifest/v1.8.json +0 -1437
- package/schema/published/component-manifest/v1.9.json +0 -1437
- package/schema/published/data-api/v1.10.json +0 -282
- package/schema/published/data-api/v1.11.json +0 -282
- package/schema/published/data-api/v1.3.json +0 -281
- package/schema/published/data-api/v1.4.json +0 -281
- package/schema/published/data-api/v1.5.json +0 -281
- package/schema/published/data-api/v1.6.json +0 -281
- package/schema/published/data-api/v1.7.json +0 -281
- package/schema/published/data-api/v1.8.json +0 -282
- package/schema/published/data-api/v1.9.json +0 -282
- package/schema/published/library-manifest/v1.10.json +0 -68
- package/schema/published/library-manifest/v1.11.json +0 -68
- package/schema/published/library-manifest/v1.5.json +0 -68
- package/schema/published/library-manifest/v1.6.json +0 -68
- package/schema/published/library-manifest/v1.7.json +0 -68
- package/schema/published/library-manifest/v1.8.json +0 -68
- package/schema/published/library-manifest/v1.9.json +0 -68
- package/schema/published/taggor-config/v1.10.json +0 -56
- package/schema/published/taggor-config/v1.11.json +0 -56
- package/schema/published/taggor-config/v1.5.json +0 -56
- package/schema/published/taggor-config/v1.6.json +0 -56
- package/schema/published/taggor-config/v1.7.json +0 -56
- package/schema/published/taggor-config/v1.8.json +0 -56
- package/schema/published/taggor-config/v1.9.json +0 -56
- /package/{schema → dist/schema}/build-diagnostic.v1.json +0 -0
- /package/{schema → dist/schema}/data-api.v1.json +0 -0
- /package/{schema → dist/schema}/library-manifest.v1.json +0 -0
- /package/{schema → dist/schema}/taggor-config.v1.json +0 -0
package/dist/value-check.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Zod-free value checks of component contract v1
|
|
2
|
+
* Zod-free value checks of component contract v1: `checkValue` (a declared value schema
|
|
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
|
|
7
|
-
* `object` props that come from attributes, properties or `<script type="application/json"
|
|
8
|
-
*
|
|
6
|
+
* The runtime cannot import Zod (its bundle budget), yet it must validate `array` and
|
|
7
|
+
* `object` props that come from attributes, properties or `<script type="application/json">`;
|
|
8
|
+
* `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
|
|
10
10
|
* undeclared keys (including an own `__proto__` made by `JSON.parse`) never reach the component.
|
|
11
11
|
* `value-check.test.ts` proves it agrees with the Zod `valueValidator(schema, "strip")` on
|
|
12
12
|
* thousands of generated schemas and values, and the format patterns are the ones Zod uses.
|
|
13
|
-
*
|
|
13
|
+
* It is safe on live values and unvalidated schemas: arrays are read by index up to a
|
|
14
14
|
* `length` read once, and a field name outside `FIELD_NAME_SHAPE` (`__proto__`) is refused.
|
|
15
|
-
*
|
|
16
|
-
*
|
|
15
|
+
* String lengths count code points, the unit of Zod and JSON Schema.
|
|
16
|
+
* It builds objects with `Object.fromEntries`, which defines own data properties
|
|
17
17
|
* (CreateDataProperty, as `Object.defineProperty` does) instead of assigning: a page that froze
|
|
18
18
|
* `Object.prototype` (SES lockdown) or put a setter on `Object.prototype.<field>` can neither make
|
|
19
19
|
* the write throw nor swallow it. Recursion follows the schema: a cyclic schema from component code
|
|
20
20
|
* (with a cyclic value) recurses until the engine's stack limit, and the `RangeError` is caught by
|
|
21
21
|
* the callers that pass unvalidated schemas (`propertyToValue`, the runtime's `emit`); a depth
|
|
22
|
-
* parameter would cost the SDK bundle about 29 B gz
|
|
23
|
-
*
|
|
22
|
+
* parameter would cost the SDK bundle about 29 B gz.
|
|
23
|
+
* Each call has a budget of visited values and string length (`too-large`), so a live
|
|
24
24
|
* value with shared references cannot make it walk and copy millions of nodes.
|
|
25
|
-
*
|
|
25
|
+
* It reads its limits as the plain constants of `limits.ts`, not through `MANIFEST_LIMITS`, so a
|
|
26
26
|
* component bundle that checks values does not carry the whole manifest limits object.
|
|
27
27
|
*/
|
|
28
28
|
import { ARRAY_MAX_ITEMS, MAX_JSON_LENGTH, STRING_MAX_LENGTH } from "./limits.js";
|
|
@@ -65,7 +65,7 @@ function matchesFormat(text, format) {
|
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
67
|
* Length of a string in Unicode code points, the one unit of every string value limit in the
|
|
68
|
-
* contract (
|
|
68
|
+
* contract (`SPEC.md` "Unidade de tamanho de string"): a surrogate pair counts as one
|
|
69
69
|
* and a lone surrogate as one, exactly as Zod's string `min`/`max` and JSON Schema's
|
|
70
70
|
* `minLength`/`maxLength` (Ajv with its default `unicode: true`) count.
|
|
71
71
|
*
|
|
@@ -74,7 +74,7 @@ function matchesFormat(text, format) {
|
|
|
74
74
|
*/
|
|
75
75
|
export function codePointLength(text) {
|
|
76
76
|
// Each well-formed pair becomes one unit; lone surrogates stay one unit each. One native pass,
|
|
77
|
-
// the smallest code for the size budget
|
|
77
|
+
// the smallest code for the size budget and fast on long BMP text.
|
|
78
78
|
return text.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "_").length;
|
|
79
79
|
}
|
|
80
80
|
function checkString(schema, value) {
|
|
@@ -118,17 +118,17 @@ function isRecord(value) {
|
|
|
118
118
|
* with a new array or object for containers (undeclared object keys dropped, like Zod's "strip"),
|
|
119
119
|
* or `{ ok: false, problem }` for the first problem (`not-allowed` for a schema `type` this release
|
|
120
120
|
* does not know, or a field name outside `FIELD_NAME_SHAPE` in a schema that was never
|
|
121
|
-
* validated). String lengths are in code points (`codePointLength
|
|
121
|
+
* validated). String lengths are in code points (`codePointLength`), as in Zod and JSON
|
|
122
122
|
* Schema. Strings without `maxLength` are capped at `MANIFEST_LIMITS.stringMaxLength`, arrays
|
|
123
123
|
* without `maxItems` at `arrayMaxItems`. Arrays are read by index from `0` to their `length`,
|
|
124
124
|
* which is read once and checked against `maxItems` first, never through `Symbol.iterator`, so a
|
|
125
125
|
* live array (own iterator, Proxy) cannot pass more items than it declares. Only own fields count:
|
|
126
|
-
* a declared field the value merely inherits is absent (
|
|
127
|
-
* by `Object.fromEntries`, never assigned
|
|
126
|
+
* a declared field the value merely inherits is absent (parity test). Fields are defined
|
|
127
|
+
* by `Object.fromEntries`, never assigned; items are appended with `push`, which only a
|
|
128
128
|
* page setter on a numeric key of `Array.prototype`/`Object.prototype` could intercept (that page
|
|
129
129
|
* breaks every array, its own included). Recursion follows the schema, which nests at most
|
|
130
130
|
* `valueSchemaDepth` levels once validated. Each call has a budget of
|
|
131
|
-
* `MANIFEST_LIMITS.maxJsonLength` work units
|
|
131
|
+
* `MANIFEST_LIMITS.maxJsonLength` work units: every visited value costs 1, a string
|
|
132
132
|
* also its UTF-16 length and an object also the number of fields its schema declares (each is
|
|
133
133
|
* read, present or not); past the budget the call stops with `too-large`. A value costs at most
|
|
134
134
|
* its JSON text length plus one per declared field it leaves out (each value takes at least one
|
|
@@ -147,7 +147,7 @@ function isRecord(value) {
|
|
|
147
147
|
* and bounded by the budget.
|
|
148
148
|
*/
|
|
149
149
|
export function checkValue(schema, value) {
|
|
150
|
-
// One budget per call
|
|
150
|
+
// One budget per call, local to it so a nested call (a page getter that sets another
|
|
151
151
|
// prop) neither resets nor spends it. A string is charged before it is checked: a text past
|
|
152
152
|
// the budget is refused without being counted, and one within it costs no more than it pays.
|
|
153
153
|
let left = MAX_JSON_LENGTH;
|
|
@@ -170,7 +170,7 @@ export function checkValue(schema, value) {
|
|
|
170
170
|
case "array": {
|
|
171
171
|
if (!Array.isArray(value))
|
|
172
172
|
return refused("wrong-type");
|
|
173
|
-
// Read once and bounded before the loop, then items by index
|
|
173
|
+
// Read once and bounded before the loop, then items by index: an own
|
|
174
174
|
// `Symbol.iterator` or an array Proxy could otherwise yield more items than the `length`
|
|
175
175
|
// checked here, or never end. A Proxy's `length` may be anything, hence the type check and
|
|
176
176
|
// the negated comparisons (NaN is refused as too long).
|
|
@@ -194,7 +194,7 @@ export function checkValue(schema, value) {
|
|
|
194
194
|
if (!isRecord(value))
|
|
195
195
|
return refused("wrong-type");
|
|
196
196
|
const required = new Set(schema.required);
|
|
197
|
-
// Collected and defined at the end
|
|
197
|
+
// Collected and defined at the end: `result[name] = …` would throw on a frozen
|
|
198
198
|
// `Object.prototype.toString` and feed a page setter on `Object.prototype[name]`.
|
|
199
199
|
const entries = [];
|
|
200
200
|
const declared = Object.entries(schema.fields);
|
|
@@ -204,7 +204,7 @@ export function checkValue(schema, value) {
|
|
|
204
204
|
return refused("too-large");
|
|
205
205
|
for (const [name, field] of declared) {
|
|
206
206
|
// A validated schema always passes; the runtime also checks against the definition's
|
|
207
|
-
// own declarations (component code
|
|
207
|
+
// own declarations (component code), where a field named `__proto__` must never
|
|
208
208
|
// reach the component. The result is an ordinary object with only declared own keys.
|
|
209
209
|
if (!FIELD_NAME_SHAPE.test(name))
|
|
210
210
|
return refused("not-allowed");
|
|
@@ -260,7 +260,7 @@ function nestingExceeds(text, limit) {
|
|
|
260
260
|
*
|
|
261
261
|
* Inputs: the text, its maximum length in UTF-16 code units (a bound on the text itself, not a
|
|
262
262
|
* value limit, so not in code points) and the maximum nesting of arrays and
|
|
263
|
-
* objects. Output: the parsed value (
|
|
263
|
+
* objects. Output: the parsed value (still unchecked against any schema: pass it to `checkValue`),
|
|
264
264
|
* or `too-long`, `too-deep` or `malformed`. Errors: none (parser errors become `malformed`).
|
|
265
265
|
* Side effects: none.
|
|
266
266
|
*/
|
package/dist/value-check.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"value-check.js","sourceRoot":"","sources":["../src/value-check.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,qBAAqB,EACrB,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAqB7B;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAAI,KAAQ;IAClC,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AAC7B,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,OAAO,CAAC,OAAqB;IAC3C,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;AAChC,CAAC;AAKD,SAAS,aAAa,CAAC,IAAY,EAAE,MAA8B;IACjE,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,SAAS;YACZ,OAAO,IAAI,CAAC;QACd,KAAK,OAAO;Y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K,GAAG,KAAK;gBAAE,OAAO,IAAI,CAAC;QACjC,CAAC;aAAM,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,IAAI;YAAE,KAAK,IAAI,CAAC,CAAC;IACxD,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,gBAAgB,CAC9B,IAAY,EACZ,SAAiB,EACjB,QAAgB;IAEhB,IAAI,IAAI,CAAC,MAAM,GAAG,SAAS;QAAE,OAAO,OAAO,CAAC,UAAU,CAAC,CAAC;IACxD,IAAI,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC;QAAE,OAAO,OAAO,CAAC,UAAU,CAAC,CAAC;IAC/D,IAAI,CAAC;QACH,OAAO,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAY,CAAC,CAAC;IAC/C,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,OAAO,CAAC,WAAW,CAAC,CAAC;IAC9B,CAAC;AACH,CAAC"}
|
package/dist/value-patterns.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* String format patterns of component contract v1
|
|
2
|
+
* String format patterns of component contract v1: ISO date, ISO date-time, e-mail and
|
|
3
3
|
* phone. Their own module so the Zod schemas (`value-schema.ts`, `props.ts`) and the Zod-free checks
|
|
4
|
-
* (`value-check.ts`) share them without importing each other (
|
|
4
|
+
* (`value-check.ts`) share them without importing each other (which avoids an import cycle).
|
|
5
5
|
* `value-check.test.ts` proves they are the patterns Zod uses.
|
|
6
6
|
*/
|
|
7
7
|
const DATE_SOURCE = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";
|
package/dist/value-schema.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Declarative value schemas of component contract v1
|
|
2
|
+
* Declarative value schemas of component contract v1.
|
|
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.
|
|
9
9
|
*
|
|
10
10
|
* `valueValidator` turns a declared value schema into a Zod validator by interpretation of the
|
|
11
11
|
* data (a `switch` over `type`), so the edge, the API and the browser validate the same way.
|
|
12
|
-
* Its Zod-free twin for the runtime is `checkValue` (value-check.ts
|
|
12
|
+
* Its Zod-free twin for the runtime is `checkValue` (value-check.ts); a test keeps the two
|
|
13
13
|
* in agreement.
|
|
14
14
|
*/
|
|
15
15
|
import * as z from "zod";
|
|
16
|
-
/** String formats the platform checks (email, url and tel come
|
|
16
|
+
/** String formats the platform checks (email, url and tel come). */
|
|
17
17
|
export declare const STRING_FORMATS: readonly ["email", "url", "tel", "date", "date-time"];
|
|
18
18
|
/** Enum value: printable text, bounded. */
|
|
19
19
|
export declare const enumValueSchema: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"value-schema.d.ts","sourceRoot":"","sources":["../src/value-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAQzB,
|
|
1
|
+
{"version":3,"file":"value-schema.d.ts","sourceRoot":"","sources":["../src/value-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAQzB,oE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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAItB,CAAC;AAEH,2CAA2C;AAC3C,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AACtD,sCAAsC;AACtC,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,iFAAiF;AACjF,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,QAAQ,CAAC;AA0B7C;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,GAAG,CAAC,CAAC,OAAO,CA6BvF"}
|
package/dist/value-schema.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Declarative value schemas of component contract v1
|
|
2
|
+
* Declarative value schemas of component contract v1.
|
|
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.
|
|
9
9
|
*
|
|
10
10
|
* `valueValidator` turns a declared value schema into a Zod validator by interpretation of the
|
|
11
11
|
* data (a `switch` over `type`), so the edge, the API and the browser validate the same way.
|
|
12
|
-
* Its Zod-free twin for the runtime is `checkValue` (value-check.ts
|
|
12
|
+
* Its Zod-free twin for the runtime is `checkValue` (value-check.ts); a test keeps the two
|
|
13
13
|
* in agreement.
|
|
14
14
|
*/
|
|
15
15
|
import * as z from "zod";
|
|
@@ -18,7 +18,7 @@ import { MANIFEST_LIMITS } from "./limits.js";
|
|
|
18
18
|
import { fieldNameSchema } from "./names.js";
|
|
19
19
|
import { isAllowedWebUrl } from "./url-value.js";
|
|
20
20
|
import { TEL_PATTERN } from "./value-patterns.js";
|
|
21
|
-
/** String formats the platform checks (email, url and tel come
|
|
21
|
+
/** String formats the platform checks (email, url and tel come). */
|
|
22
22
|
export const STRING_FORMATS = Object.freeze(["email", "url", "tel", "date", "date-time"]);
|
|
23
23
|
const lengthSchema = z.int().min(0).max(MANIFEST_LIMITS.stringMaxLength);
|
|
24
24
|
const itemsCountSchema = z.int().min(0).max(MANIFEST_LIMITS.arrayMaxItems);
|
|
@@ -169,7 +169,7 @@ function stringValidator(schema) {
|
|
|
169
169
|
case "email":
|
|
170
170
|
return z.email();
|
|
171
171
|
case "url":
|
|
172
|
-
// Same rule as a `url` prop with http and https
|
|
172
|
+
// Same rule as a `url` prop with http and https: printable ASCII, no trimming.
|
|
173
173
|
return z.string().refine((text) => isAllowedWebUrl(text), {
|
|
174
174
|
// value-validator: checks a value, not the manifest
|
|
175
175
|
error: "Invalid URL",
|
package/dist/value-schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"value-schema.js","sourceRoot":"","sources":["../src/value-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACnF,OAAO,EAAE,e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AAM;YACT,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,MAA+B,CAAC,CAAC;QACxD,KAAK,OAAO;YACV,OAAO,CAAC;iBACL,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;iBAChD,GAAG,CAAC,MAAM,CAAC,QAAQ,IAAI,CAAC,CAAC;iBACzB,GAAG,CAAC,MAAM,CAAC,QAAQ,IAAI,eAAe,CAAC,aAAa,CAAC,CAAC;QAC3D,KAAK,QAAQ,CAAC,CAAC,CAAC;YACd,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAC1C,MAAM,KAAK,GAA8B,EAAE,CAAC;YAC5C,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;gBAC1D,MAAM,SAAS,GAAG,cAAc,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;gBACrD,KAAK,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;YACtE,CAAC;YACD,OAAO,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC5E,CAAC;IACH,CAAC;AACH,CAAC"}
|
package/dist/zod-free.d.ts
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `@taggor/contract/zod-free
|
|
2
|
+
* `@taggor/contract/zod-free`: 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
|
|
6
|
-
*
|
|
7
|
-
* `migrateManifest` and the `__proto__` guard
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* the
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
5
|
+
* limits without the 23 to 33 KB gz of Zod. Everything else stays `import type`.
|
|
6
|
+
* It also exports: the contract version verdict (`checkContractVersion`, the runtime warns with
|
|
7
|
+
* it), `migrateManifest` and the `__proto__` guard; `checkStyleReferences`, the check of the parts
|
|
8
|
+
* and CSS variables a component's CSS uses against its manifest; `deepFreeze`, which the runtime
|
|
9
|
+
* applies to the event details it dispatches; the language tag pattern, the `locale` attribute
|
|
10
|
+
* name the SDK's `useLocale` reads, and the bounded path helpers its build-time `checkMessages`
|
|
11
|
+
* quotes names with; the asset types, the content address of an asset and `checkAssetUrl`, the
|
|
12
|
+
* check the SDK's `useFont` runs; the artifact key layout (`artifactKey`, `isPublicArtifactKey`),
|
|
13
|
+
* which the edge imports from here; the site key pattern and the KV key layout of the site
|
|
14
|
+
* manifest (`site-manifest-keys.ts`), which the API writes and the edge reads; the allowed-domain
|
|
15
|
+
* rules (`hostname.ts`), shared with the API so the edge's data ingest checks the `Origin` of a
|
|
16
|
+
* request with the very same code the API normalized the list with; the consent text
|
|
17
|
+
* (`consent-text.ts`), which the ingest rebuilds to check a proof's `text_hash`; the KV keys of
|
|
18
|
+
* the takedown denylist (`denylist-keys.ts`), written by the API and read by the edge; the
|
|
19
|
+
* runtime version rule and the release pointers (`runtime-pointers.ts`), written by the operator
|
|
20
|
+
* tooling and read by the edge; `allowsHostname`, the one place of the "empty list allows any
|
|
21
|
+
* domain only on staging" rule; the private preview token (`preview-token.ts`), signed by the API
|
|
22
|
+
* and verified by the edge; the metering layout of the loader hit point (`metering.ts`), written
|
|
23
|
+
* by the edge and read by the usage readers; `SITE_MANIFEST_MAX_COMPONENTS`, the most components a
|
|
24
|
+
* site manifest holds, which the loader checks its own copy against; the runtime error telemetry
|
|
25
|
+
* layout (`runtime-errors.ts`), written by the edge and read by the API; and `safeDiagnosticText`,
|
|
26
|
+
* which the portal shows API text through (no new dependency: `diagnostic-catalog.ts` imports
|
|
27
|
+
* only `freeze.ts`).
|
|
28
|
+
* The server-rendering KV layouts (cap mark, `ssr:off`, version-day ledger, server keys) stay out of this barrel, in `@taggor/contract/ssr-kv`: re-exporting them here moved the runtime's size gate by 3 B gz past its ceiling.
|
|
28
29
|
*/
|
|
29
30
|
export { CREDENTIAL_FIELD_NAME, findCredentialCollectionField, isCredentialFieldName, } from "./credential-fields.js";
|
|
30
31
|
export { CONSENT_LOCALES, consentHashInput, consentLabelText, isConsentLocale, type ConsentLocale, } from "./consent-text.js";
|
package/dist/zod-free.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zod-free.d.ts","sourceRoot":"","sources":["../src/zod-free.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"zod-free.d.ts","sourceRoot":"","sources":["../src/zod-free.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EACL,qBAAqB,EACrB,6BAA6B,EAC7B,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,KAAK,aAAa,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,g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AAiB,CAAC;AACzB,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,WAAW,GACjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,KAAK,YAAY,EACjB,KAAK,WAAW,GACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,wBAAwB,EACxB,yBAAyB,EACzB,qCAAqC,EACrC,kBAAkB,EAClB,KAAK,gBAAgB,GACtB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EACL,cAAc,EACd,eAAe,EACf,aAAa,EACb,KAAK,WAAW,EAChB,KAAK,gBAAgB,GACtB,MAAM,YAAY,CAAC"}
|
package/dist/zod-free.js
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `@taggor/contract/zod-free
|
|
2
|
+
* `@taggor/contract/zod-free`: 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
|
|
6
|
-
*
|
|
7
|
-
* `migrateManifest` and the `__proto__` guard
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* the
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
5
|
+
* limits without the 23 to 33 KB gz of Zod. Everything else stays `import type`.
|
|
6
|
+
* It also exports: the contract version verdict (`checkContractVersion`, the runtime warns with
|
|
7
|
+
* it), `migrateManifest` and the `__proto__` guard; `checkStyleReferences`, the check of the parts
|
|
8
|
+
* and CSS variables a component's CSS uses against its manifest; `deepFreeze`, which the runtime
|
|
9
|
+
* applies to the event details it dispatches; the language tag pattern, the `locale` attribute
|
|
10
|
+
* name the SDK's `useLocale` reads, and the bounded path helpers its build-time `checkMessages`
|
|
11
|
+
* quotes names with; the asset types, the content address of an asset and `checkAssetUrl`, the
|
|
12
|
+
* check the SDK's `useFont` runs; the artifact key layout (`artifactKey`, `isPublicArtifactKey`),
|
|
13
|
+
* which the edge imports from here; the site key pattern and the KV key layout of the site
|
|
14
|
+
* manifest (`site-manifest-keys.ts`), which the API writes and the edge reads; the allowed-domain
|
|
15
|
+
* rules (`hostname.ts`), shared with the API so the edge's data ingest checks the `Origin` of a
|
|
16
|
+
* request with the very same code the API normalized the list with; the consent text
|
|
17
|
+
* (`consent-text.ts`), which the ingest rebuilds to check a proof's `text_hash`; the KV keys of
|
|
18
|
+
* the takedown denylist (`denylist-keys.ts`), written by the API and read by the edge; the
|
|
19
|
+
* runtime version rule and the release pointers (`runtime-pointers.ts`), written by the operator
|
|
20
|
+
* tooling and read by the edge; `allowsHostname`, the one place of the "empty list allows any
|
|
21
|
+
* domain only on staging" rule; the private preview token (`preview-token.ts`), signed by the API
|
|
22
|
+
* and verified by the edge; the metering layout of the loader hit point (`metering.ts`), written
|
|
23
|
+
* by the edge and read by the usage readers; `SITE_MANIFEST_MAX_COMPONENTS`, the most components a
|
|
24
|
+
* site manifest holds, which the loader checks its own copy against; the runtime error telemetry
|
|
25
|
+
* layout (`runtime-errors.ts`), written by the edge and read by the API; and `safeDiagnosticText`,
|
|
26
|
+
* which the portal shows API text through (no new dependency: `diagnostic-catalog.ts` imports
|
|
27
|
+
* only `freeze.ts`).
|
|
28
|
+
* The server-rendering KV layouts (cap mark, `ssr:off`, version-day ledger, server keys) stay out of this barrel, in `@taggor/contract/ssr-kv`: re-exporting them here moved the runtime's size gate by 3 B gz past its ceiling.
|
|
28
29
|
*/
|
|
29
30
|
export { CREDENTIAL_FIELD_NAME, findCredentialCollectionField, isCredentialFieldName, } from "./credential-fields.js";
|
|
30
31
|
export { CONSENT_LOCALES, consentHashInput, consentLabelText, isConsentLocale, } from "./consent-text.js";
|
|
@@ -54,6 +55,6 @@ export { USAGE_LEVELS, USAGE_WARNING_PERCENTS, VIEW_SPIKE_RULE, detectViewSpike,
|
|
|
54
55
|
export { CATALOG_LIMIT_NAMES, LIMIT_CATALOG, catalogRows, limitSpec, } from "./limit-catalog.js";
|
|
55
56
|
export { QUOTA_MIRROR_VERSION, parseQuotaMirror, quotaMirrorKey, } from "./usage-mirror.js";
|
|
56
57
|
export { ERROR_POINT_BLOBS, RUNTIME_ERROR_KINDS, RUNTIME_ERROR_MAX_FRAMES, RUNTIME_ERROR_MESSAGE_MAX, RUNTIME_ERRORS_PER_COMPONENT_PER_PAGE, STACK_HASH_PATTERN, } from "./runtime-errors.js";
|
|
57
|
-
//
|
|
58
|
+
// The one US dollar formatter (no imports), shared by the portal, the backoffice, the CLI and the site's browser calculator.
|
|
58
59
|
export { formatUsdCents, formatUsdMicros, formatUsdRate, } from "./money.js";
|
|
59
60
|
//# sourceMappingURL=zod-free.js.map
|
package/dist/zod-free.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zod-free.js","sourceRoot":"","sources":["../src/zod-free.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"zod-free.js","sourceRoot":"","sources":["../src/zod-free.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EACL,qBAAqB,EACrB,6BAA6B,EAC7B,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,eAAe,E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gBAAgB,GAGjB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,aAAa,GAId,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,YAAY,EACZ,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,SAAS,EACT,aAAa,EACb,WAAW,EACX,UAAU,EACV,WAAW,EACX,YAAY,GAMb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,SAAS,GASV,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,GAGf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,wBAAwB,EACxB,yBAAyB,EACzB,qCAAqC,EACrC,kBAAkB,GAEnB,MAAM,qBAAqB,CAAC;AAE7B,6HAA6H;AAC7H,OAAO,EACL,cAAc,EACd,eAAe,EACf,aAAa,GAGd,MAAM,YAAY,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taggor/contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Single source (Zod) of the component manifest, props schema, events and data API; generates JSON Schema and types.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"taggor",
|
|
@@ -45,15 +45,14 @@
|
|
|
45
45
|
"types": "./dist/semver.d.ts",
|
|
46
46
|
"default": "./dist/semver.js"
|
|
47
47
|
},
|
|
48
|
-
"./schema/component-manifest.v1.json": "./schema/component-manifest.v1.json",
|
|
49
|
-
"./schema/library-manifest.v1.json": "./schema/library-manifest.v1.json",
|
|
50
|
-
"./schema/taggor-config.v1.json": "./schema/taggor-config.v1.json",
|
|
51
|
-
"./schema/data-api.v1.json": "./schema/data-api.v1.json",
|
|
52
|
-
"./schema/build-diagnostic.v1.json": "./schema/build-diagnostic.v1.json"
|
|
48
|
+
"./schema/component-manifest.v1.json": "./dist/schema/component-manifest.v1.json",
|
|
49
|
+
"./schema/library-manifest.v1.json": "./dist/schema/library-manifest.v1.json",
|
|
50
|
+
"./schema/taggor-config.v1.json": "./dist/schema/taggor-config.v1.json",
|
|
51
|
+
"./schema/data-api.v1.json": "./dist/schema/data-api.v1.json",
|
|
52
|
+
"./schema/build-diagnostic.v1.json": "./dist/schema/build-diagnostic.v1.json"
|
|
53
53
|
},
|
|
54
54
|
"files": [
|
|
55
|
-
"dist"
|
|
56
|
-
"schema"
|
|
55
|
+
"dist"
|
|
57
56
|
],
|
|
58
57
|
"dependencies": {
|
|
59
58
|
"zod": "4.6.7"
|
|
@@ -71,12 +70,12 @@
|
|
|
71
70
|
"vue-tsc": "3.3.13"
|
|
72
71
|
},
|
|
73
72
|
"scripts": {
|
|
74
|
-
"build": "tsc -b tsconfig.build.json",
|
|
73
|
+
"build": "tsc -b tsconfig.build.json && node ../../scripts/release/strip-internal-refs.ts --copy --shallow schema dist/schema",
|
|
75
74
|
"typecheck": "tsc -p tsconfig.json",
|
|
76
75
|
"lint": "eslint . --max-warnings 0",
|
|
77
76
|
"test": "vitest run",
|
|
78
77
|
"test:coverage": "vitest run --coverage",
|
|
79
|
-
"gen": "tsc -b tsconfig.build.json && node scripts/gen.ts",
|
|
78
|
+
"gen": "tsc -b tsconfig.build.json && node scripts/gen.ts && node ../../scripts/release/strip-internal-refs.ts --copy --shallow schema dist/schema",
|
|
80
79
|
"test:oracle": "vitest run --config vitest.oracle.config.js"
|
|
81
80
|
}
|
|
82
81
|
}
|
package/schema/DEPLOYED
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# The contract versions https://taggor.dev/schema/ serves (ADR 0044, item e; TAG-2534). One <major>.<minor>
|
|
2
|
-
# per line. A listed version's lines in published/SHA256SUMS never change or vanish
|
|
3
|
-
# (scripts/snapshot-seal-check.ts); this marker only grows. Not generated: the deploy ticket writes it,
|
|
4
|
-
# and each new minor joins it in the PR of the deploy that serves it.
|
|
5
|
-
1.3
|
|
6
|
-
1.4
|
|
7
|
-
1.5
|
|
8
|
-
1.6
|
|
9
|
-
1.7
|
|
10
|
-
1.8
|
|
11
|
-
1.9
|
|
12
|
-
1.10
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
8bc4b09956e38eb1c1a2a61bb979d4ee24d3a2c98863ebba5ea2246a2bfaa01f build-diagnostic/v1.10.json
|
|
2
|
-
8bc4b09956e38eb1c1a2a61bb979d4ee24d3a2c98863ebba5ea2246a2bfaa01f build-diagnostic/v1.11.json
|
|
3
|
-
1017344c69957decb096dcda6ef79268e86f735673e28f191a334b58581cdc62 build-diagnostic/v1.3.json
|
|
4
|
-
1017344c69957decb096dcda6ef79268e86f735673e28f191a334b58581cdc62 build-diagnostic/v1.4.json
|
|
5
|
-
1017344c69957decb096dcda6ef79268e86f735673e28f191a334b58581cdc62 build-diagnostic/v1.5.json
|
|
6
|
-
6031aeb204f6b2bdca7310ee7183867bdf3a5aa55330710eae6f88961489c862 build-diagnostic/v1.6.json
|
|
7
|
-
8bc4b09956e38eb1c1a2a61bb979d4ee24d3a2c98863ebba5ea2246a2bfaa01f build-diagnostic/v1.7.json
|
|
8
|
-
8bc4b09956e38eb1c1a2a61bb979d4ee24d3a2c98863ebba5ea2246a2bfaa01f build-diagnostic/v1.8.json
|
|
9
|
-
8bc4b09956e38eb1c1a2a61bb979d4ee24d3a2c98863ebba5ea2246a2bfaa01f build-diagnostic/v1.9.json
|
|
10
|
-
a9cb5b6eb700b996de9794565bbeb31b13c4cf748d374b3b34b1236b331c0134 component-manifest/v1.10.json
|
|
11
|
-
f4f6e315a0670d332ab2795b59fd16f5f4f2f987157a1b72330690f6abdc282c component-manifest/v1.11.json
|
|
12
|
-
8c372a164e0ff9f54d901686046cf349e11a95a7bf8e3586d616b7116eff3a02 component-manifest/v1.3.json
|
|
13
|
-
1111ec93597932d264b99d5998b37531db9aceb429f67a4b855754d733d9b3c1 component-manifest/v1.4.json
|
|
14
|
-
b9e31ca181bd1660c4ff942d4dd7b9cb4d14aed61ca73985eb184babbc031328 component-manifest/v1.5.json
|
|
15
|
-
4e963ba4d38fdf642fed1834535d7412a20518df8cf1655757acab20e5827afe component-manifest/v1.6.json
|
|
16
|
-
6652d6ef5d48cb8ae3e4bf7ef22590834a23e778dc18a7ea48ec549fbc177dce component-manifest/v1.7.json
|
|
17
|
-
5c14873c0874b84b7e2f3dd25b4f1f6065d8a39ffefd040220993932d702fd92 component-manifest/v1.8.json
|
|
18
|
-
840784b81019f80e5cd32def044a1f52ab76feee0f5d15a45ca0433d1a4a2e7f component-manifest/v1.9.json
|
|
19
|
-
5938b62b60130b6a9db92dd4723351a16754d7067b1d8013967c52b7a25a91d5 data-api/v1.10.json
|
|
20
|
-
5938b62b60130b6a9db92dd4723351a16754d7067b1d8013967c52b7a25a91d5 data-api/v1.11.json
|
|
21
|
-
43f4214b7ecc529b439f491cf9bcbe389d2c4a057c913c6249597237bd02e41a data-api/v1.3.json
|
|
22
|
-
43f4214b7ecc529b439f491cf9bcbe389d2c4a057c913c6249597237bd02e41a data-api/v1.4.json
|
|
23
|
-
43f4214b7ecc529b439f491cf9bcbe389d2c4a057c913c6249597237bd02e41a data-api/v1.5.json
|
|
24
|
-
9a1777c9afa1e0dd696684669073fc0affb1aa43bbd1a57888cd4c33c2f08fa8 data-api/v1.6.json
|
|
25
|
-
9a1777c9afa1e0dd696684669073fc0affb1aa43bbd1a57888cd4c33c2f08fa8 data-api/v1.7.json
|
|
26
|
-
5938b62b60130b6a9db92dd4723351a16754d7067b1d8013967c52b7a25a91d5 data-api/v1.8.json
|
|
27
|
-
5938b62b60130b6a9db92dd4723351a16754d7067b1d8013967c52b7a25a91d5 data-api/v1.9.json
|
|
28
|
-
d191a25aae66557b61402aabec6e39fbda8446d6960a8b6d08531fe5c2ffbab2 library-manifest/v1.10.json
|
|
29
|
-
d191a25aae66557b61402aabec6e39fbda8446d6960a8b6d08531fe5c2ffbab2 library-manifest/v1.11.json
|
|
30
|
-
450415e380284196d462c32fdaad322a1b7a9342b4dfb8c8067548a354ee2b21 library-manifest/v1.5.json
|
|
31
|
-
d191a25aae66557b61402aabec6e39fbda8446d6960a8b6d08531fe5c2ffbab2 library-manifest/v1.6.json
|
|
32
|
-
d191a25aae66557b61402aabec6e39fbda8446d6960a8b6d08531fe5c2ffbab2 library-manifest/v1.7.json
|
|
33
|
-
d191a25aae66557b61402aabec6e39fbda8446d6960a8b6d08531fe5c2ffbab2 library-manifest/v1.8.json
|
|
34
|
-
d191a25aae66557b61402aabec6e39fbda8446d6960a8b6d08531fe5c2ffbab2 library-manifest/v1.9.json
|
|
35
|
-
d6dfadf666e95091af8f98b778afd67c2452faac434bf93bffb8718ca7fbfd2a taggor-config/v1.10.json
|
|
36
|
-
d6dfadf666e95091af8f98b778afd67c2452faac434bf93bffb8718ca7fbfd2a taggor-config/v1.11.json
|
|
37
|
-
2ecb908dcec588907d475903876882ce1860fe84e1597badfbeb08a0de6331b4 taggor-config/v1.5.json
|
|
38
|
-
8f6f48e4c369a97c54eaa844215a54ce7b4b711382fef7b9030ef64396e0d5a1 taggor-config/v1.6.json
|
|
39
|
-
d6dfadf666e95091af8f98b778afd67c2452faac434bf93bffb8718ca7fbfd2a taggor-config/v1.7.json
|
|
40
|
-
d6dfadf666e95091af8f98b778afd67c2452faac434bf93bffb8718ca7fbfd2a taggor-config/v1.8.json
|
|
41
|
-
d6dfadf666e95091af8f98b778afd67c2452faac434bf93bffb8718ca7fbfd2a taggor-config/v1.9.json
|