ddd-ts-kit 0.112.0 → 0.113.1

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 (579) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.fr.md +18 -1
  3. package/README.md +16 -0
  4. package/dist/check/catalogue/architecture-rules.d.ts.map +1 -1
  5. package/dist/check/catalogue/architecture-rules.js +2 -0
  6. package/dist/check/catalogue/architecture-rules.js.map +1 -1
  7. package/dist/check/commands/check-command.js +4 -3
  8. package/dist/check/commands/check-command.js.map +1 -1
  9. package/dist/check/explain/persistence-docs.d.ts.map +1 -1
  10. package/dist/check/explain/persistence-docs.js +17 -0
  11. package/dist/check/explain/persistence-docs.js.map +1 -1
  12. package/dist/check/fixtures/fixtures.d.ts.map +1 -1
  13. package/dist/check/fixtures/fixtures.js +2 -0
  14. package/dist/check/fixtures/fixtures.js.map +1 -1
  15. package/dist/check/fixtures/read-model-list-files.d.ts +7 -0
  16. package/dist/check/fixtures/read-model-list-files.d.ts.map +1 -0
  17. package/dist/check/fixtures/read-model-list-files.js +18 -0
  18. package/dist/check/fixtures/read-model-list-files.js.map +1 -0
  19. package/dist/check/fixtures/read-model-listed-fixtures.d.ts +3 -0
  20. package/dist/check/fixtures/read-model-listed-fixtures.d.ts.map +1 -0
  21. package/dist/check/fixtures/read-model-listed-fixtures.js +292 -0
  22. package/dist/check/fixtures/read-model-listed-fixtures.js.map +1 -0
  23. package/dist/check/fixtures/tenancy-fixtures.d.ts.map +1 -1
  24. package/dist/check/fixtures/tenancy-fixtures.js +2 -1
  25. package/dist/check/fixtures/tenancy-fixtures.js.map +1 -1
  26. package/dist/check/fixtures/tenancy-prisma-fixtures.d.ts.map +1 -1
  27. package/dist/check/fixtures/tenancy-prisma-fixtures.js +2 -0
  28. package/dist/check/fixtures/tenancy-prisma-fixtures.js.map +1 -1
  29. package/dist/check/fixtures/tenancy-typeorm-fixtures.d.ts.map +1 -1
  30. package/dist/check/fixtures/tenancy-typeorm-fixtures.js +2 -0
  31. package/dist/check/fixtures/tenancy-typeorm-fixtures.js.map +1 -1
  32. package/dist/check/model/finding.d.ts +2 -1
  33. package/dist/check/model/finding.d.ts.map +1 -1
  34. package/dist/check/model/violation.d.ts +4 -1
  35. package/dist/check/model/violation.d.ts.map +1 -1
  36. package/dist/check/read-models/list-findings.d.ts +22 -0
  37. package/dist/check/read-models/list-findings.d.ts.map +1 -0
  38. package/dist/check/read-models/list-findings.js +84 -0
  39. package/dist/check/read-models/list-findings.js.map +1 -0
  40. package/dist/check/rules/declarations-port-adapter-wired.js +9 -2
  41. package/dist/check/rules/declarations-port-adapter-wired.js.map +1 -1
  42. package/dist/check/rules/persistence-read-model-listed.d.ts +3 -0
  43. package/dist/check/rules/persistence-read-model-listed.d.ts.map +1 -0
  44. package/dist/check/rules/persistence-read-model-listed.js +93 -0
  45. package/dist/check/rules/persistence-read-model-listed.js.map +1 -0
  46. package/dist/check/scan/lexer.d.ts +4 -0
  47. package/dist/check/scan/lexer.d.ts.map +1 -1
  48. package/dist/check/scan/lexer.js +11 -0
  49. package/dist/check/scan/lexer.js.map +1 -1
  50. package/dist/check/scan/scan.d.ts +6 -0
  51. package/dist/check/scan/scan.d.ts.map +1 -1
  52. package/dist/check/scan/scan.js +1 -0
  53. package/dist/check/scan/scan.js.map +1 -1
  54. package/dist/check/structure/read-structure.js +35 -13
  55. package/dist/check/structure/read-structure.js.map +1 -1
  56. package/dist/commands/generate.d.ts.map +1 -1
  57. package/dist/commands/generate.js +3 -0
  58. package/dist/commands/generate.js.map +1 -1
  59. package/dist/commands/json-report.js +4 -4
  60. package/dist/commands/json-report.js.map +1 -1
  61. package/dist/commands/print-report.js +3 -0
  62. package/dist/commands/print-report.js.map +1 -1
  63. package/dist/commands/prisma-client.d.ts +8 -0
  64. package/dist/commands/prisma-client.d.ts.map +1 -0
  65. package/dist/commands/prisma-client.js +23 -0
  66. package/dist/commands/prisma-client.js.map +1 -0
  67. package/dist/generate/kinds/declare-storage.d.ts.map +1 -1
  68. package/dist/generate/kinds/declare-storage.js +6 -1
  69. package/dist/generate/kinds/declare-storage.js.map +1 -1
  70. package/dist/generate/kinds/declare-table.d.ts +2 -0
  71. package/dist/generate/kinds/declare-table.d.ts.map +1 -1
  72. package/dist/generate/kinds/declare-table.js +65 -1
  73. package/dist/generate/kinds/declare-table.js.map +1 -1
  74. package/dist/generate/kinds/read-model/list-read-model.d.ts +4 -9
  75. package/dist/generate/kinds/read-model/list-read-model.d.ts.map +1 -1
  76. package/dist/generate/kinds/read-model/list-read-model.js +11 -9
  77. package/dist/generate/kinds/read-model/list-read-model.js.map +1 -1
  78. package/dist/generate/kinds/read-model-kind.d.ts.map +1 -1
  79. package/dist/generate/kinds/read-model-kind.js +7 -2
  80. package/dist/generate/kinds/read-model-kind.js.map +1 -1
  81. package/dist/generate/kinds/same-name/code-from.d.ts +8 -0
  82. package/dist/generate/kinds/same-name/code-from.d.ts.map +1 -0
  83. package/dist/generate/kinds/same-name/code-from.js +34 -0
  84. package/dist/generate/kinds/same-name/code-from.js.map +1 -0
  85. package/dist/generate/kinds/same-name/context-of-source.d.ts +5 -0
  86. package/dist/generate/kinds/same-name/context-of-source.d.ts.map +1 -0
  87. package/dist/generate/kinds/same-name/context-of-source.js +10 -0
  88. package/dist/generate/kinds/same-name/context-of-source.js.map +1 -0
  89. package/dist/generate/kinds/same-name/entities-list.d.ts +6 -0
  90. package/dist/generate/kinds/same-name/entities-list.d.ts.map +1 -0
  91. package/dist/generate/kinds/same-name/entities-list.js +25 -0
  92. package/dist/generate/kinds/same-name/entities-list.js.map +1 -0
  93. package/dist/generate/kinds/same-name/exports-an-alias.d.ts +12 -0
  94. package/dist/generate/kinds/same-name/exports-an-alias.d.ts.map +1 -0
  95. package/dist/generate/kinds/same-name/exports-an-alias.js +150 -0
  96. package/dist/generate/kinds/same-name/exports-an-alias.js.map +1 -0
  97. package/dist/generate/kinds/same-name/free-name.d.ts +10 -0
  98. package/dist/generate/kinds/same-name/free-name.d.ts.map +1 -0
  99. package/dist/generate/kinds/same-name/free-name.js +20 -0
  100. package/dist/generate/kinds/same-name/free-name.js.map +1 -0
  101. package/dist/generate/kinds/same-name/hidden-symbols.d.ts +8 -0
  102. package/dist/generate/kinds/same-name/hidden-symbols.d.ts.map +1 -0
  103. package/dist/generate/kinds/same-name/hidden-symbols.js +18 -0
  104. package/dist/generate/kinds/same-name/hidden-symbols.js.map +1 -0
  105. package/dist/generate/kinds/same-name/imported-twice-notes.d.ts +10 -0
  106. package/dist/generate/kinds/same-name/imported-twice-notes.d.ts.map +1 -0
  107. package/dist/generate/kinds/same-name/imported-twice-notes.js +24 -0
  108. package/dist/generate/kinds/same-name/imported-twice-notes.js.map +1 -0
  109. package/dist/generate/kinds/same-name/index-exports.d.ts +11 -0
  110. package/dist/generate/kinds/same-name/index-exports.d.ts.map +1 -0
  111. package/dist/generate/kinds/same-name/index-exports.js +27 -0
  112. package/dist/generate/kinds/same-name/index-exports.js.map +1 -0
  113. package/dist/generate/kinds/same-name/index-picture.d.ts +29 -0
  114. package/dist/generate/kinds/same-name/index-picture.d.ts.map +1 -0
  115. package/dist/generate/kinds/same-name/index-picture.js +63 -0
  116. package/dist/generate/kinds/same-name/index-picture.js.map +1 -0
  117. package/dist/generate/kinds/same-name/index-reading.d.ts +83 -0
  118. package/dist/generate/kinds/same-name/index-reading.d.ts.map +1 -0
  119. package/dist/generate/kinds/same-name/index-reading.js +105 -0
  120. package/dist/generate/kinds/same-name/index-reading.js.map +1 -0
  121. package/dist/generate/kinds/same-name/keep-the-picture.d.ts +17 -0
  122. package/dist/generate/kinds/same-name/keep-the-picture.d.ts.map +1 -0
  123. package/dist/generate/kinds/same-name/keep-the-picture.js +164 -0
  124. package/dist/generate/kinds/same-name/keep-the-picture.js.map +1 -0
  125. package/dist/generate/kinds/same-name/lines-to-settle.d.ts +37 -0
  126. package/dist/generate/kinds/same-name/lines-to-settle.d.ts.map +1 -0
  127. package/dist/generate/kinds/same-name/lines-to-settle.js +100 -0
  128. package/dist/generate/kinds/same-name/lines-to-settle.js.map +1 -0
  129. package/dist/generate/kinds/same-name/linked.d.ts +14 -0
  130. package/dist/generate/kinds/same-name/linked.d.ts.map +1 -0
  131. package/dist/generate/kinds/same-name/linked.js +14 -0
  132. package/dist/generate/kinds/same-name/linked.js.map +1 -0
  133. package/dist/generate/kinds/same-name/listed-entity.d.ts +25 -0
  134. package/dist/generate/kinds/same-name/listed-entity.d.ts.map +1 -0
  135. package/dist/generate/kinds/same-name/listed-entity.js +25 -0
  136. package/dist/generate/kinds/same-name/listed-entity.js.map +1 -0
  137. package/dist/generate/kinds/same-name/may-share.d.ts +22 -0
  138. package/dist/generate/kinds/same-name/may-share.d.ts.map +1 -0
  139. package/dist/generate/kinds/same-name/may-share.js +35 -0
  140. package/dist/generate/kinds/same-name/may-share.js.map +1 -0
  141. package/dist/generate/kinds/same-name/not-settled.d.ts +16 -0
  142. package/dist/generate/kinds/same-name/not-settled.d.ts.map +1 -0
  143. package/dist/generate/kinds/same-name/not-settled.js +12 -0
  144. package/dist/generate/kinds/same-name/not-settled.js.map +1 -0
  145. package/dist/generate/kinds/same-name/places-of.d.ts +4 -0
  146. package/dist/generate/kinds/same-name/places-of.d.ts.map +1 -0
  147. package/dist/generate/kinds/same-name/places-of.js +13 -0
  148. package/dist/generate/kinds/same-name/places-of.js.map +1 -0
  149. package/dist/generate/kinds/same-name/project-reader.d.ts +13 -0
  150. package/dist/generate/kinds/same-name/project-reader.d.ts.map +1 -0
  151. package/dist/generate/kinds/same-name/project-reader.js +55 -0
  152. package/dist/generate/kinds/same-name/project-reader.js.map +1 -0
  153. package/dist/generate/kinds/same-name/read-module.d.ts +44 -0
  154. package/dist/generate/kinds/same-name/read-module.d.ts.map +1 -0
  155. package/dist/generate/kinds/same-name/read-module.js +189 -0
  156. package/dist/generate/kinds/same-name/read-module.js.map +1 -0
  157. package/dist/generate/kinds/same-name/read-tables-file.d.ts +34 -0
  158. package/dist/generate/kinds/same-name/read-tables-file.d.ts.map +1 -0
  159. package/dist/generate/kinds/same-name/read-tables-file.js +116 -0
  160. package/dist/generate/kinds/same-name/read-tables-file.js.map +1 -0
  161. package/dist/generate/kinds/same-name/region-of.d.ts +3 -0
  162. package/dist/generate/kinds/same-name/region-of.d.ts.map +1 -0
  163. package/dist/generate/kinds/same-name/region-of.js +5 -0
  164. package/dist/generate/kinds/same-name/region-of.js.map +1 -0
  165. package/dist/generate/kinds/same-name/settle-same-names.d.ts +30 -0
  166. package/dist/generate/kinds/same-name/settle-same-names.d.ts.map +1 -0
  167. package/dist/generate/kinds/same-name/settle-same-names.js +123 -0
  168. package/dist/generate/kinds/same-name/settle-same-names.js.map +1 -0
  169. package/dist/generate/kinds/same-name/signature-of.d.ts +4 -0
  170. package/dist/generate/kinds/same-name/signature-of.d.ts.map +1 -0
  171. package/dist/generate/kinds/same-name/signature-of.js +5 -0
  172. package/dist/generate/kinds/same-name/signature-of.js.map +1 -0
  173. package/dist/generate/kinds/same-name/sources-of.d.ts +35 -0
  174. package/dist/generate/kinds/same-name/sources-of.d.ts.map +1 -0
  175. package/dist/generate/kinds/same-name/sources-of.js +57 -0
  176. package/dist/generate/kinds/same-name/sources-of.js.map +1 -0
  177. package/dist/generate/kinds/same-name/symbol-of.d.ts +9 -0
  178. package/dist/generate/kinds/same-name/symbol-of.d.ts.map +1 -0
  179. package/dist/generate/kinds/same-name/symbol-of.js +8 -0
  180. package/dist/generate/kinds/same-name/symbol-of.js.map +1 -0
  181. package/dist/generate/kinds/same-name/tables-constants.d.ts +5 -0
  182. package/dist/generate/kinds/same-name/tables-constants.d.ts.map +1 -0
  183. package/dist/generate/kinds/same-name/tables-constants.js +8 -0
  184. package/dist/generate/kinds/same-name/tables-constants.js.map +1 -0
  185. package/dist/generate/kinds/same-name/tables-file-of.d.ts +5 -0
  186. package/dist/generate/kinds/same-name/tables-file-of.d.ts.map +1 -0
  187. package/dist/generate/kinds/same-name/tables-file-of.js +6 -0
  188. package/dist/generate/kinds/same-name/tables-file-of.js.map +1 -0
  189. package/dist/generate/kinds/same-name/tables-files-held.d.ts +9 -0
  190. package/dist/generate/kinds/same-name/tables-files-held.d.ts.map +1 -0
  191. package/dist/generate/kinds/same-name/tables-files-held.js +14 -0
  192. package/dist/generate/kinds/same-name/tables-files-held.js.map +1 -0
  193. package/dist/generate/kinds/same-name/unread-note.d.ts +22 -0
  194. package/dist/generate/kinds/same-name/unread-note.d.ts.map +1 -0
  195. package/dist/generate/kinds/same-name/unread-note.js +76 -0
  196. package/dist/generate/kinds/same-name/unread-note.js.map +1 -0
  197. package/dist/generate/kinds/same-name/unseen-shares.d.ts +14 -0
  198. package/dist/generate/kinds/same-name/unseen-shares.d.ts.map +1 -0
  199. package/dist/generate/kinds/same-name/unseen-shares.js +23 -0
  200. package/dist/generate/kinds/same-name/unseen-shares.js.map +1 -0
  201. package/dist/generate/kinds/same-name/workspace-index.d.ts +6 -0
  202. package/dist/generate/kinds/same-name/workspace-index.d.ts.map +1 -0
  203. package/dist/generate/kinds/same-name/workspace-index.js +13 -0
  204. package/dist/generate/kinds/same-name/workspace-index.js.map +1 -0
  205. package/dist/generate/kinds/same-name/workspace-sources.d.ts +9 -0
  206. package/dist/generate/kinds/same-name/workspace-sources.d.ts.map +1 -0
  207. package/dist/generate/kinds/same-name/workspace-sources.js +10 -0
  208. package/dist/generate/kinds/same-name/workspace-sources.js.map +1 -0
  209. package/dist/generate/kinds/same-name/yield-to-the-trunk.d.ts +14 -0
  210. package/dist/generate/kinds/same-name/yield-to-the-trunk.d.ts.map +1 -0
  211. package/dist/generate/kinds/same-name/yield-to-the-trunk.js +59 -0
  212. package/dist/generate/kinds/same-name/yield-to-the-trunk.js.map +1 -0
  213. package/dist/generator-lock/held-lock-refusal.d.ts.map +1 -1
  214. package/dist/generator-lock/held-lock-refusal.js +1 -7
  215. package/dist/generator-lock/held-lock-refusal.js.map +1 -1
  216. package/dist/generator-lock/holder-text.d.ts +4 -0
  217. package/dist/generator-lock/holder-text.d.ts.map +1 -0
  218. package/dist/generator-lock/holder-text.js +10 -0
  219. package/dist/generator-lock/holder-text.js.map +1 -0
  220. package/dist/generator-lock/index.d.ts +4 -0
  221. package/dist/generator-lock/index.d.ts.map +1 -1
  222. package/dist/generator-lock/index.js +2 -0
  223. package/dist/generator-lock/index.js.map +1 -1
  224. package/dist/generator-lock/with-folder-lock.d.ts +27 -0
  225. package/dist/generator-lock/with-folder-lock.d.ts.map +1 -0
  226. package/dist/generator-lock/with-folder-lock.js +65 -0
  227. package/dist/generator-lock/with-folder-lock.js.map +1 -0
  228. package/dist/generator-lock/with-generator-lock.d.ts +1 -5
  229. package/dist/generator-lock/with-generator-lock.d.ts.map +1 -1
  230. package/dist/generator-lock/with-generator-lock.js +11 -58
  231. package/dist/generator-lock/with-generator-lock.js.map +1 -1
  232. package/dist/help/tool-notes.d.ts.map +1 -1
  233. package/dist/help/tool-notes.js +12 -0
  234. package/dist/help/tool-notes.js.map +1 -1
  235. package/dist/help/usage.d.ts.map +1 -1
  236. package/dist/help/usage.js +1 -0
  237. package/dist/help/usage.js.map +1 -1
  238. package/dist/help/work-notes.d.ts.map +1 -1
  239. package/dist/help/work-notes.js +11 -5
  240. package/dist/help/work-notes.js.map +1 -1
  241. package/dist/init/end-of-the-index.d.ts +9 -0
  242. package/dist/init/end-of-the-index.d.ts.map +1 -0
  243. package/dist/init/end-of-the-index.js +13 -0
  244. package/dist/init/end-of-the-index.js.map +1 -0
  245. package/dist/init/laid-out.d.ts +3 -0
  246. package/dist/init/laid-out.d.ts.map +1 -0
  247. package/dist/init/laid-out.js +7 -0
  248. package/dist/init/laid-out.js.map +1 -0
  249. package/dist/init/list-read-models.d.ts +11 -8
  250. package/dist/init/list-read-models.d.ts.map +1 -1
  251. package/dist/init/list-read-models.js +55 -55
  252. package/dist/init/list-read-models.js.map +1 -1
  253. package/dist/init/manifest/prisma-client-script.js +1 -1
  254. package/dist/init/manifest/prisma-client-script.js.map +1 -1
  255. package/dist/init/manifest/versions.js +33 -33
  256. package/dist/init/rewire-contexts.d.ts.map +1 -1
  257. package/dist/init/rewire-contexts.js +2 -0
  258. package/dist/init/rewire-contexts.js.map +1 -1
  259. package/dist/init/rewire-tables.d.ts.map +1 -1
  260. package/dist/init/rewire-tables.js +18 -10
  261. package/dist/init/rewire-tables.js.map +1 -1
  262. package/dist/init/run-init.d.ts.map +1 -1
  263. package/dist/init/run-init.js +3 -7
  264. package/dist/init/run-init.js.map +1 -1
  265. package/dist/init/settle-index-names.d.ts +11 -0
  266. package/dist/init/settle-index-names.d.ts.map +1 -0
  267. package/dist/init/settle-index-names.js +89 -0
  268. package/dist/init/settle-index-names.js.map +1 -0
  269. package/dist/markers/merge-imports.d.ts.map +1 -1
  270. package/dist/markers/merge-imports.js +2 -22
  271. package/dist/markers/merge-imports.js.map +1 -1
  272. package/dist/markers/one-line-imports.d.ts +3 -0
  273. package/dist/markers/one-line-imports.d.ts.map +1 -0
  274. package/dist/markers/one-line-imports.js +22 -0
  275. package/dist/markers/one-line-imports.js.map +1 -0
  276. package/dist/merge/accept-in-merge-message.d.ts.map +1 -1
  277. package/dist/merge/accept-in-merge-message.js +2 -7
  278. package/dist/merge/accept-in-merge-message.js.map +1 -1
  279. package/dist/merge/as-settled.d.ts +7 -0
  280. package/dist/merge/as-settled.d.ts.map +1 -0
  281. package/dist/merge/as-settled.js +9 -0
  282. package/dist/merge/as-settled.js.map +1 -0
  283. package/dist/merge/config-of-the-merge.d.ts +12 -0
  284. package/dist/merge/config-of-the-merge.d.ts.map +1 -0
  285. package/dist/merge/config-of-the-merge.js +35 -0
  286. package/dist/merge/config-of-the-merge.js.map +1 -0
  287. package/dist/merge/continue-merge.d.ts.map +1 -1
  288. package/dist/merge/continue-merge.js +32 -1
  289. package/dist/merge/continue-merge.js.map +1 -1
  290. package/dist/merge/declarations/brackets-left-open.d.ts +7 -0
  291. package/dist/merge/declarations/brackets-left-open.d.ts.map +1 -0
  292. package/dist/merge/declarations/brackets-left-open.js +21 -0
  293. package/dist/merge/declarations/brackets-left-open.js.map +1 -0
  294. package/dist/merge/declarations/declaration.d.ts +15 -0
  295. package/dist/merge/declarations/declaration.d.ts.map +1 -0
  296. package/dist/merge/declarations/declaration.js +2 -0
  297. package/dist/merge/declarations/declaration.js.map +1 -0
  298. package/dist/merge/declarations/declarations-of.d.ts +11 -0
  299. package/dist/merge/declarations/declarations-of.d.ts.map +1 -0
  300. package/dist/merge/declarations/declarations-of.js +130 -0
  301. package/dist/merge/declarations/declarations-of.js.map +1 -0
  302. package/dist/merge/declarations/declared-lines.d.ts +14 -0
  303. package/dist/merge/declarations/declared-lines.d.ts.map +1 -0
  304. package/dist/merge/declarations/declared-lines.js +42 -0
  305. package/dist/merge/declarations/declared-lines.js.map +1 -0
  306. package/dist/merge/declarations/declared-side.d.ts +8 -0
  307. package/dist/merge/declarations/declared-side.d.ts.map +1 -0
  308. package/dist/merge/declarations/declared-side.js +2 -0
  309. package/dist/merge/declarations/declared-side.js.map +1 -0
  310. package/dist/merge/declarations/holds-every-line.d.ts +3 -0
  311. package/dist/merge/declarations/holds-every-line.d.ts.map +1 -0
  312. package/dist/merge/declarations/holds-every-line.js +10 -0
  313. package/dist/merge/declarations/holds-every-line.js.map +1 -0
  314. package/dist/merge/declarations/merge-declarations.d.ts +44 -0
  315. package/dist/merge/declarations/merge-declarations.d.ts.map +1 -0
  316. package/dist/merge/declarations/merge-declarations.js +101 -0
  317. package/dist/merge/declarations/merge-declarations.js.map +1 -0
  318. package/dist/merge/declarations/merged-imports.d.ts +9 -0
  319. package/dist/merge/declarations/merged-imports.d.ts.map +1 -0
  320. package/dist/merge/declarations/merged-imports.js +25 -0
  321. package/dist/merge/declarations/merged-imports.js.map +1 -0
  322. package/dist/merge/declarations/merged-lines.d.ts +16 -0
  323. package/dist/merge/declarations/merged-lines.d.ts.map +1 -0
  324. package/dist/merge/declarations/merged-lines.js +43 -0
  325. package/dist/merge/declarations/merged-lines.js.map +1 -0
  326. package/dist/merge/declarations/merged-region.d.ts +32 -0
  327. package/dist/merge/declarations/merged-region.d.ts.map +1 -0
  328. package/dist/merge/declarations/merged-region.js +84 -0
  329. package/dist/merge/declarations/merged-region.js.map +1 -0
  330. package/dist/merge/declarations/reads-as-merged.d.ts +9 -0
  331. package/dist/merge/declarations/reads-as-merged.d.ts.map +1 -0
  332. package/dist/merge/declarations/reads-as-merged.js +19 -0
  333. package/dist/merge/declarations/reads-as-merged.js.map +1 -0
  334. package/dist/merge/declarations/settle-declarations.d.ts +21 -0
  335. package/dist/merge/declarations/settle-declarations.d.ts.map +1 -0
  336. package/dist/merge/declarations/settle-declarations.js +88 -0
  337. package/dist/merge/declarations/settle-declarations.js.map +1 -0
  338. package/dist/merge/declarations/shares-half-a-pair.d.ts +11 -0
  339. package/dist/merge/declarations/shares-half-a-pair.d.ts.map +1 -0
  340. package/dist/merge/declarations/shares-half-a-pair.js +41 -0
  341. package/dist/merge/declarations/shares-half-a-pair.js.map +1 -0
  342. package/dist/merge/declarations/shown-of.d.ts +5 -0
  343. package/dist/merge/declarations/shown-of.d.ts.map +1 -0
  344. package/dist/merge/declarations/shown-of.js +5 -0
  345. package/dist/merge/declarations/shown-of.js.map +1 -0
  346. package/dist/merge/for-you-entry.js +4 -1
  347. package/dist/merge/for-you-entry.js.map +1 -1
  348. package/dist/merge/lines-at-moved-places.d.ts +10 -0
  349. package/dist/merge/lines-at-moved-places.d.ts.map +1 -0
  350. package/dist/merge/lines-at-moved-places.js +38 -0
  351. package/dist/merge/lines-at-moved-places.js.map +1 -0
  352. package/dist/merge/lost/in-progress-merge.d.ts.map +1 -1
  353. package/dist/merge/lost/in-progress-merge.js +6 -2
  354. package/dist/merge/lost/in-progress-merge.js.map +1 -1
  355. package/dist/merge/lost/line-findings.d.ts +3 -2
  356. package/dist/merge/lost/line-findings.d.ts.map +1 -1
  357. package/dist/merge/lost/line-findings.js +5 -4
  358. package/dist/merge/lost/line-findings.js.map +1 -1
  359. package/dist/merge/lost/line-key.d.ts +7 -0
  360. package/dist/merge/lost/line-key.d.ts.map +1 -0
  361. package/dist/merge/lost/line-key.js +11 -0
  362. package/dist/merge/lost/line-key.js.map +1 -0
  363. package/dist/merge/lost/lost-lines.d.ts +1 -1
  364. package/dist/merge/lost/lost-lines.d.ts.map +1 -1
  365. package/dist/merge/lost/lost-lines.js +3 -2
  366. package/dist/merge/lost/lost-lines.js.map +1 -1
  367. package/dist/merge/lost/merge-of-record.d.ts.map +1 -1
  368. package/dist/merge/lost/merge-of-record.js +1 -0
  369. package/dist/merge/lost/merge-of-record.js.map +1 -1
  370. package/dist/merge/lost/merge-records.d.ts +2 -0
  371. package/dist/merge/lost/merge-records.d.ts.map +1 -1
  372. package/dist/merge/lost/merge-records.js +3 -2
  373. package/dist/merge/lost/merge-records.js.map +1 -1
  374. package/dist/merge/lost/merge-to-verify.d.ts +2 -0
  375. package/dist/merge/lost/merge-to-verify.d.ts.map +1 -1
  376. package/dist/merge/lost/rewritten-in-place.d.ts +5 -2
  377. package/dist/merge/lost/rewritten-in-place.d.ts.map +1 -1
  378. package/dist/merge/lost/rewritten-in-place.js +6 -5
  379. package/dist/merge/lost/rewritten-in-place.js.map +1 -1
  380. package/dist/merge/lost/verify-merge.d.ts.map +1 -1
  381. package/dist/merge/lost/verify-merge.js +10 -3
  382. package/dist/merge/lost/verify-merge.js.map +1 -1
  383. package/dist/merge/merge-state.d.ts +2 -0
  384. package/dist/merge/merge-state.d.ts.map +1 -1
  385. package/dist/merge/merge-state.js +3 -2
  386. package/dist/merge/merge-state.js.map +1 -1
  387. package/dist/merge/merge-trunk.d.ts.map +1 -1
  388. package/dist/merge/merge-trunk.js +3 -1
  389. package/dist/merge/merge-trunk.js.map +1 -1
  390. package/dist/merge/merged-tree-workspace.d.ts +19 -0
  391. package/dist/merge/merged-tree-workspace.d.ts.map +1 -0
  392. package/dist/merge/merged-tree-workspace.js +41 -0
  393. package/dist/merge/merged-tree-workspace.js.map +1 -0
  394. package/dist/merge/moved-tables-files.d.ts +9 -0
  395. package/dist/merge/moved-tables-files.d.ts.map +1 -0
  396. package/dist/merge/moved-tables-files.js +16 -0
  397. package/dist/merge/moved-tables-files.js.map +1 -0
  398. package/dist/merge/preview-table-names.d.ts +21 -0
  399. package/dist/merge/preview-table-names.d.ts.map +1 -0
  400. package/dist/merge/preview-table-names.js +85 -0
  401. package/dist/merge/preview-table-names.js.map +1 -0
  402. package/dist/merge/resolution.d.ts +2 -0
  403. package/dist/merge/resolution.d.ts.map +1 -1
  404. package/dist/merge/resolve-conflict.d.ts +4 -2
  405. package/dist/merge/resolve-conflict.d.ts.map +1 -1
  406. package/dist/merge/resolve-conflict.js +60 -15
  407. package/dist/merge/resolve-conflict.js.map +1 -1
  408. package/dist/merge/settle-table-names.d.ts +21 -0
  409. package/dist/merge/settle-table-names.d.ts.map +1 -0
  410. package/dist/merge/settle-table-names.js +60 -0
  411. package/dist/merge/settle-table-names.js.map +1 -0
  412. package/dist/merge/side-index.d.ts +13 -0
  413. package/dist/merge/side-index.d.ts.map +1 -0
  414. package/dist/merge/side-index.js +43 -0
  415. package/dist/merge/side-index.js.map +1 -0
  416. package/dist/merge/side-reader.d.ts +8 -0
  417. package/dist/merge/side-reader.d.ts.map +1 -0
  418. package/dist/merge/side-reader.js +13 -0
  419. package/dist/merge/side-reader.js.map +1 -0
  420. package/dist/merge/side-tables-file.d.ts +5 -0
  421. package/dist/merge/side-tables-file.d.ts.map +1 -0
  422. package/dist/merge/side-tables-file.js +10 -0
  423. package/dist/merge/side-tables-file.js.map +1 -0
  424. package/dist/merge/table-names-settled.d.ts +18 -0
  425. package/dist/merge/table-names-settled.d.ts.map +1 -0
  426. package/dist/merge/table-names-settled.js +168 -0
  427. package/dist/merge/table-names-settled.js.map +1 -0
  428. package/dist/merge/trailer-in-merge-message.d.ts +9 -0
  429. package/dist/merge/trailer-in-merge-message.d.ts.map +1 -0
  430. package/dist/merge/trailer-in-merge-message.js +16 -0
  431. package/dist/merge/trailer-in-merge-message.js.map +1 -0
  432. package/dist/merge/tree-files.d.ts +21 -0
  433. package/dist/merge/tree-files.d.ts.map +1 -0
  434. package/dist/merge/tree-files.js +86 -0
  435. package/dist/merge/tree-files.js.map +1 -0
  436. package/dist/merge/trunk-reader.d.ts +5 -0
  437. package/dist/merge/trunk-reader.d.ts.map +1 -0
  438. package/dist/merge/trunk-reader.js +9 -0
  439. package/dist/merge/trunk-reader.js.map +1 -0
  440. package/dist/merge/two-tables-files.d.ts +19 -0
  441. package/dist/merge/two-tables-files.d.ts.map +1 -0
  442. package/dist/merge/two-tables-files.js +67 -0
  443. package/dist/merge/two-tables-files.js.map +1 -0
  444. package/dist/migration/file-of-source.d.ts +3 -0
  445. package/dist/migration/file-of-source.d.ts.map +1 -0
  446. package/dist/migration/file-of-source.js +5 -0
  447. package/dist/migration/file-of-source.js.map +1 -0
  448. package/dist/migration/hidden-in-index.d.ts +15 -0
  449. package/dist/migration/hidden-in-index.d.ts.map +1 -0
  450. package/dist/migration/hidden-in-index.js +23 -0
  451. package/dist/migration/hidden-in-index.js.map +1 -0
  452. package/dist/migration/index.d.ts +2 -0
  453. package/dist/migration/index.d.ts.map +1 -1
  454. package/dist/migration/index.js +2 -0
  455. package/dist/migration/index.js.map +1 -1
  456. package/dist/migration/is-source-of-context.d.ts +17 -0
  457. package/dist/migration/is-source-of-context.d.ts.map +1 -0
  458. package/dist/migration/is-source-of-context.js +13 -0
  459. package/dist/migration/is-source-of-context.js.map +1 -0
  460. package/dist/migration/listed-in-index.d.ts +15 -3
  461. package/dist/migration/listed-in-index.d.ts.map +1 -1
  462. package/dist/migration/listed-in-index.js +25 -4
  463. package/dist/migration/listed-in-index.js.map +1 -1
  464. package/dist/migration/named-bindings-of.d.ts +14 -0
  465. package/dist/migration/named-bindings-of.d.ts.map +1 -0
  466. package/dist/migration/named-bindings-of.js +21 -0
  467. package/dist/migration/named-bindings-of.js.map +1 -0
  468. package/dist/migration/warn-dropped-context-tables.d.ts.map +1 -1
  469. package/dist/migration/warn-dropped-context-tables.js +21 -6
  470. package/dist/migration/warn-dropped-context-tables.js.map +1 -1
  471. package/dist/prisma-client/client-outputs.d.ts +3 -0
  472. package/dist/prisma-client/client-outputs.d.ts.map +1 -0
  473. package/dist/prisma-client/client-outputs.js +9 -0
  474. package/dist/prisma-client/client-outputs.js.map +1 -0
  475. package/dist/prisma-client/index.d.ts +4 -0
  476. package/dist/prisma-client/index.d.ts.map +1 -0
  477. package/dist/prisma-client/index.js +4 -0
  478. package/dist/prisma-client/index.js.map +1 -0
  479. package/dist/prisma-client/prisma-client-fingerprint.d.ts +7 -0
  480. package/dist/prisma-client/prisma-client-fingerprint.d.ts.map +1 -0
  481. package/dist/prisma-client/prisma-client-fingerprint.js +32 -0
  482. package/dist/prisma-client/prisma-client-fingerprint.js.map +1 -0
  483. package/dist/prisma-client/prisma-client-in-turn.d.ts +14 -0
  484. package/dist/prisma-client/prisma-client-in-turn.d.ts.map +1 -0
  485. package/dist/prisma-client/prisma-client-in-turn.js +15 -0
  486. package/dist/prisma-client/prisma-client-in-turn.js.map +1 -0
  487. package/dist/prisma-client/prisma-client-lock-refusal.d.ts +5 -0
  488. package/dist/prisma-client/prisma-client-lock-refusal.d.ts.map +1 -0
  489. package/dist/prisma-client/prisma-client-lock-refusal.js +11 -0
  490. package/dist/prisma-client/prisma-client-lock-refusal.js.map +1 -0
  491. package/dist/prisma-client/prisma-client-paths.d.ts +7 -0
  492. package/dist/prisma-client/prisma-client-paths.d.ts.map +1 -0
  493. package/dist/prisma-client/prisma-client-paths.js +8 -0
  494. package/dist/prisma-client/prisma-client-paths.js.map +1 -0
  495. package/dist/prisma-client/refresh-prisma-client.d.ts +16 -0
  496. package/dist/prisma-client/refresh-prisma-client.d.ts.map +1 -0
  497. package/dist/prisma-client/refresh-prisma-client.js +53 -0
  498. package/dist/prisma-client/refresh-prisma-client.js.map +1 -0
  499. package/dist/prisma-client/schema-files.d.ts +3 -0
  500. package/dist/prisma-client/schema-files.d.ts.map +1 -0
  501. package/dist/prisma-client/schema-files.js +18 -0
  502. package/dist/prisma-client/schema-files.js.map +1 -0
  503. package/dist/prisma-schema/single-prisma-schema-steps.js +1 -1
  504. package/dist/prisma-schema/single-prisma-schema-steps.js.map +1 -1
  505. package/dist/read-models/buildable-constructor.d.ts +3 -0
  506. package/dist/read-models/buildable-constructor.d.ts.map +1 -0
  507. package/dist/read-models/buildable-constructor.js +3 -0
  508. package/dist/read-models/buildable-constructor.js.map +1 -0
  509. package/dist/read-models/declared-class.d.ts +14 -0
  510. package/dist/read-models/declared-class.d.ts.map +1 -0
  511. package/dist/read-models/declared-class.js +2 -0
  512. package/dist/read-models/declared-class.js.map +1 -0
  513. package/dist/read-models/declared-classes.d.ts +32 -0
  514. package/dist/read-models/declared-classes.d.ts.map +1 -0
  515. package/dist/read-models/declared-classes.js +123 -0
  516. package/dist/read-models/declared-classes.js.map +1 -0
  517. package/dist/read-models/list-answers.d.ts +35 -0
  518. package/dist/read-models/list-answers.d.ts.map +1 -0
  519. package/dist/read-models/list-answers.js +53 -0
  520. package/dist/read-models/list-answers.js.map +1 -0
  521. package/dist/read-models/listing-of.d.ts +25 -0
  522. package/dist/read-models/listing-of.d.ts.map +1 -0
  523. package/dist/read-models/listing-of.js +22 -0
  524. package/dist/read-models/listing-of.js.map +1 -0
  525. package/dist/read-models/read-model-list-of.d.ts +12 -0
  526. package/dist/read-models/read-model-list-of.d.ts.map +1 -0
  527. package/dist/read-models/read-model-list-of.js +94 -0
  528. package/dist/read-models/read-model-list-of.js.map +1 -0
  529. package/dist/read-models/read-model-list.d.ts +41 -0
  530. package/dist/read-models/read-model-list.d.ts.map +1 -0
  531. package/dist/read-models/read-model-list.js +2 -0
  532. package/dist/read-models/read-model-list.js.map +1 -0
  533. package/dist/read-models/read-model-store.d.ts +16 -0
  534. package/dist/read-models/read-model-store.d.ts.map +1 -0
  535. package/dist/read-models/read-model-store.js +2 -0
  536. package/dist/read-models/read-model-store.js.map +1 -0
  537. package/dist/read-models/read-model-stores-of.d.ts +14 -0
  538. package/dist/read-models/read-model-stores-of.d.ts.map +1 -0
  539. package/dist/read-models/read-model-stores-of.js +63 -0
  540. package/dist/read-models/read-model-stores-of.js.map +1 -0
  541. package/dist/run.d.ts.map +1 -1
  542. package/dist/run.js +2 -0
  543. package/dist/run.js.map +1 -1
  544. package/dist/slice/storage-of-slice.d.ts +10 -7
  545. package/dist/slice/storage-of-slice.d.ts.map +1 -1
  546. package/dist/slice/storage-of-slice.js +145 -22
  547. package/dist/slice/storage-of-slice.js.map +1 -1
  548. package/dist/stack/stack-vars.d.ts.map +1 -1
  549. package/dist/stack/stack-vars.js +10 -1
  550. package/dist/stack/stack-vars.js.map +1 -1
  551. package/dist/version.d.ts +1 -1
  552. package/dist/version.js +1 -1
  553. package/dist/workspace/exit-code-of.d.ts +2 -2
  554. package/dist/workspace/exit-code-of.d.ts.map +1 -1
  555. package/dist/workspace/exit-code-of.js +2 -2
  556. package/dist/workspace/exit-code-of.js.map +1 -1
  557. package/dist/workspace/located-step.d.ts +5 -0
  558. package/dist/workspace/located-step.d.ts.map +1 -0
  559. package/dist/workspace/located-step.js +7 -0
  560. package/dist/workspace/located-step.js.map +1 -0
  561. package/dist/workspace/remove-file.d.ts +3 -0
  562. package/dist/workspace/remove-file.d.ts.map +1 -0
  563. package/dist/workspace/remove-file.js +11 -0
  564. package/dist/workspace/remove-file.js.map +1 -0
  565. package/dist/workspace/workspace-report.d.ts +2 -0
  566. package/dist/workspace/workspace-report.d.ts.map +1 -1
  567. package/dist/workspace/workspace.d.ts +4 -3
  568. package/dist/workspace/workspace.d.ts.map +1 -1
  569. package/dist/workspace/workspace.js +16 -16
  570. package/dist/workspace/workspace.js.map +1 -1
  571. package/package.json +6 -6
  572. package/templates/init/docker/dockerignore.tpl +2 -0
  573. package/templates/init/platform/database/read-model-tables.ts.tpl +7 -4
  574. package/templates/init/rules/infrastructure.md.tpl +3 -0
  575. package/templates/pipeline/biome.json.tpl +1 -1
  576. package/templates/pipeline/github/workflows/codeql.yml +2 -2
  577. package/templates/pipeline/package-scripts.json +2 -2
  578. package/templates/repository/typeorm/schema-export.tpl +2 -2
  579. package/templates/read-model/typeorm/schema-export.tpl +0 -4
