@ddd-ts-kit/http 0.82.0 → 0.83.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:fa5bdfd59abf43b7 -->
2
+ <!-- translation-of: README.md sha256:26f5291b6c7fc8e3 -->
3
3
 
4
4
  # @ddd-ts-kit/http
5
5
 
@@ -87,7 +87,7 @@ async ({ params }) => {
87
87
  return found === undefined ? { status: 404 } : { status: 200, body: found };
88
88
  },
89
89
 
90
- // Écrivez : le cas d'usage lève un refus (NotFoundError, ou une fabrique d'une ConceptError) et la
90
+ // Écrivez : le cas d'usage lève un refus (NotFoundError, ou une fabrique d'une classe de refus) et la
91
91
  // route liste son code ; la réponse est un document problem, le même sur chaque route (voir « Erreurs »)
92
92
  responses: { 200: { description: 'The order.', body: order } },
93
93
  errors: ['NOT_FOUND'],
@@ -490,23 +490,31 @@ et la réponse est en `application/problem+json` (RFC 9457) :
490
490
 
491
491
  ![Comment la réponse à une erreur est choisie : une erreur qui n'est pas une DomainError répond 500 sans détail ; une DomainError reçoit le statut auquel son code correspond, d'après les défauts, les codes de l'application, sinon 422 ; un 5xx ne répond que son statut et son code, un 4xx un document problem avec son détail, ses faits exposés et ses erreurs de validation](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/http-package-error-answer.fr.svg)
492
492
 
493
- Un refus construit par une fabrique d'une `ConceptError` porte des faits, et ils sont privés :
494
- le document ne contient, sous `facts`, que ceux que sa fabrique a exposés par leur nom, et aucun
495
- membre `facts` quand elle n'en a exposé aucun.
493
+ Un refus construit par une fabrique porte des faits, et ils sont privés : le document ne
494
+ contient, sous `facts`, que ceux que sa fabrique a exposés par leur nom, et aucun membre `facts`
495
+ quand elle n'en a exposé aucun.
496
496
 
497
497
  <!-- checked sample -->
498
498
  ```ts
499
- import { ConceptError } from '@ddd-ts-kit/kernel';
499
+ import { DomainRefusal } from '@ddd-ts-kit/kernel';
500
500
 
501
- export class AppointmentError extends ConceptError {
502
- static slotTaken(calendarId: string, startsAt: Date) {
503
- return AppointmentError.refusal('SLOT_TAKEN', 'The slot is already held.', { calendarId, startsAt }).exposing('startsAt');
501
+ // domain/errors/codes.ts
502
+ export const SchedulingCodes = {
503
+ SlotTaken: 'SLOT_TAKEN',
504
+ } as const;
505
+
506
+ // domain/errors/slot-taken.error.ts
507
+ export class SlotTaken extends DomainRefusal {
508
+ readonly code = SchedulingCodes.SlotTaken;
509
+
510
+ static forCalendar(calendarId: string, startsAt: Date) {
511
+ return SlotTaken.refusal('The slot is already held.', { calendarId, startsAt }).exposing('startsAt');
504
512
  }
505
513
  }
506
514
  ```
507
515
 
508
516
  Avec `SLOT_TAKEN` associé à 409 (`createErrorMapper({ SLOT_TAKEN: 409 })`, plus bas), un
509
- gestionnaire qui lève `AppointmentError.slotTaken('c-1', startsAt)` répond :
517
+ gestionnaire qui lève `SlotTaken.forCalendar('c-1', startsAt)` répond :
510
518
 
511
519
  ```json
512
520
  { "type": "urn:problem:slot-taken", "title": "Conflict", "status": 409, "code": "SLOT_TAKEN",
@@ -543,8 +551,9 @@ export function startsAtOf(problem: Problem): string | undefined {
543
551
  ```
544
552
 
545
553
  Valeurs par défaut : `VALIDATION_FAILED` 422 (avec `issues`, chemins préfixés par la partie :
546
- `body.items.0.sku`), `NOT_FOUND` 404, `CONFLICT` 409, `INVARIANT_VIOLATION` 422, `UNAUTHORIZED`
547
- 401, `FORBIDDEN` 403, `NOT_ACCEPTABLE` 406, `PRECONDITION_FAILED` 412,
554
+ `body.items.0.sku`), `NOT_FOUND` 404, `CONFLICT` 409, `CONCURRENCY_CONFLICT` 409 (une mise à jour
555
+ perdue ou un interblocage : le client renvoie la requête), `INVARIANT_VIOLATION` 422,
556
+ `UNAUTHORIZED` 401, `FORBIDDEN` 403, `NOT_ACCEPTABLE` 406, `PRECONDITION_FAILED` 412,
548
557
  `UNSUPPORTED_MEDIA_TYPE` 415 (un corps ou un fichier d'un type que la route ne prend pas),
549
558
  `PRECONDITION_REQUIRED` 428, et pour les fichiers `FILE_NOT_FOUND` 404, `FILE_TOO_LARGE` 413. Un
550
559
  code du domaine sans correspondance répond 422 (`fallbackStatus` du second argument le change).
@@ -569,10 +578,10 @@ l'`ErrorReporter` du kernel, une seule fois, avec les identifiants de corrélati
569
578
  tenant de son contexte d'exécution (`context.execution`, présent dès que la requête HTTP est
570
579
  allée jusque-là) ; un 4xx, jamais.
