prisma-next 0.12.0-dev.20 → 0.12.0-dev.22

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.
Files changed (61) hide show
  1. package/dist/cli.mjs +8 -8
  2. package/dist/{client-Cdxcme1x.mjs → client-BHe8szOW.mjs} +4 -4
  3. package/dist/{client-Cdxcme1x.mjs.map → client-BHe8szOW.mjs.map} +1 -1
  4. package/dist/commands/contract-infer.mjs +1 -1
  5. package/dist/commands/db-init.mjs +2 -2
  6. package/dist/commands/db-schema.mjs +1 -1
  7. package/dist/commands/db-sign.mjs +1 -1
  8. package/dist/commands/db-update.mjs +2 -2
  9. package/dist/commands/db-verify.mjs +1 -1
  10. package/dist/commands/migrate.d.mts +1 -1
  11. package/dist/commands/migrate.mjs +1 -1
  12. package/dist/commands/migration-graph.d.mts +4 -4
  13. package/dist/commands/migration-graph.mjs +1 -1
  14. package/dist/commands/migration-list.d.mts +3 -3
  15. package/dist/commands/migration-list.mjs +1 -1
  16. package/dist/commands/migration-log.d.mts +7 -19
  17. package/dist/commands/migration-log.d.mts.map +1 -1
  18. package/dist/commands/migration-log.mjs +1 -137
  19. package/dist/commands/migration-plan.d.mts +1 -1
  20. package/dist/commands/migration-plan.mjs +1 -1
  21. package/dist/commands/migration-show.d.mts +1 -1
  22. package/dist/commands/migration-show.mjs +1 -1
  23. package/dist/commands/migration-status.d.mts +1 -1
  24. package/dist/commands/migration-status.mjs +1 -1
  25. package/dist/commands/ref.d.mts +1 -1
  26. package/dist/commands/telemetry/index.mjs +1 -1
  27. package/dist/{contract-infer-DaFPNrZH.mjs → contract-infer-OCn12Zvn.mjs} +2 -2
  28. package/dist/{contract-infer-DaFPNrZH.mjs.map → contract-infer-OCn12Zvn.mjs.map} +1 -1
  29. package/dist/{db-verify-BSA1a_W_.mjs → db-verify-DJxengYP.mjs} +2 -2
  30. package/dist/{db-verify-BSA1a_W_.mjs.map → db-verify-DJxengYP.mjs.map} +1 -1
  31. package/dist/exports/control-api.d.mts +1 -1
  32. package/dist/exports/control-api.mjs +1 -1
  33. package/dist/exports/init-output.mjs +1 -1
  34. package/dist/{global-flags-DG4uY5tV.d.mts → global-flags-DSkV6iYT.d.mts} +1 -1
  35. package/dist/{global-flags-DG4uY5tV.d.mts.map → global-flags-DSkV6iYT.d.mts.map} +1 -1
  36. package/dist/{init-B6kKrmf7.mjs → init-S2vxszo_.mjs} +2 -2
  37. package/dist/{init-B6kKrmf7.mjs.map → init-S2vxszo_.mjs.map} +1 -1
  38. package/dist/{inspect-live-schema-Dn56wDhG.mjs → inspect-live-schema-DVZlDlnF.mjs} +2 -2
  39. package/dist/{inspect-live-schema-Dn56wDhG.mjs.map → inspect-live-schema-DVZlDlnF.mjs.map} +1 -1
  40. package/dist/{migration-command-scaffold-V52dV2Tv.mjs → migration-command-scaffold-Cs7Ky-m5.mjs} +2 -2
  41. package/dist/{migration-command-scaffold-V52dV2Tv.mjs.map → migration-command-scaffold-Cs7Ky-m5.mjs.map} +1 -1
  42. package/dist/{migration-graph-DKl_IYsF.mjs → migration-graph-CeBB07Cc.mjs} +2 -2
  43. package/dist/{migration-graph-DKl_IYsF.mjs.map → migration-graph-CeBB07Cc.mjs.map} +1 -1
  44. package/dist/{migration-list-styler-COQbZmXk.mjs → migration-list-styler-CsMECsY4.mjs} +2 -2
  45. package/dist/{migration-list-styler-COQbZmXk.mjs.map → migration-list-styler-CsMECsY4.mjs.map} +1 -1
  46. package/dist/migration-log-Cj-T-r0o.mjs +203 -0
  47. package/dist/migration-log-Cj-T-r0o.mjs.map +1 -0
  48. package/dist/{migration-plan-CaeKCKp4.mjs → migration-plan-BQAbZkj_.mjs} +1 -1
  49. package/dist/{migration-plan-CaeKCKp4.mjs.map → migration-plan-BQAbZkj_.mjs.map} +1 -1
  50. package/dist/{migration-types-CAQ-0TEE.d.mts → migration-types-Bhmj0RSa.d.mts} +1 -1
  51. package/dist/{migration-types-CAQ-0TEE.d.mts.map → migration-types-Bhmj0RSa.d.mts.map} +1 -1
  52. package/dist/{output-CF_hqzI-.mjs → output-BD61elic.mjs} +1 -1
  53. package/dist/{output-CF_hqzI-.mjs.map → output-BD61elic.mjs.map} +1 -1
  54. package/dist/{telemetry-Q88WHwlv.mjs → telemetry-Bu85x2Gy.mjs} +1 -1
  55. package/dist/{telemetry-Q88WHwlv.mjs.map → telemetry-Bu85x2Gy.mjs.map} +1 -1
  56. package/dist/{terminal-ui-C3xGyxW-.d.mts → terminal-ui-BgLiAOYi.d.mts} +1 -1
  57. package/dist/{terminal-ui-C3xGyxW-.d.mts.map → terminal-ui-BgLiAOYi.d.mts.map} +1 -1
  58. package/dist/{types-DiC683UW.d.mts → types-C8OcDFBe.d.mts} +1 -1
  59. package/dist/{types-DiC683UW.d.mts.map → types-C8OcDFBe.d.mts.map} +1 -1
  60. package/package.json +11 -11
  61. package/dist/commands/migration-log.mjs.map +0 -1
