@prisma-next/family-sql 0.16.0-dev.3 → 0.16.0-dev.5
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.d.mts +1 -1
- package/dist/diff.d.mts +1 -1
- package/dist/migration.d.mts +1 -1
- package/dist/{types-6JMCRorL.d.mts → types-DhAmOoxA.d.mts} +11 -4
- package/dist/{types-6JMCRorL.d.mts.map → types-DhAmOoxA.d.mts.map} +1 -1
- package/package.json +21 -21
- package/src/core/migrations/types.ts +10 -3
package/dist/control.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as SqlControlAdapter } from "./control-adapter-CW7FdxeS.mjs";
|
|
2
|
-
import { A as SqlPlannerSuccessResult, C as SqlMigrationRunnerSuccessValue, D as SqlPlannerConflictLocation, E as SqlPlannerConflictKind, O as SqlPlannerFailureResult, S as SqlMigrationRunnerResult, T as SqlPlannerConflict, _ as SqlMigrationRunner, a as FieldEvent, b as SqlMigrationRunnerExecuteOptions, c as SqlControlAdapterDescriptor, d as SqlMigrationPlanContractInfo, f as SqlMigrationPlanOperation, g as SqlMigrationPlannerPlanOptions, h as SqlMigrationPlanner, i as ExpandNativeTypeInput, j as StorageTypePlanResult, k as SqlPlannerResult, l as SqlControlExtensionDescriptor, m as SqlMigrationPlanOperationTarget, n as CodecControlHooks, o as FieldEventContext, p as SqlMigrationPlanOperationStep, r as CreateSqlMigrationPlanOptions, s as ResolveIdentityValueInput, t as AnyRecord, u as SqlMigrationPlan, v as SqlMigrationRunnerErrorCode, w as SqlPlanTargetDetails, x as SqlMigrationRunnerFailure, y as SqlMigrationRunnerExecuteCallbacks } from "./types-
|
|
2
|
+
import { A as SqlPlannerSuccessResult, C as SqlMigrationRunnerSuccessValue, D as SqlPlannerConflictLocation, E as SqlPlannerConflictKind, O as SqlPlannerFailureResult, S as SqlMigrationRunnerResult, T as SqlPlannerConflict, _ as SqlMigrationRunner, a as FieldEvent, b as SqlMigrationRunnerExecuteOptions, c as SqlControlAdapterDescriptor, d as SqlMigrationPlanContractInfo, f as SqlMigrationPlanOperation, g as SqlMigrationPlannerPlanOptions, h as SqlMigrationPlanner, i as ExpandNativeTypeInput, j as StorageTypePlanResult, k as SqlPlannerResult, l as SqlControlExtensionDescriptor, m as SqlMigrationPlanOperationTarget, n as CodecControlHooks, o as FieldEventContext, p as SqlMigrationPlanOperationStep, r as CreateSqlMigrationPlanOptions, s as ResolveIdentityValueInput, t as AnyRecord, u as SqlMigrationPlan, v as SqlMigrationRunnerErrorCode, w as SqlPlanTargetDetails, x as SqlMigrationRunnerFailure, y as SqlMigrationRunnerExecuteCallbacks } from "./types-DhAmOoxA.mjs";
|
|
3
3
|
import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-C8OHo1V5.mjs";
|
|
4
4
|
import { ContractSerializer, ControlFamilyDescriptor, ControlFamilyInstance, ControlStack, DiffSubjectGranularity, MigratableTargetDescriptor, MigrationOperationClass, MigrationOperationPolicy, MigrationOperationPolicy as MigrationOperationPolicy$1, MigrationPlan, MigrationPlanOperation, MigrationPlanOperation as MigrationPlanOperation$1, MigrationPlanner, MigrationPlannerConflict, MigrationPlannerConflict as MigrationPlannerConflict$1, MigrationPlannerResult, MutationDefaultGeneratorDescriptor, OpFactoryCall, OperationPreview, OperationPreviewCapable, PslContractInferCapable, SchemaDiffIssue, SchemaVerifier, SchemaViewCapable, SignDatabaseResult, TargetMigrationsCapability, VerifyDatabaseResult, VerifyDatabaseSchemaResult, assembleAuthoringContributions } from "@prisma-next/framework-components/control";
|
|
5
5
|
import { ColumnDefault, Contract, ControlPolicy } from "@prisma-next/contract/types";
|
package/dist/diff.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as NativeTypeNormalizer, o as arraysEqual } from "./control-adapter-CW7FdxeS.mjs";
|
|
2
|
-
import { n as CodecControlHooks } from "./types-
|
|
2
|
+
import { n as CodecControlHooks } from "./types-DhAmOoxA.mjs";
|
|
3
3
|
import { t as SqlSchemaDiffFn } from "./schema-differ-C8OHo1V5.mjs";
|
|
4
4
|
import { DiffSubjectGranularity, SchemaDiffIssue, VerifierIssueCategory, VerifyDatabaseSchemaResult } from "@prisma-next/framework-components/control";
|
|
5
5
|
import { Contract, ControlPolicy } from "@prisma-next/contract/types";
|
package/dist/migration.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as SqlMigrationPlanOperation, w as SqlPlanTargetDetails } from "./types-
|
|
1
|
+
import { f as SqlMigrationPlanOperation, w as SqlPlanTargetDetails } from "./types-DhAmOoxA.mjs";
|
|
2
2
|
import { Contract } from "@prisma-next/contract/types";
|
|
3
3
|
import { SqlStorage } from "@prisma-next/sql-contract/types";
|
|
4
4
|
import { Migration } from "@prisma-next/migration-tools/migration";
|
|
@@ -274,9 +274,9 @@ interface SqlMigrationPlannerPlanOptions {
|
|
|
274
274
|
* or `null` for reconciliation flows that have no prior contract.
|
|
275
275
|
*
|
|
276
276
|
* Required at every call site so the structural fact "I have a prior
|
|
277
|
-
* contract / I don't" is visible in the type. `migration plan` reads
|
|
278
|
-
*
|
|
279
|
-
* the parsed value; `db update` / `db init` reconcile against the
|
|
277
|
+
* contract / I don't" is visible in the type. `migration plan` reads the
|
|
278
|
+
* predecessor's contract from the snapshot store by its storage hash and
|
|
279
|
+
* passes the parsed value; `db update` / `db init` reconcile against the
|
|
280
280
|
* live schema and pass `null`. Strategies that
|
|
281
281
|
* need from/to column-shape comparisons (unsafe type change, nullability
|
|
282
282
|
* tightening) use this to decide whether to emit `dataTransform`
|
|
@@ -286,6 +286,13 @@ interface SqlMigrationPlannerPlanOptions {
|
|
|
286
286
|
* plan's `describe()` as `fromContract?.storage.storageHash ?? null`.
|
|
287
287
|
*/
|
|
288
288
|
readonly fromContract: Contract<SqlStorage> | null;
|
|
289
|
+
/**
|
|
290
|
+
* POSIX-relative path from the migration package dir to
|
|
291
|
+
* `migrations/snapshots`, e.g. `'../../snapshots'`. Threaded straight
|
|
292
|
+
* into the produced plan's `renderTypeScript()` metadata so the
|
|
293
|
+
* scaffold's contract-snapshot imports point at the deduplicated store.
|
|
294
|
+
*/
|
|
295
|
+
readonly snapshotsImportPath: string;
|
|
289
296
|
/**
|
|
290
297
|
* Active framework components participating in this composition.
|
|
291
298
|
* Each component is target-bound so SQL targets can dispatch
|
|
@@ -410,4 +417,4 @@ interface CreateSqlMigrationPlanOptions<TTargetDetails> {
|
|
|
410
417
|
}
|
|
411
418
|
//#endregion
|
|
412
419
|
export { SqlPlannerSuccessResult as A, SqlMigrationRunnerSuccessValue as C, SqlPlannerConflictLocation as D, SqlPlannerConflictKind as E, SqlPlannerFailureResult as O, SqlMigrationRunnerResult as S, SqlPlannerConflict as T, SqlMigrationRunner as _, FieldEvent as a, SqlMigrationRunnerExecuteOptions as b, SqlControlAdapterDescriptor as c, SqlMigrationPlanContractInfo as d, SqlMigrationPlanOperation as f, SqlMigrationPlannerPlanOptions as g, SqlMigrationPlanner as h, ExpandNativeTypeInput as i, StorageTypePlanResult as j, SqlPlannerResult as k, SqlControlExtensionDescriptor as l, SqlMigrationPlanOperationTarget as m, CodecControlHooks as n, FieldEventContext as o, SqlMigrationPlanOperationStep as p, CreateSqlMigrationPlanOptions as r, ResolveIdentityValueInput as s, AnyRecord as t, SqlMigrationPlan as u, SqlMigrationRunnerErrorCode as v, SqlPlanTargetDetails as w, SqlMigrationRunnerFailure as x, SqlMigrationRunnerExecuteCallbacks as y };
|
|
413
|
-
//# sourceMappingURL=types-
|
|
420
|
+
//# sourceMappingURL=types-DhAmOoxA.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-
|
|
1
|
+
{"version":3,"file":"types-DhAmOoxA.d.mts","names":[],"sources":["../src/core/migrations/types.ts"],"mappings":";;;;;;;;;;KAkCY,YAAY,SAAS;UAEhB,sBAAsB;WAC5B,qBAAqB,0BAA0B;;;;;UAMz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AiB,kBACzB,wBAAwB,kBACxB;UAEa;WACN,UAAU,SAAS;;;;;;WAMnB,QAAQ;WACR,QAAQ;WACR;;;;;;;;WAQA;;;;;;;;;;;;;;;;;WAiBA,cAAc,SAAS;;;;;;;WAOvB;;;;;;;WAOA,qBAAqB,cAAc;;;;;;;;;;WAUnC,YAAY;;UAGN,oBAAoB;EACnC,KAAK,SAAS,iCAAiC,iBAAiB;;UAGjD,mCAAmC;EAClD,kBAAkB,WAAW,0BAA0B;EACvD,qBAAqB,WAAW,0BAA0B;;UAG3C,iCAAiC;WACvC,MAAM,iBAAiB;WACvB,QAAQ;;;;;;;;WAQR;;;;;WAKA,qBAAqB,SAAS;;;;;WAK9B,QAAQ;WACR;WACA;WACA,YAAY,mCAAmC;WAC/C,UAAU;;;;;WAKV,kBAAkB;;;;;;;WAOlB,qBAAqB,cAAc;;;;;WAKnC,yBAAyB;;KAGxB;UAYK,kCAAkC;WACxC,MAAM;WACN,OAAO;;UAGD,uCAAuC;KAE5C,2BAA2B,OACrC,gCACA;UAGe,mBAAmB;;;;;;;;;;;;;;EAclC,QAAQ;aACG,QAAQ;aACR,iBAAiB,cAAc,iCAAiC;MACvE,QAAQ;;;;;;;;;;;EAYZ,oBACE,SAAS,iCAAiC,kBACzC,QAAQ;;UAGI,8BAA8B;WACpC;;;;WAIA;WACA,SAAS;WACT,aAAa;WACb,qBAAqB,0BAA0B;;;;;;WAM/C;WACA,OAAO"}
|
package/package.json
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/family-sql",
|
|
3
|
-
"version": "0.16.0-dev.
|
|
3
|
+
"version": "0.16.0-dev.5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"description": "SQL family descriptor for Prisma Next",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@prisma-next/contract": "0.16.0-dev.
|
|
10
|
-
"@prisma-next/emitter": "0.16.0-dev.
|
|
11
|
-
"@prisma-next/framework-components": "0.16.0-dev.
|
|
12
|
-
"@prisma-next/migration-tools": "0.16.0-dev.
|
|
13
|
-
"@prisma-next/operations": "0.16.0-dev.
|
|
14
|
-
"@prisma-next/sql-contract": "0.16.0-dev.
|
|
15
|
-
"@prisma-next/sql-contract-emitter": "0.16.0-dev.
|
|
16
|
-
"@prisma-next/sql-contract-ts": "0.16.0-dev.
|
|
17
|
-
"@prisma-next/sql-operations": "0.16.0-dev.
|
|
18
|
-
"@prisma-next/sql-relational-core": "0.16.0-dev.
|
|
19
|
-
"@prisma-next/sql-runtime": "0.16.0-dev.
|
|
20
|
-
"@prisma-next/sql-schema-ir": "0.16.0-dev.
|
|
21
|
-
"@prisma-next/utils": "0.16.0-dev.
|
|
9
|
+
"@prisma-next/contract": "0.16.0-dev.5",
|
|
10
|
+
"@prisma-next/emitter": "0.16.0-dev.5",
|
|
11
|
+
"@prisma-next/framework-components": "0.16.0-dev.5",
|
|
12
|
+
"@prisma-next/migration-tools": "0.16.0-dev.5",
|
|
13
|
+
"@prisma-next/operations": "0.16.0-dev.5",
|
|
14
|
+
"@prisma-next/sql-contract": "0.16.0-dev.5",
|
|
15
|
+
"@prisma-next/sql-contract-emitter": "0.16.0-dev.5",
|
|
16
|
+
"@prisma-next/sql-contract-ts": "0.16.0-dev.5",
|
|
17
|
+
"@prisma-next/sql-operations": "0.16.0-dev.5",
|
|
18
|
+
"@prisma-next/sql-relational-core": "0.16.0-dev.5",
|
|
19
|
+
"@prisma-next/sql-runtime": "0.16.0-dev.5",
|
|
20
|
+
"@prisma-next/sql-schema-ir": "0.16.0-dev.5",
|
|
21
|
+
"@prisma-next/utils": "0.16.0-dev.5",
|
|
22
22
|
"arktype": "^2.2.2",
|
|
23
23
|
"pluralize": "^8.0.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@prisma-next/driver-postgres": "0.16.0-dev.
|
|
27
|
-
"@prisma-next/psl-parser": "0.16.0-dev.
|
|
28
|
-
"@prisma-next/psl-printer": "0.16.0-dev.
|
|
29
|
-
"@prisma-next/sql-contract-psl": "0.16.0-dev.
|
|
30
|
-
"@prisma-next/test-utils": "0.16.0-dev.
|
|
31
|
-
"@prisma-next/tsconfig": "0.16.0-dev.
|
|
32
|
-
"@prisma-next/tsdown": "0.16.0-dev.
|
|
26
|
+
"@prisma-next/driver-postgres": "0.16.0-dev.5",
|
|
27
|
+
"@prisma-next/psl-parser": "0.16.0-dev.5",
|
|
28
|
+
"@prisma-next/psl-printer": "0.16.0-dev.5",
|
|
29
|
+
"@prisma-next/sql-contract-psl": "0.16.0-dev.5",
|
|
30
|
+
"@prisma-next/test-utils": "0.16.0-dev.5",
|
|
31
|
+
"@prisma-next/tsconfig": "0.16.0-dev.5",
|
|
32
|
+
"@prisma-next/tsdown": "0.16.0-dev.5",
|
|
33
33
|
"@types/pluralize": "^0.0.33",
|
|
34
34
|
"tsdown": "0.22.8",
|
|
35
35
|
"typescript": "5.9.3",
|
|
@@ -334,9 +334,9 @@ export interface SqlMigrationPlannerPlanOptions {
|
|
|
334
334
|
* or `null` for reconciliation flows that have no prior contract.
|
|
335
335
|
*
|
|
336
336
|
* Required at every call site so the structural fact "I have a prior
|
|
337
|
-
* contract / I don't" is visible in the type. `migration plan` reads
|
|
338
|
-
*
|
|
339
|
-
* the parsed value; `db update` / `db init` reconcile against the
|
|
337
|
+
* contract / I don't" is visible in the type. `migration plan` reads the
|
|
338
|
+
* predecessor's contract from the snapshot store by its storage hash and
|
|
339
|
+
* passes the parsed value; `db update` / `db init` reconcile against the
|
|
340
340
|
* live schema and pass `null`. Strategies that
|
|
341
341
|
* need from/to column-shape comparisons (unsafe type change, nullability
|
|
342
342
|
* tightening) use this to decide whether to emit `dataTransform`
|
|
@@ -346,6 +346,13 @@ export interface SqlMigrationPlannerPlanOptions {
|
|
|
346
346
|
* plan's `describe()` as `fromContract?.storage.storageHash ?? null`.
|
|
347
347
|
*/
|
|
348
348
|
readonly fromContract: Contract<SqlStorage> | null;
|
|
349
|
+
/**
|
|
350
|
+
* POSIX-relative path from the migration package dir to
|
|
351
|
+
* `migrations/snapshots`, e.g. `'../../snapshots'`. Threaded straight
|
|
352
|
+
* into the produced plan's `renderTypeScript()` metadata so the
|
|
353
|
+
* scaffold's contract-snapshot imports point at the deduplicated store.
|
|
354
|
+
*/
|
|
355
|
+
readonly snapshotsImportPath: string;
|
|
349
356
|
/**
|
|
350
357
|
* Active framework components participating in this composition.
|
|
351
358
|
* Each component is target-bound so SQL targets can dispatch
|