@orcareplay/schema 0.2.5-main.gd97beed → 0.3.1-main.g2d7bd68

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.
@@ -13,6 +13,18 @@ export declare const DIVERGENCE_LEVELS: readonly ["minor", "major"];
13
13
  export declare const MATCH_RUNGS: readonly [1, 2, 3, 4];
14
14
  /** Payloads larger than this (serialized bytes) MUST spill to a blob. Spec §2.2. */
15
15
  export declare const INLINE_PAYLOAD_LIMIT = 4096;
16
+ /**
17
+ * The instants a `date-time` `ts` can write down: `0000-01-01T00:00:00.000Z` and
18
+ * `9999-12-31T23:59:59.999Z`.
19
+ *
20
+ * `Date.parse` accepts far more than this — `+275760-09-13T00:00:00Z` parses, and
21
+ * `toISOString` writes it back with a six-digit year, which the format rejects. Every reader that
22
+ * hands the drain an instant off a file another process wrote has to bound it, because the throw
23
+ * lands inside `TraceWriter.append`, where the trace is being sealed. Three of them do; this is
24
+ * the copy they share, since what the bound describes is this schema rather than any one of them.
25
+ */
26
+ export declare const EARLIEST_TS_MS = -62167219200000;
27
+ export declare const LATEST_TS_MS = 253402300799999;
16
28
  export declare const RUN_ID_PATTERN: RegExp;
17
29
  export declare const BLOB_REF_PATTERN: RegExp;
18
30
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,cAAc,UAAU,CAAC;AAEtC,eAAO,MAAM,WAAW,6XA0Bd,CAAC;AAEX,eAAO,MAAM,MAAM,2EAA4E,CAAC;AAEhG,eAAO,MAAM,iBAAiB,6BAA8B,CAAC;AAE7D,yEAAyE;AACzE,eAAO,MAAM,WAAW,uBAAwB,CAAC;AAEjD,oFAAoF;AACpF,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC,eAAO,MAAM,cAAc,QAAyB,CAAC;AACrD,eAAO,MAAM,gBAAgB,QAA0B,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,cAAc,UAAU,CAAC;AAEtC,eAAO,MAAM,WAAW,6XA0Bd,CAAC;AAEX,eAAO,MAAM,MAAM,2EAA4E,CAAC;AAEhG,eAAO,MAAM,iBAAiB,6BAA8B,CAAC;AAE7D,yEAAyE;AACzE,eAAO,MAAM,WAAW,uBAAwB,CAAC;AAEjD,oFAAoF;AACpF,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,kBAAsB,CAAC;AAClD,eAAO,MAAM,YAAY,kBAAsB,CAAC;AAEhD,eAAO,MAAM,cAAc,QAAyB,CAAC;AACrD,eAAO,MAAM,gBAAgB,QAA0B,CAAC"}
package/dist/constants.js CHANGED
@@ -39,6 +39,18 @@ export const DIVERGENCE_LEVELS = ['minor', 'major'];
39
39
  export const MATCH_RUNGS = [1, 2, 3, 4];
40
40
  /** Payloads larger than this (serialized bytes) MUST spill to a blob. Spec §2.2. */
41
41
  export const INLINE_PAYLOAD_LIMIT = 4096;
42
+ /**
43
+ * The instants a `date-time` `ts` can write down: `0000-01-01T00:00:00.000Z` and
44
+ * `9999-12-31T23:59:59.999Z`.
45
+ *
46
+ * `Date.parse` accepts far more than this — `+275760-09-13T00:00:00Z` parses, and
47
+ * `toISOString` writes it back with a six-digit year, which the format rejects. Every reader that
48
+ * hands the drain an instant off a file another process wrote has to bound it, because the throw
49
+ * lands inside `TraceWriter.append`, where the trace is being sealed. Three of them do; this is
50
+ * the copy they share, since what the bound describes is this schema rather than any one of them.
51
+ */
52
+ export const EARLIEST_TS_MS = -62_167_219_200_000;
53
+ export const LATEST_TS_MS = 253_402_300_799_999;
42
54
  export const RUN_ID_PATTERN = /^run_[0-9a-f]{6,32}$/;
43
55
  export const BLOB_REF_PATTERN = /^sha256:[0-9a-f]{64}$/;
44
56
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC;AAEtC,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,WAAW;IACX,SAAS;IACT,eAAe;IACf,gBAAgB;IAChB,WAAW;IACX,aAAa;IACb,aAAa;IACb,cAAc;IACd,YAAY;IACZ,cAAc;IACd,aAAa;IACb,WAAW;IACX,aAAa;IACb,cAAc;IACd,mBAAmB;IACnB,OAAO;IACP,YAAY;IACZ,YAAY;IACZ,MAAM;IACN,aAAa;IACb,eAAe;IACf,iBAAiB;IACjB,gBAAgB;IAChB,kBAAkB;IAClB,MAAM;CACE,CAAC;AAEX,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAU,CAAC;AAEhG,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE,OAAO,CAAU,CAAC;AAE7D,yEAAyE;AACzE,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAU,CAAC;AAEjD,oFAAoF;AACpF,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC;AAEzC,MAAM,CAAC,MAAM,cAAc,GAAG,sBAAsB,CAAC;AACrD,MAAM,CAAC,MAAM,gBAAgB,GAAG,uBAAuB,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC;AAEtC,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,WAAW;IACX,SAAS;IACT,eAAe;IACf,gBAAgB;IAChB,WAAW;IACX,aAAa;IACb,aAAa;IACb,cAAc;IACd,YAAY;IACZ,cAAc;IACd,aAAa;IACb,WAAW;IACX,aAAa;IACb,cAAc;IACd,mBAAmB;IACnB,OAAO;IACP,YAAY;IACZ,YAAY;IACZ,MAAM;IACN,aAAa;IACb,eAAe;IACf,iBAAiB;IACjB,gBAAgB;IAChB,kBAAkB;IAClB,MAAM;CACE,CAAC;AAEX,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAU,CAAC;AAEhG,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE,OAAO,CAAU,CAAC;AAE7D,yEAAyE;AACzE,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAU,CAAC;AAEjD,oFAAoF;AACpF,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC;AAEzC;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,kBAAkB,CAAC;AAClD,MAAM,CAAC,MAAM,YAAY,GAAG,mBAAmB,CAAC;AAEhD,MAAM,CAAC,MAAM,cAAc,GAAG,sBAAsB,CAAC;AACrD,MAAM,CAAC,MAAM,gBAAgB,GAAG,uBAAuB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orcareplay/schema",
3
- "version": "0.2.5-main.gd97beed",
3
+ "version": "0.3.1-main.g2d7bd68",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {