@ddd-ts-kit/kernel 0.113.2 → 0.114.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.
package/README.fr.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [English](README.md) · **Français**
2
- <!-- translation-of: README.md sha256:bcc2bfaf4621aaee -->
2
+ <!-- translation-of: README.md sha256:32d9cb44336efff6 -->
3
3
 
4
4
  # @ddd-ts-kit/kernel
5
5
 
@@ -17,7 +17,7 @@ standard et leurs doubles), `@ddd-ts-kit/kernel/declarations` (les décorateurs
17
17
  classe dit ce qu'elle est, voir « Déclarations ») et `@ddd-ts-kit/kernel/testing` (les bus
18
18
  enregistreurs d'une *spec*, voir « La *spec* d'une réaction »).
19
19
 
20
- ![Le domaine et l'application d'un contexte délimité importent le noyau ; le noyau déclare les ports sous forme de classes abstraites ; ses propres doubles, les packages d'adaptateurs du kit et l'infrastructure du contexte les implémentent ; la plateforme lie une implémentation à chaque port au démarrage](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/kernel-ports-and-implementations.fr.svg)
20
+ ![Le domaine et l'application d'un contexte délimité importent le noyau ; le noyau déclare les ports sous forme de classes abstraites ; ses propres doubles, les packages d'adaptateurs du kit et l'infrastructure du contexte les implémentent ; la plateforme lie une implémentation à chaque port au démarrage](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/kernel-ports-and-implementations.fr.svg)
21
21
 
22
22
  Le noyau dit **ce dont** un contexte a besoin (un `Clock`, un `UnitOfWork`, un `Logger`) et
23
23
  jamais **comment** : chaque port est une classe abstraite aux seuls membres abstraits. Ses
@@ -473,7 +473,7 @@ au chargement du fichier. Pourquoi, et la règle qui y tient l'agrégat :
473
473
  Un effet d'un événement du domaine n'existe que si le changement d'état qui l'a enregistré est
474
474
  validé.
475
475
 
476
- ![La chronologie d'une unité de travail : la transaction commence, deux saves mettent chacun en file l'événement que son panier a enregistré, le travail rend la main et les gestionnaires before-commit s'exécutent dans l'ordre d'enregistrement en voyant les deux saves, la transaction est validée, les gestionnaires after-commit s'exécutent, puis la commande répond ; un échec avant la validation annule tout et abandonne les événements en file](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/kernel-unit-of-work-timeline.fr.svg)
476
+ ![La chronologie d'une unité de travail : la transaction commence, deux saves mettent chacun en file l'événement que son panier a enregistré, le travail rend la main et les gestionnaires before-commit s'exécutent dans l'ordre d'enregistrement en voyant les deux saves, la transaction est validée, les gestionnaires after-commit s'exécutent, puis la commande répond ; un échec avant la validation annule tout et abandonne les événements en file](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/kernel-unit-of-work-timeline.fr.svg)
477
477
 
478
478
  Un agrégat enregistre ses événements ; rien dans un cas d'usage ne les remet. Un *repository*
479
479
  enveloppé par `dispatchingOnSave(repository, () => dispatcher)` les tire lui-même, une fois
