ddd-ts-kit 0.27.0 → 0.82.0

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 (165) hide show
  1. package/CHANGELOG.md +129 -0
  2. package/README.fr.md +59 -13
  3. package/README.md +53 -12
  4. package/dist/check/catalogue/architecture-rules.d.ts.map +1 -1
  5. package/dist/check/catalogue/architecture-rules.js +4 -0
  6. package/dist/check/catalogue/architecture-rules.js.map +1 -1
  7. package/dist/check/catalogue/default-severities.d.ts.map +1 -1
  8. package/dist/check/catalogue/default-severities.js +2 -0
  9. package/dist/check/catalogue/default-severities.js.map +1 -1
  10. package/dist/check/commands/check-command.d.ts.map +1 -1
  11. package/dist/check/commands/check-command.js +4 -1
  12. package/dist/check/commands/check-command.js.map +1 -1
  13. package/dist/check/commands/explain-command.d.ts.map +1 -1
  14. package/dist/check/commands/explain-command.js +2 -9
  15. package/dist/check/commands/explain-command.js.map +1 -1
  16. package/dist/check/engine/format-check.d.ts +6 -1
  17. package/dist/check/engine/format-check.d.ts.map +1 -1
  18. package/dist/check/engine/format-check.js +33 -11
  19. package/dist/check/engine/format-check.js.map +1 -1
  20. package/dist/check/explain/documented-rule.d.ts +8 -0
  21. package/dist/check/explain/documented-rule.d.ts.map +1 -0
  22. package/dist/check/explain/documented-rule.js +14 -0
  23. package/dist/check/explain/documented-rule.js.map +1 -0
  24. package/dist/check/explain/explanations-of.d.ts +5 -0
  25. package/dist/check/explain/explanations-of.d.ts.map +1 -0
  26. package/dist/check/explain/explanations-of.js +16 -0
  27. package/dist/check/explain/explanations-of.js.map +1 -0
  28. package/dist/check/explain/persistence-docs.d.ts.map +1 -1
  29. package/dist/check/explain/persistence-docs.js +7 -0
  30. package/dist/check/explain/persistence-docs.js.map +1 -1
  31. package/dist/check/explain/wiring-docs.d.ts.map +1 -1
  32. package/dist/check/explain/wiring-docs.js +13 -0
  33. package/dist/check/explain/wiring-docs.js.map +1 -1
  34. package/dist/check/fixtures/declarations-fixtures.d.ts.map +1 -1
  35. package/dist/check/fixtures/declarations-fixtures.js +78 -1
  36. package/dist/check/fixtures/declarations-fixtures.js.map +1 -1
  37. package/dist/check/fixtures/persistence-fixtures.d.ts.map +1 -1
  38. package/dist/check/fixtures/persistence-fixtures.js +25 -0
  39. package/dist/check/fixtures/persistence-fixtures.js.map +1 -1
  40. package/dist/check/model/rule-explanation.d.ts +10 -0
  41. package/dist/check/model/rule-explanation.d.ts.map +1 -0
  42. package/dist/check/model/rule-explanation.js +2 -0
  43. package/dist/check/model/rule-explanation.js.map +1 -0
  44. package/dist/check/rules/declarations-port-adapter-wired.d.ts +3 -0
  45. package/dist/check/rules/declarations-port-adapter-wired.d.ts.map +1 -0
  46. package/dist/check/rules/declarations-port-adapter-wired.js +104 -0
  47. package/dist/check/rules/declarations-port-adapter-wired.js.map +1 -0
  48. package/dist/check/rules/persistence-primary-key-order.d.ts +3 -0
  49. package/dist/check/rules/persistence-primary-key-order.d.ts.map +1 -0
  50. package/dist/check/rules/persistence-primary-key-order.js +31 -0
  51. package/dist/check/rules/persistence-primary-key-order.js.map +1 -0
  52. package/dist/commands/doctor.d.ts +4 -1
  53. package/dist/commands/doctor.d.ts.map +1 -1
  54. package/dist/commands/doctor.js +20 -4
  55. package/dist/commands/doctor.js.map +1 -1
  56. package/dist/commands/lint.d.ts +7 -0
  57. package/dist/commands/lint.d.ts.map +1 -0
  58. package/dist/commands/lint.js +55 -0
  59. package/dist/commands/lint.js.map +1 -0
  60. package/dist/config/config.d.ts +2 -0
  61. package/dist/config/config.d.ts.map +1 -1
  62. package/dist/config/parse-config.d.ts.map +1 -1
  63. package/dist/config/parse-config.js +2 -0
  64. package/dist/config/parse-config.js.map +1 -1
  65. package/dist/config/restack-config-text.d.ts +3 -2
  66. package/dist/config/restack-config-text.d.ts.map +1 -1
  67. package/dist/config/restack-config-text.js +5 -3
  68. package/dist/config/restack-config-text.js.map +1 -1
  69. package/dist/config/serialize-config.d.ts.map +1 -1
  70. package/dist/config/serialize-config.js +2 -1
  71. package/dist/config/serialize-config.js.map +1 -1
  72. package/dist/doctor/diagnose.d.ts +2 -0
  73. package/dist/doctor/diagnose.d.ts.map +1 -1
  74. package/dist/doctor/diagnose.js +22 -3
  75. package/dist/doctor/diagnose.js.map +1 -1
  76. package/dist/doctor/doctor-finding.d.ts +13 -5
  77. package/dist/doctor/doctor-finding.d.ts.map +1 -1
  78. package/dist/doctor/format-diagnosis.d.ts +4 -1
  79. package/dist/doctor/format-diagnosis.d.ts.map +1 -1
  80. package/dist/doctor/format-diagnosis.js +49 -3
  81. package/dist/doctor/format-diagnosis.js.map +1 -1
  82. package/dist/doctor/in-range.d.ts +7 -0
  83. package/dist/doctor/in-range.d.ts.map +1 -0
  84. package/dist/doctor/in-range.js +90 -0
  85. package/dist/doctor/in-range.js.map +1 -0
  86. package/dist/doctor/install-findings.d.ts +11 -0
  87. package/dist/doctor/install-findings.d.ts.map +1 -0
  88. package/dist/doctor/install-findings.js +119 -0
  89. package/dist/doctor/install-findings.js.map +1 -0
  90. package/dist/doctor/node-findings.d.ts +7 -0
  91. package/dist/doctor/node-findings.d.ts.map +1 -0
  92. package/dist/doctor/node-findings.js +19 -0
  93. package/dist/doctor/node-findings.js.map +1 -0
  94. package/dist/doctor/package-findings.d.ts +2 -0
  95. package/dist/doctor/package-findings.d.ts.map +1 -1
  96. package/dist/doctor/package-findings.js +1 -1
  97. package/dist/doctor/package-findings.js.map +1 -1
  98. package/dist/doctor/submodule-findings.d.ts +7 -0
  99. package/dist/doctor/submodule-findings.d.ts.map +1 -0
  100. package/dist/doctor/submodule-findings.js +22 -0
  101. package/dist/doctor/submodule-findings.js.map +1 -0
  102. package/dist/generate/schedule/cron-problem.d.ts.map +1 -1
  103. package/dist/generate/schedule/cron-problem.js +16 -1
  104. package/dist/generate/schedule/cron-problem.js.map +1 -1
  105. package/dist/help/notes.d.ts +1 -1
  106. package/dist/help/notes.d.ts.map +1 -1
  107. package/dist/help/notes.js +21 -8
  108. package/dist/help/notes.js.map +1 -1
  109. package/dist/help/usage.d.ts +1 -1
  110. package/dist/help/usage.d.ts.map +1 -1
  111. package/dist/help/usage.js +2 -1
  112. package/dist/help/usage.js.map +1 -1
  113. package/dist/init/manifest/versions.js +24 -24
  114. package/dist/init/run-init.d.ts.map +1 -1
  115. package/dist/init/run-init.js +4 -2
  116. package/dist/init/run-init.js.map +1 -1
  117. package/dist/lint/eslint-in-project.d.ts +8 -0
  118. package/dist/lint/eslint-in-project.d.ts.map +1 -0
  119. package/dist/lint/eslint-in-project.js +33 -0
  120. package/dist/lint/eslint-in-project.js.map +1 -0
  121. package/dist/lint/format-verdict.d.ts +4 -0
  122. package/dist/lint/format-verdict.d.ts.map +1 -0
  123. package/dist/lint/format-verdict.js +11 -0
  124. package/dist/lint/format-verdict.js.map +1 -0
  125. package/dist/lint/lint-run.d.ts +8 -0
  126. package/dist/lint/lint-run.d.ts.map +1 -0
  127. package/dist/lint/lint-run.js +2 -0
  128. package/dist/lint/lint-run.js.map +1 -0
  129. package/dist/lint/lint-verdict.d.ts +19 -0
  130. package/dist/lint/lint-verdict.d.ts.map +1 -0
  131. package/dist/lint/lint-verdict.js +25 -0
  132. package/dist/lint/lint-verdict.js.map +1 -0
  133. package/dist/lint/parse-lint-answer.d.ts +13 -0
  134. package/dist/lint/parse-lint-answer.d.ts.map +1 -0
  135. package/dist/lint/parse-lint-answer.js +18 -0
  136. package/dist/lint/parse-lint-answer.js.map +1 -0
  137. package/dist/migration/plan-replay.d.ts +4 -3
  138. package/dist/migration/plan-replay.d.ts.map +1 -1
  139. package/dist/migration/plan-replay.js +21 -6
  140. package/dist/migration/plan-replay.js.map +1 -1
  141. package/dist/migration/rename-branch-migrations.d.ts +13 -0
  142. package/dist/migration/rename-branch-migrations.d.ts.map +1 -0
  143. package/dist/migration/rename-branch-migrations.js +25 -0
  144. package/dist/migration/rename-branch-migrations.js.map +1 -0
  145. package/dist/migration/replay-drizzle-migrations.d.ts +6 -3
  146. package/dist/migration/replay-drizzle-migrations.d.ts.map +1 -1
  147. package/dist/migration/replay-drizzle-migrations.js +48 -4
  148. package/dist/migration/replay-drizzle-migrations.js.map +1 -1
  149. package/dist/migration/replay-plan.d.ts +8 -0
  150. package/dist/migration/replay-plan.d.ts.map +1 -1
  151. package/dist/migration/restore-migration-folder.d.ts +4 -0
  152. package/dist/migration/restore-migration-folder.d.ts.map +1 -0
  153. package/dist/migration/restore-migration-folder.js +15 -0
  154. package/dist/migration/restore-migration-folder.js.map +1 -0
  155. package/dist/package-manager/lockfiles.d.ts +2 -0
  156. package/dist/package-manager/lockfiles.d.ts.map +1 -1
  157. package/dist/package-manager/lockfiles.js +5 -0
  158. package/dist/package-manager/lockfiles.js.map +1 -1
  159. package/dist/run.d.ts.map +1 -1
  160. package/dist/run.js +2 -0
  161. package/dist/run.js.map +1 -1
  162. package/dist/version.d.ts +1 -1
  163. package/dist/version.js +1 -1
  164. package/package.json +2 -2
  165. package/templates/pipeline/package-scripts.json +3 -3
