@prisma/orm-extension-arktype-json 8.0.0-rc.14-dev.27 → 8.0.0-rc.14-dev.28

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.
@@ -1,9 +1,9 @@
1
1
  import { CodecImpl, column } from "@prisma/orm-framework/components/codec";
2
- import { isRuntimeError, runtimeError } from "@prisma/orm-framework/components/runtime";
2
+ import { runtimeError } from "@prisma/orm-framework/components/runtime";
3
3
  import { PostgresCodecDescriptor, definePostgresCodecs } from "@prisma/orm-target-postgres/target/codec-descriptor";
4
4
  import { pgJsonb } from "@prisma/orm-target-postgres/target/data-types";
5
5
  import { ArkErrors, ark, type } from "arktype";
6
- //#region ../../../3-extensions/arktype-json/dist/arktype-json-codec-CbKQmx2Q.mjs
6
+ //#region ../../../3-extensions/arktype-json/dist/arktype-json-codec-D2ltdXNS.mjs
7
7
  /** Codec id for arktype-backed JSON columns. Library-bound, not target-bound. */
8
8
  const ARKTYPE_JSON_CODEC_ID = "arktype/json@1";
9
9
  /** Native storage type backing the codec. JSONB on Postgres; binary, indexable. */
@@ -33,23 +33,8 @@ function serializeWire(value) {
33
33
  function serializeJson(value) {
34
34
  return JSON.parse(serializeWire(value));
35
35
  }
36
- function parseJsonText(wire) {
37
- try {
38
- return JSON.parse(wire);
39
- } catch {
40
- return;
41
- }
42
- }
43
36
  function decodeWireValue(schema, wire) {
44
- if (typeof wire !== "string") return validateSchema(schema, wire);
45
- try {
46
- return validateSchema(schema, wire);
47
- } catch (error) {
48
- if (!isRuntimeError(error) || error.code !== "RUNTIME.JSON_SCHEMA_VALIDATION_FAILED") throw error;
49
- const parsed = parseJsonText(wire);
50
- if (parsed === void 0) throw error;
51
- return validateSchema(schema, parsed);
52
- }
37
+ return validateSchema(schema, typeof wire === "string" ? JSON.parse(wire) : wire);
53
38
  }
54
39
  function rehydrateSchema(jsonIr) {
55
40
  let rehydrated;
@@ -157,4 +142,4 @@ const codecDescriptors = definePostgresCodecs([arktypeJsonDescriptor]);
157
142
  //#endregion
158
143
  export { codecDescriptors as i, ARKTYPE_JSON_NATIVE_TYPE as n, arktypeJsonColumn as r, ARKTYPE_JSON_CODEC_ID as t };
159
144
 
160
- //# sourceMappingURL=arktype-json-codec-CbKQmx2Q-D0FQmV4d.mjs.map
145
+ //# sourceMappingURL=arktype-json-codec-D2ltdXNS-BMtJB5Uv.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arktype-json-codec-D2ltdXNS-BMtJB5Uv.mjs","names":[],"sources":["../../../../3-extensions/arktype-json/dist/arktype-json-codec-D2ltdXNS.mjs"],"sourcesContent":["import { CodecImpl, column } from \"@internal/framework-components/codec\";\nimport { runtimeError } from \"@internal/framework-components/runtime\";\nimport { PostgresCodecDescriptor, definePostgresCodecs } from \"@internal/target-postgres/codec-descriptor\";\nimport { pgJsonb } from \"@internal/target-postgres/data-types\";\nimport { ArkErrors, ark, type } from \"arktype\";\n//#region src/core/arktype-json-codec.ts\n/** Codec id for arktype-backed JSON columns. Library-bound, not target-bound. */\nconst ARKTYPE_JSON_CODEC_ID = \"arktype/json@1\";\n/** Native storage type backing the codec. JSONB on Postgres; binary, indexable. */\nconst ARKTYPE_JSON_NATIVE_TYPE = \"jsonb\";\nfunction isArktypeSchemaLike(value) {\n\tif (typeof value !== \"function\") return false;\n\treturn typeof value.expression === \"string\";\n}\nfunction validateSchema(schema, value) {\n\tconst result = schema(value);\n\tif (result instanceof ArkErrors) throw runtimeError(\"RUNTIME.JSON_SCHEMA_VALIDATION_FAILED\", `arktype-json schema validation failed (decode): ${result.summary}`, {\n\t\tcodecId: ARKTYPE_JSON_CODEC_ID,\n\t\tissues: result.summary\n\t});\n\treturn result;\n}\nfunction serializeWire(value) {\n\tlet wire;\n\ttry {\n\t\twire = JSON.stringify(value);\n\t} catch (error) {\n\t\tthrow Object.assign(runtimeError(\"RUNTIME.ENCODE_FAILED\", `arktype-json value could not be serialized to JSON (codecId: ${ARKTYPE_JSON_CODEC_ID})`, { codecId: ARKTYPE_JSON_CODEC_ID }), { cause: error });\n\t}\n\tif (typeof wire !== \"string\") throw runtimeError(\"RUNTIME.ENCODE_FAILED\", `arktype-json value is not representable as JSON (codecId: ${ARKTYPE_JSON_CODEC_ID})`, { codecId: ARKTYPE_JSON_CODEC_ID });\n\treturn wire;\n}\nfunction serializeJson(value) {\n\treturn JSON.parse(serializeWire(value));\n}\nfunction decodeWireValue(schema, wire) {\n\treturn validateSchema(schema, typeof wire === \"string\" ? JSON.parse(wire) : wire);\n}\nfunction rehydrateSchema(jsonIr) {\n\tlet rehydrated;\n\ttry {\n\t\trehydrated = ark.schema(jsonIr);\n\t} catch (error) {\n\t\tthrow runtimeError(\n\t\t\t\"RUNTIME.JSON_SCHEMA_VALIDATION_FAILED\",\n\t\t\t/* c8 ignore next — the `String(error)` fallback covers throws of non-Error values; arktype only throws Error subclasses, so this branch is defensive only. */\n\t\t\t`Failed to rehydrate arktype schema from contract IR: ${error instanceof Error ? error.message : String(error)}`,\n\t\t\t{\n\t\t\t\tcodecId: ARKTYPE_JSON_CODEC_ID,\n\t\t\t\tjsonIr\n\t\t\t}\n\t\t);\n\t}\n\t/* c8 ignore start — defensive: ark.schema either throws (handled above) or returns a callable Type with `expression: string`. The structural guard is kept so a future ark internal change can't silently slip a non-callable past us. */\n\tif (!isArktypeSchemaLike(rehydrated)) throw runtimeError(\"RUNTIME.JSON_SCHEMA_VALIDATION_FAILED\", `Rehydrated arktype schema does not have the expected callable + 'expression: string' shape (codecId: ${ARKTYPE_JSON_CODEC_ID})`, {\n\t\tcodecId: ARKTYPE_JSON_CODEC_ID,\n\t\tjsonIr\n\t});\n\t/* c8 ignore stop */\n\treturn rehydrated;\n}\nfunction renderArktypeJsonOutputType(params) {\n\tconst expression = params.expression.trim();\n\treturn expression.length > 0 ? expression : \"unknown\";\n}\nvar ArktypeJsonCodecClass = class extends CodecImpl {\n\tschema;\n\tconstructor(descriptor, schema) {\n\t\tsuper(descriptor);\n\t\tthis.schema = schema;\n\t}\n\tasync encode(value, _ctx) {\n\t\treturn serializeWire(value);\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn decodeWireValue(this.schema, wire);\n\t}\n\tencodeJson(value) {\n\t\treturn serializeJson(value);\n\t}\n\tdecodeJson(json) {\n\t\treturn validateSchema(this.schema, json);\n\t}\n};\nconst arktypeJsonParamsSchema = type({\n\texpression: \"string\",\n\tjsonIr: \"object\"\n});\nvar ArktypeJsonDescriptor = class extends PostgresCodecDescriptor {\n\tnativeType() {\n\t\treturn ARKTYPE_JSON_NATIVE_TYPE;\n\t}\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgJsonb.id;\n\tcodecId = ARKTYPE_JSON_CODEC_ID;\n\ttraits = [\"equality\"];\n\ttargetTypes = [ARKTYPE_JSON_NATIVE_TYPE];\n\tparamsSchema = arktypeJsonParamsSchema;\n\trenderOutputType(params) {\n\t\treturn renderArktypeJsonOutputType(params);\n\t}\n\tfactory(params) {\n\t\tconst schema = rehydrateSchema(params.jsonIr);\n\t\tconst rehydratedExpression = schema.expression;\n\t\tif (typeof rehydratedExpression === \"string\" && rehydratedExpression !== params.expression) throw runtimeError(\"RUNTIME.TYPE_PARAMS_INVALID\", `arktype-json: typeParams.expression (${params.expression}) does not match the rehydrated schema's expression (${rehydratedExpression}). The contract was likely emitted against a different arktype version or hand-edited; re-run \\`pnpm emit\\` to regenerate.`, {\n\t\t\tcodecId: ARKTYPE_JSON_CODEC_ID,\n\t\t\tserializedExpression: params.expression,\n\t\t\trehydratedExpression\n\t\t});\n\t\treturn () => new ArktypeJsonCodecClass(this, schema);\n\t}\n};\nconst arktypeJsonDescriptor = new ArktypeJsonDescriptor();\n/**\n* Per-codec column helper for `arktype/json@1`. Method-level generic over `S extends Type<unknown>` so the column site preserves the schema's inferred TS type in the resolved codec (`ArktypeJsonCodecClass<S['infer']>`). Bypasses `descriptor.factory` because `S` is only available at the column-author site; constructs the typed codec directly with the closure-captured schema.\n*\n* Eager serialization at this call site captures `expression` (for the emit-path renderer) and `jsonIr` (for runtime rehydration via the descriptor's factory).\n*\n* @throws `CONTRACT.ARGUMENT_INVALID` if the schema doesn't expose `expression` and `json` fields (i.e. is not an arktype `Type`). Validates the schema shape at the call site so configuration errors surface during contract authoring, not at runtime.\n*/\nfunction arktypeJsonColumn(schema) {\n\tif (!isArktypeSchemaLike(schema)) throw runtimeError(\"CONTRACT.ARGUMENT_INVALID\", typeof schema !== \"function\" ? \"arktypeJsonColumn(schema) expects a callable arktype Type.\" : \"arktypeJsonColumn(schema) expects an arktype Type (missing `expression: string`).\", {\n\t\thelperPath: \"arktypeJsonColumn\",\n\t\texpected: \"arktype Type\",\n\t\treceived: typeof schema\n\t});\n\tconst jsonIr = schema.json;\n\tif (jsonIr === null || typeof jsonIr !== \"object\") throw runtimeError(\"CONTRACT.ARGUMENT_INVALID\", \"arktypeJsonColumn(schema) expects an arktype Type (missing `json` IR).\", {\n\t\thelperPath: \"arktypeJsonColumn\",\n\t\texpected: \"arktype Type\",\n\t\treceived: typeof jsonIr\n\t});\n\tconst params = {\n\t\texpression: schema.expression,\n\t\tjsonIr\n\t};\n\treturn column((_ctx) => new ArktypeJsonCodecClass(arktypeJsonDescriptor, schema), arktypeJsonDescriptor.codecId, params, ARKTYPE_JSON_NATIVE_TYPE);\n}\nconst codecDescriptors = definePostgresCodecs([arktypeJsonDescriptor]);\n//#endregion\nexport { codecDescriptors as i, ARKTYPE_JSON_NATIVE_TYPE as n, arktypeJsonColumn as r, ARKTYPE_JSON_CODEC_ID as t };\n\n//# sourceMappingURL=arktype-json-codec-D2ltdXNS.mjs.map"],"mappings":";;;;;;;AAOA,MAAM,wBAAwB;;AAE9B,MAAM,2BAA2B;AACjC,SAAS,oBAAoB,OAAO;CACnC,IAAI,OAAO,UAAU,YAAY,OAAO;CACxC,OAAO,OAAO,MAAM,eAAe;AACpC;AACA,SAAS,eAAe,QAAQ,OAAO;CACtC,MAAM,SAAS,OAAO,KAAK;CAC3B,I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AQ,SAAS,IAAI,sBAAsB,uBAAuB,MAAM,GAAG,sBAAsB,SAAS,QAAQ,wBAAwB;AAClJ;AACA,MAAM,mBAAmB,qBAAqB,CAAC,qBAAqB,CAAC"}
package/dist/codecs.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { n as ARKTYPE_JSON_NATIVE_TYPE, r as arktypeJsonColumn, t as ARKTYPE_JSON_CODEC_ID } from "./arktype-json-codec-CbKQmx2Q-D0FQmV4d.mjs";
2
- import { t as arktypeJsonCodecRegistry } from "./registry-C80qhtQO-D_6OGkDF.mjs";
1
+ import { n as ARKTYPE_JSON_NATIVE_TYPE, r as arktypeJsonColumn, t as ARKTYPE_JSON_CODEC_ID } from "./arktype-json-codec-D2ltdXNS-BMtJB5Uv.mjs";
2
+ import { t as arktypeJsonCodecRegistry } from "./registry-BlCJtAto-CJM2JhPz.mjs";
3
3
  export { ARKTYPE_JSON_CODEC_ID, ARKTYPE_JSON_NATIVE_TYPE, arktypeJsonCodecRegistry, arktypeJsonColumn };
@@ -1,2 +1,2 @@
1
- import { r as arktypeJsonColumn } from "./arktype-json-codec-CbKQmx2Q-D0FQmV4d.mjs";
1
+ import { r as arktypeJsonColumn } from "./arktype-json-codec-D2ltdXNS-BMtJB5Uv.mjs";
2
2
  export { arktypeJsonColumn as arktypeJson };
package/dist/control.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { t as ARKTYPE_JSON_CODEC_ID } from "./arktype-json-codec-CbKQmx2Q-D0FQmV4d.mjs";
2
- import { t as arktypeJsonPackMeta } from "./pack-meta-SCFU6RQG-DMLQzGUr.mjs";
1
+ import { t as ARKTYPE_JSON_CODEC_ID } from "./arktype-json-codec-D2ltdXNS-BMtJB5Uv.mjs";
2
+ import { t as arktypeJsonPackMeta } from "./pack-meta-T7tpwJSh-CS99O-Tl.mjs";
3
3
  //#region ../../../3-extensions/arktype-json/dist/control.mjs
4
4
  const arktypeJsonControlPlaneHooks = { expandNativeType: ({ nativeType }) => nativeType };
5
5
  const arktypeJsonExtensionDescriptor = {
@@ -1 +1 @@
1
- {"version":3,"file":"control.mjs","names":[],"sources":["../../../../3-extensions/arktype-json/dist/control.mjs"],"sourcesContent":["import { t as ARKTYPE_JSON_CODEC_ID } from \"./arktype-json-codec-CbKQmx2Q.mjs\";\nimport { t as arktypeJsonPackMeta } from \"./pack-meta-SCFU6RQG.mjs\";\n//#region src/exports/control.ts\nconst arktypeJsonControlPlaneHooks = { expandNativeType: ({ nativeType }) => nativeType };\nconst arktypeJsonExtensionDescriptor = {\n\t...arktypeJsonPackMeta,\n\ttypes: {\n\t\t...arktypeJsonPackMeta.types,\n\t\tcodecTypes: {\n\t\t\t...arktypeJsonPackMeta.types.codecTypes,\n\t\t\tcontrolPlaneHooks: { [ARKTYPE_JSON_CODEC_ID]: arktypeJsonControlPlaneHooks }\n\t\t}\n\t},\n\tcreate: () => ({\n\t\tfamilyId: \"sql\",\n\t\ttargetId: \"postgres\"\n\t})\n};\n//#endregion\nexport { arktypeJsonExtensionDescriptor, arktypeJsonExtensionDescriptor as default };\n\n//# sourceMappingURL=control.mjs.map"],"mappings":";;;AAGA,MAAM,+BAA+B,EAAE,mBAAmB,EAAE,iBAAiB,WAAW;AACxF,MAAM,iCAAiC;CACtC,GAAG;CACH,OAAO;EACN,GAAG,oBAAoB;EACvB,YAAY;GACX,GAAG,oBAAoB,MAAM;GAC7B,mBAAmB,GAAG,wBAAwB,6BAA6B;EAC5E;CACD;CACA,eAAe;EACd,UAAU;EACV,UAAU;CACX;AACD"}
1
+ {"version":3,"file":"control.mjs","names":[],"sources":["../../../../3-extensions/arktype-json/dist/control.mjs"],"sourcesContent":["import { t as ARKTYPE_JSON_CODEC_ID } from \"./arktype-json-codec-D2ltdXNS.mjs\";\nimport { t as arktypeJsonPackMeta } from \"./pack-meta-T7tpwJSh.mjs\";\n//#region src/exports/control.ts\nconst arktypeJsonControlPlaneHooks = { expandNativeType: ({ nativeType }) => nativeType };\nconst arktypeJsonExtensionDescriptor = {\n\t...arktypeJsonPackMeta,\n\ttypes: {\n\t\t...arktypeJsonPackMeta.types,\n\t\tcodecTypes: {\n\t\t\t...arktypeJsonPackMeta.types.codecTypes,\n\t\t\tcontrolPlaneHooks: { [ARKTYPE_JSON_CODEC_ID]: arktypeJsonControlPlaneHooks }\n\t\t}\n\t},\n\tcreate: () => ({\n\t\tfamilyId: \"sql\",\n\t\ttargetId: \"postgres\"\n\t})\n};\n//#endregion\nexport { arktypeJsonExtensionDescriptor, arktypeJsonExtensionDescriptor as default };\n\n//# sourceMappingURL=control.mjs.map"],"mappings":";;;AAGA,MAAM,+BAA+B,EAAE,mBAAmB,EAAE,iBAAiB,WAAW;AACxF,MAAM,iCAAiC;CACtC,GAAG;CACH,OAAO;EACN,GAAG,oBAAoB;EACvB,YAAY;GACX,GAAG,oBAAoB,MAAM;GAC7B,mBAAmB,GAAG,wBAAwB,6BAA6B;EAC5E;CACD;CACA,eAAe;EACd,UAAU;EACV,UAAU;CACX;AACD"}
@@ -1,6 +1,6 @@
1
- import { t as ARKTYPE_JSON_CODEC_ID } from "./arktype-json-codec-CbKQmx2Q-D0FQmV4d.mjs";
2
- import { t as arktypeJsonCodecRegistry } from "./registry-C80qhtQO-D_6OGkDF.mjs";
3
- //#region ../../../3-extensions/arktype-json/dist/pack-meta-SCFU6RQG.mjs
1
+ import { t as ARKTYPE_JSON_CODEC_ID } from "./arktype-json-codec-D2ltdXNS-BMtJB5Uv.mjs";
2
+ import { t as arktypeJsonCodecRegistry } from "./registry-BlCJtAto-CJM2JhPz.mjs";
3
+ //#region ../../../3-extensions/arktype-json/dist/pack-meta-T7tpwJSh.mjs
4
4
  /**
5
5
  * Public pack metadata. The phantom `__codecTypes` field threads the codec-types map's literal type into the pack ref so contract-builder generics can pick it up; it is never accessed at runtime.
6
6
  */
@@ -31,4 +31,4 @@ const arktypeJsonPackMeta = {
31
31
  //#endregion
32
32
  export { arktypeJsonPackMeta as t };
33
33
 
34
- //# sourceMappingURL=pack-meta-SCFU6RQG-DMLQzGUr.mjs.map
34
+ //# sourceMappingURL=pack-meta-T7tpwJSh-CS99O-Tl.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"pack-meta-SCFU6RQG-DMLQzGUr.mjs","names":[],"sources":["../../../../3-extensions/arktype-json/dist/pack-meta-SCFU6RQG.mjs"],"sourcesContent":["import { t as ARKTYPE_JSON_CODEC_ID } from \"./arktype-json-codec-CbKQmx2Q.mjs\";\nimport { t as arktypeJsonCodecRegistry } from \"./registry-C80qhtQO.mjs\";\n/**\n* Public pack metadata. The phantom `__codecTypes` field threads the codec-types map's literal type into the pack ref so contract-builder generics can pick it up; it is never accessed at runtime.\n*/\nconst arktypeJsonPackMeta = {\n\tkind: \"extension\",\n\tid: \"arktype-json\",\n\tfamilyId: \"sql\",\n\ttargetId: \"postgres\",\n\tversion: \"0.0.1\",\n\tcapabilities: {},\n\ttypes: {\n\t\tcodecTypes: {\n\t\t\tcodecDescriptors: Array.from(arktypeJsonCodecRegistry.values()),\n\t\t\timport: {\n\t\t\t\tpackage: \"@internal/extension-arktype-json/codec-types\",\n\t\t\t\tnamed: \"CodecTypes\",\n\t\t\t\talias: \"ArktypeJsonTypes\"\n\t\t\t}\n\t\t},\n\t\tstorage: [{\n\t\t\ttypeId: ARKTYPE_JSON_CODEC_ID,\n\t\t\tfamilyId: \"sql\",\n\t\t\ttargetId: \"postgres\",\n\t\t\tnativeType: \"jsonb\"\n\t\t}]\n\t}\n};\n//#endregion\nexport { arktypeJsonPackMeta as t };\n\n//# sourceMappingURL=pack-meta-SCFU6RQG.mjs.map"],"mappings":";;;;;;AAKA,MAAM,sBAAsB;CAC3B,MAAM;CACN,IAAI;CACJ,UAAU;CACV,UAAU;CACV,SAAS;CACT,cAAc,CAAC;CACf,OAAO;EACN,YAAY;GACX,kBAAkB,MAAM,KAAK,yBAAyB,OAAO,CAAC;GAC9D,QAAQ;IACP,SAAS;IACT,OAAO;IACP,OAAO;GACR;EACD;EACA,SAAS,CAAC;GACT,QAAQ;GACR,UAAU;GACV,UAAU;GACV,YAAY;EACb,CAAC;CACF;AACD"}
1
+ {"version":3,"file":"pack-meta-T7tpwJSh-CS99O-Tl.mjs","names":[],"sources":["../../../../3-extensions/arktype-json/dist/pack-meta-T7tpwJSh.mjs"],"sourcesContent":["import { t as ARKTYPE_JSON_CODEC_ID } from \"./arktype-json-codec-D2ltdXNS.mjs\";\nimport { t as arktypeJsonCodecRegistry } from \"./registry-BlCJtAto.mjs\";\n/**\n* Public pack metadata. The phantom `__codecTypes` field threads the codec-types map's literal type into the pack ref so contract-builder generics can pick it up; it is never accessed at runtime.\n*/\nconst arktypeJsonPackMeta = {\n\tkind: \"extension\",\n\tid: \"arktype-json\",\n\tfamilyId: \"sql\",\n\ttargetId: \"postgres\",\n\tversion: \"0.0.1\",\n\tcapabilities: {},\n\ttypes: {\n\t\tcodecTypes: {\n\t\t\tcodecDescriptors: Array.from(arktypeJsonCodecRegistry.values()),\n\t\t\timport: {\n\t\t\t\tpackage: \"@internal/extension-arktype-json/codec-types\",\n\t\t\t\tnamed: \"CodecTypes\",\n\t\t\t\talias: \"ArktypeJsonTypes\"\n\t\t\t}\n\t\t},\n\t\tstorage: [{\n\t\t\ttypeId: ARKTYPE_JSON_CODEC_ID,\n\t\t\tfamilyId: \"sql\",\n\t\t\ttargetId: \"postgres\",\n\t\t\tnativeType: \"jsonb\"\n\t\t}]\n\t}\n};\n//#endregion\nexport { arktypeJsonPackMeta as t };\n\n//# sourceMappingURL=pack-meta-T7tpwJSh.mjs.map"],"mappings":";;;;;;AAKA,MAAM,sBAAsB;CAC3B,MAAM;CACN,IAAI;CACJ,UAAU;CACV,UAAU;CACV,SAAS;CACT,cAAc,CAAC;CACf,OAAO;EACN,YAAY;GACX,kBAAkB,MAAM,KAAK,yBAAyB,OAAO,CAAC;GAC9D,QAAQ;IACP,SAAS;IACT,OAAO;IACP,OAAO;GACR;EACD;EACA,SAAS,CAAC;GACT,QAAQ;GACR,UAAU;GACV,UAAU;GACV,YAAY;EACb,CAAC;CACF;AACD"}
package/dist/pack.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as arktypeJsonPackMeta } from "./pack-meta-SCFU6RQG-DMLQzGUr.mjs";
1
+ import { t as arktypeJsonPackMeta } from "./pack-meta-T7tpwJSh-CS99O-Tl.mjs";
2
2
  export { arktypeJsonPackMeta, arktypeJsonPackMeta as default };
@@ -1,6 +1,6 @@
1
- import { i as codecDescriptors } from "./arktype-json-codec-CbKQmx2Q-D0FQmV4d.mjs";
1
+ import { i as codecDescriptors } from "./arktype-json-codec-D2ltdXNS-BMtJB5Uv.mjs";
2
2
  import { buildCodecDescriptorRegistry } from "@prisma/orm-family-sql/relational-core/codec-descriptor-registry";
3
- //#region ../../../3-extensions/arktype-json/dist/registry-C80qhtQO.mjs
3
+ //#region ../../../3-extensions/arktype-json/dist/registry-BlCJtAto.mjs
4
4
  /**
5
5
  * Registry of every codec descriptor shipped by `@internal/extension-arktype-json`.
6
6
  *
@@ -10,4 +10,4 @@ const arktypeJsonCodecRegistry = buildCodecDescriptorRegistry(codecDescriptors);
10
10
  //#endregion
11
11
  export { arktypeJsonCodecRegistry as t };
12
12
 
13
- //# sourceMappingURL=registry-C80qhtQO-D_6OGkDF.mjs.map
13
+ //# sourceMappingURL=registry-BlCJtAto-CJM2JhPz.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"registry-C80qhtQO-D_6OGkDF.mjs","names":[],"sources":["../../../../3-extensions/arktype-json/dist/registry-C80qhtQO.mjs"],"sourcesContent":["import { i as codecDescriptors } from \"./arktype-json-codec-CbKQmx2Q.mjs\";\nimport { buildCodecDescriptorRegistry } from \"@internal/sql-relational-core/codec-descriptor-registry\";\n//#region src/core/registry.ts\n/**\n* Registry of every codec descriptor shipped by `@internal/extension-arktype-json`.\n*\n* Public consumer surface for the arktype-json codec set. Currently a single entry (`arktype/json@1`); the registry shape stays consistent with the other codec-shipping packages so consumers don't need to special-case extensions. See ADR 208.\n*/\nconst arktypeJsonCodecRegistry = buildCodecDescriptorRegistry(codecDescriptors);\n//#endregion\nexport { arktypeJsonCodecRegistry as t };\n\n//# sourceMappingURL=registry-C80qhtQO.mjs.map"],"mappings":";;;;;;;;AAQA,MAAM,2BAA2B,6BAA6B,gBAAgB"}
1
+ {"version":3,"file":"registry-BlCJtAto-CJM2JhPz.mjs","names":[],"sources":["../../../../3-extensions/arktype-json/dist/registry-BlCJtAto.mjs"],"sourcesContent":["import { i as codecDescriptors } from \"./arktype-json-codec-D2ltdXNS.mjs\";\nimport { buildCodecDescriptorRegistry } from \"@internal/sql-relational-core/codec-descriptor-registry\";\n//#region src/core/registry.ts\n/**\n* Registry of every codec descriptor shipped by `@internal/extension-arktype-json`.\n*\n* Public consumer surface for the arktype-json codec set. Currently a single entry (`arktype/json@1`); the registry shape stays consistent with the other codec-shipping packages so consumers don't need to special-case extensions. See ADR 208.\n*/\nconst arktypeJsonCodecRegistry = buildCodecDescriptorRegistry(codecDescriptors);\n//#endregion\nexport { arktypeJsonCodecRegistry as t };\n\n//# sourceMappingURL=registry-BlCJtAto.mjs.map"],"mappings":";;;;;;;;AAQA,MAAM,2BAA2B,6BAA6B,gBAAgB"}
package/dist/runtime.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { t as arktypeJsonCodecRegistry } from "./registry-C80qhtQO-D_6OGkDF.mjs";
2
- import { t as arktypeJsonPackMeta } from "./pack-meta-SCFU6RQG-DMLQzGUr.mjs";
1
+ import { t as arktypeJsonCodecRegistry } from "./registry-BlCJtAto-CJM2JhPz.mjs";
2
+ import { t as arktypeJsonPackMeta } from "./pack-meta-T7tpwJSh-CS99O-Tl.mjs";
3
3
  //#region ../../../3-extensions/arktype-json/dist/runtime.mjs
4
4
  const arktypeJsonRuntimeDescriptor = {
5
5
  kind: "extension",
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.mjs","names":[],"sources":["../../../../3-extensions/arktype-json/dist/runtime.mjs"],"sourcesContent":["import { t as arktypeJsonCodecRegistry } from \"./registry-C80qhtQO.mjs\";\nimport { t as arktypeJsonPackMeta } from \"./pack-meta-SCFU6RQG.mjs\";\n//#region src/exports/runtime.ts\nconst arktypeJsonRuntimeDescriptor = {\n\tkind: \"extension\",\n\tid: arktypeJsonPackMeta.id,\n\tversion: arktypeJsonPackMeta.version,\n\tfamilyId: \"sql\",\n\ttargetId: \"postgres\",\n\ttypes: { codecTypes: { codecDescriptors: Array.from(arktypeJsonCodecRegistry.values()) } },\n\tcodecs: () => Array.from(arktypeJsonCodecRegistry.values()),\n\tcreate() {\n\t\treturn {\n\t\t\tfamilyId: \"sql\",\n\t\t\ttargetId: \"postgres\"\n\t\t};\n\t}\n};\n//#endregion\nexport { arktypeJsonRuntimeDescriptor, arktypeJsonRuntimeDescriptor as default };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;AAGA,MAAM,+BAA+B;CACpC,MAAM;CACN,IAAI,oBAAoB;CACxB,SAAS,oBAAoB;CAC7B,UAAU;CACV,UAAU;CACV,OAAO,EAAE,YAAY,EAAE,kBAAkB,MAAM,KAAK,yBAAyB,OAAO,CAAC,EAAE,EAAE;CACzF,cAAc,MAAM,KAAK,yBAAyB,OAAO,CAAC;CAC1D,SAAS;EACR,OAAO;GACN,UAAU;GACV,UAAU;EACX;CACD;AACD"}
1
+ {"version":3,"file":"runtime.mjs","names":[],"sources":["../../../../3-extensions/arktype-json/dist/runtime.mjs"],"sourcesContent":["import { t as arktypeJsonCodecRegistry } from \"./registry-BlCJtAto.mjs\";\nimport { t as arktypeJsonPackMeta } from \"./pack-meta-T7tpwJSh.mjs\";\n//#region src/exports/runtime.ts\nconst arktypeJsonRuntimeDescriptor = {\n\tkind: \"extension\",\n\tid: arktypeJsonPackMeta.id,\n\tversion: arktypeJsonPackMeta.version,\n\tfamilyId: \"sql\",\n\ttargetId: \"postgres\",\n\ttypes: { codecTypes: { codecDescriptors: Array.from(arktypeJsonCodecRegistry.values()) } },\n\tcodecs: () => Array.from(arktypeJsonCodecRegistry.values()),\n\tcreate() {\n\t\treturn {\n\t\t\tfamilyId: \"sql\",\n\t\t\ttargetId: \"postgres\"\n\t\t};\n\t}\n};\n//#endregion\nexport { arktypeJsonRuntimeDescriptor, arktypeJsonRuntimeDescriptor as default };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;AAGA,MAAM,+BAA+B;CACpC,MAAM;CACN,IAAI,oBAAoB;CACxB,SAAS,oBAAoB;CAC7B,UAAU;CACV,UAAU;CACV,OAAO,EAAE,YAAY,EAAE,kBAAkB,MAAM,KAAK,yBAAyB,OAAO,CAAC,EAAE,EAAE;CACzF,cAAc,MAAM,KAAK,yBAAyB,OAAO,CAAC;CAC1D,SAAS;EACR,OAAO;GACN,UAAU;GACV,UAAU;EACX;CACD;AACD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/orm-extension-arktype-json",
3
- "version": "8.0.0-rc.14-dev.27",
3
+ "version": "8.0.0-rc.14-dev.28",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -9,21 +9,21 @@
9
9
  "dist"
10
10
  ],
11
11
  "dependencies": {
12
- "@prisma/orm-family-sql": "8.0.0-rc.14-dev.27",
13
- "@prisma/orm-framework": "8.0.0-rc.14-dev.27",
12
+ "@prisma/orm-family-sql": "8.0.0-rc.14-dev.28",
13
+ "@prisma/orm-framework": "8.0.0-rc.14-dev.28",
14
14
  "@standard-schema/spec": "^1.1.0",
15
15
  "arktype": "~2.2.2"
16
16
  },
17
17
  "devDependencies": {
18
- "@internal/extension-arktype-json": "8.0.0-rc.14-dev.27",
19
- "@repo/tsconfig": "8.0.0-rc.14-dev.27",
20
- "@repo/tsdown": "8.0.0-rc.14-dev.27",
21
- "@prisma/orm-target-postgres": "8.0.0-rc.14-dev.27",
18
+ "@internal/extension-arktype-json": "8.0.0-rc.14-dev.28",
19
+ "@repo/tsconfig": "8.0.0-rc.14-dev.28",
20
+ "@repo/tsdown": "8.0.0-rc.14-dev.28",
21
+ "@prisma/orm-target-postgres": "8.0.0-rc.14-dev.28",
22
22
  "tsdown": "0.22.14",
23
23
  "typescript": "5.9.3"
24
24
  },
25
25
  "peerDependencies": {
26
- "@prisma/orm-target-postgres": "8.0.0-rc.14-dev.27",
26
+ "@prisma/orm-target-postgres": "8.0.0-rc.14-dev.28",
27
27
  "typescript": ">=5.9"
28
28
  },
29
29
  "peerDependenciesMeta": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"arktype-json-codec-CbKQmx2Q-D0FQmV4d.mjs","names":[],"sources":["../../../../3-extensions/arktype-json/dist/arktype-json-codec-CbKQmx2Q.mjs"],"sourcesContent":["import { CodecImpl, column } from \"@internal/framework-components/codec\";\nimport { isRuntimeError, runtimeError } from \"@internal/framework-components/runtime\";\nimport { PostgresCodecDescriptor, definePostgresCodecs } from \"@internal/target-postgres/codec-descriptor\";\nimport { pgJsonb } from \"@internal/target-postgres/data-types\";\nimport { ArkErrors, ark, type } from \"arktype\";\n//#region src/core/arktype-json-codec.ts\n/** Codec id for arktype-backed JSON columns. Library-bound, not target-bound. */\nconst ARKTYPE_JSON_CODEC_ID = \"arktype/json@1\";\n/** Native storage type backing the codec. JSONB on Postgres; binary, indexable. */\nconst ARKTYPE_JSON_NATIVE_TYPE = \"jsonb\";\nfunction isArktypeSchemaLike(value) {\n\tif (typeof value !== \"function\") return false;\n\treturn typeof value.expression === \"string\";\n}\nfunction validateSchema(schema, value) {\n\tconst result = schema(value);\n\tif (result instanceof ArkErrors) throw runtimeError(\"RUNTIME.JSON_SCHEMA_VALIDATION_FAILED\", `arktype-json schema validation failed (decode): ${result.summary}`, {\n\t\tcodecId: ARKTYPE_JSON_CODEC_ID,\n\t\tissues: result.summary\n\t});\n\treturn result;\n}\nfunction serializeWire(value) {\n\tlet wire;\n\ttry {\n\t\twire = JSON.stringify(value);\n\t} catch (error) {\n\t\tthrow Object.assign(runtimeError(\"RUNTIME.ENCODE_FAILED\", `arktype-json value could not be serialized to JSON (codecId: ${ARKTYPE_JSON_CODEC_ID})`, { codecId: ARKTYPE_JSON_CODEC_ID }), { cause: error });\n\t}\n\tif (typeof wire !== \"string\") throw runtimeError(\"RUNTIME.ENCODE_FAILED\", `arktype-json value is not representable as JSON (codecId: ${ARKTYPE_JSON_CODEC_ID})`, { codecId: ARKTYPE_JSON_CODEC_ID });\n\treturn wire;\n}\nfunction serializeJson(value) {\n\treturn JSON.parse(serializeWire(value));\n}\nfunction parseJsonText(wire) {\n\ttry {\n\t\treturn JSON.parse(wire);\n\t} catch {\n\t\treturn;\n\t}\n}\nfunction decodeWireValue(schema, wire) {\n\tif (typeof wire !== \"string\") return validateSchema(schema, wire);\n\ttry {\n\t\treturn validateSchema(schema, wire);\n\t} catch (error) {\n\t\tif (!isRuntimeError(error) || error.code !== \"RUNTIME.JSON_SCHEMA_VALIDATION_FAILED\") throw error;\n\t\tconst parsed = parseJsonText(wire);\n\t\tif (parsed === void 0) throw error;\n\t\treturn validateSchema(schema, parsed);\n\t}\n}\nfunction rehydrateSchema(jsonIr) {\n\tlet rehydrated;\n\ttry {\n\t\trehydrated = ark.schema(jsonIr);\n\t} catch (error) {\n\t\tthrow runtimeError(\n\t\t\t\"RUNTIME.JSON_SCHEMA_VALIDATION_FAILED\",\n\t\t\t/* c8 ignore next — the `String(error)` fallback covers throws of non-Error values; arktype only throws Error subclasses, so this branch is defensive only. */\n\t\t\t`Failed to rehydrate arktype schema from contract IR: ${error instanceof Error ? error.message : String(error)}`,\n\t\t\t{\n\t\t\t\tcodecId: ARKTYPE_JSON_CODEC_ID,\n\t\t\t\tjsonIr\n\t\t\t}\n\t\t);\n\t}\n\t/* c8 ignore start — defensive: ark.schema either throws (handled above) or returns a callable Type with `expression: string`. The structural guard is kept so a future ark internal change can't silently slip a non-callable past us. */\n\tif (!isArktypeSchemaLike(rehydrated)) throw runtimeError(\"RUNTIME.JSON_SCHEMA_VALIDATION_FAILED\", `Rehydrated arktype schema does not have the expected callable + 'expression: string' shape (codecId: ${ARKTYPE_JSON_CODEC_ID})`, {\n\t\tcodecId: ARKTYPE_JSON_CODEC_ID,\n\t\tjsonIr\n\t});\n\t/* c8 ignore stop */\n\treturn rehydrated;\n}\nfunction renderArktypeJsonOutputType(params) {\n\tconst expression = params.expression.trim();\n\treturn expression.length > 0 ? expression : \"unknown\";\n}\nvar ArktypeJsonCodecClass = class extends CodecImpl {\n\tschema;\n\tconstructor(descriptor, schema) {\n\t\tsuper(descriptor);\n\t\tthis.schema = schema;\n\t}\n\tasync encode(value, _ctx) {\n\t\treturn serializeWire(value);\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn decodeWireValue(this.schema, wire);\n\t}\n\tencodeJson(value) {\n\t\treturn serializeJson(value);\n\t}\n\tdecodeJson(json) {\n\t\treturn validateSchema(this.schema, json);\n\t}\n};\nconst arktypeJsonParamsSchema = type({\n\texpression: \"string\",\n\tjsonIr: \"object\"\n});\nvar ArktypeJsonDescriptor = class extends PostgresCodecDescriptor {\n\tnativeType() {\n\t\treturn ARKTYPE_JSON_NATIVE_TYPE;\n\t}\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgJsonb.id;\n\tcodecId = ARKTYPE_JSON_CODEC_ID;\n\ttraits = [\"equality\"];\n\ttargetTypes = [ARKTYPE_JSON_NATIVE_TYPE];\n\tparamsSchema = arktypeJsonParamsSchema;\n\trenderOutputType(params) {\n\t\treturn renderArktypeJsonOutputType(params);\n\t}\n\tfactory(params) {\n\t\tconst schema = rehydrateSchema(params.jsonIr);\n\t\tconst rehydratedExpression = schema.expression;\n\t\tif (typeof rehydratedExpression === \"string\" && rehydratedExpression !== params.expression) throw runtimeError(\"RUNTIME.TYPE_PARAMS_INVALID\", `arktype-json: typeParams.expression (${params.expression}) does not match the rehydrated schema's expression (${rehydratedExpression}). The contract was likely emitted against a different arktype version or hand-edited; re-run \\`pnpm emit\\` to regenerate.`, {\n\t\t\tcodecId: ARKTYPE_JSON_CODEC_ID,\n\t\t\tserializedExpression: params.expression,\n\t\t\trehydratedExpression\n\t\t});\n\t\treturn () => new ArktypeJsonCodecClass(this, schema);\n\t}\n};\nconst arktypeJsonDescriptor = new ArktypeJsonDescriptor();\n/**\n* Per-codec column helper for `arktype/json@1`. Method-level generic over `S extends Type<unknown>` so the column site preserves the schema's inferred TS type in the resolved codec (`ArktypeJsonCodecClass<S['infer']>`). Bypasses `descriptor.factory` because `S` is only available at the column-author site; constructs the typed codec directly with the closure-captured schema.\n*\n* Eager serialization at this call site captures `expression` (for the emit-path renderer) and `jsonIr` (for runtime rehydration via the descriptor's factory).\n*\n* @throws `CONTRACT.ARGUMENT_INVALID` if the schema doesn't expose `expression` and `json` fields (i.e. is not an arktype `Type`). Validates the schema shape at the call site so configuration errors surface during contract authoring, not at runtime.\n*/\nfunction arktypeJsonColumn(schema) {\n\tif (!isArktypeSchemaLike(schema)) throw runtimeError(\"CONTRACT.ARGUMENT_INVALID\", typeof schema !== \"function\" ? \"arktypeJsonColumn(schema) expects a callable arktype Type.\" : \"arktypeJsonColumn(schema) expects an arktype Type (missing `expression: string`).\", {\n\t\thelperPath: \"arktypeJsonColumn\",\n\t\texpected: \"arktype Type\",\n\t\treceived: typeof schema\n\t});\n\tconst jsonIr = schema.json;\n\tif (jsonIr === null || typeof jsonIr !== \"object\") throw runtimeError(\"CONTRACT.ARGUMENT_INVALID\", \"arktypeJsonColumn(schema) expects an arktype Type (missing `json` IR).\", {\n\t\thelperPath: \"arktypeJsonColumn\",\n\t\texpected: \"arktype Type\",\n\t\treceived: typeof jsonIr\n\t});\n\tconst params = {\n\t\texpression: schema.expression,\n\t\tjsonIr\n\t};\n\treturn column((_ctx) => new ArktypeJsonCodecClass(arktypeJsonDescriptor, schema), arktypeJsonDescriptor.codecId, params, ARKTYPE_JSON_NATIVE_TYPE);\n}\nconst codecDescriptors = definePostgresCodecs([arktypeJsonDescriptor]);\n//#endregion\nexport { codecDescriptors as i, ARKTYPE_JSON_NATIVE_TYPE as n, arktypeJsonColumn as r, ARKTY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