@prisma/orm-framework 8.0.0-rc.22-dev.10 → 8.0.0-rc.22-dev.12

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.
@@ -3,9 +3,13 @@
3
3
  function isValidDate(value) {
4
4
  return value instanceof Date && Number.isFinite(value.getTime());
5
5
  }
6
+ /** Whether ISO text has nonzero fraction digits past the first `fractionDigits`. */
7
+ function hasDigitsBelow(text, fractionDigits) {
8
+ return /[1-9]/.test(/\.(\d+)/.exec(text)?.[1]?.slice(fractionDigits) ?? "");
9
+ }
6
10
  /** Whether ISO text has nonzero digits below a millisecond, which a `Date` drops. */
7
11
  function hasDigitsBelowAMillisecond(text) {
8
- return /[1-9]/.test(/\.(\d+)/.exec(text)?.[1]?.slice(3) ?? "");
12
+ return hasDigitsBelow(text, 3);
9
13
  }
10
14
  /** `value` in UTC as `Date.toISOString` writes it, or `undefined` for an Invalid Date or one before `earliestMilliseconds`. */
11
15
  function utcIsoTextOf(value, earliestMilliseconds) {
@@ -14,6 +18,6 @@ function utcIsoTextOf(value, earliestMilliseconds) {
14
18
  return value.toISOString();
15
19
  }
16
20
  //#endregion
17
- export { isValidDate as n, utcIsoTextOf as r, hasDigitsBelowAMillisecond as t };
21
+ export { utcIsoTextOf as i, hasDigitsBelowAMillisecond as n, isValidDate as r, hasDigitsBelow as t };
18
22
 
19
- //# sourceMappingURL=date-CyNBds9r.mjs.map
23
+ //# sourceMappingURL=date-CiIJMjsO.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-CiIJMjsO.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 fraction digits past the first `fractionDigits`. */\nfunction hasDigitsBelow(text, fractionDigits) {\n\treturn /[1-9]/.test(/\\.(\\d+)/.exec(text)?.[1]?.slice(fractionDigits) ?? \"\");\n}\n/** Whether ISO text has nonzero digits below a millisecond, which a `Date` drops. */\nfunction hasDigitsBelowAMillisecond(text) {\n\treturn hasDigitsBelow(text, 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 { hasDigitsBelow, 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,eAAe,MAAM,gBAAgB;CAC7C,OAAO,QAAQ,KAAK,UAAU,KAAK,IAAI,CAAC,GAAG,EAAE,EAAE,MAAM,cAAc,KAAK,EAAE;AAC3E;;AAEA,SAAS,2BAA2B,MAAM;CACzC,OAAO,eAAe,MAAM,CAAC;AAC9B;;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"}
@@ -2,10 +2,12 @@
2
2
  //#region src/date.d.ts
3
3
  /** Whether `value` is a `Date` that holds an instant, not an Invalid Date. */
4
4
  declare function isValidDate(value: unknown): value is Date;
5
+ /** Whether ISO text has nonzero fraction digits past the first `fractionDigits`. */
6
+ declare function hasDigitsBelow(text: string, fractionDigits: number): boolean;
5
7
  /** Whether ISO text has nonzero digits below a millisecond, which a `Date` drops. */
6
8
  declare function hasDigitsBelowAMillisecond(text: string): boolean;
7
9
  /** `value` in UTC as `Date.toISOString` writes it, or `undefined` for an Invalid Date or one before `earliestMilliseconds`. */
8
10
  declare function utcIsoTextOf(value: Date, earliestMilliseconds: number): string | undefined;
9
11
  //#endregion
10
- export { isValidDate as n, utcIsoTextOf as r, hasDigitsBelowAMillisecond as t };
11
- //# sourceMappingURL=date-BMPdGNoB.d.mts.map
12
+ export { utcIsoTextOf as i, hasDigitsBelowAMillisecond as n, isValidDate as r, hasDigitsBelow as t };
13
+ //# sourceMappingURL=date-D0A-2GsY.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-D0A-2GsY.d.mts","names":[],"sources":["../../../../3-targets/0-shared/type-implementations/dist/date.d.mts"],"mappings":";;;iBAEiB,YAAY,iBAAiB,SAAS;;iBAEtC,eAAe,cAAc;;iBAE7B,2BAA2B;;iBAE3B,aAAa,OAAO,MAAM"}
@@ -1,7 +1,7 @@
1
- import { n as isValidDate, r as utcIsoTextOf, t as hasDigitsBelowAMillisecond } from "./date-BMPdGNoB.mjs";
1
+ import { i as utcIsoTextOf, n as hasDigitsBelowAMillisecond, r as isValidDate, t as hasDigitsBelow } from "./date-D0A-2GsY.mjs";
2
2
  import { n as ISO_DURATION_AS_WRITTEN, t as ISO_DURATION } from "./duration-cFUtCY2y.mjs";
3
3
  import { n as findTemporal, r as setFallbackTemporal, t as TemporalImplementation } from "./temporal-ByipDkUQ-BSRSKsqk.mjs";
4
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
5
  import "./temporal-DIeQx56W.mjs";
6
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 };
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, hasDigitsBelow, hasDigitsBelowAMillisecond, instantNow, instantStringNow, isValidDate, plainDateNow, plainDateTimeNow, plainTimeNow, setFallbackTemporal, temporalFromText, temporalToText, timeStringNow, utcIsoTextOf, withoutUtcDesignator };
@@ -1,6 +1,6 @@
1
- import { n as isValidDate, r as utcIsoTextOf, t as hasDigitsBelowAMillisecond } from "./date-CyNBds9r.mjs";
1
+ import { i as utcIsoTextOf, n as hasDigitsBelowAMillisecond, r as isValidDate, t as hasDigitsBelow } from "./date-CiIJMjsO.mjs";
2
2
  import { n as ISO_DURATION_AS_WRITTEN, t as ISO_DURATION } from "./duration-BqxS5qWq.mjs";