package/CHANGELOG.md CHANGED
@@ -4,6 +4,56 @@ What each version changes for someone who uses the kit. The packages of `package
4
4
  together, under one version; the notes of each [GitHub release](https://github.com/gbourgeat/ddd-ts-kit/releases)
5
5
  list the pull requests behind it.
6
6
 
7
+ ## 0.113.1
8
+
9
+ **`ddd-ts-kit merge-trunk` keeps each table whole when both sides added one to the same context.** Two branches that each stored an aggregate in one context each add a table to its tables file, at the same place. git sets the two side by side and keeps the lines they share once, their last ones, and the merge then kept "the lines of both sides" of the conflict: the tables file it committed, exit 0, held two tables with the closing lines of one (`TS1005 '}' expected`), on the four ORM: the tables file of the context on Drizzle and on TypeORM, `create-<context>-tables.schema.ts` on Knex, `prisma/schema/<context>.prisma` on Prisma, the context flat or laid out in modules. The schema index was right, and still is.
10
+
11
+ The lines of both sides are still what a conflict inside a generated region keeps: the report says `generated registry: the lines of both sides kept` and the region is written as it was before this change, in every case but two. The first: the region those lines give does not pair its brackets, the case above. The second: in one conflict, two different statements that each hold a bracket open across several lines open on the same line or close on the same line (two `platform.commands.register(` written on several lines), a line the union keeps once; a chain written on several lines with no bracket across them is not seen; a statement both sides added alike does not count, it is kept once as before. In these two cases the region of a TypeScript, JavaScript or Prisma file is merged declaration by declaration instead, from the three sides of the file. The declaration each side added is kept whole; one both added alike is kept once; one a side changed or removed while the other left it as the base holds it follows that side; one both changed takes the merge of its lines, as git merges a file, when they merge without a conflict: a line one side removed stays removed. The declarations both sides hold stand in the order of the side that changed their order, ours when neither did, and what a side alone adds stands after the declaration it follows on that side, or first when it opened the region there. The report then says `generated registry: the declarations of both sides kept, each one whole`, in a dry run too, and `generated registry: the declarations of both sides kept, each one whole, and the lines of both sides kept` when another region of the file kept the lines of both sides.
12
+
13
+ What the kit does not merge this way is left to you. A declaration both sides wrote differently (two tables of one name with different columns, one of them with one more column included, a table both changed whose lines do not merge, a table one side changed and the other removed) is one hunk that holds each version whole, the rest of the region being merged, and the report names it when both sides hold it: ``the two sides do not agree on `invoices` in the region `tables`: for each, write the one declaration that keeps the intent of both, whole, or remove it.`` In the cases that follow nothing is written in the region, the hunks git wrote stay, those of a region written inside it too, and the report says why and what to write, each declaration of both sides whole, once, in most cases, where it said `both sides only add lines: keep both`: a bracket that does not pair, a regular expression, a region written inside it, two declarations of one name on one side, a side that does not hold the region once; a statement that declares no name (a call written on several lines) which a side changed or removed; lines that end no statement (entries of a list, or statements written without `;`) on which the two sides differ; two statements with no declared name that open alike, one holding every line of the other, which nothing tells from one statement written twice; declarations both sides set in two different orders; a default export on each side, written `export default` or `export { name as default }` on one line, a file having one (another spelling, `export { default } from`, a list on several lines, is not seen, and a line of that shape in a comment or a template literal counts); merged lines that would not read back as the declarations merged.
14
+
15
+ ## 0.113.0
16
+
17
+ **`ddd-ts-kit check` reports a read model store that the list of the read model tables does not answer for (`persistence/read-model-listed`).** The application checks the tables of its read models when it starts, and `npm run db:read-models` before a deployment, by the stores `src/platform/database/read-model-tables.ts` lists and no other: a store written by hand and never listed was checked by nothing, in silence. The new rule, an error, reads the stores of the tree and reports each one the list neither holds under its context (itself, a class that extends it, or the name a file gives it when it re-exports it, `export { A as B } from` or `export * from`, one level), nor names in `NOT_LISTED`, nor leaves out by a comment between the markers of the file that holds `<context>: <Store>`. Its fix gives the import and the entry to add, the entry alone when the list still imports the class, and for a store the list cannot build, what stands in the way. A store is a class of a context, tests aside, that is not abstract and extends `DrizzleReadModelStore`, `KnexReadModelStore`, `PrismaReadModelStore` or `TypeOrmReadModelStore`, directly or through classes of the project, wherever they are declared. It also reports an entry of the list whose class the file neither imports nor declares, whose import leads to no file, or whose class another context declares; a line of `NOT_LISTED` whose class is gone or whose store `LISTED` answers for; a `LISTED` whose entries it cannot read (spread, or built by a call); and, once, a project on one of the four ORM that holds stores and no list. It does not judge: an abstract class; a store in memory or in a search engine, and a class directly over `TableReadModelStore` of the kernel; a store of the tests; a class declared in a function or in a `namespace` block, and a class expression that has no name of its own (one that has is read under that name); a base that is not the name of the store of the kit or of a class of the project: a namespace (`kit.KnexReadModelStore`), an import alias, a call (`mixin(KnexReadModelStore)`); of two classes of one name in one context, which one an entry names; whether a class that extends a store reads the same table; the reason a comment gives; what a package exports (`ddd-ts-kit explain persistence/read-model-listed`, [docs/concepts/cqrs.md](docs/concepts/cqrs.md#every-table-checked-at-the-start-and-before-a-deployment)).
18
+
19
+ A comment that leaves a store out counts only between the markers `init` writes in the file, those of `LISTED` being its place: `init --force` keeps what those markers hold and nothing else, a pair of markers added by hand included, and a comment written elsewhere was lost at the next one, the store then listed. `ddd-ts-kit check <files>` now reports a finding when a file it is repaired in is among those given, not only the file it sits on: an entry removed from the list is reported by the pre-commit hook with the list alone staged. The other rules whose finding names such a file report it the same way: `authz/declared` and `authz/policy-asked` when the module file or a policy of the handler is given, `events/consumer-idempotent` when a module file of the context is, `declarations/port-adapter-wired` when a file that wires the context is. That last rule named every file of the platform and `main.ts`; it now names the module files of the context of the adapter and the files of the composition root that import a file of that context, so a check of an unrelated file of the platform stays quiet. The checker reads what a class extends past a type parameter whose constraint or default holds an object type (`class Totals<Row extends { id: string }> extends Store<Row>`), which it read as extending nothing: every rule that reads a base class now sees that one.
20
+
21
+ `init` finds the stores by the same reading as the rule, on the sources as the checker reads them and no longer by a regular expression over class declarations. It now reads every source of a context, not its `infrastructure/persistence/` alone, follows a base class declared anywhere under the source root, skips the tests, and no longer takes a class written directly over `TableReadModelStore` for a store kept in a table. It lists a store whose constructor takes `Persistence['database']` or carries `private readonly`, which it named in `NOT_LISTED`; a store its file exports as its default, or does not export, is named there instead of getting an import that does not compile; a list that still imports a class gets its entry back without a second import. Its note says why a store cannot be built, and to write the class that builds it beside the store, in a file of its own, where `init` lists it and `init --force` keeps it: the note of 0.112.0 said to write it in the list file, where `init --force` deletes it.
22
+
23
+ To move: run `npx ddd-ts-kit check --rule persistence/read-model-listed`. For each store it reports, add to `src/platform/database/read-model-tables.ts` the import and the entry its fix gives (`npx ddd-ts-kit init` writes them), or leave the store out with a comment that holds `<context>: <Store>` and the reason, between the markers of `LISTED`; move there a comment of that kind written elsewhere in the file. For a store the list cannot build, the fix names what stands in the way and gives no entry: write beside the store, in a file of its own, `export class Listed<Store> extends <Store>` with a constructor `(database: <Type>)` or `(database: <Type>, scope: ExecutionScope)` that calls `super(..)`, run `npx ddd-ts-kit init`, which lists that class, then remove the line `'<context>: <Store>'` from `NOT_LISTED`. A project on 0.112.0 that declared such a class in the list file itself, as the note of 0.112.0 said: move the class beside its store and import it before any `init --force`, which rewrites the file outside its markers and would delete it. A project generated before 0.112.0, which has no list: commit, then run `npx ddd-ts-kit init --force`.
24
+
25
+ **A generated project is formatted by Biome 2.6.6, scans its code with `github/codeql-action` 4.39.3 and runs on the OpenTelemetry JS SDK 0.301 (3.1 for its stable packages).** `init` pins `@biomejs/biome` 2.6.6, the version the kit and the example run, and the `$schema` of the `biome.json` it writes names it. The workflow of `--ci-extras codeql` pins `github/codeql-action/init` and `github/codeql-action/analyze` to the commit of 4.39.3. `init` writes `@opentelemetry/sdk-node`, `@opentelemetry/exporter-trace-otlp-http` and `@opentelemetry/exporter-metrics-otlp-http` at `^0.301.0`, `@opentelemetry/auto-instrumentations-node` at `^0.83.0`, and `@opentelemetry/sdk-metrics`, `@opentelemetry/resources`, `@opentelemetry/sdk-trace` and `@opentelemetry/context-async-hooks` at `^3.1.0`, the versions `@ddd-ts-kit/tracing` is tested with: a range of `^0.300.0` never reaches 0.301. The peer ranges of `@ddd-ts-kit/tracing` do not change, so a project that stays on 0.300 keeps working.
26
+
27
+ To move: nothing is required, a project that stays on these versions keeps working; to follow, `npm i -D -E @biomejs/biome@2.6.6` and set the `$schema` of `biome.json` to `https://biomejs.dev/schemas/2.6.6/schema.json`, then `npm run format`. A project with `.github/workflows/codeql.yml` replaces `9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1` by `33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3` on both lines. For OpenTelemetry: `npm i @opentelemetry/sdk-node@^0.301.0 @opentelemetry/exporter-trace-otlp-http@^0.301.0 @opentelemetry/exporter-metrics-otlp-http@^0.301.0 @opentelemetry/auto-instrumentations-node@^0.83.0 @opentelemetry/sdk-metrics@^3.1.0 @opentelemetry/resources@^3.1.0`, and `npm i -D @opentelemetry/sdk-trace@^3.1.0 @opentelemetry/context-async-hooks@^3.1.0` when the project has them.
28
+
29
+ **On Prisma, two test runs started together in one project no longer break each other's client (`ddd-ts-kit prisma-client`).** `npm run db:client`, which `pretest`, `pretest:e2e`, `pretypecheck` and `prebuild` run, was `prisma generate && prisma migrate diff ... -o generated/schema.sql`: two runs at once (two `npm run test:e2e`, a type check beside the tests) both removed and wrote `generated/prisma`, and one failed on `EEXIST` or `ENOENT`, or read a client the other was rewriting. `init` now writes `"db:client": "ddd-ts-kit prisma-client --schema prisma/schema"`. The command runs the same two steps, one run of the project at a time (the lock `.ddd-ts-kit/prisma-client`, waited for up to ten minutes, taken over once the run that holds it has ended), and writes nothing when the client and `generated/schema.sql` are current: generated from the same files of the schema, the same `prisma.config.ts` and the same `prisma` and `@prisma/client`, and still there. What they were generated from is kept in `generated/prisma-client.sha256`; removing `generated/` generates them again. The limits: the version of a generator of another package (a `generator` block other than the client of Prisma) is not part of what is compared, so upgrading it alone generates nothing: delete `generated/prisma-client.sha256` then; and of what the generators write, only the existence of their `output` folders is checked, not their content. `init` adds `.ddd-ts-kit` to the `.dockerignore` it writes: a lock that an interrupted run left in the folder would make `prebuild` in the image wait ten minutes for it.
30
+
31
+ To move: in `package.json`, set the `db:client` script to `ddd-ts-kit prisma-client --schema prisma/schema` (`--schema prisma/schema.prisma` for a project that still keeps its schema in one file), and add a line `.ddd-ts-kit` to `.dockerignore`.
32
+
33
+ **Two contexts may hold a table of the same name on Drizzle and on TypeORM.** `ddd-ts-kit generate read-model billing InvoiceSummaries` then `generate read-model shipping InvoiceSummaries`, or two aggregates of one name stored in two contexts, or the identity preset beside a context that holds `accounts`, wrote a schema index (`src/platform/database/schema.ts`) that named the same constant twice: the project did not compile, and on Drizzle the migration `db:generate` wrote, like the test database, left out the tables of the second context without a word. The two tables never met in the database, each being in the schema of its context, and they still do not; Knex and Prisma were not concerned. The index now settles the name: the context that held it first keeps it, and the second is listed under a name that carries its context, `export { invoiceSummaries as shippingInvoiceSummaries } from` on Drizzle beside `export { invoiceSummaries } from` for the first; on TypeORM `generate` imports the second table it creates as `import { invoiceSummaries as shippingInvoiceSummaries }`, and after a merge that leaves one name imported twice a person writes that alias. The tables file of a context, its stores and its repositories keep the name of the table. The same holds for a table that bears the name of one the index declares itself, `jobs`, `outbox`, `processes`: on Drizzle the aggregate `Job` of a context compiled, and its table was never created, the constant of the index hiding it; it is now listed as `billingJobs`. The name the second table takes is one nothing holds: where `shippingOrders` is the table `shipping_orders` of a context, or `shippingSchema` the schema constant of the context, it is `shippingContextOrders`, then `shippingOrders2`.
34
+
35
+ What is settled, on Drizzle. A name two tables files of contexts export, each its own table, or one the index declares itself: each command that writes the index (`generate`, `init --force`, `merge-trunk`) writes the lines by name the whole index lacks, not only those of the context it works for, in the `// ddd-ts-kit:schemas` region, one name a line. What is compared is a symbol, the file that declares it and its name, each file by the path it is read at, a context laid out in modules (its tables file in `shared/`) as a flat one: two tables files that re-export one table of the shared kernel hold one symbol, whether one names the file through the alias of the project and the other by a relative path, which `export *` brings as before, and nothing is written nor said. Where the index gives a shared name to nothing yet, the context it re-exports first keeps it; a generator leaves it to the other context only for the name its command brings, and `merge-trunk` gives it to the table the trunk exports under it when the kit settles it, whatever the order of the index and whatever the layout of a context on either side: each side is read as its commit lays its contexts out, flat or in modules, so a table that moved to `shared/` on one side is the same table on the other, and the merge says nothing of it unless a line still names the old place. A name that has a value in a tables file, a table beside the type of its rows (`export const invoices` and `export type invoices`), an enum and the type of its values, a class and an interface, is exported from it with a plain `export { ... }` line, which carries the type too; `export type { ... }` is written only for a name that is a type and no value in that file. `default` is never settled. After the lines are written the kit reads the index again: every value of every file it re-exports whole must be exported as a value under a name, or the lines are taken back. The sentence `lists the name ... as ...` is printed for each line that was written.
36
+
37
+ What is only said. `generate` and `init --force` compare what the index gave before the command with what it gives after: on Drizzle the names it exports as values and the table each one exports (a name it exports as a type only is not compared), on TypeORM the entities `entities` lists, as far as the kit reads them. A value a file exports by name, which the index exported before under that name or another (`export *`, `export { a } from`, `export { a as b } from`) and would export under it no more, an entity listed no more, or a name that exported one table and would export another, everything the index re-exports read with certainty, leaves the index as it stood before the command: the comparison is made once, when every generator of the command has run, on the state the command ends in. The index is listed under `left` and in `skipped` of the report, never in `updated`, and the command exits 3. One note names every name concerned, with the file that gives it, and says what would have been lost or moved: `` the name `archived`, which 'src/legacy/tables.ts' gives the index, would be exported by no line after it (a table still exported under another name is not seen: the kit compares names) ``, the file being the one the line of the index names, or the package, `` `orders`, which named the `orders` of '<a>', would name the `orders` of '<b>' ``; `generate` gives the lines it wrote, to write by hand, when it wrote some, and ends with what leaving them out costs when the `export *` line of a context is among them (its tables are listed nowhere, no migration will create them); `init --force` gives none: the line that keeps the name, or what keeps several, belongs in the `// ddd-ts-kit:schemas` region, which the rewrite keeps, and until it is moved there every `init --force` leaves the index as it stood. A table `generate --force` drops from a tables file it writes again whole is said in a note, on Drizzle and on TypeORM (where the index, which still imports it, does not compile), and the command exits as it would without it: the index is not left for that. A tables file that is a symbolic link gets no such note: the kit does not read it. A name that did not compile before, two `export *` bringing it, exported nothing: settling it is no such change. `generate` refuses, before it writes anything, a table whose name the tables file of the context already exports from another file. `ddd-ts-kit init --force` writes the index again from its template, which drops what a team wrote outside the `// ddd-ts-kit:` regions; it leaves the index as it stood on disk, with one note, when that would lose a name the index exports, or give it to another table, everything the index re-exports read with certainty, and when the part outside the regions holds something it does not read with certainty (on Drizzle an `export` it does not answer for or a module re-exported whole it does not follow; on TypeORM an entry of `entities` the rewritten list lacks, unless it is a constant the index builds by calling a function imported from a package of the kit: that one is taken for a line of a template and goes with the rewrite, as before) and the rewrite would drop a line written there. Apart from that rewrite, no command removes a line of the Drizzle index: the line of a table that is gone is a compile error to fix by hand. On TypeORM no command removes or renames an import of the index: `generate` only adds the import of the table it creates, under a name of its own when its name is taken.
38
+
39
+ On Drizzle, `ddd-ts-kit merge-trunk` settles the names the two sides share between tables files of contexts, in lines of the shape the kit writes, and says so under `automatic:`, in a dry run too, which reads the files the merge reads, each file the merge writes as it writes it, a file left to a person as the text it is handed; a configuration both sides changed, conflicted in the tree the dry run reads, is read as a resolution keeping the contexts of both sides would read it, the branch's with the contexts of both sides; a dry run that cannot say what the merge would settle, the configuration still unread or the files of the tree not read, says so only when the two sides give one name to two tables, and exits as it would without it. The dry run writes nothing, not even a temporary copy of the tree. On Drizzle, a line or an import of the merged index that names the place a side held a context's tables file at, which the merged tree no longer holds because the other side moved the file (`context-layout` laying the context out in modules), is not written again: the index is left as the merge wrote it, a compile error as before, and the report says each such line, in the dry run too: `` `export { orders } from '...'` names '<old place>', which the merged tree no longer holds: billing's tables file is now '<new place>'; write that path in the line``. While such a line is there, the kit writes no name nor any other line of that merge, and says it once. A file counts as moved only when the merged tree holds no file at its old place. When it holds both, one side having laid the context out in modules while the other stored a table flat, the context has two tables files, and on Drizzle what follows applies; a file counts as a tables file only when it declares a value of its own, so a flat file that only re-exports the one of `shared/`, or an empty one, is none. When the two files declare no name in common, the merge goes on as any merge. When they declare one (the schema of the context first), the kit writes no name, nor any other line of that merge, and says it once: it names the two files and the names both declare, and says what must hold once a person made them one file, the one of `shared/`: every table of the flat file there, on the schema it declares; for a table name both declare, the one of the two files the trunk's index exports it from, under that name or another, keeps it (the sentence names that file and the name the trunk gives it) and the other takes a new name in every file that imports it; a schema constant both declare is kept once, the tables of the flat file built on the one of `shared/`; the flat file and the `export *` line that names it gone, every other import and line of the index pointed at `shared/`; then a commit and `npx ddd-ts-kit init --force`. The report still names each table hidden and each name moved, as in any merge. When the merge stops on a conflict, the sentences about the names come at `--continue`, once; the dry run gives them in advance. A name the trunk exports keeps naming the table of the trunk when the line that gave it to another table on the branch is one the kit wrote, one name a line; any other shape (a line by hand with several names, a module that is no tables file of a context) is not repaired. Whatever it wrote, the report then says, the dry run as the merge: each table a side had within reach, still in the merged tree, that the merged index exports under no name, with its file and the name that hides it; and each name of the trunk or of the branch that names another table after the merge, when the table it named is still re-exported whole (`export *`) by the merged index. When the kit does not read a side or the merged index with certainty, cannot write the index, or would give a name of the trunk to another table, it writes nothing and says why, with the lines to write by hand only when it cannot write the index: a file it does not read gets what must hold and no line, a name of the trunk no line either. An error while it settles the names is said in the report and never leaves the merge in progress. On TypeORM the merge writes no name of the index: it cannot tell by the code whether two imports of one name are two entities or one. The index is left as the merge wrote it, as before, and each name the region of the imports gives more than once is said once, in the dry run as in the merge: `<index>: imports \`orders\` 2 times (from <file>, <file>); the kit writes no name on TypeORM after a merge: if they are distinct entities, import each but one under its own name and list that name in \`entities\`; if they are one entity, take out the extra import.` `init --force` says it the same way, and writes no name either. Nothing is said when no name is imported twice. On Drizzle, each text the settle of a merge writes in the index that the index did not hold before is recorded in a `Kit-Written:` trailer of the merge commit, and the lost-lines check never counts it as a line of the merge's own, so a line a careless resolution lost elsewhere in the index still stops the merge, as on main; every line the settle takes out is recorded in `Lost-Accepted:` by its file, its side and its text (`<file>@<side>#<hash>`), so it never accepts a loss of the other side at the same place. A `Lost-Accepted:` entry written as `file` or `file:line`, by a person or an earlier version, is read as before.
40
+
41
+ What the kit reads, on Drizzle. A module the index re-exports whole is the tables file of a context when it resolves to that file, whatever its name looks like; any other file of the project is read for what it is and keeps the names it exports, and a table of a context that bears one of them is listed under the name of its context. In a file it reads a declaration of one name (`export const orders = ...`, a function, a class, an enum, a type), a list (`export { orders }` of a name the file declares at its top level or imports by name), a name taken by name from any module (`export { held as orders } from './tables'`: from a file of the project it reads, what that file exports under it; from a package or a module it does not find, that name, a value unless written as a type), and the files of the project a file re-exports whole. What a file declares or takes by name wins over what a module it re-exports whole brings under the same name, as in the language. When something is not read with certainty and the index lacks a line for a name shared among what was read, the kit writes nothing and a note says what must hold, with no line to copy, `the kit wrote no name in it: ...`; an index without its region gets every line, the `export *` line of the context first. A command prints at most one such note, or the note of an index left as it stood. Nothing is printed when no name is shared among what was read, except when a name a tables file exports is written, as a word of the code, comments and strings left out, in a file of the project that is not read with certainty or in an `export` of the index that is not read: the note gives the line that names it apart.
42
+
43
+ `ddd-ts-kit init --force` settles a Drizzle index that holds both under one name and says what it settled; on TypeORM it writes no name, and says each name the index imports twice, as the merge does. `drizzle-generate` warns that a migration drops two tables an unsettled index lists under one name, `typeorm-generate` no longer takes the entity of one context for the entity of the same name of another when it warns of dropped tables, an entity imported under an alias through a file of its context or a barrel of it is read as listed, and `verify-slice` stages an index whose only changes are the statements that name the tables file of its context, the entries of what they import, and the line that lets the tables file of another context keep a name it holds and the slice came to share, an import written on several lines included; a line of the platform that only mentions a table of the context leaves the index out.
44
+
45
+ Limits. The kit resolves a module specifier by the aliases of `ddd-ts-kit.config.json` and relative paths, to a `.ts` file or the `index.ts` of a folder; it does not read `paths` of `tsconfig.json` beyond those aliases, `baseUrl`, nor the `package.json` of a folder, and where the compiler could read something else (a file and a folder of one name, a `.tsx`, a `.d.ts`, a `.js`, an `.mts` or a `.cts` beside or in place of the `.ts`, a folder that holds a `package.json`) the specifier resolves to nothing. On Drizzle a file is not read with certainty when it holds one of these, and while one stands the kit writes no name: two names declared in one statement, a pattern (`export const { orders } = tables`), a value exported (by `export const`, or a constant an export list names) that the file does not build itself, a re-export in disguise the kit cannot equate with what it names: it is the file's own only when it is a literal, an object, an array or a function written in place, or a call or a `new` whose arguments are not one binding alone (unless that binding is a constant of the file given a literal, as `pgSchema(MESSAGING_SCHEMA)`), or a binding or a member of one that the file declares, builds itself and does not export (the event store of the template, `eventStore.head`); any other value is not read: `export const kept = archived`, `const kept = tables.archived; export { kept }`, an alias of a table the file exports itself, a cast (`archived as typeof archived`), parentheses, a `!`, a condition, `same(archived)`, a name exported as a string (`export { kept as 'archived' }`), a `declare` of a value, a default export, a module exported as a name, a name with a character outside letters, digits, `_` and `$`, a regular expression literal or a template that does not close (a division is sometimes read as a regular expression), a `namespace` or `declare module` block, two modules re-exported whole that bring different things under one name, a package re-exported whole, or a module re-exported whole that resolves to nothing. What such a module re-exported whole holds is not looked into: a name it shares with another file through `export *` does not compile, as before, and one a line by name of the index already gives to something else stays hidden without a word. A tables file that is a symbolic link, or that a folder of its path that is a link leads to, is not read: the kit writes no name while one stands and gives it no note of a dropped table either; the note of the file not read says what must hold. That note comes when a name of another tables file is written, as a word, in the text the link points at within the project, as that text stands before the command: a name the same command writes through the link is said at the next command. A link that points outside the project, at another link or at nothing, or through a folder that is a link, is not looked into, as its reader tells it, and the note says it may export every name shared; a target written absolute is inside the project only when its path, as written, lies under the real path of the project, as git tells it. When a file the index re-exports is not read with certainty, the kit gives no line to write: it says which names may be shared and who keeps them. The note names what it does not read and why, the names it may export and the files that hold them, and what must hold: each table of that name needs a line by name in the index, the one that held the name before keeps it (in a merge, the one of the trunk, by its file when the trunk reads it, else as the index of the trunk exports it), each other one takes a name of its own; it is the same note in `generate`, `init --force` and `merge-trunk`, dry or real, and a `--continue` says it again only if it still holds. While a file the index re-exports, or the index itself, is not read with certainty, before the command or after it, the comparison of what the index gave before and after a command never leaves the index: the command exits as before, `0`, and writes what it wrote before. What the index exports after the command is said with that doubt while the index still names something not read after it, and plainly when it names none of it any more. It still says a table of a tables file the command writes again (the note of a table `generate --force` dropped). Each name it would have called lost gets one hedged sentence, `` the name `archived`, which 'src/legacy/tables.ts' gives the index, is exported by no line the kit can read after the command; it may still be exported through 'src/legacy/extra.ts' if it exports it`` (`one of them` for several), naming only what the index still names after the command; when it names none of it any more the loss is said plainly, still in a note, `` the name `archived`, which 'src/legacy/tables.ts' gave the index, is exported by no line after the command ('src/legacy/tables.ts', which the kit does not read with certainty, is no more named by the index)``; and each name moved another, `` `orders`, which named the `orders` of 'src/legacy/tables.ts', may name another table after the command (the kit does not read 'src/legacy/extra.ts')``, or plainly, `` `invoices`, which named the `invoices` of '<a>' by the lines the kit read, names the `invoices` of '<b>' after the command ('<gone>', which the kit does not read with certainty, is no more named by the index)``; a name two files read export different tables under, which the settle does not write while the file not read stands, is said by the note of the settle. A name lost or a name moved leaves the index as it stood, exit `3`, only when everything the index re-exports is read with certainty. Beside the names that file may export, the note says the names shared among what was read in a clause of their own (`orders` is shared by '<a>' and '<b>'; the kit writes no name while '<file>' stands), the keeper of each name on the trunk in a merge, and a name the index declares itself, which hides any table of that name. The kit compares the names the index exports as values, not the tables behind them, and no name it exports as a type only (`export type { ArchivedRow } from`), which `init --force` drops without a word when it stands outside the regions, as before, nor a default export the index re-exports (`export { default as archived } from '@/legacy/tables'`, `export { default } from`), dropped the same way, exit `0`: a table that stays exported under another name, through an alias the kit takes for a table of its own, still counts as a name lost, and the command says so and leaves the index. A table already hidden by a line a team wrote by hand, in favour of a file that is no tables file of a context, is not reported. On TypeORM the kit does not decide by the code whether two imports of one name bind one object, which no reading of the syntax settles (a re-export, an alias, a `new` that returns another object): a merge or `init --force` that leaves a name imported twice gets that name said, and the alias is written by hand, as before. On TypeORM the list of the entities is read as the names between the brackets of `entities`, comments left out: an entry is an entity when a name imported in the index bears it, and a spread or a constant built elsewhere is not followed. `init --force` keeps the lines outside the regions only by leaving the whole index as it stood, in the cases above; any other line written there goes with the rewrite, as before. A settle that `generate` refuses leaves the new tables out of the index until the lines of its note are written. On Drizzle, when the merged tree holds two tables files for a context that declare a name in common, no name of that merge is settled and no line rewritten; `init --force` afterwards gives a shared name to the context the index re-exports first, which may not be the trunk's. A table the index declares itself outside the regions (`export const legacyOrders = pgTable(...)`) is not in what `init --force` compares: it goes with the rewrite without a word, as before, and a name it held may then name the table of a context.
46
+
47
+ To move: nothing in a project that compiles and whose tables are all created. A project on Drizzle whose index names one table twice runs `ddd-ts-kit init --force` after a commit, which settles each name and says so, unless the note says the index was left as it stood, which says why, then `npm run db:generate <name>` to write the migration of the tables that were left out. A TypeORM project merged with a shared name gets the sentence and writes the alias by hand, as before (`import { orders as shippingOrders } from '...'`, and `shippingOrders,` in `entities`), then `npm run build && npm run db:generate migrations/<name>`. A project on Drizzle that stores an aggregate whose table bears a name the index declares, `Job` (`jobs`) or `Process` (`processes`), compiled on 0.112.0 and never created that table: it runs the same two commands. A script that reads the `Lost-Accepted:` trailers of merge commits now meets entries of the form `<file>@<side>#<hash>` beside `<file:line>` and `<file>`, and a new `Kit-Written:` trailer: it reads them as entries it does not know, or skips them; both come only from the settle of a Drizzle index.
48
+
49
+ **`ddd-ts-kit verify-slice` stages the list of the read model tables a slice joined.** `generate read-model` adds the store of the read model to `src/platform/database/read-model-tables.ts`, the list the application checks when it starts and `db:read-models` before a deployment. `verify-slice` put that file under "left out, never stage" whatever the ORM, so a worker committed a slice whose read model was absent from the list: its table was never checked, and nothing said so. The file is now staged with the slice when every line changed since `HEAD` belongs to the context, as the schema index is: the import of a store of the context, its entry `['<context>', <Store>]`, read under its alias when another context holds a store of that name, and the name of the context among those an entry may bear. A line is read in the version that holds it, so the list a slice took its own read model away from is staged too, and an import is read by the module it names: the store of the same name of another context, a store of the slice listed under another context, or a package of the kit that bears the name of a context (`@ddd-ts-kit/kernel` beside a context `kernel`) is not of the slice. A list that also holds a change of another context, or of the platform, stays left out: a person decides about it. So does a list that names a context created in the same branch, which `ddd-ts-kit.config.json`, never staged with a slice, does not hold in the last commit: committed alone it would fail `check`, so it waits for the configuration.
50
+
51
+ To move: nothing. A slice committed without its line in the list gets it back with `ddd-ts-kit init`, which lists the read model stores of the tree.
52
+
53
+ **A freshly installed project lints again: `dddTsKit()` turns off `@typescript-eslint/no-unsafe-class-instance-assignment`, which typescript-eslint 8.73.0 added to its strict preset.** The rule reports a value used where an instance of a class is expected and that the constructor of that class did not build. A port of the kit is an abstract class its adapters implement, and a payload, an answer or a line of a read model is a class built from a literal: every place an adapter is bound to its port or handed to a handler, every fake and every such literal was reported, in a project `init` had just written and installed from 2026-11-16, the day 8.73.0 was published. The rule has no option, so it is off as a whole: a plain object passed where `instanceof` or the metadata of a decorator is expected is no longer reported by it. The preset names the rule only where the installed typescript-eslint holds it, so a project on an earlier 8.x keeps working, and `standardRules.kitConventions` carries the same line for a configuration composed by hand.
54
+
55
+ To move: update `@ddd-ts-kit/eslint-plugin` with the kit; nothing to write. A project that cannot update yet and whose `npm install` took typescript-eslint 8.73 adds `'@typescript-eslint/no-unsafe-class-instance-assignment': 'off'` to the rules of its `eslint.config.js` until it does.
56
+
7
57
  ## 0.112.0
8
58
 
9
59
  **`ddd-ts-kit generate file-upload --text <utf-8|single-byte>` writes the upload of a text file, with a spec that sends one that is not UTF-8.** Without the flag the generated controller still declares a document (PDF, PNG, JPEG). With it, the upload is a CSV under the names browsers give one (`text/csv`, `application/csv`, and `application/vnd.ms-excel` stated as `text` in `contentRules`), held to the text rule asked: `single-byte` when the file may be in Windows-1252 or ISO-8859-1 as well as UTF-8, `utf-8` when it must be UTF-8. The spec of the controller, a controller of the kit or a Nest controller, then sends a multipart form through `multipartUploads()` of `@ddd-ts-kit/http/uploads`: under `single-byte` a Windows-1252 file reaches the command byte for byte, under `utf-8` it is answered 415, and under both a workbook under the name of a CSV is answered 415. The spec of the handler stages a CSV. Another value of `--text` is refused with the two it takes. See `docs/concepts/file-storage.md`.
package/README.fr.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [English](README.md) · **Français**
2
- <!-- translation-of: README.md sha256:e7884377cb3ae2cc -->
2
+ <!-- translation-of: README.md sha256:d66d20ef651ad8e6 -->
3
3
 
4
4
  # ddd-ts-kit
5
5
 
@@ -732,6 +732,15 @@ de ses options ; `typeorm-generate` refuse aussi un dossier hors du projet. Avec
732
732
  `{ code, written, messages }` sur une ligne : le code de sortie, les fichiers du dossier de migrations
733
733
  nouveaux ou modifiés, et ce que la commande a dit ; la sortie de l'outil de l'ORM va sur stderr.
734
734
 
735
+ Sur Prisma, `db:client` (`ddd-ts-kit prisma-client --schema prisma/schema`), que lancent `pretest`,
736
+ `pretest:e2e`, `pretypecheck` et `prebuild`, écrit le client (`prisma generate`) et le schéma des
737
+ tests (`prisma migrate diff --from-empty` dans `generated/schema.sql`) sauf s'ils sont à jour :
738
+ générés des mêmes fichiers du schéma, du même `prisma.config.ts`, des mêmes `prisma` et
739
+ `@prisma/client`, et toujours là (`generated/prisma-client.sha256` garde ce dont ils viennent ;
740
+ supprimer `generated/` les écrit de nouveau). Deux exécutions dans un même projet passent tour à
741
+ tour par `.ddd-ts-kit/prisma-client` : deux exécutions des tests lancées ensemble n'écrivent jamais
742
+ le client en même temps.
743
+
735
744
  `package.json` porte deux compilateurs : `typescript ~6.0.3`, que les outils chargent comme une
736
745
  bibliothèque, et `@typescript/native` (`npm:typescript@~7.0.2`), que `build` et `typecheck`
737
746
  appellent par son chemin (`node node_modules/@typescript/native/bin/tsc`). `npx tsc` lancerait
@@ -2374,6 +2383,13 @@ Un chemin qui n'existe nulle part, ou un dossier sans fichier TypeScript sous la
2374
2383
  sources, est une erreur de l'appelant : `check` le refuse (code 2) au lieu de déclarer le projet
2375
2384
  propre.
2376
2385
 
2386
+ Avec des chemins, `check` signale les constats posés sur un fichier donné ou sous un dossier
2387
+ donné, et ceux qui s'y réparent : un registre de modèle de lecture absent de la liste, signalé
2388
+ sur son propre fichier, est signalé quand la liste est le chemin demandé, et un gestionnaire dont
2389
+ aucune politique ne répond quand son fichier de module l'est. Le crochet de pré-commit, qui
2390
+ interroge sur les fichiers indexés, signale alors ce qu'un changement indexé casse dans un fichier
2391
+ qui ne l'est pas. `--changed-since` garde un constat d'après ces deux mêmes fichiers.
2392
+
2377
2393
  Chaque violation a un identifiant de règle, une sévérité, un fichier, une ligne, un message et un
2378
2394
  `fix` : une phrase qui dit quoi faire à la place. Code de sortie 1 quand il y a au moins une
2379
2395
  erreur. Supposons que l'agrégat `Reminder` de l'application d'exemple lise l'horloge système dans
@@ -2568,6 +2584,7 @@ règle.
2568
2584
  | `nest/no-parallel-pipeline` | dans `presentation/`, `infrastructure/` ou le fichier de module d'un contexte, tests à part : un import d'un contrôleur que Nest sert (ses décorateurs de route et de paramètres, sauf si le fichier importe `KitRoute` ou `KitRoutes` de `@ddd-ts-kit/http/nest`), de la requête ou de la réponse brutes, d'un *guard*, d'un *pipe*, d'un filtre d'exceptions ou d'une `HttpException`, d'un intercepteur ou du `Logger` de `@nestjs/common`, un import sans nom de celui-ci, ou un import d'un *package* de Nest dont le kit fait le travail (`@nestjs/core`, `@nestjs/swagger`, `@nestjs/cqrs`, `@nestjs/passport`, `@nestjs/config`, `@nestjs/schedule` et les autres de la section 3 d'ARCHITECTURE.md) ; le message dit ce que le kit fait à sa place ; sous la racine des sources hors des contextes, tests à part : un fichier qui importe `Controller` de `@nestjs/common`, ni `KitRoute` ni `KitRoutes`, et nomme `CommandBus` ou `QueryBus` ou importe un fichier d'un contexte |
