prisma-ltree 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/control.mjs CHANGED
@@ -87,7 +87,8 @@ var contract_default = {
87
87
  "defaultInInsert": true,
88
88
  "enums": true,
89
89
  "lateral": true,
90
- "returning": true
90
+ "returning": true,
91
+ "scalarList": true
91
92
  }
92
93
  },
93
94
  extensionPacks: {},
@@ -1 +1 @@
1
- {"version":3,"file":"control.mjs","names":["baselineMetadata","baselineOps"],"sources":["../migrations/app/20260619T2142_install_ltree/migration.json","../migrations/app/20260619T2142_install_ltree/ops.json","../migrations/app/refs/head.json","../src/contract.json","../src/exports/control.ts"],"sourcesContent":["","","","","import type { Contract } from \"@prisma-next/contract/types\";\nimport type {\n CodecControlHooks,\n SqlControlExtensionDescriptor,\n} from \"@prisma-next/family-sql/control\";\nimport { contractSpaceFromJson } from \"@prisma-next/migration-tools/spaces\";\nimport type { SqlStorage } from \"@prisma-next/sql-contract/types\";\nimport baselineMetadata from \"../../migrations/app/20260619T2142_install_ltree/migration.json\" with { type: \"json\" };\nimport baselineOps from \"../../migrations/app/20260619T2142_install_ltree/ops.json\" with { type: \"json\" };\nimport headRef from \"../../migrations/app/refs/head.json\" with { type: \"json\" };\nimport contractJson from \"../contract.json\" with { type: \"json\" };\nimport { LTREE_ARRAY_CODEC_ID, LTREE_CODEC_ID } from \"../core/constants\";\nimport { LTREE_SPACE_ID, LTREE_BASELINE_MIGRATION_NAME } from \"../core/contract-space-constants\";\nimport { ltreePackMeta, ltreeQueryOperations } from \"../core/descriptor-meta\";\n\nconst ltreeControlPlaneHooks: CodecControlHooks = {\n expandNativeType: ({ nativeType }) => nativeType,\n resolveIdentityValue: () => null,\n};\n\nconst ltreeContractSpace = contractSpaceFromJson<Contract<SqlStorage>>({\n contractJson,\n migrations: [\n {\n dirName: LTREE_BASELINE_MIGRATION_NAME,\n metadata: baselineMetadata,\n ops: baselineOps,\n },\n ],\n headRef,\n});\n\nconst ltreeExtensionDescriptor: SqlControlExtensionDescriptor<\"postgres\"> = {\n ...ltreePackMeta,\n id: LTREE_SPACE_ID,\n contractSpace: ltreeContractSpace,\n types: {\n ...ltreePackMeta.types,\n codecTypes: {\n ...ltreePackMeta.types.codecTypes,\n controlPlaneHooks: {\n [LTREE_CODEC_ID]: ltreeControlPlaneHooks,\n [LTREE_ARRAY_CODEC_ID]: ltreeControlPlaneHooks,\n },\n },\n },\n queryOperations: () => ltreeQueryOperations(),\n create: () => ({\n familyId: \"sql\" as const,\n targetId: \"postgres\" as const,\n }),\n};\n\nexport { ltreeExtensionDescriptor };\nexport default ltreeExtensionDescriptor;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AIeA,MAAM,yBAA4C;CAChD,mBAAmB,EAAE,iBAAiB;CACtC,4BAA4B;AAC9B;AAEA,MAAM,qBAAqB,sBAA4C;CACrE,cAAA;CACA,YAAY,CACV;EACE,SAAS;EACT,UAAUA;EACV,KAAKC;CACP,CACF;CACA,SAAA;AACF,CAAC;AAED,MAAM,2BAAsE;CAC1E,GAAG;CACH,IAAI;CACJ,eAAe;CACf,OAAO;EACL,GAAG,cAAc;EACjB,YAAY;GACV,GAAG,cAAc,MAAM;GACvB,mBAAmB;KAChB,iBAAiB;KACjB,uBAAuB;GAC1B;EACF;CACF;CACA,uBAAuB,qBAAqB;CAC5C,eAAe;EACb,UAAU;EACV,UAAU;CACZ;AACF"}
1
+ {"version":3,"file":"control.mjs","names":["baselineMetadata","baselineOps"],"sources":["../migrations/app/20260619T2142_install_ltree/migration.json","../migrations/app/20260619T2142_install_ltree/ops.json","../migrations/app/refs/head.json","../src/contract.json","../src/exports/control.ts"],"sourcesContent":["","","","","import type { Contract } from \"@prisma-next/contract/types\";\nimport type {\n CodecControlHooks,\n SqlControlExtensionDescriptor,\n} from \"@prisma-next/family-sql/control\";\nimport { contractSpaceFromJson } from \"@prisma-next/migration-tools/spaces\";\nimport type { SqlStorage } from \"@prisma-next/sql-contract/types\";\nimport baselineMetadata from \"../../migrations/app/20260619T2142_install_ltree/migration.json\" with { type: \"json\" };\nimport baselineOps from \"../../migrations/app/20260619T2142_install_ltree/ops.json\" with { type: \"json\" };\nimport headRef from \"../../migrations/app/refs/head.json\" with { type: \"json\" };\nimport contractJson from \"../contract.json\" with { type: \"json\" };\nimport { LTREE_ARRAY_CODEC_ID, LTREE_CODEC_ID } from \"../core/constants\";\nimport { LTREE_SPACE_ID, LTREE_BASELINE_MIGRATION_NAME } from \"../core/contract-space-constants\";\nimport { ltreePackMeta, ltreeQueryOperations } from \"../core/descriptor-meta\";\n\nconst ltreeControlPlaneHooks: CodecControlHooks = {\n expandNativeType: ({ nativeType }) => nativeType,\n resolveIdentityValue: () => null,\n};\n\nconst ltreeContractSpace = contractSpaceFromJson<Contract<SqlStorage>>({\n contractJson,\n migrations: [\n {\n dirName: LTREE_BASELINE_MIGRATION_NAME,\n metadata: baselineMetadata,\n ops: baselineOps,\n },\n ],\n headRef,\n});\n\nconst ltreeExtensionDescriptor: SqlControlExtensionDescriptor<\"postgres\"> = {\n ...ltreePackMeta,\n id: LTREE_SPACE_ID,\n contractSpace: ltreeContractSpace,\n types: {\n ...ltreePackMeta.types,\n codecTypes: {\n ...ltreePackMeta.types.codecTypes,\n controlPlaneHooks: {\n [LTREE_CODEC_ID]: ltreeControlPlaneHooks,\n [LTREE_ARRAY_CODEC_ID]: ltreeControlPlaneHooks,\n },\n },\n },\n queryOperations: () => ltreeQueryOperations(),\n create: () => ({\n familyId: \"sql\" as const,\n targetId: \"postgres\" as const,\n }),\n};\n\nexport { ltreeExtensionDescriptor };\nexport default ltreeExtensionDescriptor;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AIeA,MAAM,yBAA4C;CAChD,mBAAmB,EAAE,iBAAiB;CACtC,4BAA4B;AAC9B;AAEA,MAAM,qBAAqB,sBAA4C;CACrE,cAAA;CACA,YAAY,CACV;EACE,SAAS;EACT,UAAUA;EACV,KAAKC;CACP,CACF;CACA,SAAA;AACF,CAAC;AAED,MAAM,2BAAsE;CAC1E,GAAG;CACH,IAAI;CACJ,eAAe;CACf,OAAO;EACL,GAAG,cAAc;EACjB,YAAY;GACV,GAAG,cAAc,MAAM;GACvB,mBAAmB;KAChB,iBAAiB;KACjB,uBAAuB;GAC1B;EACF;CACF;CACA,uBAAuB,qBAAqB;CAC5C,eAAe;EACb,UAAU;EACV,UAAU;CACZ;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prisma-ltree",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Prisma Next extension pack for PostgreSQL's ltree hierarchical tree data type.",
5
5
  "homepage": "https://prisma-ltree.procka.org",
6
6
  "license": "Apache-2.0",
@@ -28,28 +28,28 @@
28
28
  "access": "public"
29
29
  },
30
30
  "dependencies": {
31
- "@prisma-next/contract": "0.14.0",
32
- "@prisma-next/contract-authoring": "0.14.0",
33
- "@prisma-next/family-sql": "0.14.0",
34
- "@prisma-next/framework-components": "0.14.0",
35
- "@prisma-next/migration-tools": "0.14.0",
36
- "@prisma-next/sql-contract": "0.14.0",
37
- "@prisma-next/sql-operations": "0.14.0",
38
- "@prisma-next/sql-relational-core": "0.14.0",
39
- "@prisma-next/sql-runtime": "0.14.0",
40
- "@prisma-next/sql-schema-ir": "0.14.0",
31
+ "@prisma-next/contract": "0.15.0",
32
+ "@prisma-next/contract-authoring": "0.15.0",
33
+ "@prisma-next/family-sql": "0.15.0",
34
+ "@prisma-next/framework-components": "0.15.0",
35
+ "@prisma-next/migration-tools": "0.15.0",
36
+ "@prisma-next/sql-contract": "0.15.0",
37
+ "@prisma-next/sql-operations": "0.15.0",
38
+ "@prisma-next/sql-relational-core": "0.15.0",
39
+ "@prisma-next/sql-runtime": "0.15.0",
40
+ "@prisma-next/sql-schema-ir": "0.15.0",
41
41
  "@standard-schema/spec": "^1.1.0",
42
42
  "arktype": "^2.2.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@electric-sql/pglite": "^0.5.3",
46
- "@prisma-next/adapter-postgres": "0.14.0",
47
- "@prisma-next/cli": "0.14.0",
48
- "@prisma-next/extension-author-tools": "0.14.0",
49
- "@prisma-next/operations": "0.14.0",
50
- "@prisma-next/postgres": "0.14.0",
51
- "@prisma-next/sql-contract-ts": "0.14.0",
52
- "@prisma-next/target-postgres": "0.14.0",
46
+ "@prisma-next/adapter-postgres": "0.15.0",
47
+ "@prisma-next/cli": "0.15.0",
48
+ "@prisma-next/extension-author-tools": "0.15.0",
49
+ "@prisma-next/operations": "0.15.0",
50
+ "@prisma-next/postgres": "0.15.0",
51
+ "@prisma-next/sql-contract-ts": "0.15.0",
52
+ "@prisma-next/target-postgres": "0.15.0",
53
53
  "@types/node": "^24",
54
54
  "@typescript/native-preview": "7.0.0-dev.20260509.2",
55
55
  "@vitest/coverage-v8": "4.1.8",
@@ -57,7 +57,7 @@
57
57
  "vite-plus": "0.1.24"
58
58
  },
59
59
  "peerDependencies": {
60
- "@prisma-next/adapter-postgres": "0.14.0",
60
+ "@prisma-next/adapter-postgres": "0.15.0",
61
61
  "typescript": ">=5.9"
62
62
  },
63
63
  "peerDependenciesMeta": {
package/src/contract.d.ts CHANGED
@@ -44,11 +44,15 @@ type DefaultLiteralValue<CodecId extends string, _Encoded> = CodecId extends key
44
44
 
45
45
  export type FieldOutputTypes = { readonly public: Record<string, never> };
46
46
  export type FieldInputTypes = { readonly public: Record<string, never> };
47
+ export type StorageColumnTypes = { readonly public: {} };
48
+ export type StorageColumnInputTypes = { readonly public: {} };
47
49
  export type TypeMaps = TypeMapsType<
48
50
  CodecTypes,
49
51
  QueryOperationTypes,
50
52
  FieldOutputTypes,
51
- FieldInputTypes
53
+ FieldInputTypes,
54
+ StorageColumnTypes,
55
+ StorageColumnInputTypes
52
56
  >;
53
57
 
54
58
  type ContractBase = Omit<
@@ -102,6 +106,7 @@ type ContractBase = Omit<
102
106
  readonly enums: true;
103
107
  readonly lateral: true;
104
108
  readonly returning: true;
109
+ readonly scalarList: true;
105
110
  };
106
111
  };
107
112
  readonly extensionPacks: {};
package/src/contract.json CHANGED
@@ -48,7 +48,8 @@
48
48
  "defaultInInsert": true,
49
49
  "enums": true,
50
50
  "lateral": true,
51
- "returning": true
51
+ "returning": true,
52
+ "scalarList": true
52
53
  }
53
54
  },
54
55
  "extensionPacks": {},