package/dist/cli.mjs CHANGED
@@ -1,30 +1,30 @@
1
1
  #!/usr/bin/env node
2
2
  import { C as isCI, T as formatRootHelp, _ as parseGlobalFlagsOrExit, g as parseGlobalFlags, h as deriveCanPrompt, l as setCommandDescriptions, t as addGlobalOptions, u as setCommandExamples, w as formatCommandHelp, y as installShutdownHandlers } from "./command-helpers-Cmdqyhz9.mjs";
3
3
  import { t as createContractEmitCommand } from "./contract-emit-DPMij44i.mjs";
4
- import { t as createContractInferCommand } from "./contract-infer-DaFPNrZH.mjs";
4
+ import { t as createContractInferCommand } from "./contract-infer-OCn12Zvn.mjs";
5
5
  import { createDbInitCommand } from "./commands/db-init.mjs";
6
6
  import { createDbSchemaCommand } from "./commands/db-schema.mjs";
7
7
  import { createDbSignCommand } from "./commands/db-sign.mjs";
8
8
  import { createDbUpdateCommand } from "./commands/db-update.mjs";
9
- import { t as createDbVerifyCommand } from "./db-verify-BSA1a_W_.mjs";
9
+ import { t as createDbVerifyCommand } from "./db-verify-DJxengYP.mjs";
10
10
  import { createMigrateCommand } from "./commands/migrate.mjs";
11
11
  import { t as createMigrationCheckCommand } from "./migration-check-DzH1u-O1.mjs";
12
- import { t as createMigrationGraphCommand } from "./migration-graph-DKl_IYsF.mjs";
12
+ import { t as createMigrationGraphCommand } from "./migration-graph-CeBB07Cc.mjs";
13
13
  import { createMigrationListCommand } from "./commands/migration-list.mjs";
14
- import { createMigrationLogCommand } from "./commands/migration-log.mjs";
14
+ import { t as createMigrationLogCommand } from "./migration-log-Cj-T-r0o.mjs";
15
15
  import { createMigrationNewCommand } from "./commands/migration-new.mjs";