@@ -50,10 +50,11 @@ export const USAGE = `Usage
50
50
  ddd-ts-kit controllers [<context>] [--dry-run]
51
51
  ddd-ts-kit value-objects [--dry-run]
52
52
  ddd-ts-kit affected [--base <git-ref>] [--head <git-ref>] [--format text|json|github|env]
53
- ddd-ts-kit check [paths...] [--rule <id>]... [--format text|json|github|gitlab] [--changed-since <git-ref>] [--self]
53
+ ddd-ts-kit check [paths...] [--rule <id>]... [--format text|json|github|gitlab] [--changed-since <git-ref>] [--explain] [--self]
54
54
  ddd-ts-kit check --clean-only <dir>... [--rule <id>]... [--format text|json|github]
55
55
  ddd-ts-kit check --commit-size [--staged] [--strict]
56
56
  ddd-ts-kit check-file <path>
57
+ ddd-ts-kit lint [paths...] [--format <eslint formatter>] [--fix]
57
58
  ddd-ts-kit rules
58
59
  ddd-ts-kit explain <rule-id>
59
60
 
@@ -1 +1 @@
1
- {"version":3,"file":"usage.js","sourceRoot":"","sources":["../../src/help/usage.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAC9G,MAAM,CAAC,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uFA0DkE,CAAC"}
1
+ {"version":3,"file":"usage.js","sourceRoot":"","sources":["../../src/help/usage.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAC9G,MAAM,CAAC,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uFA2DkE,CAAC"}
@@ -1,35 +1,35 @@
1
1
  /** Ranges written to the generated package.json; bumped together with the kit. */
2
2
  export const VERSIONS = {
3
- '@ddd-ts-kit/kernel': '^0.27.0',
4
- '@ddd-ts-kit/validation': '^0.27.0',
5
- '@ddd-ts-kit/http': '^0.27.0',
6
- '@ddd-ts-kit/tracing': '^0.27.0',
7
- '@ddd-ts-kit/di': '^0.27.0',
8
- '@ddd-ts-kit/events': '^0.27.0',
9
- '@ddd-ts-kit/testing': '^0.27.0',
10
- '@ddd-ts-kit/drizzle': '^0.27.0',
11
- '@ddd-ts-kit/knex': '^0.27.0',
12
- '@ddd-ts-kit/prisma': '^0.27.0',
13
- '@ddd-ts-kit/typeorm': '^0.27.0',
14
- '@ddd-ts-kit/auth': '^0.27.0',
15
- '@ddd-ts-kit/rabbitmq': '^0.27.0',
16
- '@ddd-ts-kit/aspects': '^0.27.0',
17
- '@ddd-ts-kit/audit': '^0.27.0',
18
- '@ddd-ts-kit/redis': '^0.27.0',
19
- '@ddd-ts-kit/kafka': '^0.27.0',
20
- '@ddd-ts-kit/nats': '^0.27.0',
21
- '@ddd-ts-kit/scheduling': '^0.27.0',
22
- '@ddd-ts-kit/sentry': '^0.27.0',
23
- '@ddd-ts-kit/s3': '^0.27.0',
3
+ '@ddd-ts-kit/kernel': '^0.82.0',
4
+ '@ddd-ts-kit/validation': '^0.82.0',
5
+ '@ddd-ts-kit/http': '^0.82.0',
6
+ '@ddd-ts-kit/tracing': '^0.82.0',
7
+ '@ddd-ts-kit/di': '^0.82.0',
8
+ '@ddd-ts-kit/events': '^0.82.0',
9
+ '@ddd-ts-kit/testing': '^0.82.0',
10
+ '@ddd-ts-kit/drizzle': '^0.82.0',
11
+ '@ddd-ts-kit/knex': '^0.82.0',
12
+ '@ddd-ts-kit/prisma': '^0.82.0',
13
+ '@ddd-ts-kit/typeorm': '^0.82.0',
14
+ '@ddd-ts-kit/auth': '^0.82.0',
15
+ '@ddd-ts-kit/rabbitmq': '^0.82.0',
16
+ '@ddd-ts-kit/aspects': '^0.82.0',
17
+ '@ddd-ts-kit/audit': '^0.82.0',
18
+ '@ddd-ts-kit/redis': '^0.82.0',
19
+ '@ddd-ts-kit/kafka': '^0.82.0',
20
+ '@ddd-ts-kit/nats': '^0.82.0',
21
+ '@ddd-ts-kit/scheduling': '^0.82.0',
22
+ '@ddd-ts-kit/sentry': '^0.82.0',
23
+ '@ddd-ts-kit/s3': '^0.82.0',
24
24
  '@aws-sdk/client-s3': '^3.1150.0',
25
25
  '@aws-sdk/lib-storage': '^3.1150.0',
26
26
  '@aws-sdk/s3-request-presigner': '^3.1150.0',
27
27
  busboy: '^1.6.0',
28
28
  '@sentry/node': '^11.6.0',
29
- '@ddd-ts-kit/pino': '^0.27.0',
29
+ '@ddd-ts-kit/pino': '^0.82.0',
30
30
  pino: '^10.4.0',
31
31
  'pino-pretty': '^13.2.0',
32
- '@ddd-ts-kit/winston': '^0.27.0',
32
+ '@ddd-ts-kit/winston': '^0.82.0',
33
33
  winston: '^3.19.0',
34
34
  '@confluentinc/kafka-javascript': '^1.11.0',
35
35
  '@nats-io/jetstream': '^3.4.0',
@@ -37,7 +37,7 @@ export const VERSIONS = {
37
37
  ioredis: '^6.0.0',
38
38
  jose: '^6.0.0',
39
39
  amqplib: '^2.2.0',
40
- 'ddd-ts-kit': '^0.27.0',
40
+ 'ddd-ts-kit': '^0.82.0',
41
41
  tsx: '^4.23.15',
42
42
  vitest: '^5.0.3',
43
43
  zod: '^4.6.5',
@@ -1 +1 @@
1
- {"version":3,"file":"run-init.d.ts","sourceRoot":"","sources":["../../src/init/run-init.ts"],"names":[],"mappings":"AAYA,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AASxE,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAc3E,MAAM,WAAW,WAAY,SAAQ,YAAY;IAC/C,yCAAyC;IACzC,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,2HAA2H;IAC3H,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,eAAe,CAmC3E"}
1
+ {"version":3,"file":"run-init.d.ts","sourceRoot":"","sources":["../../src/init/run-init.ts"],"names":[],"mappings":"AAaA,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AASxE,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAc3E,MAAM,WAAW,WAAY,SAAQ,YAAY;IAC/C,yCAAyC;IACzC,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,2HAA2H;IAC3H,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,eAAe,CAmC3E"}
@@ -10,6 +10,7 @@ import { parseContextName, toName } from '../naming/index.js';
10
10
  import { inDialect } from '../package-manager/in-dialect.js';
11
11
  import { setUpSdk } from '../sdk/index.js';
12
12
  import { readTemplate, renderTemplate } from '../templating/index.js';
13
+ import { VERSION } from '../version.js';
13
14
  import { Workspace } from '../workspace/index.js';
14
15
  import { applyPreset } from '../presets/apply-preset.js';
15
16
  import { presetNamed } from '../presets/preset-named.js';
@@ -31,7 +32,7 @@ const KNIP_FILE = 'knip.json';
31
32
  const NEXT_STEP = 'Next, follow the recommended steps in order, the supported path: discover the domain, find the bounded contexts, write their glossaries and draw the context map before any code (`/ddd-ts-kit:start` in Claude Code conducts them), then declare each context with `npx ddd-ts-kit generate context`, plan the slices and build them one at a time. `npx ddd-ts-kit status` says which step is next; the steps are in README.md and at https://github.com/gbourgeat/ddd-ts-kit/blob/main/docs/guides/methodology.md.';
32
33
  export function runInit(root, options) {
33
34
  const ws = new Workspace(root, options.force);
34
- const config = recordNoOutbox(ws, resolveStack(root, options), options.allowNoOutbox);
35
+ const config = { ...recordNoOutbox(ws, resolveStack(root, options), options.allowNoOutbox), initVersion: VERSION };
35
36
  const projectName = existingName(root) ?? (toName(path.basename(path.resolve(root))).kebab || 'app');
36
37
  ws.create(CONFIG_FILE, configText(ws, config));
37
38
  writeManifest(ws, { config, projectName, force: options.force });
@@ -60,7 +61,8 @@ export function runInit(root, options) {
60
61
  }
61
62
  /**
62
63
  * A new project gets its config whole, its code written in worktrees only; one that is
63
- * initialised again with --force keeps what its team wrote around the stack.
64
+ * initialised again with --force keeps what its team wrote around the stack. Both record the
65
+ * version of the CLI that wrote the files.
64
66
  */
65
67
  function configText(ws, config) {
66
68
  const recorded = ws.read(CONFIG_FILE);
@@ -1 +1 @@
1
- {"version":3,"file":"run-init.js","sourceRoot":"","sources":["../../src/init/run-init.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,eAAe,EAAe,MAAM,oBAAoB,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,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EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QAEvG,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IACvE,CAAC;AACH,CAAC;AAED,kIAAkI;AAClI,SAAS,OAAO,CAAC,IAAY;IAC3B,MAAM,KAAK,GAAY,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAExC,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC;AAC3B,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const LINT_RUN_VARIABLE = "DDD_TS_KIT_LINT_RUN";
2
+ /**
3
+ * The ESLint of the project, through its API, which is asynchronous where a command of the CLI is
4
+ * not: run by `node --input-type=module --eval`, so that it is the same script from the sources and
5
+ * from the build. A formatter that writes its own file (`gitlab`) writes it here.
6
+ */
7
+ export declare const ESLINT_IN_PROJECT = "\nimport { createRequire } from 'node:module';\nimport path from 'node:path';\nimport { pathToFileURL } from 'node:url';\n\nconst { root, patterns, format, fix } = JSON.parse(process.env.DDD_TS_KIT_LINT_RUN);\nconst entry = createRequire(path.join(root, 'package.json')).resolve('eslint');\nconst { ESLint } = await import(pathToFileURL(entry).href);\nconst eslint = new ESLint({ cwd: root, fix });\nconst results = await eslint.lintFiles(patterns.length === 0 ? ['.'] : patterns);\n\nif (fix) {\n await ESLint.outputFixes(results);\n}\n\nconst rulesMeta = eslint.getRulesMetaForResults(results);\nconst report = await (await eslint.loadFormatter(format)).format(results, { cwd: root, rulesMeta });\nconst transitions = Object.fromEntries(\n Object.entries(rulesMeta).flatMap(([id, meta]) =>\n typeof meta?.docs?.transition === 'string' ? [[id, meta.docs.transition]] : [],\n ),\n);\nconst messages = results.flatMap((result) => result.messages.map(({ ruleId, severity }) => ({ ruleId, severity })));\n\nprocess.stdout.write(JSON.stringify({ report, messages, transitions }));\n";
8
+ //# sourceMappingURL=eslint-in-project.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eslint-in-project.d.ts","sourceRoot":"","sources":["../../src/lint/eslint-in-project.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AAEvD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,ikCAyB7B,CAAC"}
@@ -0,0 +1,33 @@
1
+ export const LINT_RUN_VARIABLE = 'DDD_TS_KIT_LINT_RUN';
2
+ /**
3
+ * The ESLint of the project, through its API, which is asynchronous where a command of the CLI is
4
+ * not: run by `node --input-type=module --eval`, so that it is the same script from the sources and
5
+ * from the build. A formatter that writes its own file (`gitlab`) writes it here.
6
+ */
7
+ export const ESLINT_IN_PROJECT = `
8
+ import { createRequire } from 'node:module';
9
+ import path from 'node:path';
10
+ import { pathToFileURL } from 'node:url';
11
+
12
+ const { root, patterns, format, fix } = JSON.parse(process.env.${LINT_RUN_VARIABLE});
13
+ const entry = createRequire(path.join(root, 'package.json')).resolve('eslint');
14
+ const { ESLint } = await import(pathToFileURL(entry).href);
15
+ const eslint = new ESLint({ cwd: root, fix });
16
+ const results = await eslint.lintFiles(patterns.length === 0 ? ['.'] : patterns);
17
+
18
+ if (fix) {
19
+ await ESLint.outputFixes(results);
20
+ }
21
+
22
+ const rulesMeta = eslint.getRulesMetaForResults(results);
23
+ const report = await (await eslint.loadFormatter(format)).format(results, { cwd: root, rulesMeta });
24
+ const transitions = Object.fromEntries(
25
+ Object.entries(rulesMeta).flatMap(([id, meta]) =>
26
+ typeof meta?.docs?.transition === 'string' ? [[id, meta.docs.transition]] : [],
27
+ ),
28
+ );
29
+ const messages = results.flatMap((result) => result.messages.map(({ ruleId, severity }) => ({ ruleId, severity })));
30
+
31
+ process.stdout.write(JSON.stringify({ report, messages, transitions }));
32
+ `;
33
+ //# sourceMappingURL=eslint-in-project.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eslint-in-project.js","sourceRoot":"","sources":["../../src/lint/eslint-in-project.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG,qBAAqB,CAAC;AAEvD;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;iEAKgC,iBAAiB;;;;;;;;;;;;;;;;;;;;CAoBjF,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { LintVerdict } from './lint-verdict.js';
2
+ /** The lines `ddd-ts-kit lint` adds after the report of ESLint: why it fails, and what is left to fix before an upgrade. */
3
+ export declare function formatVerdict({ errors, warnings, inTransition }: LintVerdict): string[];
4
+ //# sourceMappingURL=format-verdict.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-verdict.d.ts","sourceRoot":"","sources":["../../src/lint/format-verdict.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,4HAA4H;AAC5H,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE,WAAW,GAAG,MAAM,EAAE,CAcvF"}
@@ -0,0 +1,11 @@
1
+ /** The lines `ddd-ts-kit lint` adds after the report of ESLint: why it fails, and what is left to fix before an upgrade. */
2
+ export function formatVerdict({ errors, warnings, inTransition }) {
3
+ const transition = inTransition.map(({ ruleId, until, warnings: count }) => `${ruleId}: ${count} warning(s), not counted while the rule is new; it becomes an error in ${until}: fix them before upgrading to it.`);
4
+ const failure = warnings > 0
5
+ ? [
6
+ `${warnings} warning(s) fail the lint, as an error does: fix each one, or raise its rule to error and record the existing findings (docs/tools/quality-baseline.md, "Warnings fail the lint").`,
7
+ ]
8
+ : [];
9
+ return [...transition, ...(errors > 0 ? [`${errors} error(s).`] : []), ...failure];
10
+ }
11
+ //# sourceMappingURL=format-verdict.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-verdict.js","sourceRoot":"","sources":["../../src/lint/format-verdict.ts"],"names":[],"mappings":"AAEA,4HAA4H;AAC5H,MAAM,UAAU,aAAa,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAe;IAC3E,MAAM,UAAU,GAAG,YAAY,CAAC,GAAG,CACjC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,CACrC,GAAG,MAAM,KAAK,KAAK,0EAA0E,KAAK,oCAAoC,CACzI,CAAC;IAEF,MAAM,OAAO,GACX,QAAQ,GAAG,CAAC;QACV,CAAC,CAAC;YACE,GAAG,QAAQ,oLAAoL;SAChM;QACH,CAAC,CAAC,EAAE,CAAC;IAET,OAAO,CAAC,GAAG,UAAU,EAAE,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,OAAO,CAAC,CAAC;AACrF,CAAC"}
@@ -0,0 +1,8 @@
1
+ /** What `ddd-ts-kit lint` asks of the process that runs ESLint, in its environment. */
2
+ export interface LintRun {
3
+ readonly root: string;
4
+ readonly patterns: readonly string[];
5
+ readonly format: string;
6
+ readonly fix: boolean;
7
+ }
8
+ //# sourceMappingURL=lint-run.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lint-run.d.ts","sourceRoot":"","sources":["../../src/lint/lint-run.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;CACvB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=lint-run.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lint-run.js","sourceRoot":"","sources":["../../src/lint/lint-run.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ import type { LintAnswer } from './parse-lint-answer.js';
2
+ export interface LintVerdict {
3
+ readonly errors: number;
4
+ /** The warnings that fail the lint: every one but those of a rule in transition. */
5
+ readonly warnings: number;
6
+ /** Each rule of the kit in transition, the warnings it reported and the version in which it becomes an error. */
7
+ readonly inTransition: readonly {
8
+ readonly ruleId: string;
9
+ readonly until: string;
10
+ readonly warnings: number;
11
+ }[];
12
+ }
13
+ /**
14
+ * An error fails the lint, and so does a warning, unless its rule is one of the kit in transition:
15
+ * a new rule reaches projects as a warning first, and an upgrade of the kit never turns a green
16
+ * lint red. Its warnings are counted apart, to be fixed before the version that makes it an error.
17
+ */
18
+ export declare function lintVerdict({ messages, transitions }: Pick<LintAnswer, 'messages' | 'transitions'>): LintVerdict;
19
+ //# sourceMappingURL=lint-verdict.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lint-verdict.d.ts","sourceRoot":"","sources":["../../src/lint/lint-verdict.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,oFAAoF;IACpF,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,iHAAiH;IACjH,QAAQ,CAAC,YAAY,EAAE,SAAS;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAClH;AAID;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,aAAa,CAAC,GAAG,WAAW,CAmBhH"}
@@ -0,0 +1,25 @@
1
+ const ERROR = 2;
2
+ /**
3
+ * An error fails the lint, and so does a warning, unless its rule is one of the kit in transition:
4
+ * a new rule reaches projects as a warning first, and an upgrade of the kit never turns a green
5
+ * lint red. Its warnings are counted apart, to be fixed before the version that makes it an error.
6
+ */
7
+ export function lintVerdict({ messages, transitions }) {
8
+ const inTransition = new Map();
9
+ let warnings = 0;
10
+ for (const { ruleId } of messages.filter((message) => message.severity !== ERROR)) {
11
+ const until = ruleId === null ? undefined : transitions[ruleId];
12
+ if (ruleId === null || until === undefined) {
13
+ warnings += 1;
14
+ }
15
+ else {
16
+ inTransition.set(ruleId, { ruleId, until, warnings: (inTransition.get(ruleId)?.warnings ?? 0) + 1 });
17
+ }
18
+ }
19
+ return {
20
+ errors: messages.filter((message) => message.severity === ERROR).length,
21
+ warnings,
22
+ inTransition: [...inTransition.values()].sort((left, right) => left.ruleId.localeCompare(right.ruleId)),
23
+ };
24
+ }
25
+ //# sourceMappingURL=lint-verdict.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lint-verdict.js","sourceRoot":"","sources":["../../src/lint/lint-verdict.ts"],"names":[],"mappings":"AAUA,MAAM,KAAK,GAAG,CAAC,CAAC;AAEhB;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAgD;IACjG,MAAM,YAAY,GAAG,IAAI,GAAG,EAA+C,CAAC;IAC5E,IAAI,QAAQ,GAAG,CAAC,CAAC;IAEjB,KAAK,MAAM,EAAE,MAAM,EAAE,IAAI,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,KAAK,KAAK,CAAC,EAAE,CAAC;QAClF,MAAM,KAAK,GAAG,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAEhE,IAAI,MAAM,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YAC3C,QAAQ,IAAI,CAAC,CAAC;QAChB,CAAC;aAAM,CAAC;YACN,YAAY,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,QAAQ,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACvG,CAAC;IACH,CAAC;IAED,OAAO;QACL,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,KAAK,KAAK,CAAC,CAAC,MAAM;QACvE,QAAQ;QACR,YAAY,EAAE,CAAC,GAAG,YAAY,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;KACxG,CAAC;AACJ,CAAC"}
@@ -0,0 +1,13 @@
1
+ /** What the process that runs ESLint answers on its output: the report in the format asked, the messages, and the rules in transition. */
2
+ export interface LintAnswer {
3
+ readonly report: string;
4
+ readonly messages: readonly {
5
+ readonly ruleId: string | null;
6
+ readonly severity: number;
7
+ }[];
8
+ /** The version in which each rule of the kit in transition becomes an error, by rule id. */
9
+ readonly transitions: Readonly<Record<string, string>>;
10
+ }
11
+ /** The answer read from the output of that process, or undefined when it is not one. */
12
+ export declare function parseLintAnswer(output: string): LintAnswer | undefined;
13
+ //# sourceMappingURL=parse-lint-answer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-lint-answer.d.ts","sourceRoot":"","sources":["../../src/lint/parse-lint-answer.ts"],"names":[],"mappings":"AAEA,0IAA0I;AAC1I,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,SAAS;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5F,4FAA4F;IAC5F,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACxD;AAED,wFAAwF;AACxF,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAmBtE"}
@@ -0,0 +1,18 @@
1
+ import { isRecord } from '../config/values/is-record.js';
2
+ /** The answer read from the output of that process, or undefined when it is not one. */
3
+ export function parseLintAnswer(output) {
4
+ const parsed = JSON.parse(output);
5
+ if (!isRecord(parsed) || typeof parsed['report'] !== 'string' || !Array.isArray(parsed['messages'])) {
6
+ return undefined;
7
+ }
8
+ const transitions = isRecord(parsed['transitions']) ? parsed['transitions'] : {};
9
+ return {
10
+ report: parsed['report'],
11
+ messages: parsed['messages'].filter(isRecord).map((message) => ({
12
+ ruleId: typeof message['ruleId'] === 'string' ? message['ruleId'] : null,
13
+ severity: typeof message['severity'] === 'number' ? message['severity'] : 2,
14
+ })),
15
+ transitions: Object.fromEntries(Object.entries(transitions).filter((entry) => typeof entry[1] === 'string')),
16
+ };
17
+ }
18
+ //# sourceMappingURL=parse-lint-answer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-lint-answer.js","sourceRoot":"","sources":["../../src/lint/parse-lint-answer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAUzD,wFAAwF;AACxF,MAAM,UAAU,eAAe,CAAC,MAAc;IAC5C,MAAM,MAAM,GAAY,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAE3C,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC;QACpG,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAEjF,OAAO;QACL,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC;QACxB,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;YAC9D,MAAM,EAAE,OAAO,OAAO,CAAC,QAAQ,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI;YACxE,QAAQ,EAAE,OAAO,OAAO,CAAC,UAAU,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;SAC5E,CAAC,CAAC;QACH,WAAW,EAAE,MAAM,CAAC,WAAW,CAC7B,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAA6B,EAAE,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,CACvG;KACF,CAAC;AACJ,CAAC"}
@@ -1,9 +1,10 @@
1
1
  import type { ReplayPlan } from './replay-plan.js';
2
2
  /**
3
3
  * The migrations of the branch that `base` does not have, by their `.sql` files, read before
4
- * anything is deleted. Refused, with the fix: a journal that still holds conflict markers, a base
5
- * that is not a commit, a base with migrations the branch has not merged, and more than one
6
- * migration of the branch that changes the schema.
4
+ * anything is deleted, and whether the history forks from the base. Refused, with the fix: a
5
+ * journal that still holds conflict markers, a base that is not a commit, a base with migrations
6
+ * the branch has not merged, and, when the history forks, more than one migration of the branch
7
+ * that changes the schema.
7
8
  */
8
9
  export declare function planReplay({ root, base }: Pick<ReplayPlan, 'root' | 'base'>): ReplayPlan;
9
10
  //# sourceMappingURL=plan-replay.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plan-replay.d.ts","sourceRoot":"","sources":["../../src/migration/plan-replay.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAInD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,UAAU,CAuBxF"}
1
+ {"version":3,"file":"plan-replay.d.ts","sourceRoot":"","sources":["../../src/migration/plan-replay.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAInD;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,UAAU,CA0BxF"}
@@ -1,6 +1,8 @@
1
1
  import fs from 'node:fs';
2
2
  import path from 'node:path';
3
+ import { drizzleHistoryFindings } from '../check/migrations/drizzle-history-findings.js';
3
4
  import { drizzleOutFolder } from '../check/migrations/drizzle-out-folder.js';
5
+ import { readDrizzleMigrations } from '../check/migrations/read-drizzle-migrations.js';
4
6
  import { CliError } from '../cli-error.js';
5
7
  import { runGit } from '../commit/run-git.js';
6
8
  import { branchMigrations } from './branch-migrations.js';
@@ -8,9 +10,10 @@ import { migrationFiles } from './migration-files.js';
8
10
  const CONFLICT_MARKER = /^(?:<{7}|={7}|>{7})(?: |$)/m;
9
11
  /**
10
12
  * The migrations of the branch that `base` does not have, by their `.sql` files, read before
11
- * anything is deleted. Refused, with the fix: a journal that still holds conflict markers, a base
12
- * that is not a commit, a base with migrations the branch has not merged, and more than one
13
- * migration of the branch that changes the schema.
13
+ * anything is deleted, and whether the history forks from the base. Refused, with the fix: a
14
+ * journal that still holds conflict markers, a base that is not a commit, a base with migrations
15
+ * the branch has not merged, and, when the history forks, more than one migration of the branch
16
+ * that changes the schema.
14
17
  */
15
18
  export function planReplay({ root, base }) {
16
19
  const folder = drizzleOutFolder(root);
@@ -24,8 +27,20 @@ export function planReplay({ root, base }) {
24
27
  throw new CliError(`${base} has migrations this branch does not have: ${notMerged.join(', ')}.`, `Merge it first (\`git merge ${base}\`), then run the replay again.`);
