@velony/domain 3.2.1 → 3.3.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.md CHANGED
@@ -225,7 +225,7 @@ StoragePath.create('files//data'); // Error: Storage path contains invalid doubl
225
225
  ### `AggregateRoot<TIdentifier>`
226
226
  - Extends `Entity<TIdentifier>`
227
227
  - `pullDomainEvents(): AnyDomainEvent[]` - Retrieve and clear events
228
- - `pushDomainEvent(event: AnyDomainEvent): void` - Add event (protected)
228
+ - `pushDomainEvent(event: AnyDomainEvent): void` - Add event (public)
229
229
 
230
230
  ### `DomainEvent<TType>`
231
231
  - `id: string` - Unique event ID (UUIDv7)
@@ -28,11 +28,11 @@ export declare abstract class AggregateRoot<TIdentifier extends Id<string | numb
28
28
  pullDomainEvents(): AnyDomainEvent[];
29
29
  /**
30
30
  * Adds a domain event to the aggregate's event collection.
31
- * Protected to allow only the aggregate itself to record events.
31
+ * Public to allow external code to record events on the aggregate.
32
32
  *
33
33
  * @param event - The domain event to add
34
- * @protected
34
+ * @public
35
35
  */
36
- protected pushDomainEvent(event: AnyDomainEvent): void;
36
+ pushDomainEvent(event: AnyDomainEvent): void;
37
37
  }
38
38
  export {};
@@ -32,10 +32,10 @@ class AggregateRoot extends entity_1.Entity {
32
32
  }
33
33
  /**
34
34
  * Adds a domain event to the aggregate's event collection.
35
- * Protected to allow only the aggregate itself to record events.
35
+ * Public to allow external code to record events on the aggregate.
36
36
  *
37
37
  * @param event - The domain event to add
38
- * @protected
38
+ * @public
39
39
  */
40
40
  pushDomainEvent(event) {
41
41
  this._domainEvents.push(event);
@@ -1 +1 @@
1
- {"version":3,"file":"aggregate-root.js","sourceRoot":"","sources":["../src/aggregate-root.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAKlC;;;;;;;;GAQG;AACH,MAAsB,aAEpB,SAAQ,eAAmB;IACV,CAAC,oBAAoB,CAAC,CAAO;IAE9C;;;OAGG;IACK,aAAa,GAAqB,EAAE,CAAC;IAE7C;;;;;;OAMG;IACI,gBAAgB;QACrB,MAAM,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC;QACvC,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;QACxB,OAAO,MAAM,CAAC;IAChB,CAAC;IAED;;;;;;OAMG;IACO,eAAe,CAAC,KAAqB;QAC7C,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;CACF;AAlCD,sCAkCC"}
1
+ {"version":3,"file":"aggregate-root.js","sourceRoot":"","sources":["../src/aggregate-root.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAKlC;;;;;;;;GAQG;AACH,MAAsB,aAEpB,SAAQ,eAAmB;IACV,CAAC,oBAAoB,CAAC,CAAO;IAE9C;;;OAGG;IACK,aAAa,GAAqB,EAAE,CAAC;IAE7C;;;;;;OAMG;IACI,gBAAgB;QACrB,MAAM,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC;QACvC,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;QACxB,OAAO,MAAM,CAAC;IAChB,CAAC;IAED;;;;;;OAMG;IACI,eAAe,CAAC,KAAqB;QAC1C,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;CACF;AAlCD,sCAkCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velony/domain",
3
- "version": "3.2.1",
3
+ "version": "3.3.0",
4
4
  "description": "TypeScript library providing core building blocks for Domain-Driven Design (DDD) applications",
5
5
  "keywords": [
6
6
  "ddd",