@prisma-next/extension-supabase 0.13.0-dev.39 → 0.13.0-dev.40
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 +2 -7
- package/dist/pack.mjs.map +1 -1
- package/dist/package-BuPz3Ul7.mjs +6 -0
- package/dist/package-BuPz3Ul7.mjs.map +1 -0
- package/dist/runtime.mjs +1 -1
- package/package.json +26 -26
- package/src/contract/contract.d.ts +1 -6
- package/src/contract/contract.json +1 -8
- package/dist/package-eyY0izRc.mjs +0 -6
- package/dist/package-eyY0izRc.mjs.map +0 -1
package/dist/pack.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as version } from "./package-
|
|
1
|
+
import { t as version } from "./package-BuPz3Ul7.mjs";
|
|
2
2
|
import { blindCast } from "@prisma-next/utils/casts";
|
|
3
3
|
//#region src/contract/contract.json
|
|
4
4
|
var contract_default = {
|
|
@@ -220,11 +220,6 @@ var contract_default = {
|
|
|
220
220
|
} },
|
|
221
221
|
storage: {
|
|
222
222
|
"namespaces": {
|
|
223
|
-
"__unbound__": {
|
|
224
|
-
"entries": { "table": {} },
|
|
225
|
-
"id": "__unbound__",
|
|
226
|
-
"kind": "postgres-unbound-schema"
|
|
227
|
-
},
|
|
228
223
|
"auth": {
|
|
229
224
|
"entries": { "table": {
|
|
230
225
|
"identities": {
|
|
@@ -377,7 +372,7 @@ var contract_default = {
|
|
|
377
372
|
"kind": "postgres-schema"
|
|
378
373
|
}
|
|
379
374
|
},
|
|
380
|
-
"storageHash": "sha256:
|
|
375
|
+
"storageHash": "sha256:61dac13aa56bcb5b7f1c5441c2bd8fc07d88f6c870c80b4c1640fd0d180fb423",
|
|
381
376
|
"types": {
|
|
382
377
|
"Timestamptz": {
|
|
383
378
|
"codecId": "pg/timestamptz@1",
|
package/dist/pack.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pack.mjs","names":["contractJson","packageJson.version"],"sources":["../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":["../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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACMA,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-BuPz3Ul7.mjs","names":[],"sources":["../package.json"],"sourcesContent":[""],"mappings":""}
|
package/dist/runtime.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as version } from "./package-
|
|
1
|
+
import { t as version } from "./package-BuPz3Ul7.mjs";
|
|
2
2
|
import { blindCast } from "@prisma-next/utils/casts";
|
|
3
3
|
import postgresAdapter from "@prisma-next/adapter-postgres/runtime";
|
|
4
4
|
import postgresDriver from "@prisma-next/driver-postgres/runtime";
|
package/package.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/extension-supabase",
|
|
3
|
-
"version": "0.13.0-dev.
|
|
3
|
+
"version": "0.13.0-dev.40",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@prisma-next/adapter-postgres": "0.13.0-dev.
|
|
9
|
-
"@prisma-next/contract": "0.13.0-dev.
|
|
10
|
-
"@prisma-next/driver-postgres": "0.13.0-dev.
|
|
11
|
-
"@prisma-next/postgres": "0.13.0-dev.
|
|
12
|
-
"@prisma-next/sql-builder": "0.13.0-dev.
|
|
13
|
-
"@prisma-next/sql-orm-client": "0.13.0-dev.
|
|
14
|
-
"@prisma-next/target-postgres": "0.13.0-dev.
|
|
8
|
+
"@prisma-next/adapter-postgres": "0.13.0-dev.40",
|
|
9
|
+
"@prisma-next/contract": "0.13.0-dev.40",
|
|
10
|
+
"@prisma-next/driver-postgres": "0.13.0-dev.40",
|
|
11
|
+
"@prisma-next/postgres": "0.13.0-dev.40",
|
|
12
|
+
"@prisma-next/sql-builder": "0.13.0-dev.40",
|
|
13
|
+
"@prisma-next/sql-orm-client": "0.13.0-dev.40",
|
|
14
|
+
"@prisma-next/target-postgres": "0.13.0-dev.40",
|
|
15
15
|
"jose": "^6",
|
|
16
16
|
"pg": "8.21.0",
|
|
17
|
-
"@prisma-next/contract-authoring": "0.13.0-dev.
|
|
18
|
-
"@prisma-next/family-sql": "0.13.0-dev.
|
|
19
|
-
"@prisma-next/framework-components": "0.13.0-dev.
|
|
20
|
-
"@prisma-next/migration-tools": "0.13.0-dev.
|
|
21
|
-
"@prisma-next/sql-contract": "0.13.0-dev.
|
|
22
|
-
"@prisma-next/sql-contract-ts": "0.13.0-dev.
|
|
23
|
-
"@prisma-next/sql-operations": "0.13.0-dev.
|
|
24
|
-
"@prisma-next/sql-relational-core": "0.13.0-dev.
|
|
25
|
-
"@prisma-next/sql-runtime": "0.13.0-dev.
|
|
26
|
-
"@prisma-next/sql-schema-ir": "0.13.0-dev.
|
|
27
|
-
"@prisma-next/utils": "0.13.0-dev.
|
|
17
|
+
"@prisma-next/contract-authoring": "0.13.0-dev.40",
|
|
18
|
+
"@prisma-next/family-sql": "0.13.0-dev.40",
|
|
19
|
+
"@prisma-next/framework-components": "0.13.0-dev.40",
|
|
20
|
+
"@prisma-next/migration-tools": "0.13.0-dev.40",
|
|
21
|
+
"@prisma-next/sql-contract": "0.13.0-dev.40",
|
|
22
|
+
"@prisma-next/sql-contract-ts": "0.13.0-dev.40",
|
|
23
|
+
"@prisma-next/sql-operations": "0.13.0-dev.40",
|
|
24
|
+
"@prisma-next/sql-relational-core": "0.13.0-dev.40",
|
|
25
|
+
"@prisma-next/sql-runtime": "0.13.0-dev.40",
|
|
26
|
+
"@prisma-next/sql-schema-ir": "0.13.0-dev.40",
|
|
27
|
+
"@prisma-next/utils": "0.13.0-dev.40",
|
|
28
28
|
"@standard-schema/spec": "^1.1.0",
|
|
29
29
|
"arktype": "^2.2.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@prisma-next/cli": "0.13.0-dev.
|
|
33
|
-
"@prisma-next/operations": "0.13.0-dev.
|
|
34
|
-
"@prisma-next/sql-contract-psl": "0.13.0-dev.
|
|
35
|
-
"@prisma-next/test-utils": "0.13.0-dev.
|
|
36
|
-
"@prisma-next/tsconfig": "0.13.0-dev.
|
|
37
|
-
"@prisma-next/tsdown": "0.13.0-dev.
|
|
32
|
+
"@prisma-next/cli": "0.13.0-dev.40",
|
|
33
|
+
"@prisma-next/operations": "0.13.0-dev.40",
|
|
34
|
+
"@prisma-next/sql-contract-psl": "0.13.0-dev.40",
|
|
35
|
+
"@prisma-next/test-utils": "0.13.0-dev.40",
|
|
36
|
+
"@prisma-next/tsconfig": "0.13.0-dev.40",
|
|
37
|
+
"@prisma-next/tsdown": "0.13.0-dev.40",
|
|
38
38
|
"@types/pg": "8.20.0",
|
|
39
39
|
"tsdown": "0.22.1",
|
|
40
40
|
"typescript": "5.9.3",
|
|
41
41
|
"vitest": "4.1.8"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@prisma-next/adapter-postgres": "0.13.0-dev.
|
|
44
|
+
"@prisma-next/adapter-postgres": "0.13.0-dev.40",
|
|
45
45
|
"typescript": ">=5.9"
|
|
46
46
|
},
|
|
47
47
|
"peerDependenciesMeta": {
|
|
@@ -30,7 +30,7 @@ import type {
|
|
|
30
30
|
} from '@prisma-next/contract/types';
|
|
31
31
|
|
|
32
32
|
export type StorageHash =
|
|
33
|
-
StorageHashBase<'sha256:
|
|
33
|
+
StorageHashBase<'sha256:61dac13aa56bcb5b7f1c5441c2bd8fc07d88f6c870c80b4c1640fd0d180fb423'>;
|
|
34
34
|
export type ExecutionHash = ExecutionHashBase<string>;
|
|
35
35
|
export type ProfileHash =
|
|
36
36
|
ProfileHashBase<'sha256:9c8aa3114e84ed3b7ea2bd57526d9c2e1bf7c5292be694e9d3801f566fda7ccb'>;
|
|
@@ -116,11 +116,6 @@ export type TypeMaps = TypeMapsType<
|
|
|
116
116
|
type ContractBase = Omit<
|
|
117
117
|
ContractType<{
|
|
118
118
|
readonly namespaces: {
|
|
119
|
-
readonly __unbound__: {
|
|
120
|
-
readonly id: '__unbound__';
|
|
121
|
-
readonly kind: 'sql-namespace';
|
|
122
|
-
readonly entries: { readonly table: {} };
|
|
123
|
-
};
|
|
124
119
|
readonly auth: {
|
|
125
120
|
readonly id: 'auth';
|
|
126
121
|
readonly kind: 'sql-namespace';
|
|
@@ -259,13 +259,6 @@
|
|
|
259
259
|
},
|
|
260
260
|
"storage": {
|
|
261
261
|
"namespaces": {
|
|
262
|
-
"__unbound__": {
|
|
263
|
-
"entries": {
|
|
264
|
-
"table": {}
|
|
265
|
-
},
|
|
266
|
-
"id": "__unbound__",
|
|
267
|
-
"kind": "postgres-unbound-schema"
|
|
268
|
-
},
|
|
269
262
|
"auth": {
|
|
270
263
|
"entries": {
|
|
271
264
|
"table": {
|
|
@@ -440,7 +433,7 @@
|
|
|
440
433
|
"kind": "postgres-schema"
|
|
441
434
|
}
|
|
442
435
|
},
|
|
443
|
-
"storageHash": "sha256:
|
|
436
|
+
"storageHash": "sha256:61dac13aa56bcb5b7f1c5441c2bd8fc07d88f6c870c80b4c1640fd0d180fb423",
|
|
444
437
|
"types": {
|
|
445
438
|
"Timestamptz": {
|
|
446
439
|
"codecId": "pg/timestamptz@1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"package-eyY0izRc.mjs","names":[],"sources":["../package.json"],"sourcesContent":[""],"mappings":""}
|