571
580
 
572
- Un refus construit par une fabrique (`ConceptError`) répond son message comme `detail`, sauf si
573
- le message cite un fait que la fabrique n'a pas exposé : le client lit alors une phrase tirée du
574
- code (`INVALID_EMAIL` donne `Invalid email.`) et le message reste dans les journaux et les
575
- remontées d'erreurs. Un fait est repéré dans le message sous forme de texte, de nombre ou
581
+ Un refus construit par une fabrique (`DomainRefusal`, ou `ConceptError` de la forme
582
+ antérieure) répond son message comme `detail`, sauf si le message cite un fait que la fabrique
583
+ n'a pas exposé : le client lit alors une phrase tirée du code (`INVALID_EMAIL` donne `Invalid
584
+ email.`) et le message reste dans les journaux et les remontées d'erreurs. Un fait est repéré dans le message sous forme de texte, de nombre ou
576
585
  d'instant ISO ; un fait écrit autrement (une date formatée, un nombre arrondi) n'est pas
577
586
  vu : exposez donc ce qu'un client peut lire, et gardez le reste hors de la phrase.
578
587
 
package/README.md CHANGED
@@ -79,7 +79,7 @@ async ({ params }) => {
79
79
  return found === undefined ? { status: 404 } : { status: 200, body: found };
80
80
  },
81
81
 
82
- // Write: the use case throws a refusal (NotFoundError, or a factory of a ConceptError) and the
82
+ // Write: the use case throws a refusal (NotFoundError, or a factory of a refusal class) and the
83
83
  // route lists its code; the answer is a problem document, the same on every route (see "Errors")
84
84
  responses: { 200: { description: 'The order.', body: order } },
85
85
  errors: ['NOT_FOUND'],
@@ -466,23 +466,30 @@ A handler throws a `DomainError`; its `code` is mapped to a status in one place
466
466
 
467
467
  ![How the answer to an error is chosen: an error that is not a DomainError answers 500 with no detail; a DomainError gets the status its code maps to, from the defaults, the codes of the application, else 422; a 5xx answers its status and code only, a 4xx a problem document with its detail, its exposed facts and its issues](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/http-package-error-answer.svg)
468
468
 
469
- A refusal built by a factory of a `ConceptError` carries facts, and they are private: the
470
- document holds, under `facts`, only the ones its factory exposed by name, and no `facts` member
471
- when it exposed none.
469
+ A refusal built by a factory carries facts, and they are private: the document holds, under
470
+ `facts`, only the ones its factory exposed by name, and no `facts` member when it exposed none.
472
471
 
473
472
  <!-- checked sample -->
474
473
  ```ts
475
- import { ConceptError } from '@ddd-ts-kit/kernel';
474
+ import { DomainRefusal } from '@ddd-ts-kit/kernel';
476
475
 