16
- import { t as createMigrationPlanCommand } from "./migration-plan-CaeKCKp4.mjs";
16
+ import { t as createMigrationPlanCommand } from "./migration-plan-BQAbZkj_.mjs";
17
17
  import { createMigrationShowCommand } from "./commands/migration-show.mjs";
18
18
  import { createMigrationStatusCommand } from "./commands/migration-status.mjs";
19
19
  import { createRefCommand } from "./commands/ref.mjs";
20
- import { t as createTelemetryCommand } from "./telemetry-Q88WHwlv.mjs";
20
+ import { t as createTelemetryCommand } from "./telemetry-Bu85x2Gy.mjs";
21
21
  import { Command } from "commander";
22
22
  import { DEFAULT_CONTRACT_SOURCE_DIR } from "@prisma-next/config/config-types";
23
23
  import { ensureInstallationId, readUserConfig, resolveGating, runTelemetry, userConfigPath } from "@prisma-next/cli-telemetry";
24
24
  import { distance } from "closest-match";
25
25
  import { fileURLToPath } from "node:url";
26
26
  //#region package.json
27
- var version = "0.12.0-dev.20";
27
+ var version = "0.12.0-dev.22";
28
28
  //#endregion
29
29
  //#region src/commands/init/templates/code-templates.ts
30
30
  function targetPackageName(target) {
@@ -293,7 +293,7 @@ Exit codes (see CLI Style Guide § Exit Codes):
293
293
  "prisma-next init --no-skill # skip the skills install (air-gapped / restricted env)"
294
294
  ]);
295
295
  return addGlobalOptions(command).option("--target <db>", "Database target: postgres or mongodb").option("--authoring <style>", "Schema authoring style: psl or typescript").option("--schema-path <path>", `Where to write the starter schema (default: ${defaultSchemaPath("psl")})`).option("--force", "Overwrite an existing scaffold without prompting").option("--write-env", "Write a .env file from .env.example (gitignored; default: only .env.example)").option("--probe-db", "Connect to DATABASE_URL once and check the server version against the target minimum (opt-in; off by default)").option("--strict-probe", "Treat a failed --probe-db as fatal (no-op without --probe-db; init is offline-by-default)").option("--no-install", "Skip dependency installation and contract emission").option("--no-skill", "Skip Prisma Next skills install (air-gapped CI, restricted registries, etc.)").action(async (options) => {
296
- const { runInit } = await import("./init-B6kKrmf7.mjs");
296
+ const { runInit } = await import("./init-S2vxszo_.mjs");
297
297
  const flags = parseGlobalFlagsOrExit(options);
298
298
  const canPrompt = deriveCanPrompt({
299
299
  flagsInteractive: flags.interactive,
@@ -1307,12 +1307,12 @@ var ControlClientImpl = class {
1307
1307
  const { driver, familyInstance } = await this.ensureConnected();
1308
1308
  return familyInstance.readAllMarkers({ driver });
1309
1309
  }
1310
- /** Reads the per-migration journal for `space` (defaults to the app contract space). */
1311
- async readLedger(space = APP_SPACE_ID) {
1310
+ /** Reads the per-migration journal; omit `space` to return every space. */
1311
+ async readLedger(space) {
1312
1312
  const { driver, familyInstance } = await this.ensureConnected();
1313
1313
  return familyInstance.readLedger({
1314
1314
  driver,
1315
- space
1315
+ ...ifDefined("space", space)
1316
1316
  });
1317
1317
  }
1318
1318
  async migrationApply(options) {
@@ -1506,4 +1506,4 @@ var ControlClientImpl = class {
1506
1506
  //#endregion
1507
1507
  export { ContractValidationError as a, executeDbInit as i, executeDbVerify as n, executeDbUpdate as r, createControlClient as t };
1508
1508
 
1509
- //# sourceMappingURL=client-Cdxcme1x.mjs.map
1509
+ //# sourceMappingURL=client-BHe8szOW.mjs.map