@prisma-next/cli 0.11.0-dev.49 → 0.11.0-dev.50

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma-next/cli",
3
- "version": "0.11.0-dev.49",
3
+ "version": "0.11.0-dev.50",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -14,15 +14,15 @@
14
14
  "dependencies": {
15
15
  "@clack/prompts": "^1.4.0",
16
16
  "@dagrejs/dagre": "^3.0.0",
17
- "@prisma-next/config": "0.11.0-dev.49",
18
- "@prisma-next/contract": "0.11.0-dev.49",
19
- "@prisma-next/emitter": "0.11.0-dev.49",
20
- "@prisma-next/errors": "0.11.0-dev.49",
21
- "@prisma-next/framework-components": "0.11.0-dev.49",
22
- "@prisma-next/migration-tools": "0.11.0-dev.49",
23
- "@prisma-next/psl-printer": "0.11.0-dev.49",
24
- "@prisma-next/cli-telemetry": "0.11.0-dev.49",
25
- "@prisma-next/utils": "0.11.0-dev.49",
17
+ "@prisma-next/config": "0.11.0-dev.50",
18
+ "@prisma-next/contract": "0.11.0-dev.50",
19
+ "@prisma-next/emitter": "0.11.0-dev.50",
20
+ "@prisma-next/errors": "0.11.0-dev.50",
21
+ "@prisma-next/framework-components": "0.11.0-dev.50",
22
+ "@prisma-next/migration-tools": "0.11.0-dev.50",
23
+ "@prisma-next/psl-printer": "0.11.0-dev.50",
24
+ "@prisma-next/cli-telemetry": "0.11.0-dev.50",
25
+ "@prisma-next/utils": "0.11.0-dev.50",
26
26
  "arktype": "^2.2.0",
27
27
  "c12": "^3.3.4",
28
28
  "ci-info": "^4.3.1",
@@ -39,14 +39,14 @@
39
39
  "wrap-ansi": "^10.0.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@prisma-next/sql-contract": "0.11.0-dev.49",
43
- "@prisma-next/sql-contract-emitter": "0.11.0-dev.49",
44
- "@prisma-next/sql-contract-ts": "0.11.0-dev.49",
45
- "@prisma-next/sql-operations": "0.11.0-dev.49",
46
- "@prisma-next/sql-runtime": "0.11.0-dev.49",
47
- "@prisma-next/test-utils": "0.11.0-dev.49",
48
- "@prisma-next/tsconfig": "0.11.0-dev.49",
49
- "@prisma-next/tsdown": "0.11.0-dev.49",
42
+ "@prisma-next/sql-contract": "0.11.0-dev.50",
43
+ "@prisma-next/sql-contract-emitter": "0.11.0-dev.50",
44
+ "@prisma-next/sql-contract-ts": "0.11.0-dev.50",
45
+ "@prisma-next/sql-operations": "0.11.0-dev.50",
46
+ "@prisma-next/sql-runtime": "0.11.0-dev.50",
47
+ "@prisma-next/test-utils": "0.11.0-dev.50",
48
+ "@prisma-next/tsconfig": "0.11.0-dev.50",
49
+ "@prisma-next/tsdown": "0.11.0-dev.50",
50
50
  "@types/node": "25.6.0",
51
51
  "tsdown": "0.22.0",
52
52
  "typescript": "5.9.3",
@@ -253,13 +253,18 @@ export async function executeContractEmit(
253
253
  // on-disk JSON envelope is constructed by target-owned code
254
254
  // rather than by walking the in-memory contract with
255
255
  // `Object.entries` (which would leak runtime-only class API
256
- // fields into the persisted shape).
256
+ // fields into the persisted shape). The optional `shouldPreserveEmpty`
257
+ // and `sortStorage` hooks let the family contribute storage-specific
258
+ // canonicalization rules without the framework importing family code.
259
+ const { contractSerializer } = config.target;
257
260
  const serializeContract = (c: Contract): JsonObject =>
258
- config.target.contractSerializer.serializeContract(c);
261
+ contractSerializer.serializeContract(c);
259
262
  emitResult = await unlessAborted(
260
263
  emit(enrichedIR, stack, config.family.emission, {
261
264
  outputJsonPath,
262
265
  serializeContract,
266
+ ...ifDefined('shouldPreserveEmpty', contractSerializer.shouldPreserveEmpty),
267
+ ...ifDefined('sortStorage', contractSerializer.sortStorage),
263
268
  }),
264
269
  );
265
270
  } catch (error) {