2569
2585
  | `nest/controllers-current` | avec `"stack.routes": "nest"` : un `<context>.controllers.ts` qui diffère de ce que donnent les contrôleurs Nest du contexte et les signatures de leurs méthodes, ou absent ; une partie de la requête prise entière par aucune classe DTO et que `request` de `@KitRoute` ne donne pas ; une méthode de route qui ne répond ni une classe DTO, ni `Accepted`, ni `void`, et ne déclare pas de `response` dans `@KitRoute` |
2570
2586
  | `tenancy/scoped-statement` | avec `stack.tenancy` autre que `none`, dans `infrastructure/` d'un contexte, tests et contexte dont `tenancy` vaut `control-plane` mis à part : sur Knex, l'exécuteur utilisé autrement que comme argument (`executor()(`, `executor().from(`, `executor().raw(`, `const db = ...executor();`) et tout `.raw(` ; sur Drizzle, instruction par instruction, une lecture, une mise à jour ou une suppression sur l'exécuteur dont le where n'a ni `tenantCondition(` ni `ownTenantCondition(` (en ligne ou dans la variable locale qu'il reçoit), une insertion dont la ligne n'a pas de `tenantScopeOf(`, une requête relationnelle (`executor().query`), un `execute(` brut, ou l'exécuteur gardé dans une variable ; sur Prisma, instruction par instruction sur le client, une lecture (`findFirst(`, `findMany(`, `count(`, `aggregate(`, `groupBy(`) dont le where ne décompose pas `tenantWhere(`, une mise à jour ou une suppression dont le where ne décompose pas `ownTenantWhere(`, une création dont les données ne décomposent pas `tenantScopeOf(` (en ligne ou dans une variable locale que les arguments nomment), `findUnique(`, `upsert(`, une requête brute (`$queryRaw`, `$executeRaw`), ou le client gardé dans une variable ; sur TypeORM, la même chose sur le *manager* (`find*(`, `count*(`, `update(`, `delete(`, `insert(`, la ligne confiée à `insertIgnoringConflict(`, un *query builder* dont le where ne porte aucune condition, `save(`, `upsert(`, `query(`) ; sur les quatre, un magasin de modèle de lecture construit sans son option `tenant`, et une condition du *tenant* qui ne reste pas en `and` avec son instruction : sur Knex `.orWhere*` ou `.or` au sommet d'une instruction de `tenantTable`, `ownTenantTable` ou `whereTenant`, `clearWhere()` ou `clear('where')` sur elle, sur Drizzle la condition sous `or`, `not` ou un gabarit `sql`, sur Prisma l'étalement sous `OR`, `NOT` ou une relation, sur TypeORM de même, un tableau where dont une entrée ne l'étale pas, un `orWhere` au sommet d'un *query builder*, un `where` après celui qui porte la condition. Un where construit par une autre fonction n'est pas suivi |
2587
+ | `persistence/read-model-listed` | un registre de modèle de lecture d'un contexte tenu dans une table (une classe qui n'est pas abstraite au-dessus de `DrizzleReadModelStore`, `KnexReadModelStore`, `PrismaReadModelStore` ou `TypeOrmReadModelStore`, directement ou par des classes du projet, lu comme `init` le lit) que `src/platform/database/read-model-tables.ts` ne liste pas sous son contexte, lui-même ou par une classe qui l'étend, ne nomme pas dans `NOT_LISTED` et ne laisse pas de côté par un commentaire entre ses marqueurs qui porte `<contexte>: <Registre>` : rien ne vérifie sa table. Le correctif donne l'import et l'entrée à ajouter, ou ce qui s'oppose à un registre que la liste ne peut pas construire. Aussi une entrée de la liste dont la classe n'existe pas ou appartient à un autre contexte, une ligne de `NOT_LISTED` dont la classe a disparu ou dont `LISTED` répond du registre, un `LISTED` qu'elle ne peut pas lire et, une fois, un projet sur l'un des quatre ORM qui contient des registres et aucune liste (`ddd-ts-kit init --force`) |
2571
2588
  | `standard/no-parallel-interface` | une classe, une interface ou un alias de type déclaré comme `ILogger`, `AppLogger`, `LoggerService`, `LoggerInterface`, `IMetrics`, `MetricsService`, `ICache`, `CacheService`, `UserContext`, `CurrentUser`, `AuthContext`, `RequestContext` (hors de `presentation/` et de la plateforme), `UserSession`, `AuthSession`, `SessionData`, `PaginatedResult`, `PageResult`, `PaginatedResponse`, `Paginated`, `PaginationParams`, `PageParams`, `AuditLog`, `AuditLogEntry`, `AuditRecord`, `IJobScheduler`, `JobSchedulerService`, `CronScheduler`, `TaskScheduler`, `IScheduledJob`, `CronJob`, `ScheduledTask`, `BackgroundJob`, `IErrorReporter`, `ErrorReporterService`, `ErrorTracker`, `ExceptionReporter`, `CrashReporter`, `CacheInvalidator`, `CacheInvalidationService`, `CachePurgeService`, `CdnPurger`, `I` suivi d'un nom standard (`IClock`, `IIdGenerator`, `IUnitOfWork`, `ISession`, ...) ou un nom de `standardInterfaces` ; une classe qui implémente ou étend l'interface standard est un adaptateur et n'est pas signalée |
