@ddd-ts-kit/openfga 0.17.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.fr.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [English](README.md) · **Français**
2
- <!-- translation-of: README.md sha256:6f08f173a0b20f1f -->
2
+ <!-- translation-of: README.md sha256:a99cc5ff12d3495a -->
3
3
 
4
4
  # @ddd-ts-kit/openfga
5
5
 
@@ -239,7 +239,7 @@ où l'agrégat existe sans sa relation :
239
239
  ```ts
240
240
  // À éviter : un gestionnaire de la phase par défaut (before-commit) s'exécute dans la transaction,
241
241
  // si bien qu'une annulation après lui laisse sur le serveur un tuple pour un rendez-vous qui n'existe pas.
242
- @DomainEventHandler(AppointmentBooked, { name: AppointmentBooked.eventName })
242
+ @DomainEventHandler(AppointmentBooked)
243
243
  export class RelationshipsOnAppointmentBooked { /* ... */ }
244
244
  ```
245
245
 
@@ -266,7 +266,7 @@ export abstract class SchedulingRelationships {
266
266
  }
267
267
 
268
268
  // Écrire : après la validation, jamais quand la transaction a été annulée.
269
- @DomainEventHandler(AppointmentBooked, { name: AppointmentBooked.eventName, phase: 'after-commit' })
269
+ @DomainEventHandler(AppointmentBooked, { phase: 'after-commit' })
270
270
  export class RelationshipsOnAppointmentBooked implements DomainEventHandler<AppointmentBooked> {
271
271
  constructor(private readonly relationships: SchedulingRelationships) {}
272
272
 
package/README.md CHANGED
@@ -236,7 +236,7 @@ relationship:
236
236
  ```ts
237
237
  // Instead of: a handler of the default phase (before-commit) runs inside the transaction,
238
238
  // so a rollback after it leaves on the server a tuple for an appointment that does not exist.
239
- @DomainEventHandler(AppointmentBooked, { name: AppointmentBooked.eventName })
239
+ @DomainEventHandler(AppointmentBooked)
240
240
  export class RelationshipsOnAppointmentBooked { /* ... */ }
241
241
  ```
242
242
 
@@ -263,7 +263,7 @@ export abstract class SchedulingRelationships {
263
263
  }
264
264
 
265
265
  // Write: after the commit, never when the transaction rolled back.
266
- @DomainEventHandler(AppointmentBooked, { name: AppointmentBooked.eventName, phase: 'after-commit' })
266
+ @DomainEventHandler(AppointmentBooked, { phase: 'after-commit' })
267
267
  export class RelationshipsOnAppointmentBooked implements DomainEventHandler<AppointmentBooked> {
268
268
  constructor(private readonly relationships: SchedulingRelationships) {}
269
269
 
package/package.json CHANGED
@@ -1,7 +1,19 @@
1
1
  {
2
2
  "name": "@ddd-ts-kit/openfga",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "description": "The relation tuple store and the authorizer of @ddd-ts-kit/auth on OpenFGA, with the authorization model generated from the relationship schema.",
5
+ "keywords": [
6
+ "ddd",
7
+ "domain-driven-design",
8
+ "clean-architecture",
9
+ "hexagonal-architecture",
10
+ "typescript",
11
+ "openfga",
12
+ "authorization",
13
+ "rebac",
14
+ "zanzibar",
15
+ "fine-grained-authorization"
16
+ ],
5
17
  "license": "MIT",
6
18
  "repository": {
7
19
  "type": "git",
@@ -30,8 +42,8 @@
30
42
  "dist"
31
43
  ],
32
44
  "dependencies": {
33
- "@ddd-ts-kit/auth": "0.17.0",
34
- "@ddd-ts-kit/kernel": "0.17.0"
45
+ "@ddd-ts-kit/auth": "0.18.0",
46
+ "@ddd-ts-kit/kernel": "0.18.0"
35
47
  },
36
48
  "peerDependencies": {
37
49
  "@openfga/sdk": "^0.9.7"
@@ -42,7 +54,7 @@
42
54
  }
43
55
  },
44
56
  "devDependencies": {
45
- "@ddd-ts-kit/testing": "0.17.0",
57
+ "@ddd-ts-kit/testing": "0.18.0",
46
58
  "@openfga/sdk": "0.9.7"
47
59
  }
48
60
  }