@@ -1829,7 +1829,7 @@ return this.appointments.search(scoped(criteria, scope, { ids: 'id', filter: { t
1829
1829
  Du gestionnaire jusqu'au store, des critères sont vérifiés deux fois, et le périmètre de l'acteur
1830
1830
  voyage avec eux :
1831
1831
 
1832
- ![Le chemin des critères : dans l'application, le gestionnaire de requête les construit et le compilateur les vérifie, scoped leur joint le périmètre d'accès par un ET, le port de lecture reçoit les critères restreints ; dans l'infrastructure, planCriteria les valide par rapport à la définition, le plan est rendu par un traducteur d'un package ORM ou évalué en mémoire par un fake, et pageOfPlan transforme les lignes en la page que renvoie le gestionnaire](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/kernel-criteria-path.fr.svg)
1832
+ ![Le chemin des critères : dans l'application, le gestionnaire de requête les construit et le compilateur les vérifie, scoped leur joint le périmètre d'accès par un ET, le port de lecture reçoit les critères restreints ; dans l'infrastructure, planCriteria les valide par rapport à la définition, le plan est rendu par un traducteur d'un package ORM ou évalué en mémoire par un fake, et pageOfPlan transforme les lignes en la page que renvoie le gestionnaire](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/kernel-criteria-path.fr.svg)
1833
1833
 
1834
1834
  **Vérifiés par le compilateur.** `where` prend un champ de la ligne, un opérateur qui s'applique
1835
1835
  à ce que contient le champ, et une valeur de son type : `where('seats', 'contains', '2')`, un tri
package/README.md CHANGED
@@ -15,7 +15,7 @@ their doubles), `@ddd-ts-kit/kernel/declarations` (the decorators with which a c
15
15
  what it is, see "Declarations") and `@ddd-ts-kit/kernel/testing` (the recording buses of a
16
16
  spec, see "The spec of a reaction").
17
17
 
18
- ![The domain and the application of a bounded context import the kernel; the kernel declares the ports as abstract classes; its own doubles, the adapter packages of the kit and the infrastructure of the context implement them; the platform binds one implementation to each port at start-up](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/kernel-ports-and-implementations.svg)
18
+ ![The domain and the application of a bounded context import the kernel; the kernel declares the ports as abstract classes; its own doubles, the adapter packages of the kit and the infrastructure of the context implement them; the platform binds one implementation to each port at start-up](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/kernel-ports-and-implementations.svg)
19
19
 
20
20
  The kernel says **what** a context needs (a `Clock`, a `UnitOfWork`, a `Logger`) and never
21
21
  **how**: every port is an abstract class with abstract members only. Its implementations live
@@ -465,7 +465,7 @@ loads. Why, and the rule that holds the aggregate to it:
465
465
 
466
466
  An effect of a domain event exists only if the state change that recorded it is committed.
467
467
 
468
- ![A timeline of one unit of work: the transaction begins, two saves each queue the event their cart recorded, the work returns and the before-commit handlers run in recording order and see both saves, the transaction commits, the after-commit handlers run, then the command answers; a failure before the commit rolls everything back and drops the queued events](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/kernel-unit-of-work-timeline.svg)
468
+ ![A timeline of one unit of work: the transaction begins, two saves each queue the event their cart recorded, the work returns and the before-commit handlers run in recording order and see both saves, the transaction commits, the after-commit handlers run, then the command answers; a failure before the commit rolls everything back and drops the queued events](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/kernel-unit-of-work-timeline.svg)
469
469
 
470
470
  An aggregate records its events; nothing in a use case hands them over. A repository wrapped
471
471
  by `dispatchingOnSave(repository, () => dispatcher)` pulls them itself, once a method that was
@@ -1753,7 +1753,7 @@ return this.appointments.search(scoped(criteria, scope, { ids: 'id', filter: { t
1753
1753
  From the handler to the store, a criteria is checked twice, and the scope of the actor travels
1754
1754
  with it:
1755
1755
 
1756
- ![The path of a criteria: in the application, the query handler builds it and the compiler checks it, scoped joins the access scope by AND, the read port receives the scoped criteria; in the infrastructure, planCriteria validates it against the definition, the plan is rendered by a translator of an ORM package or evaluated in memory by a fake, and pageOfPlan turns the rows into the page the handler answers](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/kernel-criteria-path.svg)
1756
+ ![The path of a criteria: in the application, the query handler builds it and the compiler checks it, scoped joins the access scope by AND, the read port receives the scoped criteria; in the infrastructure, planCriteria validates it against the definition, the plan is rendered by a translator of an ORM package or evaluated in memory by a fake, and pageOfPlan turns the rows into the page the handler answers](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/kernel-criteria-path.svg)
1757
1757
 
1758
1758
  **Checked by the compiler.** `where` takes a field of the row, an operator that applies to
1759
1759
  what the field holds, and a value of its type: `where('seats', 'contains', '2')`, an order on
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ddd-ts-kit/kernel",
3
- "version": "0.113.2",
3
+ "version": "0.114.1",
4
4
  "description": "Framework-agnostic Domain-Driven Design (DDD) building blocks for TypeScript: aggregates, entities, value objects, domain events, CQRS command and query buses, unit of work and application ports, with an in-memory event bus.",
5
5
  "keywords": [
6
6
  "ddd",
@@ -18,11 +18,11 @@
18
18
  "license": "MIT",
19
19
  "repository": {
20
20
  "type": "git",
21
- "url": "git+https://github.com/gbourgeat/ddd-ts-kit.git",
21
+ "url": "git+https://github.com/ddd-ts-kit/ddd-ts-kit.git",
22
22
  "directory": "packages/kernel"
23
23
  },
24
- "homepage": "https://gbourgeat.github.io/ddd-ts-kit/packages/kernel/",
25
- "bugs": "https://github.com/gbourgeat/ddd-ts-kit/issues",
24
+ "homepage": "https://ddd-ts-kit.github.io/ddd-ts-kit/packages/kernel/",
25
+ "bugs": "https://github.com/ddd-ts-kit/ddd-ts-kit/issues",
26
26
  "publishConfig": {
27
27
  "access": "public",
28
28
  "provenance": true