2572
2589
  | `events/outbox-required` | `stack.events` autre que `outbox` avec un ORM et sans dérogation `stack.events` ; dans `domain/` et `application/`, l'import d'un client de *broker* ou d'une implémentation de bus ou de relais ; un *publisher* qui dépend de plus que `IntegrationEventPublisher` ; un module de la plateforme qui distribue un *publisher* et ne nomme jamais `OutboxPublisher` |
2573
2590
  | `events/consumer-idempotent` | une classe de gestionnaire d'événement d'intégration (`application/integration/handlers/*.integration-handler.ts`) qui ne porte pas `@IntegrationEventHandler` et n'est pas non plus enregistrée dans son fichier de module sous un nom de consommateur ; un `@IntegrationEventHandler` dont le `consumer` n'est pas une chaîne littérale non vide ; un `on(` ou un `consume(` libre sans `processed` ; un nom de consommateur utilisé deux fois, dans les déclarations comme dans les enregistrements |
package/README.md CHANGED
@@ -699,6 +699,14 @@ options; `typeorm-generate` also refuses a folder outside the project. With `--j
699
699
  `{ code, written, messages }` on one line: the exit code, the files of the migrations folder that are new
700
700
  or changed, and what the command said; the output of the ORM tool goes to stderr.
701
701
 
702
+ On Prisma, `db:client` (`ddd-ts-kit prisma-client --schema prisma/schema`), which `pretest`,
703
+ `pretest:e2e`, `pretypecheck` and `prebuild` run, writes the client (`prisma generate`) and the
704
+ schema of the tests (`prisma migrate diff --from-empty` into `generated/schema.sql`) unless both are
705
+ current: generated from the same files of the schema, `prisma.config.ts`, `prisma` and
706
+ `@prisma/client`, and still there (`generated/prisma-client.sha256` records what they come from;
707
+ removing `generated/` writes them again). Two runs in one project take turns on
708
+ `.ddd-ts-kit/prisma-client`: two test runs started together never write the client at once.
709
+
702
710
  `package.json` carries two compilers: `typescript ~6.0.3`, which the tools load as a library,
703
711
  and `@typescript/native` (`npm:typescript@~7.0.2`), which `build` and `typecheck` call by path
704
712
  (`node node_modules/@typescript/native/bin/tsc`). `npx tsc` would run the older one.
@@ -2219,6 +2227,13 @@ ddd-ts-kit check --commit-size [--staged] [--strict]
2219
2227
  A path that exists nowhere, or a folder that holds no TypeScript file under the source root, is a
2220
2228
  mistake of the caller: `check` refuses it (exit 2) in place of reporting a clean project.
2221
2229
 
2230
+ With paths, `check` reports the findings that sit on a file given or under a folder given, and
2231
+ those that are repaired in one: a read model store missing from the list, reported on its own
2232
+ file, is reported when the list is the path asked about, and a handler no policy answers for when
2233
+ its module file is. The pre-commit hook, which asks about the staged files, then reports what a
2234
+ staged change breaks in a file that is not staged. `--changed-since` keeps a finding by the same
2235
+ two files.
2236
+
2222
2237
  Each violation has a rule id, a severity, a file, a line, a message and a `fix`: one sentence
2223
2238
  saying what to do instead. Exit code 1 when there is at least one error. Suppose that the
2224
2239
  `Reminder` aggregate of the example application read the system clock in its domain: an `isDue()`
@@ -2401,6 +2416,7 @@ const due = handler.isDueNow(new Reminder(new Date('2026-03-01T09:00:00Z'))); //
2401
2416
  | `nest/no-parallel-pipeline` | in `presentation/`, `infrastructure/` or the module file of a context, tests apart: an import of a controller Nest serves (its route and parameter decorators, unless the file imports `KitRoute` or `KitRoutes` of `@ddd-ts-kit/http/nest`), the raw request or answer, a guard, a pipe, an exception filter or an `HttpException`, an interceptor or the `Logger` of `@nestjs/common`, a bare import of it, or an import of a package of Nest whose work the kit does (`@nestjs/core`, `@nestjs/swagger`, `@nestjs/cqrs`, `@nestjs/passport`, `@nestjs/config`, `@nestjs/schedule` and the others of section 3 of ARCHITECTURE.md); the message names what the kit does in its place; under the source root outside the contexts, tests apart: a file that imports `Controller` of `@nestjs/common`, neither `KitRoute` nor `KitRoutes`, and names `CommandBus` or `QueryBus` or imports a file of a context |
2402
2417
  | `nest/controllers-current` | with `"stack.routes": "nest"`: a `<context>.controllers.ts` that differs from what the Nest controllers of the context and the signatures of their methods give, or is missing; a part of the request taken whole by no DTO class that `request` of `@KitRoute` does not give; a route method that answers no DTO class, `Accepted` or `void` and declares no `response` in `@KitRoute` |
2403
2418
  | `tenancy/scoped-statement` | with `stack.tenancy` other than `none`, in `infrastructure/` of a context, tests and a context whose `tenancy` is `control-plane` aside: on Knex the executor used other than as an argument (`executor()(`, `executor().from(`, `executor().raw(`, `const db = ...executor();`) and any `.raw(`; on Drizzle, statement by statement, a read, update or delete on the executor whose where has no `tenantCondition(` nor `ownTenantCondition(` (inline or in the local it is given), an insert whose row has no `tenantScopeOf(`, a relational query (`executor().query`), a raw `execute(`, or the executor held in a variable; on Prisma, statement by statement on the client, a read (`findFirst(`, `findMany(`, `count(`, `aggregate(`, `groupBy(`) whose where spreads no `tenantWhere(`, an update or a delete whose where spreads no `ownTenantWhere(`, a create whose data spreads no `tenantScopeOf(` (inline or in a local the arguments name), `findUnique(`, `upsert(`, a raw query (`$queryRaw`, `$executeRaw`), or the client held in a variable; on TypeORM the same on the manager (`find*(`, `count*(`, `update(`, `delete(`, `insert(`, the row handed to `insertIgnoringConflict(`, a query builder whose where carries no condition, `save(`, `upsert(`, `query(`); on the four, a read model store built without its `tenant` option, and a tenant condition that is no conjunct of its statement: on Knex `.orWhere*` or `.or` at the top of a statement of `tenantTable`, `ownTenantTable` or `whereTenant`, `clearWhere()` or `clear('where')` on it, on Drizzle the condition under `or`, `not` or a `sql` template, on Prisma the spread under `OR`, `NOT` or a relation, on TypeORM the same, a where array with an entry that does not spread it, an `orWhere` at the top of a query builder, a `where` after the one that carries the condition. A where built by another function is not followed |
2419
+ | `persistence/read-model-listed` | a read model store of a context kept in a table (a class that is not abstract over `DrizzleReadModelStore`, `KnexReadModelStore`, `PrismaReadModelStore` or `TypeOrmReadModelStore`, directly or through classes of the project, read as `init` reads it) that `src/platform/database/read-model-tables.ts` neither lists under its context, itself or through a class that extends it, nor names in `NOT_LISTED`, nor leaves out by a comment between its markers that holds `<context>: <Store>`: nothing checks its table. The fix gives the import and the entry to add, or what stands in the way of a store the list cannot build. Also an entry of the list whose class does not exist or belongs to another context, a line of `NOT_LISTED` whose class is gone or whose store `LISTED` answers for, a `LISTED` it cannot read, and, once, a project on one of the four ORM that holds stores and no list (`ddd-ts-kit init --force`) |
2404
2420
  | `standard/no-parallel-interface` | a class, interface or type alias declared as `ILogger`, `AppLogger`, `LoggerService`, `LoggerInterface`, `IMetrics`, `MetricsService`, `ICache`, `CacheService`, `UserContext`, `CurrentUser`, `AuthContext`, `RequestContext` (outside `presentation/` and the platform), `UserSession`, `AuthSession`, `SessionData`, `PaginatedResult`, `PageResult`, `PaginatedResponse`, `Paginated`, `PaginationParams`, `PageParams`, `AuditLog`, `AuditLogEntry`, `AuditRecord`, `IJobScheduler`, `JobSchedulerService`, `CronScheduler`, `TaskScheduler`, `IScheduledJob`, `CronJob`, `ScheduledTask`, `BackgroundJob`, `IErrorReporter`, `ErrorReporterService`, `ErrorTracker`, `ExceptionReporter`, `CrashReporter`, `CacheInvalidator`, `CacheInvalidationService`, `CachePurgeService`, `CdnPurger`, `I` followed by a standard name (`IClock`, `IIdGenerator`, `IUnitOfWork`, `ISession`, ...) or a name of `standardInterfaces`; a class that implements or extends the standard interface is an adapter and is not reported |
2405
2421
  | `events/outbox-required` | `stack.events` other than `outbox` with an ORM and no `stack.events` deviation; in `domain/` and `application/`, the import of a broker client or of a bus or relay implementation; a publisher depending on more than `IntegrationEventPublisher`; a platform module that hands out a publisher and never names `OutboxPublisher` |
2406
2422
  | `events/consumer-idempotent` | an integration event handler class (`application/integration/handlers/*.integration-handler.ts`) that neither carries `@IntegrationEventHandler` nor is registered in its module file under a consumer name; an `@IntegrationEventHandler` whose `consumer` is not a non-empty string literal; a free `on(` or `consume(` without `processed`; a consumer name used twice, in declarations and registrations alike |
@@ -1 +1 @@
1
- {"version":3,"file":"architecture-rules.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAgH1C,gHAAgH;AAChH,eAAO,MAAM,kBAAkB,EAAE,SAAS,IAAI,EA+G7C,CAAC"}
1
+ {"version":3,"file":"architecture-rules.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAiH1C,gHAAgH;AAChH,eAAO,MAAM,kBAAkB,EAAE,SAAS,IAAI,EAgH7C,CAAC"}
@@ -80,6 +80,7 @@ import { nestNoParallelPipeline } from '../rules/nest-no-parallel-pipeline.js';
80
80
  import { persistenceMigrationHistory } from '../rules/persistence-migration-history.js';
81
81
  import { persistenceNoFileContent } from '../rules/persistence-no-file-content.js';
82
82
  import { persistencePrimaryKeyOrder } from '../rules/persistence-primary-key-order.js';
83
+ import { persistenceReadModelListed } from '../rules/persistence-read-model-listed.js';
83
84
  import { portsAbstractClass } from '../rules/ports-abstract-class.js';
84
85
  import { portsImplementsNeverExtends } from '../rules/ports-implements-never-extends.js';
85
86
  import { portsNoConcreteDependency } from '../rules/ports-no-concrete-dependency.js';
@@ -217,6 +218,7 @@ export const ARCHITECTURE_RULES = [
217
218
  persistenceMigrationHistory,
218
219
  persistenceNoFileContent,
219
220
  persistencePrimaryKeyOrder,
221
+ persistenceReadModelListed,
220
222
  filesPortNotConnector,
221
223
  filesUploadContentRule,
222
224
  searchStoreFromPlatform,
@@ -1 +1 @@
1
- {"version":3,"file":"architecture-rules.js","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,uBA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AAgB;IAChB,gBAAgB;IAChB,oBAAoB;IACpB,gBAAgB;IAChB,gBAAgB;IAChB,eAAe;IACf,2BAA2B;IAC3B,wBAAwB;IACxB,0BAA0B;IAC1B,qBAAqB;IACrB,sBAAsB;IACtB,uBAAuB;CACxB,CAAC"}
1
+ {"version":3,"file":"architecture-rules.js","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,W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yBAAyB;IACzB,gCAAgC;IAChC,4BAA4B;IAC5B,kBAAkB;IAClB,2BAA2B;IAC3B,oBAAoB;IACpB,yBAAyB;IACzB,gBAAgB;IAChB,4BAA4B;IAC5B,6BAA6B;IAC7B,wBAAwB;IACxB,iBAAiB;IACjB,uBAAuB;IACvB,yBAAyB;IACzB,gBAAgB;IAChB,gBAAgB;IAChB,oBAAoB;IACpB,gBAAgB;IAChB,gBAAgB;IAChB,eAAe;IACf,2BAA2B;IAC3B,wBAAwB;IACxB,0BAA0B;IAC1B,0BAA0B;IAC1B,qBAAqB;IACrB,sBAAsB;IACtB,uBAAuB;CACxB,CAAC"}
@@ -130,8 +130,9 @@ function baselineSummary(baseline) {
130
130
  const errors = entries.reduce((total, { count }) => total + count, 0);
131
131
  return `${BASELINE_FILE}: ${errors} error${errors === 1 ? '' : 's'} recorded in ${Object.keys(baseline).length} file${Object.keys(baseline).length === 1 ? '' : 's'}. Commit it; \`ddd-ts-kit check\` reports only what it does not hold, and fails when a count it records is no longer reached.`;
132
132
  }
133
- function isInScope(violation, scopes) {
134
- return (scopes.length === 0 ||
135
- scopes.some((scope) => scope === '' || violation.file === scope || violation.file.startsWith(`${scope}/`)));
133
+ /** In scope: a finding on a file given, or one repaired in a file given (the list a store is missing from). */
134
+ function isInScope({ file, subjects = [] }, scopes) {
135
+ const isGiven = (candidate) => scopes.some((scope) => scope === '' || candidate === scope || candidate.startsWith(`${scope}/`));
136
+ return scopes.length === 0 || [file, ...subjects].some(isGiven);
136
137
  }
137
138
  //# sourceMappingURL=check-command.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"check-command.js","sourceRoot":"","sources":["../../../src/check/commands/check-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;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,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,+HAA+H,CAAC;AACrS,CAAC;AAED,+GAA+G;AAC/G,SAAS,SAAS,CAAC,EAAE,IAAI,EAAE,QAAQ,GAAG,EAAE,EAAa,EAAE,MAAyB;IAC9E,MAAM,OAAO,GAAG,CAAC,SAAiB,EAAW,EAAE,CAC7C,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,EAAE,IAAI,SAAS,KAAK,KAAK,IAAI,SAAS,CAAC,UAAU,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC;IAEnG,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,QAAQ,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAClE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"persistence-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/persistence-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAoF9D,CAAC"}
1
+ {"version":3,"file":"persistence-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/persistence-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAqG9D,CAAC"}
@@ -16,6 +16,23 @@ export const PERSISTENCE_DOCS = {
16
16
  ALTER TABLE "invoices" DROP CONSTRAINT "invoices_pkey"; -- too late: the ADD above already failed`,
17
17
  good: `ALTER TABLE "invoices" DROP CONSTRAINT "invoices_pkey";--> statement-breakpoint
18
18
  ALTER TABLE "invoices" ADD CONSTRAINT "invoices_id_issuer_pk" PRIMARY KEY("id","issuer");`,
19
+ },
20
+ 'persistence/read-model-listed': {
21
+ why: 'The application checks the tables of its read models when it starts, and `npm run db:read-models` before a deployment: a table an upgrade left as it was stops the start and not the first event that reaches it. Both read the stores `<platformDir>/database/read-model-tables.ts` lists, and no other. `generate read-model` lists the store it writes and `init` those it finds, but a store written by hand and never listed is checked by nothing, and nothing says so. This rule reads the tree as `init` does, by one reading: a store is a class of a context that is not abstract and extends `DrizzleReadModelStore`, `KnexReadModelStore`, `PrismaReadModelStore` or `TypeOrmReadModelStore`, named so, directly or through classes of the project. The list answers for it when an entry of `LISTED` under its context names it or a class that extends it (the class written beside a store to build it), when `NOT_LISTED` names it, which the start tells, or when a comment between the markers `init` writes in the file holds `<context>: <Store>` with the reason it is left out: `init --force` keeps what the markers hold and nothing else, so the place of that comment is between the markers of `LISTED`, and one written elsewhere leaves nothing out. An entry imported through a file that re-exports the class, `export { A as B } from` or `export * from`, one level, answers for the class that name leads to, and for no other store that file re-exports. The fix gives the import and the entry to add, the entry alone when the list still imports the class; for a store the list cannot build, it says what stands in the way (a generic class, a class its file does not export by its name, a constructor of its own that is not `(database: <Type>)` or `(database: <Type>, scope: ExecutionScope)`) and the class to write beside it. The list is held to the tree too: an entry whose class the file neither imports nor declares, whose import leads to no file or to a file that does not name the class, or whose class another context declares, and a line of `NOT_LISTED` whose class its context no longer names or whose store `LISTED` answers for. What the rule does not judge: an abstract class; a store in memory or in a search engine, and a class directly over `TableReadModelStore` of the kernel; a store of the tests; a class declared in a function or in a `namespace` block, and a class expression that has no name of its own (one that has is read under that name); a base that is not the name of the store of the kit or of a class of the project: a namespace (`kit.KnexReadModelStore`), an import alias, a call (`mixin(KnexReadModelStore)`); of two classes of one name in one context, which one an entry names; whether a class that extends a store reads the same table; the reason a comment gives; what a package exports. An entry spread into `LISTED` or built by a call cannot be read: the rule says so once and judges no store. A project on one of the four ORM with stores and no list, generated before 0.112.0, is reported once, since nothing checks any of its tables; without one of them `init` writes no list and no check, and the rule says nothing.',
22
+ bad: `// src/contexts/billing/infrastructure/persistence/knex-late-invoices.repository.ts, written by hand
23
+ export class KnexLateInvoices extends KnexReadModelStore<LateInvoice> implements LateInvoices { .. }
24
+
25
+ // src/platform/database/read-model-tables.ts
26
+ const LISTED = [
27
+ ['billing', KnexInvoiceSummaries], // KnexLateInvoices is not there: its table is never read
28
+ ];`,
29
+ good: `import { KnexLateInvoices } from '@/contexts/billing/infrastructure/persistence/knex-late-invoices.repository';
30
+
31
+ const LISTED = [
32
+ ['billing', KnexInvoiceSummaries],
33
+ ['billing', KnexLateInvoices],
34
+ // billing: KnexNightlyTotals, left out: its table is dropped and rebuilt each night
35
+ ];`,
19
36
  },
20
37
  'persistence/no-file-content': {
21
38
  why: 'A file in a column is read whole into the memory of the application and of the database, travels in every backup, every replica and every dump, swells the table its rows share pages with, and cannot be handed out by a short signed link: an upload of a few megabytes becomes a transaction, a replication lag and a backup to restore. An object store is made for it: it streams, it is cheap per gigabyte, it has lifecycle rules and signed links. The row keeps what the domain needs to know about the file, its reference.',
@@ -1 +1 @@
1
- {"version":3,"file":"persistence-docs.js","sourceRoot":"","sources":["../../../src/check/explain/persistence-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAsC;IACjE,+BAA+B,EAAE;QAC/B,GAAG,EAAE,0jCAA0jC;QAC/jC,GAAG,EAAE;;;wFAG+E;QACpF,IAAI,EAAE;;;kGAGwF;KAC/F;IACD,+BAA+B,EAAE;QAC/B,GAAG,EAAE,6wBAA6wB;QAClxB,GAAG,EAAE;oGAC2F;QAChG,IAAI,EAAE;0FACgF;KACvF;IACD,6BAA6B,EAAE;QAC7B,GAAG,EAAE,ugBAAugB;QAC5gB,GAAG,EAAE;;;IAGL;QACA,IAAI,EAAE;;;;;IAKN;KACD;IACD,0BAA0B,EAAE;QAC1B,GAAG,EAAE,0YAA0Y;QAC/Y,GAAG,EAAE;;;;EAIP;QACE,IAAI,EAAE;;;;EAIR;KACC;IACD,2BAA2B,EAAE;QAC3B,GAAG,EAAE,mlDAAmlD;QACxlD,GAAG,EAAE;;;;;GAKN;QACC,IAAI,EAAE;;;;;;;;;;;GAWP;KACA;IACD,4BAA4B,EAAE;QAC5B,GAAG,EAAE,2jBAA2jB;QAChkB,GAAG,EAAE;;;;;;EAMP;QACE,IAAI,EAAE;;;;;;;EAOR;KACC;CACF,CAAC"}
1
+ {"version":3,"file":"persistence-docs.js","sourceRoot":"","sources":["../../../src/check/explain/persistence-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAsC;IACjE,+BAA+B,EAAE;QAC/B,GAAG,EAAE,0jCAA0jC;QAC/jC,GAAG,EAAE;;;wFAG+E;QACpF,IAAI,EAAE;;;kGAGwF;KAC/F;IACD,+BAA+B,EAAE;QAC/B,GAAG,EAAE,6wBAA6wB;QAClxB,GAAG,EAAE;oGAC2F;QAChG,IAAI,EAAE;0FACgF;KACvF;IACD,+BAA+B,EAAE;QAC/B,GAAG,EAAE,gkGAAgkG;QACrkG,GAAG,EAAE;;;;;;GAMN;QACC,IAAI,EAAE;;;;;;GAMP;KACA;IACD,6BAA6B,EAAE;QAC7B,GAAG,EAAE,ugBAAugB;QAC5gB,GAAG,EAAE;;;IAGL;QACA,IAAI,EAAE;;;;;IAKN;KACD;IACD,0BAA0B,EAAE;QAC1B,GAAG,EAAE,0YAA0Y;QAC/Y,GAAG,EAAE;;;;EAIP;QACE,IAAI,EAAE;;;;EAIR;KACC;IACD,2BAA2B,EAAE;QAC3B,GAAG,EAAE,mlDAAmlD;QACxlD,GAAG,EAAE;;;;;GAKN;QACC,IAAI,EAAE;;;;;;;;;;;GAWP;KACA;IACD,4BAA4B,EAAE;QAC5B,GAAG,EAAE,2jBAA2jB;QAChkB,GAAG,EAAE;;;;;;EAMP;QACE,IAAI,EAAE;;;;;;;EAOR;KACC;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/fixtures.ts"],"names":[],"mappings":"AA6DA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,QAAQ,EAAE,SAAS,OAAO,EA8DtC,CAAC"}
1
+ {"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/fixtures.ts"],"names":[],"mappings":"AA8DA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,QAAQ,EAAE,SAAS,OAAO,EA+DtC,CAAC"}
@@ -44,6 +44,7 @@ import { NEST_CONTROLLERS_FIXTURES } from './nest-controllers-fixtures.js';
44
44
  import { NEST_FIXTURES } from './nest-fixtures.js';
45
45
  import { OUTBOX_FIXTURES } from './outbox-fixtures.js';
46
46
  import { PERSISTENCE_FIXTURES } from './persistence-fixtures.js';
47
+ import { READ_MODEL_LISTED_FIXTURES } from './read-model-listed-fixtures.js';
47
48
  import { PORTS_FIXTURES } from './ports-fixtures.js';
48
49
  import { ROLE_FOLDER_FIXTURES } from './role-folder-fixtures.js';
49
50
  import { PURITY_FIXTURES } from './purity-fixtures.js';
@@ -111,6 +112,7 @@ export const FIXTURES = [
111
112
  ...BUSINESS_NAME_FIXTURES,
112
113
  ...OUTBOX_FIXTURES,
113
114
  ...PERSISTENCE_FIXTURES,
115
+ ...READ_MODEL_LISTED_FIXTURES,
114
116
  ...PORTS_FIXTURES,
115
117
  ...PURITY_FIXTURES,
116
118
  ...SCHEDULING_FIXTURES,
@@ -1 +1 @@
1
- {"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,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ClB,GAAG,sBAAsB;IACzB,GAAG,eAAe;IAClB,GAAG,oBAAoB;IACvB,GAAG,0BAA0B;IAC7B,GAAG,cAAc;IACjB,GAAG,eAAe;IAClB,GAAG,mBAAmB;IACtB,GAAG,iBAAiB;IACpB,GAAG,aAAa;IAChB,GAAG,yBAAyB;IAC5B,GAAG,gBAAgB;IACnB,GAAG,gBAAgB;IACnB,GAAG,yBAAyB;IAC5B,GAAG,aAAa;IAChB,GAAG,gBAAgB;IACnB,GAAG,aAAa;IAChB,GAAG,oBAAoB;IACvB,GAAG,0BAA0B;IAC7B,GAAG,uBAAuB;CAC3B,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { FixtureFiles } from './fixture-files.js';
2
+ /**
3
+ * The list of the read model tables of a fixture whose subject is another rule: each store of
4
+ * billing it holds is left out by a comment between the markers, so that `persistence/read-model-listed` says nothing.
5
+ */
6
+ export declare function readModelListFiles(...stores: readonly string[]): FixtureFiles;
7
+ //# sourceMappingURL=read-model-list-files.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-model-list-files.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/read-model-list-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,YAAY,CAa7E"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * The list of the read model tables of a fixture whose subject is another rule: each store of
3
+ * billing it holds is left out by a comment between the markers, so that `persistence/read-model-listed` says nothing.
4
+ */
5
+ export function readModelListFiles(...stores) {
6
+ const leftOut = stores.map((store) => ` // billing: ${store}, left out: the fixture keeps no table`);
7
+ return {
8
+ 'src/platform/database/read-model-tables.ts': [
9
+ 'export const LISTED = [',
10
+ ' // ddd-ts-kit:read-model-tables',
11
+ ...leftOut,
12
+ ' // /ddd-ts-kit:read-model-tables',
13
+ '];',
14
+ '',
15
+ ].join('\n'),
16
+ };
17
+ }
18
+ //# sourceMappingURL=read-model-list-files.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-model-list-files.js","sourceRoot":"","sources":["../../../src/check/fixtures/read-model-list-files.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,GAAG,MAAyB;IAC7D,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,iBAAiB,KAAK,wCAAwC,CAAC,CAAC;IAEtG,OAAO;QACL,4CAA4C,EAAE;YAC5C,yBAAyB;YACzB,mCAAmC;YACnC,GAAG,OAAO;YACV,oCAAoC;YACpC,IAAI;YACJ,EAAE;SACH,CAAC,IAAI,CAAC,IAAI,CAAC;KACb,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Fixture } from './fixture.js';
2
+ export declare const READ_MODEL_LISTED_FIXTURES: readonly Fixture[];
3
+ //# sourceMappingURL=read-model-listed-fixtures.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-model-listed-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/read-model-listed-fixtures.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA+BzC,eAAO,MAAM,0BAA0B,EAAE,SAAS,OAAO,EAuQxD,CAAC"}