25
28
  }
26
29
  const migrations = branchMigrations({ files, folder, tags: here.filter((tag) => !onBase.includes(tag)) });
27
- refuseSeveralSchemaChanges(migrations);
28
- return { root, base, folder, migrations };
30
+ const forked = forks(root);
31
+ if (forked) {
32
+ refuseSeveralSchemaChanges(migrations);
33
+ }
34
+ return { root, base, folder, migrations, forked, found: files };
35
+ }
36
+ /**
37
+ * Every migration of the base is here, so a history whose journal lists the files in the order
38
+ * they were generated, each snapshot from the one before, has those of the base first: the
39
+ * branch's follow the last of them, and generating them again would change nothing.
40
+ */
41
+ function forks(root) {
42
+ const history = readDrizzleMigrations(root);
43
+ return history === undefined || drizzleHistoryFindings(history).length > 0;
29
44
  }
30
45
  function refuseConflictMarkers(root, journal, base) {
31
46
  if (CONFLICT_MARKER.test(readIfPresent(path.join(root, journal)))) {
@@ -45,7 +60,7 @@ function refuseUnknownBase(root, base) {
45
60
  function refuseSeveralSchemaChanges(migrations) {
46
61
  const changing = migrations.filter((migration) => !migration.custom).map((migration) => migration.tag);
47
62
  if (changing.length > 1) {
48
- throw new CliError(`${changing.length} migrations of this branch change the schema (${changing.join(', ')}): drizzle-kit generates the difference between the schema files and the last snapshot, so it can generate them again only as one.`, 'Delete them (each .sql file, its snapshot under meta/ and its journal entry) and run `npm run db:generate <what-it-does>` once, then the replay again for the custom ones. A worker keeps one working migration and generates it again when its slice changes the schema again.');
63
+ throw new CliError(`${changing.length} migrations of this branch change the schema (${changing.join(', ')}): drizzle-kit generates the difference between the schema files and the last snapshot, so it cannot split them again into the steps they were, and one migration in their place would join steps planned apart (a table, then a constraint once it is filled).`, "Generate them again one at a time, in their order: delete them (each .sql file, its snapshot under meta/ and its journal entry), undo in the schema files every change of the branch but the first one's, run `npm run db:generate <its name>`, then bring back the next change and run it again, and so on (`git show <commit>:<schema file>` holds the schema of each step). Then the replay again for the custom ones. A worker keeps one working migration and generates it again when its slice changes the schema again.");
49
64
  }
50
65
  }
51
66
  /** The names without `.sql` of the files listed one per line directly under the migrations folder. */
@@ -1 +1 @@
1
- {"version":3,"file":"plan-replay.js","sourceRoot":"","sources":["../../src/migration/plan-replay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGtD,MAAM,eAAe,GAAG,6BAA6B,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,UAAU,UAAU,CAAC,EAAE,IAAI,EAAE,IAAI,EAAqC;IAC1E,MAAM,MAAM,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAEtC,qBAAqB,CAAC,IAAI,EAAE,GAAG,MAAM,qBAAqB,EAAE,IAAI,CAAC,CAAC;IAClE,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAE9B,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,SAAS,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IACjG,MAAM,KAAK,GAAG,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAC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AAS,aAAa,CAAC,IAAY;IACjC,IAAI,CAAC;QACH,OAAO,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACvC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { ReplayPlan } from './replay-plan.js';
2
+ /** A migration of the branch whose name changes, from its tag to the one it takes. */
3
+ export interface RenamedMigration {
4
+ readonly from: string;
5
+ readonly to: string;
6
+ }
7
+ /**
8
+ * Gives the migrations of a branch that already follow the base the names a replay would give
9
+ * them, without generating them again: the `.sql` file and the tag of its journal entry are
10
+ * renamed, its number, its snapshot and its statements kept.
11
+ */
12
+ export declare function renameBranchMigrations({ root, folder, migrations }: ReplayPlan, keepWorking: boolean): RenamedMigration[];
13
+ //# sourceMappingURL=rename-branch-migrations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rename-branch-migrations.d.ts","sourceRoot":"","sources":["../../src/migration/rename-branch-migrations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGnD,sFAAsF;AACtF,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,UAAU,EACxC,WAAW,EAAE,OAAO,GACnB,gBAAgB,EAAE,CAmBpB"}
@@ -0,0 +1,25 @@
1
+ import fs from 'node:fs';
2
+ import path from 'node:path';
3
+ import { replayedName } from './replayed-name.js';
4
+ /**
5
+ * Gives the migrations of a branch that already follow the base the names a replay would give
6
+ * them, without generating them again: the `.sql` file and the tag of its journal entry are
7
+ * renamed, its number, its snapshot and its statements kept.
8
+ */
9
+ export function renameBranchMigrations({ root, folder, migrations }, keepWorking) {
10
+ const journal = path.join(root, folder, 'meta', '_journal.json');
11
+ const renamed = [];
12
+ let text = fs.readFileSync(journal, 'utf8');
13
+ for (const { tag } of migrations) {
14
+ const at = tag.indexOf('_');
15
+ const to = at === -1 ? tag : `${tag.slice(0, at)}_${replayedName(tag, keepWorking)}`;
16
+ if (to !== tag) {
17
+ fs.renameSync(path.join(root, folder, `${tag}.sql`), path.join(root, folder, `${to}.sql`));
18
+ text = text.replace(JSON.stringify(tag), JSON.stringify(to));
19
+ renamed.push({ from: tag, to });
20
+ }
21
+ }
22
+ fs.writeFileSync(journal, text);
23
+ return renamed;
24
+ }
25
+ //# sourceMappingURL=rename-branch-migrations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rename-branch-migrations.js","sourceRoot":"","sources":["../../src/migration/rename-branch-migrations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAQlD;;;;GAIG;AACH,MAAM,UAAU,sBAAsB,CACpC,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAc,EACxC,WAAoB;IAEpB,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC;IACjE,MAAM,OAAO,GAAuB,EAAE,CAAC;IACvC,IAAI,IAAI,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAE5C,KAAK,MAAM,EAAE,GAAG,EAAE,IAAI,UAAU,EAAE,CAAC;QACjC,MAAM,EAAE,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAC5B,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,YAAY,CAAC,GAAG,EAAE,WAAW,CAAC,EAAE,CAAC;QAErF,IAAI,EAAE,KAAK,GAAG,EAAE,CAAC;YACf,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,GAAG,MAAM,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC;YAC3F,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC;YAC7D,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;IAED,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAEhC,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -12,9 +12,12 @@ export interface DrizzleReplay {
12
12
  }
13
13
  /**
14
14
  * `drizzle-generate --replay`, after merging the trunk into a branch when both added migrations:
15
- * deletes the migrations of the branch the base does not have (with their snapshots and journal
16
- * entries), then generates them again on top of the base, one per deleted one, in their order and
17
- * under their names. A custom migration gets its statements back.
15
+ * when the history forks from the base, deletes the migrations of the branch the base does not
16
+ * have (with their snapshots and journal entries), then generates them again on top of the base,
17
+ * one per deleted one, in their order and under their names. A custom migration gets its
18
+ * statements back; a generated one that drizzle-kit now writes otherwise (edited by hand, or a
19
+ * change of the base on what it changes) is refused and the folder put back. Migrations that
20
+ * already follow the base are only renamed, when their name changes.
18
21
  */
19
22
  export declare function replayDrizzleMigrations(replay: DrizzleReplay, io: Io): number;
20
23
  //# sourceMappingURL=replay-drizzle-migrations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"replay-drizzle-migrations.d.ts","sourceRoot":"","sources":["../../src/migration/replay-drizzle-migrations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAY5C,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,+FAA+F;IAC/F,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,aAAa,EAAE,EAAE,EAAE,EAAE,GAAG,MAAM,CAyC7E"}
1
+ {"version":3,"file":"replay-drizzle-migrations.d.ts","sourceRoot":"","sources":["../../src/migration/replay-drizzle-migrations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAe5C,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,+FAA+F;IAC/F,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,aAAa,EAAE,EAAE,EAAE,EAAE,GAAG,MAAM,CA8C7E"}