@prisma/orm-framework 8.0.0-rc.22-dev.4 → 8.0.0-rc.22-dev.6

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.
Files changed (34) hide show
  1. package/dist/date-BMPdGNoB.d.mts +11 -0
  2. package/dist/date-BMPdGNoB.d.mts.map +1 -0
  3. package/dist/date-CyNBds9r.mjs +19 -0
  4. package/dist/date-CyNBds9r.mjs.map +1 -0
  5. package/dist/duration-BqxS5qWq.mjs +16 -0
  6. package/dist/duration-BqxS5qWq.mjs.map +1 -0
  7. package/dist/duration-cFUtCY2y.d.mts +13 -0
  8. package/dist/duration-cFUtCY2y.d.mts.map +1 -0
  9. package/dist/now-BAgn1BJy.d.mts +33 -0
  10. package/dist/now-BAgn1BJy.d.mts.map +1 -0
  11. package/dist/now-rRujKrwj.mjs +83 -0
  12. package/dist/now-rRujKrwj.mjs.map +1 -0
  13. package/dist/temporal-BlPzxzji.mjs +22 -0
  14. package/dist/temporal-BlPzxzji.mjs.map +1 -0
  15. package/dist/temporal-ByipDkUQ-BSRSKsqk.d.mts +15 -0
  16. package/dist/temporal-ByipDkUQ-BSRSKsqk.d.mts.map +1 -0
  17. package/dist/temporal-DIeQx56W.d.mts +1 -0
  18. package/dist/temporal-text-CRbkPKoz.d.mts +41 -0
  19. package/dist/temporal-text-CRbkPKoz.d.mts.map +1 -0
  20. package/dist/temporal-text-DTDPzvc_.mjs +51 -0
  21. package/dist/temporal-text-DTDPzvc_.mjs.map +1 -0
  22. package/dist/type-implementations.d.mts +7 -0
  23. package/dist/type-implementations.mjs +6 -0
  24. package/dist/type-implementations__date.d.mts +2 -0
  25. package/dist/type-implementations__date.mjs +2 -0
  26. package/dist/type-implementations__duration.d.mts +2 -0
  27. package/dist/type-implementations__duration.mjs +2 -0
  28. package/dist/type-implementations__now.d.mts +2 -0
  29. package/dist/type-implementations__now.mjs +2 -0
  30. package/dist/type-implementations__temporal-text.d.mts +2 -0
  31. package/dist/type-implementations__temporal-text.mjs +2 -0
  32. package/dist/type-implementations__temporal.d.mts +3 -0
  33. package/dist/type-implementations__temporal.mjs +2 -0
  34. package/package.json +23 -15
