@prisma-next/extension-supabase 0.12.0-dev.74 → 0.12.0-dev.75
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/pack.mjs +4 -6
- package/dist/pack.mjs.map +1 -1
- package/package.json +24 -24
- package/src/contract/contract.d.ts +1 -1
- package/src/contract/contract.json +3 -5
package/dist/pack.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { blindCast } from "@prisma-next/utils/casts";
|
|
2
2
|
//#region package.json
|
|
3
|
-
var version = "0.12.0-dev.
|
|
3
|
+
var version = "0.12.0-dev.75";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/contract/contract.json
|
|
6
6
|
var contract_default = {
|
|
@@ -379,19 +379,17 @@ var contract_default = {
|
|
|
379
379
|
"kind": "postgres-schema"
|
|
380
380
|
}
|
|
381
381
|
},
|
|
382
|
-
"storageHash": "sha256:
|
|
382
|
+
"storageHash": "sha256:a92ac18f82eb73f747fa9512351caec3e42df1a1a897bce787966af84371638c",
|
|
383
383
|
"types": {
|
|
384
384
|
"Timestamptz": {
|
|
385
385
|
"codecId": "pg/timestamptz@1",
|
|
386
386
|
"kind": "codec-instance",
|
|
387
|
-
"nativeType": "timestamptz"
|
|
388
|
-
"typeParams": {}
|
|
387
|
+
"nativeType": "timestamptz"
|
|
389
388
|
},
|
|
390
389
|
"Uuid": {
|
|
391
390
|
"codecId": "pg/text@1",
|
|
392
391
|
"kind": "codec-instance",
|
|
393
|
-
"nativeType": "uuid"
|
|
394
|
-
"typeParams": {}
|
|
392
|
+
"nativeType": "uuid"
|
|
395
393
|
}
|
|
396
394
|
}
|
|
397
395
|
},
|
package/dist/pack.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pack.mjs","names":["contractJson","packageJson.version"],"sources":["../package.json","../src/contract/contract.json","../src/pack/index.ts"],"sourcesContent":["","","import type { SqlControlExtensionDescriptor } from '@prisma-next/family-sql/control';\nimport { blindCast } from '@prisma-next/utils/casts';\nimport packageJson from '../../package.json' with { type: 'json' };\nimport type { Contract } from '../contract/contract.d';\nimport contractJson from '../contract/contract.json' with { type: 'json' };\n\nconst SUPABASE_SPACE_ID = 'supabase' as const;\n\nfunction buildContractSpace(contractOverride?: unknown) {\n const contract = blindCast<\n Contract,\n 'JSON import narrowed to emitted Contract type; assertDescriptorSelfConsistency verifies the storageHash at load time'\n >(contractOverride ?? contractJson);\n return {\n contractJson: contract,\n migrations: [] as const,\n headRef: { hash: contract.storage.storageHash, invariants: [] as const },\n };\n}\n\nconst supabaseContractSpace = buildContractSpace();\n\nconst supabasePackBase = {\n kind: 'extension' as const,\n id: SUPABASE_SPACE_ID,\n familyId: 'sql' as const,\n targetId: 'postgres' as const,\n version: packageJson.version,\n contractSpace: supabaseContractSpace,\n create: () => ({\n familyId: 'sql' as const,\n targetId: 'postgres' as const,\n }),\n} satisfies SqlControlExtensionDescriptor<'postgres'>;\n\nexport const supabasePack: SqlControlExtensionDescriptor<'postgres'> = supabasePackBase;\n\n/**\n * Returns a pack using `contractOverride` in place of the shipped\n * `contract.json` when provided, otherwise returns the default pack.\n *\n * Intended for tests that need to drive the framework with a synthetic\n * contract while still exercising the full descriptor wiring.\n */\nexport function supabasePackWith(options?: {\n contractOverride?: unknown;\n}): SqlControlExtensionDescriptor<'postgres'> {\n if (options?.contractOverride === undefined) return supabasePack;\n return {\n ...supabasePackBase,\n contractSpace: buildContractSpace(options.contractOverride),\n };\n}\n\nexport default supabasePack;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pack.mjs","names":["contractJson","packageJson.version"],"sources":["../package.json","../src/contract/contract.json","../src/pack/index.ts"],"sourcesContent":["","","import type { SqlControlExtensionDescriptor } from '@prisma-next/family-sql/control';\nimport { blindCast } from '@prisma-next/utils/casts';\nimport packageJson from '../../package.json' with { type: 'json' };\nimport type { Contract } from '../contract/contract.d';\nimport contractJson from '../contract/contract.json' with { type: 'json' };\n\nconst SUPABASE_SPACE_ID = 'supabase' as const;\n\nfunction buildContractSpace(contractOverride?: unknown) {\n const contract = blindCast<\n Contract,\n 'JSON import narrowed to emitted Contract type; assertDescriptorSelfConsistency verifies the storageHash at load time'\n >(contractOverride ?? contractJson);\n return {\n contractJson: contract,\n migrations: [] as const,\n headRef: { hash: contract.storage.storageHash, invariants: [] as const },\n };\n}\n\nconst supabaseContractSpace = buildContractSpace();\n\nconst supabasePackBase = {\n kind: 'extension' as const,\n id: SUPABASE_SPACE_ID,\n familyId: 'sql' as const,\n targetId: 'postgres' as const,\n version: packageJson.version,\n contractSpace: supabaseContractSpace,\n create: () => ({\n familyId: 'sql' as const,\n targetId: 'postgres' as const,\n }),\n} satisfies SqlControlExtensionDescriptor<'postgres'>;\n\nexport const supabasePack: SqlControlExtensionDescriptor<'postgres'> = supabasePackBase;\n\n/**\n * Returns a pack using `contractOverride` in place of the shipped\n * `contract.json` when provided, otherwise returns the default pack.\n *\n * Intended for tests that need to drive the framework with a synthetic\n * contract while still exercising the full descriptor wiring.\n */\nexport function supabasePackWith(options?: {\n contractOverride?: unknown;\n}): SqlControlExtensionDescriptor<'postgres'> {\n if (options?.contractOverride === undefined) return supabasePack;\n return {\n ...supabasePackBase,\n contractSpace: buildContractSpace(options.contractOverride),\n };\n}\n\nexport default supabasePack;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEMA,MAAM,oBAAoB;AAE1B,SAAS,mBAAmB,kBAA4B;CACtD,MAAM,WAAW,UAGf,oBAAoBA,gBAAY;CAClC,OAAO;EACL,cAAc;EACd,YAAY,CAAC;EACb,SAAS;GAAE,MAAM,SAAS,QAAQ;GAAa,YAAY,CAAC;EAAW;CACzE;AACF;AAIA,MAAM,mBAAmB;CACvB,MAAM;CACN,IAAI;CACJ,UAAU;CACV,UAAU;CACDC;CACT,eAR4B,mBAQb;CACf,eAAe;EACb,UAAU;EACV,UAAU;CACZ;AACF;AAEA,MAAa,eAA0D;;;;;;;;AASvE,SAAgB,iBAAiB,SAEa;CAC5C,IAAI,SAAS,qBAAqB,KAAA,GAAW,OAAO;CACpD,OAAO;EACL,GAAG;EACH,eAAe,mBAAmB,QAAQ,gBAAgB;CAC5D;AACF"}
|
package/package.json
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/extension-supabase",
|
|
3
|
-
"version": "0.12.0-dev.
|
|
3
|
+
"version": "0.12.0-dev.75",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@prisma-next/contract": "0.12.0-dev.
|
|
9
|
-
"@prisma-next/contract-authoring": "0.12.0-dev.
|
|
10
|
-
"@prisma-next/family-sql": "0.12.0-dev.
|
|
11
|
-
"@prisma-next/framework-components": "0.12.0-dev.
|
|
12
|
-
"@prisma-next/migration-tools": "0.12.0-dev.
|
|
13
|
-
"@prisma-next/sql-contract": "0.12.0-dev.
|
|
14
|
-
"@prisma-next/sql-contract-ts": "0.12.0-dev.
|
|
15
|
-
"@prisma-next/sql-operations": "0.12.0-dev.
|
|
16
|
-
"@prisma-next/sql-relational-core": "0.12.0-dev.
|
|
17
|
-
"@prisma-next/sql-runtime": "0.12.0-dev.
|
|
18
|
-
"@prisma-next/sql-schema-ir": "0.12.0-dev.
|
|
19
|
-
"@prisma-next/utils": "0.12.0-dev.
|
|
8
|
+
"@prisma-next/contract": "0.12.0-dev.75",
|
|
9
|
+
"@prisma-next/contract-authoring": "0.12.0-dev.75",
|
|
10
|
+
"@prisma-next/family-sql": "0.12.0-dev.75",
|
|
11
|
+
"@prisma-next/framework-components": "0.12.0-dev.75",
|
|
12
|
+
"@prisma-next/migration-tools": "0.12.0-dev.75",
|
|
13
|
+
"@prisma-next/sql-contract": "0.12.0-dev.75",
|
|
14
|
+
"@prisma-next/sql-contract-ts": "0.12.0-dev.75",
|
|
15
|
+
"@prisma-next/sql-operations": "0.12.0-dev.75",
|
|
16
|
+
"@prisma-next/sql-relational-core": "0.12.0-dev.75",
|
|
17
|
+
"@prisma-next/sql-runtime": "0.12.0-dev.75",
|
|
18
|
+
"@prisma-next/sql-schema-ir": "0.12.0-dev.75",
|
|
19
|
+
"@prisma-next/utils": "0.12.0-dev.75",
|
|
20
20
|
"@standard-schema/spec": "^1.1.0",
|
|
21
21
|
"arktype": "^2.2.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@prisma-next/adapter-postgres": "0.12.0-dev.
|
|
25
|
-
"@prisma-next/cli": "0.12.0-dev.
|
|
26
|
-
"@prisma-next/driver-postgres": "0.12.0-dev.
|
|
27
|
-
"@prisma-next/operations": "0.12.0-dev.
|
|
28
|
-
"@prisma-next/postgres": "0.12.0-dev.
|
|
29
|
-
"@prisma-next/sql-contract-psl": "0.12.0-dev.
|
|
30
|
-
"@prisma-next/target-postgres": "0.12.0-dev.
|
|
31
|
-
"@prisma-next/test-utils": "0.12.0-dev.
|
|
32
|
-
"@prisma-next/tsconfig": "0.12.0-dev.
|
|
33
|
-
"@prisma-next/tsdown": "0.12.0-dev.
|
|
24
|
+
"@prisma-next/adapter-postgres": "0.12.0-dev.75",
|
|
25
|
+
"@prisma-next/cli": "0.12.0-dev.75",
|
|
26
|
+
"@prisma-next/driver-postgres": "0.12.0-dev.75",
|
|
27
|
+
"@prisma-next/operations": "0.12.0-dev.75",
|
|
28
|
+
"@prisma-next/postgres": "0.12.0-dev.75",
|
|
29
|
+
"@prisma-next/sql-contract-psl": "0.12.0-dev.75",
|
|
30
|
+
"@prisma-next/target-postgres": "0.12.0-dev.75",
|
|
31
|
+
"@prisma-next/test-utils": "0.12.0-dev.75",
|
|
32
|
+
"@prisma-next/tsconfig": "0.12.0-dev.75",
|
|
33
|
+
"@prisma-next/tsdown": "0.12.0-dev.75",
|
|
34
34
|
"@types/pg": "8.20.0",
|
|
35
35
|
"pg": "8.21.0",
|
|
36
36
|
"tsdown": "0.22.1",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"vitest": "4.1.8"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@prisma-next/adapter-postgres": "0.12.0-dev.
|
|
41
|
+
"@prisma-next/adapter-postgres": "0.12.0-dev.75",
|
|
42
42
|
"typescript": ">=5.9"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
@@ -31,7 +31,7 @@ import type {
|
|
|
31
31
|
} from '@prisma-next/contract/types';
|
|
32
32
|
|
|
33
33
|
export type StorageHash =
|
|
34
|
-
StorageHashBase<'sha256:
|
|
34
|
+
StorageHashBase<'sha256:a92ac18f82eb73f747fa9512351caec3e42df1a1a897bce787966af84371638c'>;
|
|
35
35
|
export type ExecutionHash = ExecutionHashBase<string>;
|
|
36
36
|
export type ProfileHash =
|
|
37
37
|
ProfileHashBase<'sha256:9c8aa3114e84ed3b7ea2bd57526d9c2e1bf7c5292be694e9d3801f566fda7ccb'>;
|
|
@@ -440,19 +440,17 @@
|
|
|
440
440
|
"kind": "postgres-schema"
|
|
441
441
|
}
|
|
442
442
|
},
|
|
443
|
-
"storageHash": "sha256:
|
|
443
|
+
"storageHash": "sha256:a92ac18f82eb73f747fa9512351caec3e42df1a1a897bce787966af84371638c",
|
|
444
444
|
"types": {
|
|
445
445
|
"Timestamptz": {
|
|
446
446
|
"codecId": "pg/timestamptz@1",
|
|
447
447
|
"kind": "codec-instance",
|
|
448
|
-
"nativeType": "timestamptz"
|
|
449
|
-
"typeParams": {}
|
|
448
|
+
"nativeType": "timestamptz"
|
|
450
449
|
},
|
|
451
450
|
"Uuid": {
|
|
452
451
|
"codecId": "pg/text@1",
|
|
453
452
|
"kind": "codec-instance",
|
|
454
|
-
"nativeType": "uuid"
|
|
455
|
-
"typeParams": {}
|
|
453
|
+
"nativeType": "uuid"
|
|
456
454
|
}
|
|
457
455
|
}
|
|
458
456
|
},
|