477
- export class AppointmentError extends ConceptError {
478
- static slotTaken(calendarId: string, startsAt: Date) {
479
- return AppointmentError.refusal('SLOT_TAKEN', 'The slot is already held.', { calendarId, startsAt }).exposing('startsAt');
476
+ // domain/errors/codes.ts
477
+ export const SchedulingCodes = {
478
+ SlotTaken: 'SLOT_TAKEN',
479
+ } as const;
480
+
481
+ // domain/errors/slot-taken.error.ts
482
+ export class SlotTaken extends DomainRefusal {
483
+ readonly code = SchedulingCodes.SlotTaken;
484
+
485
+ static forCalendar(calendarId: string, startsAt: Date) {
486
+ return SlotTaken.refusal('The slot is already held.', { calendarId, startsAt }).exposing('startsAt');
480
487
  }
481
488
  }
482
489
  ```
483
490
 
484
491
  With `SLOT_TAKEN` mapped to 409 (`createErrorMapper({ SLOT_TAKEN: 409 })`, below), a handler
485
- that throws `AppointmentError.slotTaken('c-1', startsAt)` answers:
492
+ that throws `SlotTaken.forCalendar('c-1', startsAt)` answers:
486
493
 
487
494
  ```json
488
495
  { "type": "urn:problem:slot-taken", "title": "Conflict", "status": 409, "code": "SLOT_TAKEN",
@@ -519,7 +526,8 @@ export function startsAtOf(problem: Problem): string | undefined {
519
526
  ```
520
527
 
521
528
  Defaults: `VALIDATION_FAILED` 422 (with `issues`, paths prefixed by the part:
522
- `body.items.0.sku`), `NOT_FOUND` 404, `CONFLICT` 409, `INVARIANT_VIOLATION` 422, `UNAUTHORIZED`
529
+ `body.items.0.sku`), `NOT_FOUND` 404, `CONFLICT` 409, `CONCURRENCY_CONFLICT` 409 (a lost update
530
+ or a deadlock: the client sends the request again), `INVARIANT_VIOLATION` 422, `UNAUTHORIZED`
523
531
  401, `FORBIDDEN` 403, `NOT_ACCEPTABLE` 406, `PRECONDITION_FAILED` 412, `UNSUPPORTED_MEDIA_TYPE` 415
524
532
  (a body or a file of a type the route does not take), `PRECONDITION_REQUIRED` 428, and for files
525
533
  `FILE_NOT_FOUND` 404, `FILE_TOO_LARGE` 413. A domain code that is not mapped answers 422
@@ -544,10 +552,10 @@ from the `onError` hook, and report it to the error tracker with
544
552
  `ErrorReporter`, once, with the correlation, actor and tenant ids of its execution context
545
553
  (`context.execution`, present once the request got that far); a 4xx never does.
546
554
 
547
- A refusal built by a factory (`ConceptError`) answers its message as `detail` unless the message
548
- quotes a fact the factory did not expose: then the client reads a sentence made from the code
549
- (`INVALID_EMAIL` gives `Invalid email.`) and the message stays in the logs and the error
550
- reports. A fact is found in the message as a text, a number or an ISO instant; a fact written
555
+ A refusal built by a factory (`DomainRefusal`, or `ConceptError` of the earlier form) answers
556
+ its message as `detail` unless the message quotes a fact the factory did not expose: then the
557
+ client reads a sentence made from the code (`INVALID_EMAIL` gives `Invalid email.`) and the
558
+ message stays in the logs and the error reports. A fact is found in the message as a text, a number or an ISO instant; a fact written
551
559
  another way (a formatted date, a rounded number) is not seen, so expose what a client may
552
560
  read and keep the rest out of the sentence.
553
561
 
@@ -1 +1 @@
1
- {"version":3,"file":"default-error-mapping.d.ts","sourceRoot":"","sources":["../../src/error/default-error-mapping.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,eAAO,MAAM,qBAAqB,EAAE,YAanC,CAAC"}
1
+ {"version":3,"file":"default-error-mapping.d.ts","sourceRoot":"","sources":["../../src/error/default-error-mapping.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,eAAO,MAAM,qBAAqB,EAAE,YAcnC,CAAC"}
@@ -2,6 +2,7 @@ export const DEFAULT_ERROR_MAPPING = {
2
2
  VALIDATION_FAILED: 422,
3
3
  NOT_FOUND: 404,
4
4
  CONFLICT: 409,
5
+ CONCURRENCY_CONFLICT: 409,
5
6
  INVARIANT_VIOLATION: 422,
6
7
  UNAUTHORIZED: 401,
7
8
  FORBIDDEN: 403,
@@ -1 +1 @@
1
- {"version":3,"file":"default-error-mapping.js","sourceRoot":"","sources":["../../src/error/default-error-mapping.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,qBAAqB,GAAiB;IACjD,iBAAiB,EAAE,GAAG;IACtB,SAAS,EAAE,GAAG;IACd,QAAQ,EAAE,GAAG;IACb,mBAAmB,EAAE,GAAG;IACxB,YAAY,EAAE,GAAG;IACjB,SAAS,EAAE,GAAG;IACd,cAAc,EAAE,GAAG;IACnB,mBAAmB,EAAE,GAAG;IACxB,qBAAqB,EAAE,GAAG;IAC1B,cAAc,EAAE,GAAG;IACnB,cAAc,EAAE,GAAG;IACnB,sBAAsB,EAAE,GAAG;CAC5B,CAAC"}
1
+ {"version":3,"file":"default-error-mapping.js","sourceRoot":"","sources":["../../src/error/default-error-mapping.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,qBAAqB,GAAiB;IACjD,iBAAiB,EAAE,GAAG;IACtB,SAAS,EAAE,GAAG;IACd,QAAQ,EAAE,GAAG;IACb,oBAAoB,EAAE,GAAG;IACzB,mBAAmB,EAAE,GAAG;IACxB,YAAY,EAAE,GAAG;IACjB,SAAS,EAAE,GAAG;IACd,cAAc,EAAE,GAAG;IACnB,mBAAmB,EAAE,GAAG;IACxB,qBAAqB,EAAE,GAAG;IAC1B,cAAc,EAAE,GAAG;IACnB,cAAc,EAAE,GAAG;IACnB,sBAAsB,EAAE,GAAG;CAC5B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ConceptError, DomainError } from '@ddd-ts-kit/kernel';
1
+ import { DomainError, FactualRefusal } from '@ddd-ts-kit/kernel';
2
2
  import { ValidationError } from '@ddd-ts-kit/validation';
3
3
  import { INTERNAL_ERROR_CODE } from './internal-error-code.js';
4
4
  import { statusTitle } from './status-title.js';
@@ -29,7 +29,7 @@ export function toProblem(error, mapper, requestId) {
29
29
  * message stays where the error is logged and reported.
30
30
  */
31
31
  function publicDetail(error) {
32
- if (!(error instanceof ConceptError)) {
32
+ if (!(error instanceof FactualRefusal)) {
33
33
  return error.message;
34
34
  }
35
35
  const exposed = error.exposedFacts;
@@ -56,7 +56,7 @@ function sentenceOf(code) {
56
56
  }
57
57
  /** Only what the factory of the refusal exposed by name: a fact never leaves the process by default. */
58
58
  function exposedFacts(error) {
59
- if (!(error instanceof ConceptError)) {
59
+ if (!(error instanceof FactualRefusal)) {
60
60
  return {};
61
61
  }
62
62
  const facts = error.exposedFacts;
@@ -1 +1 @@
1
- {"version":3,"file":"to-problem.js","sourceRoot":"","sources":["../../src/error/to-problem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAqB,MAAM,oBAAoB,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,UAAU,SAAS,CAAC,KAAc,EAAE,MAAmB,EAAE,SAAiB;IAC9E,IAAI,CAAC,CAAC,KAAK,YAAY,WAAW,CAAC,EAAE,CAAC;QACpC,OAAO,eAAe,CAAC,SAAS,CAAC,CAAC;IACpC,CAAC;IAED,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK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,EAAE,uBAAuB;QAC9B,MAAM,EAAE,GAAG;QACX,IAAI,EAAE,mBAAmB;QACzB,SAAS;KACV,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ddd-ts-kit/http",
3
- "version": "0.82.0",
3
+ "version": "0.83.1",
4
4
  "description": "Framework-agnostic route definitions with Express, Fastify, Hono and NestJS adapters and OpenAPI 3.1 generation.",
5
5
  "keywords": [
6
6
  "ddd",
@@ -71,8 +71,8 @@
71
71
  "dist"
72
72
  ],
73
73
  "dependencies": {
74
- "@ddd-ts-kit/kernel": "0.82.0",
75
- "@ddd-ts-kit/validation": "0.82.0"
74
+ "@ddd-ts-kit/kernel": "0.83.1",
75
+ "@ddd-ts-kit/validation": "0.83.1"
76
76
  },
77
77
  "peerDependencies": {
78
78
  "@nestjs/common": ">=11.0.0",
@@ -103,7 +103,7 @@
103
103
  }
104
104
  },
105
105
  "devDependencies": {
106
- "@ddd-ts-kit/testing": "0.82.0",
106
+ "@ddd-ts-kit/testing": "0.83.1",
107
107
  "@hono/node-server": "^2.1.4",
108
108
  "@nestjs/common": "^12.1.2",
109
109
  "@nestjs/core": "^12.1.2",