@@ -0,0 +1,11 @@
1
+ //#region ../../../3-targets/0-shared/type-implementations/dist/date.d.mts
2
+ //#region src/date.d.ts
3
+ /** Whether `value` is a `Date` that holds an instant, not an Invalid Date. */
4
+ declare function isValidDate(value: unknown): value is Date;
5
+ /** Whether ISO text has nonzero digits below a millisecond, which a `Date` drops. */
6
+ declare function hasDigitsBelowAMillisecond(text: string): boolean;
7
+ /** `value` in UTC as `Date.toISOString` writes it, or `undefined` for an Invalid Date or one before `earliestMilliseconds`. */
8
+ declare function utcIsoTextOf(value: Date, earliestMilliseconds: number): string | undefined;
9
+ //#endregion
10
+ export { isValidDate as n, utcIsoTextOf as r, hasDigitsBelowAMillisecond as t };
11
+ //# sourceMappingURL=date-BMPdGNoB.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-BMPdGNoB.d.mts","names":[],"sources":["../../../../3-targets/0-shared/type-implementations/dist/date.d.mts"],"mappings":";;;iBAEiB,YAAY,iBAAiB,SAAS;;iBAEtC,2BAA2B;;iBAE3B,aAAa,OAAO,MAAM"}
@@ -0,0 +1,19 @@
1
+ //#region ../../../3-targets/0-shared/type-implementations/dist/date.mjs
2
+ /** Whether `value` is a `Date` that holds an instant, not an Invalid Date. */
3
+ function isValidDate(value) {
4
+ return value instanceof Date && Number.isFinite(value.getTime());
5
+ }
6
+ /** Whether ISO text has nonzero digits below a millisecond, which a `Date` drops. */
7
+ function hasDigitsBelowAMillisecond(text) {
8
+ return /[1-9]/.test(/\.(\d+)/.exec(text)?.[1]?.slice(3) ?? "");
9
+ }
10
+ /** `value` in UTC as `Date.toISOString` writes it, or `undefined` for an Invalid Date or one before `earliestMilliseconds`. */
11
+ function utcIsoTextOf(value, earliestMilliseconds) {
12
+ const milliseconds = value.getTime();
13
+ if (!Number.isFinite(milliseconds) || milliseconds < earliestMilliseconds) return void 0;
14
+ return value.toISOString();
15
+ }
16
+ //#endregion
17
+ export { isValidDate as n, utcIsoTextOf as r, hasDigitsBelowAMillisecond as t };
18
+
19
+ //# sourceMappingURL=date-CyNBds9r.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-CyNBds9r.mjs","names":[],"sources":["../../../../3-targets/0-shared/type-implementations/dist/date.mjs"],"sourcesContent":["//#region src/date.ts\n/** Whether `value` is a `Date` that holds an instant, not an Invalid Date. */\nfunction isValidDate(value) {\n\treturn value instanceof Date && Number.isFinite(value.getTime());\n}\n/** Whether ISO text has nonzero digits below a millisecond, which a `Date` drops. */\nfunction hasDigitsBelowAMillisecond(text) {\n\treturn /[1-9]/.test(/\\.(\\d+)/.exec(text)?.[1]?.slice(3) ?? \"\");\n}\n/** `value` in UTC as `Date.toISOString` writes it, or `undefined` for an Invalid Date or one before `earliestMilliseconds`. */\nfunction utcIsoTextOf(value, earliestMilliseconds) {\n\tconst milliseconds = value.getTime();\n\tif (!Number.isFinite(milliseconds) || milliseconds < earliestMilliseconds) return void 0;\n\treturn value.toISOString();\n}\n//#endregion\nexport { hasDigitsBelowAMillisecond, isValidDate, utcIsoTextOf };\n\n//# sourceMappingURL=date.mjs.map"],"mappings":";;AAEA,SAAS,YAAY,OAAO;CAC3B,OAAO,iBAAiB,QAAQ,OAAO,SAAS,MAAM,QAAQ,CAAC;AAChE;;AAEA,SAAS,2BAA2B,MAAM;CACzC,OAAO,QAAQ,KAAK,UAAU,KAAK,IAAI,CAAC,GAAG,EAAE,EAAE,MAAM,CAAC,KAAK,EAAE;AAC9D;;AAEA,SAAS,aAAa,OAAO,sBAAsB;CAClD,MAAM,eAAe,MAAM,QAAQ;CACnC,IAAI,CAAC,OAAO,SAAS,YAAY,KAAK,eAAe,sBAAsB,OAAO,KAAK;CACvF,OAAO,MAAM,YAAY;AAC1B"}
@@ -0,0 +1,16 @@
1
+ //#region ../../../3-targets/0-shared/type-implementations/dist/duration.mjs
2
+ /**
3
+ * An ISO 8601 duration: `P`, then years, months and days, then `T` and hours, minutes and seconds. Each component is optional, but at least one follows `P` and at least one follows `T`. Each component may carry a minus sign, and seconds may have a fraction. Weeks are not read.
4
+ */
5
+ const ISO_DURATION = /^P(?!$)(-?\d+Y)?(-?\d+M)?(-?\d+D)?(?:T(?!$)(-?\d+H)?(-?\d+M)?(-?\d+(?:\.\d+)?S)?)?$/;
6
+ const UNSIGNED_DATE_PART = String.raw`(\d+Y)?(\d+M)?(\d+W)?(\d+D)?`;
7
+ const UNSIGNED_TIME_PART = String.raw`(?:T(?!$)(\d+H)?(\d+M)?(\d+(?:\.\d+)?S)?)?`;
8
+ const COMPONENT_SIGNED = String.raw`P(?!$)(-?\d+Y)?(-?\d+M)?(-?\d+W)?(-?\d+D)?(?:T(?!$)(-?\d+H)?(-?\d+M)?(-?\d+(?:\.\d+)?S)?)?`;
9
+ /**
10
+ * An ISO 8601 duration in the forms its writers produce: what `Temporal.Duration#toString()` writes, with one sign before `P` and weeks, as in `-P1W2D`, and what {@link ISO_DURATION} matches, with a sign on each component. A sign before `P` and another on a component is refused.
11
+ */
12
+ const ISO_DURATION_AS_WRITTEN = new RegExp(`^(?:[+-]P(?!$)${UNSIGNED_DATE_PART}${UNSIGNED_TIME_PART}|${COMPONENT_SIGNED})$`);
13
+ //#endregion
14
+ export { ISO_DURATION_AS_WRITTEN as n, ISO_DURATION as t };
15
+
16
+ //# sourceMappingURL=duration-BqxS5qWq.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"duration-BqxS5qWq.mjs","names":[],"sources":["../../../../3-targets/0-shared/type-implementations/dist/duration.mjs"],"sourcesContent":["//#region src/duration.ts\n/**\n* An ISO 8601 duration: `P`, then years, months and days, then `T` and hours, minutes and seconds. Each component is optional, but at least one follows `P` and at least one follows `T`. Each component may carry a minus sign, and seconds may have a fraction. Weeks are not read.\n*/\nconst ISO_DURATION = /^P(?!$)(-?\\d+Y)?(-?\\d+M)?(-?\\d+D)?(?:T(?!$)(-?\\d+H)?(-?\\d+M)?(-?\\d+(?:\\.\\d+)?S)?)?$/;\nconst UNSIGNED_DATE_PART = String.raw`(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?`;\nconst UNSIGNED_TIME_PART = String.raw`(?:T(?!$)(\\d+H)?(\\d+M)?(\\d+(?:\\.\\d+)?S)?)?`;\nconst COMPONENT_SIGNED = String.raw`P(?!$)(-?\\d+Y)?(-?\\d+M)?(-?\\d+W)?(-?\\d+D)?(?:T(?!$)(-?\\d+H)?(-?\\d+M)?(-?\\d+(?:\\.\\d+)?S)?)?`;\n/**\n* An ISO 8601 duration in the forms its writers produce: what `Temporal.Duration#toString()` writes, with one sign before `P` and weeks, as in `-P1W2D`, and what {@link ISO_DURATION} matches, with a sign on each component. A sign before `P` and another on a component is refused.\n*/\nconst ISO_DURATION_AS_WRITTEN = new RegExp(`^(?:[+-]P(?!$)${UNSIGNED_DATE_PART}${UNSIGNED_TIME_PART}|${COMPONENT_SIGNED})$`);\n//#endregion\nexport { ISO_DURATION, ISO_DURATION_AS_WRITTEN };\n\n//# sourceMappingURL=duration.mjs.map"],"mappings":";;;;AAIA,MAAM,eAAe;AACrB,MAAM,qBAAqB,OAAO,GAAG;AACrC,MAAM,qBAAqB,OAAO,GAAG;AACrC,MAAM,mBAAmB,OAAO,GAAG;;;;AAInC,MAAM,0BAA0B,IAAI,OAAO,iBAAiB,qBAAqB,mBAAmB,GAAG,iBAAiB,GAAG"}
@@ -0,0 +1,13 @@
1
+ //#region ../../../3-targets/0-shared/type-implementations/dist/duration.d.mts
2
+ //#region src/duration.d.ts
3
+ /**
4
+ * An ISO 8601 duration: `P`, then years, months and days, then `T` and hours, minutes and seconds. Each component is optional, but at least one follows `P` and at least one follows `T`. Each component may carry a minus sign, and seconds may have a fraction. Weeks are not read.
5
+ */
6
+ declare const ISO_DURATION: RegExp;
7
+ /**
8
+ * An ISO 8601 duration in the forms its writers produce: what `Temporal.Duration#toString()` writes, with one sign before `P` and weeks, as in `-P1W2D`, and what {@link ISO_DURATION} matches, with a sign on each component. A sign before `P` and another on a component is refused.
9
+ */
10
+ declare const ISO_DURATION_AS_WRITTEN: RegExp;
11
+ //#endregion
12
+ export { ISO_DURATION_AS_WRITTEN as n, ISO_DURATION as t };
13
+ //# sourceMappingURL=duration-cFUtCY2y.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"duration-cFUtCY2y.d.mts","names":[],"sources":["../../../../3-targets/0-shared/type-implementations/dist/duration.d.mts"],"mappings":";;;;;cAIc,cAAc;;;;cAId,yBAAyB"}
@@ -0,0 +1,33 @@
1
+ import { t as TemporalImplementation } from "./temporal-ByipDkUQ-BSRSKsqk.mjs";
2
+ import { Temporal } from "temporal-spec";
3
+ //#region ../../../3-targets/0-shared/type-implementations/dist/now.d.mts
4
+ //#region src/now.d.ts
5
+ /**
6
+ * The ids of the "now" generators, as contracts store them, and the values they produce. Each id names the value, not a database type, so every target can store it. Every value reads the clock through `Date.now()` and is in UTC. A value with a time rounds down to the fraction digits it is given, so the column stores the value as written. The text values are ISO 8601, with the fraction written in the {@link FractionForm} the target stores.
7
+ */
8
+ declare const INSTANT_NOW_GENERATOR_ID: "instantNow";
9
+ declare const PLAIN_DATE_TIME_NOW_GENERATOR_ID: "plainDateTimeNow";
10
+ declare const PLAIN_DATE_NOW_GENERATOR_ID: "plainDateNow";
11
+ declare const PLAIN_TIME_NOW_GENERATOR_ID: "plainTimeNow";
12
+ declare const INSTANT_STRING_NOW_GENERATOR_ID: "instantStringNow";
13
+ declare const DATE_STRING_NOW_GENERATOR_ID: "dateStringNow";
14
+ declare const TIME_STRING_NOW_GENERATOR_ID: "timeStringNow";
15
+ /** How a text value writes its fraction of a second: `trimmed` drops trailing zeros, and the point when no digit is left; `fixed` writes every digit it is given. */
16
+ type FractionForm = 'trimmed' | 'fixed';
17
+ type GeneratorParams = Readonly<Record<string, unknown>> | undefined;
18
+ /** The generator's `precision` param, else `maxFractionDigits`. */
19
+ declare function fractionDigitsOf(params: GeneratorParams, maxFractionDigits: number): number;
20
+ declare function instantNow(temporal: TemporalImplementation, fractionDigits: number): Temporal.Instant;
21
+ declare function plainDateTimeNow(temporal: TemporalImplementation, fractionDigits: number): Temporal.PlainDateTime;
22
+ declare function plainDateNow(temporal: TemporalImplementation): Temporal.PlainDate;
23
+ declare function plainTimeNow(temporal: TemporalImplementation, fractionDigits: number): Temporal.PlainTime;
24
+ /** The current UTC date and time, as ISO 8601 text without an offset. */
25
+ declare function dateTimeStringNow(fractionDigits: number, form: FractionForm): string;
26
+ /** The current instant, as ISO 8601 text in UTC. */
27
+ declare function instantStringNow(fractionDigits: number, form: FractionForm): string;
28
+ declare function dateStringNow(): string;
29
+ /** The current UTC time of day, as ISO 8601 text. */
30
+ declare function timeStringNow(fractionDigits: number, form: FractionForm): string;
31
+ //#endregion
32
+ export { timeStringNow as _, PLAIN_DATE_NOW_GENERATOR_ID as a, TIME_STRING_NOW_GENERATOR_ID as c, fractionDigitsOf as d, instantNow as f, plainTimeNow as g, plainDateTimeNow as h, INSTANT_STRING_NOW_GENERATOR_ID as i, dateStringNow as l, plainDateNow as m, GeneratorParams as n, PLAIN_DATE_TIME_NOW_GENERATOR_ID as o, instantStringNow as p, INSTANT_NOW_GENERATOR_ID as r, PLAIN_TIME_NOW_GENERATOR_ID as s, DATE_STRING_NOW_GENERATOR_ID as t, dateTimeStringNow as u };
33
+ //# sourceMappingURL=now-BAgn1BJy.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"now-BAgn1BJy.d.mts","names":[],"sources":["../../../../3-targets/0-shared/type-implementations/dist/now.d.mts"],"mappings":";;;;;;;cAMc;cACA;cACA;cACA;cACA;cACA;cACA;;KAET;KACA,kBAAkB,SAAS;;iBAEf,iBAAiB,QAAQ,iBAAiB;iBAC1C,WAAW,UAAU,wBAAwB,yBAAyB,SAAS;iBAC/E,iBAAiB,UAAU,wBAAwB,yBAAyB,SAAS;iBACrF,aAAa,UAAU,yBAAyB,SAAS;iBACzD,aAAa,UAAU,wBAAwB,yBAAyB,SAAS;;iBAEjF,kBAAkB,wBAAwB,MAAM;;iBAEhD,iBAAiB,wBAAwB,MAAM;iBAC/C;;iBAEA,cAAc,wBAAwB,MAAM"}
@@ -0,0 +1,83 @@
1
+ //#region ../../../3-targets/0-shared/type-implementations/dist/now.mjs
2
+ /**
3
+ * The ids of the "now" generators, as contracts store them, and the values they produce. Each id names the value, not a database type, so every target can store it. Every value reads the clock through `Date.now()` and is in UTC. A value with a time rounds down to the fraction digits it is given, so the column stores the value as written. The text values are ISO 8601, with the fraction written in the {@link FractionForm} the target stores.
4
+ */
5
+ const INSTANT_NOW_GENERATOR_ID = "instantNow";
6
+ const PLAIN_DATE_TIME_NOW_GENERATOR_ID = "plainDateTimeNow";
7
+ const PLAIN_DATE_NOW_GENERATOR_ID = "plainDateNow";
8
+ const PLAIN_TIME_NOW_GENERATOR_ID = "plainTimeNow";
9
+ const INSTANT_STRING_NOW_GENERATOR_ID = "instantStringNow";
10
+ const DATE_STRING_NOW_GENERATOR_ID = "dateStringNow";
11
+ const TIME_STRING_NOW_GENERATOR_ID = "timeStringNow";
12
+ const UTC_OFFSET = "Z";
13
+ const MILLISECOND_DIGITS = 3;
14
+ /** The generator's `precision` param, else `maxFractionDigits`. */
15
+ function fractionDigitsOf(params, maxFractionDigits) {
16
+ const precision = params?.["precision"];
17
+ return typeof precision === "number" ? precision : maxFractionDigits;
18
+ }
19
+ function utcNow(fractionDigits, form) {
20
+ const iso = new Date(Date.now()).toISOString();
21
+ const [wholeSeconds = "", fraction = ""] = iso.slice(11, -1).split(".");
22
+ const digits = fraction.slice(0, fractionDigits);
23
+ const kept = form === "fixed" ? digits.padEnd(fractionDigits, "0") : digits.replace(/0+$/, "");
24
+ return {
25
+ date: iso.slice(0, 10),
26
+ time: kept === "" ? wholeSeconds : `${wholeSeconds}.${kept}`
27
+ };
28
+ }
29
+ /** Rounds down, so a database that rounds to the column's precision stores the value as written, rather than rounding it up, which can reach `24:00:00`. */
30
+ function truncateTime(time, fractionDigits) {
31
+ if (fractionDigits <= 0) return time.round({
32
+ smallestUnit: "second",
33
+ roundingMode: "trunc"
34
+ });
35
+ const smallestUnit = fractionDigits <= 3 ? "millisecond" : "microsecond";
36
+ const unitDigits = fractionDigits <= 3 ? 3 : 6;
37
+ return time.round({
38
+ smallestUnit,
39
+ roundingIncrement: 10 ** (unitDigits - Math.min(fractionDigits, unitDigits)),
40
+ roundingMode: "trunc"
41
+ });
42
+ }
43
+ function epochMillisecondsNow(fractionDigits) {
44
+ const now = Date.now();
45
+ if (fractionDigits >= MILLISECOND_DIGITS) return now;
46
+ const step = 10 ** (MILLISECOND_DIGITS - Math.max(fractionDigits, 0));
47
+ return Math.floor(now / step) * step;
48
+ }
49
+ function utcDateTimeNow(temporal, fractionDigits) {
50
+ return instantNow(temporal, fractionDigits).toZonedDateTimeISO("UTC");
51
+ }
52
+ function instantNow(temporal, fractionDigits) {
53
+ return temporal.Instant.fromEpochMilliseconds(epochMillisecondsNow(fractionDigits));
54
+ }
55
+ function plainDateTimeNow(temporal, fractionDigits) {
56
+ return utcDateTimeNow(temporal, fractionDigits).toPlainDateTime();
57
+ }
58
+ function plainDateNow(temporal) {
59
+ return utcDateTimeNow(temporal, MILLISECOND_DIGITS).toPlainDate();
60
+ }
61
+ function plainTimeNow(temporal, fractionDigits) {
62
+ return truncateTime(utcDateTimeNow(temporal, MILLISECOND_DIGITS).toPlainTime(), fractionDigits);
63
+ }
64
+ /** The current UTC date and time, as ISO 8601 text without an offset. */
65
+ function dateTimeStringNow(fractionDigits, form) {
66
+ const { date, time } = utcNow(fractionDigits, form);
67
+ return `${date}T${time}`;
68
+ }
69
+ /** The current instant, as ISO 8601 text in UTC. */
70
+ function instantStringNow(fractionDigits, form) {
71
+ return `${dateTimeStringNow(fractionDigits, form)}${UTC_OFFSET}`;
72
+ }
73
+ function dateStringNow() {
74
+ return utcNow(MILLISECOND_DIGITS, "trimmed").date;
75
+ }
76
+ /** The current UTC time of day, as ISO 8601 text. */
77
+ function timeStringNow(fractionDigits, form) {
78
+ return utcNow(fractionDigits, form).time;
79
+ }
80
+ //#endregion
81
+ export { PLAIN_DATE_TIME_NOW_GENERATOR_ID as a, dateStringNow as c, instantNow as d, instantStringNow as f, timeStringNow as g, plainTimeNow as h, PLAIN_DATE_NOW_GENERATOR_ID as i, dateTimeStringNow as l, plainDateTimeNow as m, INSTANT_NOW_GENERATOR_ID as n, PLAIN_TIME_NOW_GENERATOR_ID as o, plainDateNow as p, INSTANT_STRING_NOW_GENERATOR_ID as r, TIME_STRING_NOW_GENERATOR_ID as s, DATE_STRING_NOW_GENERATOR_ID as t, fractionDigitsOf as u };
82
+
83
+ //# sourceMappingURL=now-rRujKrwj.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"now-rRujKrwj.mjs","names":[],"sources":["../../../../3-targets/0-shared/type-implementations/dist/now.mjs"],"sourcesContent":["//#region src/now.ts\n/**\n* The ids of the \"now\" generators, as contracts store them, and the values they produce. Each id names the value, not a database type, so every target can store it. Every value reads the clock through `Date.now()` and is in UTC. A value with a time rounds down to the fraction digits it is given, so the column stores the value as written. The text values are ISO 8601, with the fraction written in the {@link FractionForm} the target stores.\n*/\nconst INSTANT_NOW_GENERATOR_ID = \"instantNow\";\nconst PLAIN_DATE_TIME_NOW_GENERATOR_ID = \"plainDateTimeNow\";\nconst PLAIN_DATE_NOW_GENERATOR_ID = \"plainDateNow\";\nconst PLAIN_TIME_NOW_GENERATOR_ID = \"plainTimeNow\";\nconst INSTANT_STRING_NOW_GENERATOR_ID = \"instantStringNow\";\nconst DATE_STRING_NOW_GENERATOR_ID = \"dateStringNow\";\nconst TIME_STRING_NOW_GENERATOR_ID = \"timeStringNow\";\nconst UTC_OFFSET = \"Z\";\nconst MILLISECOND_DIGITS = 3;\n/** The generator's `precision` param, else `maxFractionDigits`. */\nfunction fractionDigitsOf(params, maxFractionDigits) {\n\tconst precision = params?.[\"precision\"];\n\treturn typeof precision === \"number\" ? precision : maxFractionDigits;\n}\nfunction utcNow(fractionDigits, form) {\n\tconst iso = new Date(Date.now()).toISOString();\n\tconst [wholeSeconds = \"\", fraction = \"\"] = iso.slice(11, -1).split(\".\");\n\tconst digits = fraction.slice(0, fractionDigits);\n\tconst kept = form === \"fixed\" ? digits.padEnd(fractionDigits, \"0\") : digits.replace(/0+$/, \"\");\n\treturn {\n\t\tdate: iso.slice(0, 10),\n\t\ttime: kept === \"\" ? wholeSeconds : `${wholeSeconds}.${kept}`\n\t};\n}\n/** Rounds down, so a database that rounds to the column's precision stores the value as written, rather than rounding it up, which can reach `24:00:00`. */\nfunction truncateTime(time, fractionDigits) {\n\tif (fractionDigits <= 0) return time.round({\n\t\tsmallestUnit: \"second\",\n\t\troundingMode: \"trunc\"\n\t});\n\tconst smallestUnit = fractionDigits <= 3 ? \"millisecond\" : \"microsecond\";\n\tconst unitDigits = fractionDigits <= 3 ? 3 : 6;\n\treturn time.round({\n\t\tsmallestUnit,\n\t\troundingIncrement: 10 ** (unitDigits - Math.min(fractionDigits, unitDigits)),\n\t\troundingMode: \"trunc\"\n\t});\n}\nfunction epochMillisecondsNow(fractionDigits) {\n\tconst now = Date.now();\n\tif (fractionDigits >= MILLISECOND_DIGITS) return now;\n\tconst step = 10 ** (MILLISECOND_DIGITS - Math.max(fractionDigits, 0));\n\treturn Math.floor(now / step) * step;\n}\nfunction utcDateTimeNow(temporal, fractionDigits) {\n\treturn instantNow(temporal, fractionDigits).toZonedDateTimeISO(\"UTC\");\n}\nfunction instantNow(temporal, fractionDigits) {\n\treturn temporal.Instant.fromEpochMilliseconds(epochMillisecondsNow(fractionDigits));\n}\nfunction plainDateTimeNow(temporal, fractionDigits) {\n\treturn utcDateTimeNow(temporal, fractionDigits).toPlainDateTime();\n}\nfunction plainDateNow(temporal) {\n\treturn utcDateTimeNow(temporal, MILLISECOND_DIGITS).toPlainDate();\n}\nfunction plainTimeNow(temporal, fractionDigits) {\n\treturn truncateTime(utcDateTimeNow(temporal, MILLISECOND_DIGITS).toPlainTime(), fractionDigits);\n}\n/** The current UTC date and time, as ISO 8601 text without an offset. */\nfunction dateTimeStringNow(fractionDigits, form) {\n\tconst { date, time } = utcNow(fractionDigits, form);\n\treturn `${date}T${time}`;\n}\n/** The current instant, as ISO 8601 text in UTC. */\nfunction instantStringNow(fractionDigits, form) {\n\treturn `${dateTimeStringNow(fractionDigits, form)}${UTC_OFFSET}`;\n}\nfunction dateStringNow() {\n\treturn utcNow(MILLISECOND_DIGITS, \"trimmed\").date;\n}\n/** The current UTC time of day, as ISO 8601 text. */\nfunction timeStringNow(fractionDigits, form) {\n\treturn utcNow(fractionDigits, form).time;\n}\n//#endregion\nexport { DATE_STRING_NOW_GENERATOR_ID, INSTANT_NOW_GENERATOR_ID, INSTANT_STRING_NOW_GENERATOR_ID, PLAIN_DATE_NOW_GENERATOR_ID, PLAIN_DATE_TIME_NOW_GENERATOR_ID, PLAIN_TIME_NOW_GENERATOR_ID, TIME_STRING_NOW_GENERATOR_ID, dateStringNow, dateTimeStringNow, fractionDigitsOf, instantNow, instantStringNow, plainDateNow, plainDateTimeNow, plainTimeNow, timeStringNow };\n\n//# sourceMappingURL=now.mjs.map"],"mappings":";;;;AAIA,MAAM,2BAA2B;AACjC,MAAM,mCAAmC;AACzC,MAAM,8BAA8B;AACpC,MAAM,8BAA8B;AACpC,MAAM,kCAAkC;AACxC,MAAM,+BAA+B;AACrC,MAAM,+BAA+B;AACrC,MAAM,aAAa;AACnB,MAAM,qBAAqB;;AAE3B,SAAS,iBAAiB,QAAQ,mBAAmB;CACpD,MAAM,YAAY,SAAS;CAC3B,OAAO,OAAO,cAAc,WAAW,YAAY;AACpD;AACA,SAAS,OAAO,gBAAgB,MAAM;CACrC,MAAM,MAAM,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,YAAY;CAC7C,MAAM,CAAC,eAAe,IAAI,WAAW,MAAM,IAAI,MAAM,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG;CACtE,MAAM,SAAS,SAAS,MAAM,GAAG,cAAc;CAC/C,MAAM,OAAO,SAAS,UAAU,OAAO,OAAO,gBAAgB,GAAG,IAAI,OAAO,QAAQ,OAAO,EAAE;CAC7F,OAAO;EACN,MAAM,IAAI,MAAM,GAAG,EAAE;EACrB,MAAM,SAAS,KAAK,eAAe,GAAG,aAAa,GAAG;CACvD;AACD;;AAEA,SAAS,aAAa,MAAM,gBAAgB;CAC3C,IAAI,kBAAkB,GAAG,OAAO,KAAK,MAAM;EAC1C,cAAc;EACd,cAAc;CACf,CAAC;CACD,MAAM,eAAe,kBAAkB,IAAI,gBAAgB;CAC3D,MAAM,aAAa,kBAAkB,IAAI,IAAI;CAC7C,OAAO,KAAK,MAAM;EACjB;EACA,mBAAmB,OAAO,aAAa,KAAK,IAAI,gBAAgB,UAAU;EAC1E,cAAc;CACf,CAAC;AACF;AACA,SAAS,qBAAqB,gBAAgB;CAC7C,MAAM,MAAM,KAAK,IAAI;CACrB,IAAI,kBAAkB,oBAAoB,OAAO;CACjD,MAAM,OAAO,OAAO,qBAAqB,KAAK,IAAI,gBAAgB,CAAC;CACnE,OAAO,KAAK,MAAM,MAAM,IAAI,IAAI;AACjC;AACA,SAAS,eAAe,UAAU,gBAAgB;CACjD,OAAO,WAAW,UAAU,cAAc,CAAC,CAAC,mBAAmB,KAAK;AACrE;AACA,SAAS,WAAW,UAAU,gBAAgB;CAC7C,OAAO,SAAS,QAAQ,sBAAsB,qBAAqB,cAAc,CAAC;AACnF;AACA,SAAS,iBAAiB,UAAU,gBAAgB;CACnD,OAAO,eAAe,UAAU,cAAc,CAAC,CAAC,gBAAgB;AACjE;AACA,SAAS,aAAa,UAAU;CAC/B,OAAO,eAAe,UAAU,kBAAkB,CAAC,CAAC,YAAY;AACjE;AACA,SAAS,aAAa,UAAU,gBAAgB;CAC/C,OAAO,aAAa,eAAe,UAAU,kBAAkB,CAAC,CAAC,YAAY,GAAG,cAAc;AAC/F;;AAEA,SAAS,kBAAkB,gBAAgB,MAAM;CAChD,MAAM,EAAE,MAAM,SAAS,OAAO,gBAAgB,IAAI;CAClD,OAAO,GAAG,KAAK,GAAG;AACnB;;AAEA,SAAS,iBAAiB,gBAAgB,MAAM;CAC/C,OAAO,GAAG,kBAAkB,gBAAgB,IAAI,IAAI;AACrD;AACA,SAAS,gBAAgB;CACxB,OAAO,OAAO,oBAAoB,SAAS,CAAC,CAAC;AAC9C;;AAEA,SAAS,cAAc,gBAAgB,MAAM;CAC5C,OAAO,OAAO,gBAAgB,IAAI,CAAC,CAAC;AACrC"}
@@ -0,0 +1,22 @@
1
+ //#region ../../../3-targets/0-shared/type-implementations/dist/temporal.mjs
2
+ let fallback;
3
+ /**
4
+ * Sets the implementation `findTemporal` returns when the runtime has no global `Temporal`. The value is held once per process. Only a target's control entry calls this.
5
+ */
6
+ function setFallbackTemporal(implementation) {
7
+ fallback = implementation;
8
+ }
9
+ /**
10
+ * The `Temporal` to use: the runtime's own when it has one, else the fallback, else `undefined`, for the target to raise its own error.
11
+ */
12
+ function findTemporal() {
13
+ const runtimeTemporal = Reflect.get(globalThis, "Temporal");
14
+ return isTemporalImplementation(runtimeTemporal) ? runtimeTemporal : fallback;
15
+ }
16
+ function isTemporalImplementation(value) {
17
+ return typeof value === "object" && value !== null;
18
+ }
19
+ //#endregion
20
+ export { setFallbackTemporal as n, findTemporal as t };
21
+
22
+ //# sourceMappingURL=temporal-BlPzxzji.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"temporal-BlPzxzji.mjs","names":[],"sources":["../../../../3-targets/0-shared/type-implementations/dist/temporal.mjs"],"sourcesContent":["//#region src/temporal.ts\nlet fallback;\n/**\n* Sets the implementation `findTemporal` returns when the runtime has no global `Temporal`. The value is held once per process. Only a target's control entry calls this.\n*/\nfunction setFallbackTemporal(implementation) {\n\tfallback = implementation;\n}\n/**\n* The `Temporal` to use: the runtime's own when it has one, else the fallback, else `undefined`, for the target to raise its own error.\n*/\nfunction findTemporal() {\n\tconst runtimeTemporal = Reflect.get(globalThis, \"Temporal\");\n\treturn isTemporalImplementation(runtimeTemporal) ? runtimeTemporal : fallback;\n}\nfunction isTemporalImplementation(value) {\n\treturn typeof value === \"object\" && value !== null;\n}\n//#endregion\nexport { findTemporal, setFallbackTemporal };\n\n//# sourceMappingURL=temporal.mjs.map"],"mappings":";AACA,IAAI;;;;AAIJ,SAAS,oBAAoB,gBAAgB;CAC5C,WAAW;AACZ;;;;AAIA,SAAS,eAAe;CACvB,MAAM,kBAAkB,QAAQ,IAAI,YAAY,UAAU;CAC1D,OAAO,yBAAyB,eAAe,IAAI,kBAAkB;AACtE;AACA,SAAS,yBAAyB,OAAO;CACxC,OAAO,OAAO,UAAU,YAAY,UAAU;AAC/C"}
@@ -0,0 +1,15 @@
1
+ import { Temporal } from "temporal-spec";
2
+ //#region ../../../3-targets/0-shared/type-implementations/dist/temporal-ByipDkUQ.d.mts
3
+ //#region src/temporal.d.ts
4
+ type TemporalImplementation = typeof Temporal;
5
+ /**
6
+ * Sets the implementation `findTemporal` returns when the runtime has no global `Temporal`. The value is held once per process. Only a target's control entry calls this.
7
+ */
8
+ declare function setFallbackTemporal(implementation: TemporalImplementation): void;
9
+ /**
10
+ * The `Temporal` to use: the runtime's own when it has one, else the fallback, else `undefined`, for the target to raise its own error.
11
+ */
12
+ declare function findTemporal(): TemporalImplementation | undefined;
13
+ //#endregion
14
+ export { findTemporal as n, setFallbackTemporal as r, TemporalImplementation as t };
15
+ //# sourceMappingURL=temporal-ByipDkUQ-BSRSKsqk.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"temporal-ByipDkUQ-BSRSKsqk.d.mts","names":[],"sources":["../../../../3-targets/0-shared/type-implementations/dist/temporal-ByipDkUQ.d.mts"],"mappings":";;;KAEK,gCAAgC;;;;iBAIpB,oBAAoB,gBAAgB;;;;iBAIpC,gBAAgB"}
@@ -0,0 +1 @@
1
+ import "./temporal-ByipDkUQ-BSRSKsqk.mjs";
@@ -0,0 +1,41 @@
1
+ import { t as TemporalImplementation } from "./temporal-ByipDkUQ-BSRSKsqk.mjs";
2
+ //#region ../../../3-targets/0-shared/type-implementations/dist/temporal-text.d.mts
3
+ //#region src/temporal-text.d.ts
4
+ /** The `Symbol.toStringTag` of each Temporal kind a codec reads and writes. */
5
+ type TemporalTag = 'Temporal.Instant' | 'Temporal.PlainDate' | 'Temporal.PlainDateTime' | 'Temporal.PlainTime';
6
+ /** A Temporal value, of any kind and from any implementation. */
7
+ interface TemporalValue {
8
+ readonly calendarId?: string;
9
+ toString: () => string;
10
+ }
11
+ type TemporalFromTextResult<T> = {
12
+ readonly kind: 'value';
13
+ readonly value: T;
14
+ } | {
15
+ readonly kind: 'unreadable';
16
+ readonly detail: string;
17
+ readonly cause: unknown;
18
+ };
19
+ /** Reads `text` as a Temporal value with `parse`, or says why `parse` refused it. */
20
+ declare function temporalFromText<T>(temporal: TemporalImplementation, text: string, parse: (temporal: TemporalImplementation, text: string) => T): TemporalFromTextResult<T>;
21
+ type TemporalToTextResult = {
22
+ readonly kind: 'text';
23
+ readonly text: string;
24
+ } | {
25
+ readonly kind: 'wrong-type';
26
+ readonly received: string;
27
+ } | {
28
+ readonly kind: 'non-iso-calendar';
29
+ readonly calendarId: string;
30
+ };
31
+ /**
32
+ * The ISO text of a Temporal value of the kind `temporalTag` names, as `isoText` writes it, by default its own `toString()`. A value of another kind, or in a calendar other than ISO 8601, is refused. The kind is read from `Symbol.toStringTag`, so a value made by any Temporal implementation is accepted.
33
+ */
34
+ declare function temporalToText(value: TemporalValue, temporalTag: TemporalTag, isoText?: (value: TemporalValue) => string): TemporalToTextResult;
35
+ /** A value of the wrong type, as an error message names it: `null`, `a Date`, or `a` and its `typeof`. */
36
+ declare function describeValue(value: unknown): string;
37
+ /** ISO text in UTC without its trailing `Z`. */
38
+ declare function withoutUtcDesignator(isoText: string): string;
39
+ //#endregion
40
+ export { temporalToText as a, temporalFromText as i, TemporalValue as n, withoutUtcDesignator as o, describeValue as r, TemporalTag as t };
41
+ //# sourceMappingURL=temporal-text-CRbkPKoz.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"temporal-text-CRbkPKoz.d.mts","names":[],"sources":["../../../../3-targets/0-shared/type-implementations/dist/temporal-text.d.mts"],"mappings":";;;;KAGK;;UAEK;WACC;EACT;;KAEG,uBAAuB;WACjB;WACA,OAAO;;WAEP;WACA;WACA;;;iBAGM,iBAAiB,GAAG,UAAU,wBAAwB,cAAc,QAAQ,UAAU,wBAAwB,iBAAiB,IAAI,uBAAuB;KACtK;WACM;WACA;;WAEA;WACA;;WAEA;WACA;;;;;iBAKM,eAAe,OAAO,eAAe,aAAa,aAAa,WAAW,OAAO,2BAA2B;;iBAE5G,cAAc;;iBAEd,qBAAqB"}
@@ -0,0 +1,51 @@
1
+ //#region ../../../3-targets/0-shared/type-implementations/dist/temporal-text.mjs
2
+ /** Reads `text` as a Temporal value with `parse`, or says why `parse` refused it. */
3
+ function temporalFromText(temporal, text, parse) {
4
+ try {
5
+ return {
6
+ kind: "value",
7
+ value: parse(temporal, text)
8
+ };
9
+ } catch (cause) {
10
+ return {
11
+ kind: "unreadable",
12
+ detail: cause instanceof Error ? cause.message : String(cause),
13
+ cause
14
+ };
15
+ }
16
+ }
17
+ /**
18
+ * The ISO text of a Temporal value of the kind `temporalTag` names, as `isoText` writes it, by default its own `toString()`. A value of another kind, or in a calendar other than ISO 8601, is refused. The kind is read from `Symbol.toStringTag`, so a value made by any Temporal implementation is accepted.
19
+ */
20
+ function temporalToText(value, temporalTag, isoText = (temporalValue) => temporalValue.toString()) {
21
+ const tag = typeof value === "object" && value !== null ? Reflect.get(value, Symbol.toStringTag) : void 0;
22
+ if (tag !== temporalTag) return {
23
+ kind: "wrong-type",
24
+ received: describeEncodeInput(value, tag)
25
+ };
26
+ if (value.calendarId !== void 0 && value.calendarId !== "iso8601") return {
27
+ kind: "non-iso-calendar",
28
+ calendarId: value.calendarId
29
+ };
30
+ return {
31
+ kind: "text",
32
+ text: isoText(value)
33
+ };
34
+ }
35
+ function describeEncodeInput(value, tag) {
36
+ return typeof tag === "string" ? `a ${tag}` : describeValue(value);
37
+ }
38
+ /** A value of the wrong type, as an error message names it: `null`, `a Date`, or `a` and its `typeof`. */
39
+ function describeValue(value) {
40
+ if (value === null) return "null";
41
+ if (value instanceof Date) return "a Date";
42
+ return `a ${typeof value}`;
43
+ }
44
+ /** ISO text in UTC without its trailing `Z`. */
45
+ function withoutUtcDesignator(isoText) {
46
+ return isoText.endsWith("Z") ? isoText.slice(0, -1) : isoText;
47
+ }
48
+ //#endregion
49
+ export { withoutUtcDesignator as i, temporalFromText as n, temporalToText as r, describeValue as t };
50
+
51
+ //# sourceMappingURL=temporal-text-DTDPzvc_.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"temporal-text-DTDPzvc_.mjs","names":[],"sources":["../../../../3-targets/0-shared/type-implementations/dist/temporal-text.mjs"],"sourcesContent":["//#region src/temporal-text.ts\n/** Reads `text` as a Temporal value with `parse`, or says why `parse` refused it. */\nfunction temporalFromText(temporal, text, parse) {\n\ttry {\n\t\treturn {\n\t\t\tkind: \"value\",\n\t\t\tvalue: parse(temporal, text)\n\t\t};\n\t} catch (cause) {\n\t\treturn {\n\t\t\tkind: \"unreadable\",\n\t\t\tdetail: cause instanceof Error ? cause.message : String(cause),\n\t\t\tcause\n\t\t};\n\t}\n}\n/**\n* The ISO text of a Temporal value of the kind `temporalTag` names, as `isoText` writes it, by default its own `toString()`. A value of another kind, or in a calendar other than ISO 8601, is refused. The kind is read from `Symbol.toStringTag`, so a value made by any Temporal implementation is accepted.\n*/\nfunction temporalToText(value, temporalTag, isoText = (temporalValue) => temporalValue.toString()) {\n\tconst tag = typeof value === \"object\" && value !== null ? Reflect.get(value, Symbol.toStringTag) : void 0;\n\tif (tag !== temporalTag) return {\n\t\tkind: \"wrong-type\",\n\t\treceived: describeEncodeInput(value, tag)\n\t};\n\tif (value.calendarId !== void 0 && value.calendarId !== \"iso8601\") return {\n\t\tkind: \"non-iso-calendar\",\n\t\tcalendarId: value.calendarId\n\t};\n\treturn {\n\t\tkind: \"text\",\n\t\ttext: isoText(value)\n\t};\n}\nfunction describeEncodeInput(value, tag) {\n\treturn typeof tag === \"string\" ? `a ${tag}` : describeValue(value);\n}\n/** A value of the wrong type, as an error message names it: `null`, `a Date`, or `a` and its `typeof`. */\nfunction describeValue(value) {\n\tif (value === null) return \"null\";\n\tif (value instanceof Date) return \"a Date\";\n\treturn `a ${typeof value}`;\n}\n/** ISO text in UTC without its trailing `Z`. */\nfunction withoutUtcDesignator(isoText) {\n\treturn isoText.endsWith(\"Z\") ? isoText.slice(0, -1) : isoText;\n}\n//#endregion\nexport { describeValue, temporalFromText, temporalToText, withoutUtcDesignator };\n\n//# sourceMappingURL=temporal-text.mjs.map"],"mappings":";;AAEA,SAAS,iBAAiB,UAAU,MAAM,OAAO;CAChD,IAAI;EACH,OAAO;GACN,MAAM;GACN,OAAO,MAAM,UAAU,IAAI;EAC5B;CACD,SAAS,OAAO;EACf,OAAO;GACN,MAAM;GACN,QAAQ,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;GAC7D;EACD;CACD;AACD;;;;AAIA,SAAS,eAAe,OAAO,aAAa,WAAW,kBAAkB,cAAc,SAAS,GAAG;CAClG,MAAM,MAAM,OAAO,UAAU,YAAY,UAAU,OAAO,QAAQ,IAAI,OAAO,OAAO,WAAW,IAAI,KAAK;CACxG,IAAI,QAAQ,aAAa,OAAO;EAC/B,MAAM;EACN,UAAU,oBAAoB,OAAO,GAAG;CACzC;CACA,IAAI,MAAM,eAAe,KAAK,KAAK,MAAM,eAAe,WAAW,OAAO;EACzE,MAAM;EACN,YAAY,MAAM;CACnB;CACA,OAAO;EACN,MAAM;EACN,MAAM,QAAQ,KAAK;CACpB;AACD;AACA,SAAS,oBAAoB,OAAO,KAAK;CACxC,OAAO,OAAO,QAAQ,WAAW,KAAK,QAAQ,cAAc,KAAK;AAClE;;AAEA,SAAS,cAAc,OAAO;CAC7B,IAAI,UAAU,MAAM,OAAO;CAC3B,IAAI,iBAAiB,MAAM,OAAO;CAClC,OAAO,KAAK,OAAO;AACpB;;AAEA,SAAS,qBAAqB,SAAS;CACtC,OAAO,QAAQ,SAAS,GAAG,IAAI,QAAQ,MAAM,GAAG,EAAE,IAAI;AACvD"}
@@ -0,0 +1,7 @@
1
+ import { n as isValidDate, r as utcIsoTextOf, t as hasDigitsBelowAMillisecond } from "./date-BMPdGNoB.mjs";
2
+ import { n as ISO_DURATION_AS_WRITTEN, t as ISO_DURATION } from "./duration-cFUtCY2y.mjs";
3
+ import { n as findTemporal, r as setFallbackTemporal, t as TemporalImplementation } from "./temporal-ByipDkUQ-BSRSKsqk.mjs";
4
+ import { _ as timeStringNow, a as PLAIN_DATE_NOW_GENERATOR_ID, c as TIME_STRING_NOW_GENERATOR_ID, d as fractionDigitsOf, f as instantNow, g as plainTimeNow, h as plainDateTimeNow, i as INSTANT_STRING_NOW_GENERATOR_ID, l as dateStringNow, m as plainDateNow, n as GeneratorParams, o as PLAIN_DATE_TIME_NOW_GENERATOR_ID, p as instantStringNow, r as INSTANT_NOW_GENERATOR_ID, s as PLAIN_TIME_NOW_GENERATOR_ID, t as DATE_STRING_NOW_GENERATOR_ID, u as dateTimeStringNow } from "./now-BAgn1BJy.mjs";
5
+ import "./temporal-DIeQx56W.mjs";
6
+ import { a as temporalToText, i as temporalFromText, n as TemporalValue, o as withoutUtcDesignator, r as describeValue, t as TemporalTag } from "./temporal-text-CRbkPKoz.mjs";
7
+ export { DATE_STRING_NOW_GENERATOR_ID, type GeneratorParams, INSTANT_NOW_GENERATOR_ID, INSTANT_STRING_NOW_GENERATOR_ID, ISO_DURATION, ISO_DURATION_AS_WRITTEN, PLAIN_DATE_NOW_GENERATOR_ID, PLAIN_DATE_TIME_NOW_GENERATOR_ID, PLAIN_TIME_NOW_GENERATOR_ID, TIME_STRING_NOW_GENERATOR_ID, type TemporalImplementation, type TemporalTag, type TemporalValue, dateStringNow, dateTimeStringNow, describeValue, findTemporal, fractionDigitsOf, hasDigitsBelowAMillisecond, instantNow, instantStringNow, isValidDate, plainDateNow, plainDateTimeNow, plainTimeNow, setFallbackTemporal, temporalFromText, temporalToText, timeStringNow, utcIsoTextOf, withoutUtcDesignator };
@@ -0,0 +1,6 @@
1
+ import { n as isValidDate, r as utcIsoTextOf, t as hasDigitsBelowAMillisecond } from "./date-CyNBds9r.mjs";
2
+ import { n as ISO_DURATION_AS_WRITTEN, t as ISO_DURATION } from "./duration-BqxS5qWq.mjs";
3
+ import { a as PLAIN_DATE_TIME_NOW_GENERATOR_ID, c as dateStringNow, d as instantNow, f as instantStringNow, g as timeStringNow, h as plainTimeNow, i as PLAIN_DATE_NOW_GENERATOR_ID, l as dateTimeStringNow, m as plainDateTimeNow, n as INSTANT_NOW_GENERATOR_ID, o as PLAIN_TIME_NOW_GENERATOR_ID, p as plainDateNow, r as INSTANT_STRING_NOW_GENERATOR_ID, s as TIME_STRING_NOW_GENERATOR_ID, t as DATE_STRING_NOW_GENERATOR_ID, u as fractionDigitsOf } from "./now-rRujKrwj.mjs";
4
+ import { n as setFallbackTemporal, t as findTemporal } from "./temporal-BlPzxzji.mjs";
5
+ import { i as withoutUtcDesignator, n as temporalFromText, r as temporalToText, t as describeValue } from "./temporal-text-DTDPzvc_.mjs";
6
+ export { DATE_STRING_NOW_GENERATOR_ID, INSTANT_NOW_GENERATOR_ID, INSTANT_STRING_NOW_GENERATOR_ID, ISO_DURATION, ISO_DURATION_AS_WRITTEN, PLAIN_DATE_NOW_GENERATOR_ID, PLAIN_DATE_TIME_NOW_GENERATOR_ID, PLAIN_TIME_NOW_GENERATOR_ID, TIME_STRING_NOW_GENERATOR_ID, dateStringNow, dateTimeStringNow, describeValue, findTemporal, fractionDigitsOf, hasDigitsBelowAMillisecond, instantNow, instantStringNow, isValidDate, plainDateNow, plainDateTimeNow, plainTimeNow, setFallbackTemporal, temporalFromText, temporalToText, timeStringNow, utcIsoTextOf, withoutUtcDesignator };
@@ -0,0 +1,2 @@
1
+ import { n as isValidDate, r as utcIsoTextOf, t as hasDigitsBelowAMillisecond } from "./date-BMPdGNoB.mjs";
2
+ export { hasDigitsBelowAMillisecond, isValidDate, utcIsoTextOf };
@@ -0,0 +1,2 @@
1
+ import { n as isValidDate, r as utcIsoTextOf, t as hasDigitsBelowAMillisecond } from "./date-CyNBds9r.mjs";
2
+ export { hasDigitsBelowAMillisecond, isValidDate, utcIsoTextOf };
@@ -0,0 +1,2 @@
1
+ import { n as ISO_DURATION_AS_WRITTEN, t as ISO_DURATION } from "./duration-cFUtCY2y.mjs";
2
+ export { ISO_DURATION, ISO_DURATION_AS_WRITTEN };
@@ -0,0 +1,2 @@
1
+ import { n as ISO_DURATION_AS_WRITTEN, t as ISO_DURATION } from "./duration-BqxS5qWq.mjs";
2
+ export { ISO_DURATION, ISO_DURATION_AS_WRITTEN };
@@ -0,0 +1,2 @@
1
+ import { _ as timeStringNow, a as PLAIN_DATE_NOW_GENERATOR_ID, c as TIME_STRING_NOW_GENERATOR_ID, d as fractionDigitsOf, f as instantNow, g as plainTimeNow, h as plainDateTimeNow, i as INSTANT_STRING_NOW_GENERATOR_ID, l as dateStringNow, m as plainDateNow, n as GeneratorParams, o as PLAIN_DATE_TIME_NOW_GENERATOR_ID, p as instantStringNow, r as INSTANT_NOW_GENERATOR_ID, s as PLAIN_TIME_NOW_GENERATOR_ID, t as DATE_STRING_NOW_GENERATOR_ID, u as dateTimeStringNow } from "./now-BAgn1BJy.mjs";
2
+ export { DATE_STRING_NOW_GENERATOR_ID, type GeneratorParams, INSTANT_NOW_GENERATOR_ID, INSTANT_STRING_NOW_GENERATOR_ID, PLAIN_DATE_NOW_GENERATOR_ID, PLAIN_DATE_TIME_NOW_GENERATOR_ID, PLAIN_TIME_NOW_GENERATOR_ID, TIME_STRING_NOW_GENERATOR_ID, dateStringNow, dateTimeStringNow, fractionDigitsOf, instantNow, instantStringNow, plainDateNow, plainDateTimeNow, plainTimeNow, timeStringNow };
@@ -0,0 +1,2 @@
1
+ import { a as PLAIN_DATE_TIME_NOW_GENERATOR_ID, c as dateStringNow, d as instantNow, f as instantStringNow, g as timeStringNow, h as plainTimeNow, i as PLAIN_DATE_NOW_GENERATOR_ID, l as dateTimeStringNow, m as plainDateTimeNow, n as INSTANT_NOW_GENERATOR_ID, o as PLAIN_TIME_NOW_GENERATOR_ID, p as plainDateNow, r as INSTANT_STRING_NOW_GENERATOR_ID, s as TIME_STRING_NOW_GENERATOR_ID, t as DATE_STRING_NOW_GENERATOR_ID, u as fractionDigitsOf } from "./now-rRujKrwj.mjs";
2
+ export { DATE_STRING_NOW_GENERATOR_ID, INSTANT_NOW_GENERATOR_ID, INSTANT_STRING_NOW_GENERATOR_ID, PLAIN_DATE_NOW_GENERATOR_ID, PLAIN_DATE_TIME_NOW_GENERATOR_ID, PLAIN_TIME_NOW_GENERATOR_ID, TIME_STRING_NOW_GENERATOR_ID, dateStringNow, dateTimeStringNow, fractionDigitsOf, instantNow, instantStringNow, plainDateNow, plainDateTimeNow, plainTimeNow, timeStringNow };
@@ -0,0 +1,2 @@
1
+ import { a as temporalToText, i as temporalFromText, n as TemporalValue, o as withoutUtcDesignator, r as describeValue, t as TemporalTag } from "./temporal-text-CRbkPKoz.mjs";
2
+ export { type TemporalTag, type TemporalValue, describeValue, temporalFromText, temporalToText, withoutUtcDesignator };
@@ -0,0 +1,2 @@
1
+ import { i as withoutUtcDesignator, n as temporalFromText, r as temporalToText, t as describeValue } from "./temporal-text-DTDPzvc_.mjs";
2
+ export { describeValue, temporalFromText, temporalToText, withoutUtcDesignator };
@@ -0,0 +1,3 @@
1
+ import { n as findTemporal, r as setFallbackTemporal, t as TemporalImplementation } from "./temporal-ByipDkUQ-BSRSKsqk.mjs";
2
+ import "./temporal-DIeQx56W.mjs";
3
+ export { type TemporalImplementation, findTemporal, setFallbackTemporal };
@@ -0,0 +1,2 @@
1
+ import { n as setFallbackTemporal, t as findTemporal } from "./temporal-BlPzxzji.mjs";
2
+ export { findTemporal, setFallbackTemporal };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/orm-framework",
3
- "version": "8.0.0-rc.22-dev.4",
3
+ "version": "8.0.0-rc.22-dev.6",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -12,24 +12,26 @@
12
12
  "@standard-schema/spec": "^1.1.0",