3
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
4
  import { n as setFallbackTemporal, t as findTemporal } from "./temporal-BlPzxzji.mjs";
5
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 };
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, hasDigitsBelow, hasDigitsBelowAMillisecond, instantNow, instantStringNow, isValidDate, plainDateNow, plainDateTimeNow, plainTimeNow, setFallbackTemporal, temporalFromText, temporalToText, timeStringNow, utcIsoTextOf, withoutUtcDesignator };
@@ -1,2 +1,2 @@
1
- import { n as isValidDate, r as utcIsoTextOf, t as hasDigitsBelowAMillisecond } from "./date-BMPdGNoB.mjs";
2
- export { hasDigitsBelowAMillisecond, isValidDate, utcIsoTextOf };
1
+ import { i as utcIsoTextOf, n as hasDigitsBelowAMillisecond, r as isValidDate, t as hasDigitsBelow } from "./date-D0A-2GsY.mjs";
2
+ export { hasDigitsBelow, hasDigitsBelowAMillisecond, isValidDate, utcIsoTextOf };
@@ -1,2 +1,2 @@
1
- import { n as isValidDate, r as utcIsoTextOf, t as hasDigitsBelowAMillisecond } from "./date-CyNBds9r.mjs";
2
- export { hasDigitsBelowAMillisecond, isValidDate, utcIsoTextOf };
1
+ import { i as utcIsoTextOf, n as hasDigitsBelowAMillisecond, r as isValidDate, t as hasDigitsBelow } from "./date-CiIJMjsO.mjs";
2
+ export { hasDigitsBelow, hasDigitsBelowAMillisecond, isValidDate, utcIsoTextOf };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/orm-framework",
3
- "version": "8.0.0-rc.22-dev.10",
3
+ "version": "8.0.0-rc.22-dev.12",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -17,21 +17,21 @@
17
17
  "uniku": "^0.5.0"
18
18
  },
19
19
  "devDependencies": {
20
- "@internal/config": "8.0.0-rc.22-dev.10",
21
- "@internal/contract": "8.0.0-rc.22-dev.10",
22
- "@internal/contract-authoring": "8.0.0-rc.22-dev.10",
23
- "@internal/errors": "8.0.0-rc.22-dev.10",
24
- "@internal/framework-components": "8.0.0-rc.22-dev.10",
25
- "@internal/ids": "8.0.0-rc.22-dev.10",
26
- "@internal/operations": "8.0.0-rc.22-dev.10",
27
- "@internal/psl-parser": "8.0.0-rc.22-dev.10",
28
- "@internal/psl-printer": "8.0.0-rc.22-dev.10",
29
- "@internal/ts-render": "8.0.0-rc.22-dev.10",
30
- "@internal/type-implementations": "8.0.0-rc.22-dev.10",
31
- "@repo/tsconfig": "8.0.0-rc.22-dev.10",
32
- "@internal/publish-surface": "8.0.0-rc.22-dev.10",
33
- "@repo/tsdown": "8.0.0-rc.22-dev.10",
34
- "@internal/utils": "8.0.0-rc.22-dev.10",
20
+ "@internal/config": "8.0.0-rc.22-dev.12",
21
+ "@internal/contract": "8.0.0-rc.22-dev.12",
22
+ "@internal/contract-authoring": "8.0.0-rc.22-dev.12",
23
+ "@internal/errors": "8.0.0-rc.22-dev.12",
24
+ "@internal/framework-components": "8.0.0-rc.22-dev.12",
25
+ "@internal/ids": "8.0.0-rc.22-dev.12",
26
+ "@internal/operations": "8.0.0-rc.22-dev.12",
27
+ "@internal/psl-parser": "8.0.0-rc.22-dev.12",
28
+ "@internal/psl-printer": "8.0.0-rc.22-dev.12",
29
+ "@internal/ts-render": "8.0.0-rc.22-dev.12",
30
+ "@internal/type-implementations": "8.0.0-rc.22-dev.12",
31
+ "@repo/tsconfig": "8.0.0-rc.22-dev.12",
32
+ "@internal/publish-surface": "8.0.0-rc.22-dev.12",
33
+ "@repo/tsdown": "8.0.0-rc.22-dev.12",
34
+ "@internal/utils": "8.0.0-rc.22-dev.12",
35
35
  "tsdown": "0.22.14",
36
36
  "typescript": "5.9.3",
37
37
  "vitest": "5.0.0-rc.2"
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}