13
13
  "arktype": "^2.2.2",
14
14
  "pathe": "^2.0.3",
15
+ "temporal-spec": "1.0.1",
15
16
  "tinyglobby": "^0.2.17",
16
17
  "uniku": "^0.5.0"
17
18
  },
18
19
  "devDependencies": {
19
- "@internal/config": "8.0.0-rc.22-dev.4",
20
- "@internal/contract": "8.0.0-rc.22-dev.4",
21
- "@internal/contract-authoring": "8.0.0-rc.22-dev.4",
22
- "@internal/errors": "8.0.0-rc.22-dev.4",
23
- "@internal/framework-components": "8.0.0-rc.22-dev.4",
24
- "@internal/ids": "8.0.0-rc.22-dev.4",
25
- "@internal/operations": "8.0.0-rc.22-dev.4",
26
- "@internal/psl-parser": "8.0.0-rc.22-dev.4",
27
- "@internal/psl-printer": "8.0.0-rc.22-dev.4",
28
- "@internal/ts-render": "8.0.0-rc.22-dev.4",
29
- "@repo/tsconfig": "8.0.0-rc.22-dev.4",
30
- "@internal/publish-surface": "8.0.0-rc.22-dev.4",
31
- "@repo/tsdown": "8.0.0-rc.22-dev.4",
32
- "@internal/utils": "8.0.0-rc.22-dev.4",
20
+ "@internal/config": "8.0.0-rc.22-dev.6",
21
+ "@internal/contract": "8.0.0-rc.22-dev.6",
22
+ "@internal/contract-authoring": "8.0.0-rc.22-dev.6",
23
+ "@internal/errors": "8.0.0-rc.22-dev.6",
24
+ "@internal/framework-components": "8.0.0-rc.22-dev.6",
25
+ "@internal/ids": "8.0.0-rc.22-dev.6",
26
+ "@internal/operations": "8.0.0-rc.22-dev.6",
27
+ "@internal/psl-parser": "8.0.0-rc.22-dev.6",
28
+ "@internal/psl-printer": "8.0.0-rc.22-dev.6",
29
+ "@internal/ts-render": "8.0.0-rc.22-dev.6",
30
+ "@internal/type-implementations": "8.0.0-rc.22-dev.6",
31
+ "@repo/tsconfig": "8.0.0-rc.22-dev.6",
32
+ "@internal/publish-surface": "8.0.0-rc.22-dev.6",
33
+ "@repo/tsdown": "8.0.0-rc.22-dev.6",
34
+ "@internal/utils": "8.0.0-rc.22-dev.6",
33
35
  "tsdown": "0.22.14",
34
36
  "typescript": "5.9.3",
35
37
  "vitest": "5.0.0-rc.2"
@@ -84,6 +86,12 @@
84
86
  "./psl-parser/tokenizer": "./dist/psl-parser__tokenizer.mjs",
85
87
  "./psl-printer": "./dist/psl-printer.mjs",
86
88
  "./ts-render": "./dist/ts-render.mjs",
89
+ "./type-implementations": "./dist/type-implementations.mjs",
90
+ "./type-implementations/date": "./dist/type-implementations__date.mjs",
91
+ "./type-implementations/duration": "./dist/type-implementations__duration.mjs",
92
+ "./type-implementations/now": "./dist/type-implementations__now.mjs",
93
+ "./type-implementations/temporal": "./dist/type-implementations__temporal.mjs",
94
+ "./type-implementations/temporal-text": "./dist/type-implementations__temporal-text.mjs",
87
95
  "./utils": "./dist/utils.mjs",
88
96
  "./utils/abortable": "./dist/utils__abortable.mjs",
89
97
  "./utils/array-equal": "./dist/utils__array-equal.mjs",