@velony/domain 3.2.0 → 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 +1 -1
- package/dist/aggregate-root.d.ts +3 -3
- package/dist/aggregate-root.js +2 -2
- package/dist/aggregate-root.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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 (
|
|
228
|
+
- `pushDomainEvent(event: AnyDomainEvent): void` - Add event (public)
|
|
229
229
|
|
|
230
230
|
### `DomainEvent<TType>`
|
|
231
231
|
- `id: string` - Unique event ID (UUIDv7)
|
package/dist/aggregate-root.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
31
|
+
* Public to allow external code to record events on the aggregate.
|
|
32
32
|
*
|
|
33
33
|
* @param event - The domain event to add
|
|
34
|
-
* @
|
|
34
|
+
* @public
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
pushDomainEvent(event: AnyDomainEvent): void;
|
|
37
37
|
}
|
|
38
38
|
export {};
|
package/dist/aggregate-root.js
CHANGED
|
@@ -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
|
-
*
|
|
35
|
+
* Public to allow external code to record events on the aggregate.
|
|
36
36
|
*
|
|
37
37
|
* @param event - The domain event to add
|
|
38
|
-
* @
|
|
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;
|
|
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/dist/index.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ export { Id } from './id';
|
|
|
15
15
|
export { ValueObject } from './value-object';
|
|
16
16
|
export { PrimitiveValueObject } from './primitive-value-object';
|
|
17
17
|
export { AggregateRoot } from './aggregate-root';
|
|
18
|
-
export { DomainEvent } from './domain-event';
|
|
18
|
+
export { DomainEvent, type AnyDomainEvent, type DomainEventRegistry, } from './domain-event';
|
|
19
19
|
export { StoragePath } from './value-objects/storage-path.vo';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAEH,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,2BAA0B;AAAjB,wFAAA,EAAE,OAAA;AACX,+CAA6C;AAApC,2GAAA,WAAW,OAAA;AACpB,mEAAgE;AAAvD,8HAAA,oBAAoB,OAAA;AAC7B,mDAAiD;AAAxC,+GAAA,aAAa,OAAA;AACtB,+
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAEH,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,2BAA0B;AAAjB,wFAAA,EAAE,OAAA;AACX,+CAA6C;AAApC,2GAAA,WAAW,OAAA;AACpB,mEAAgE;AAAvD,8HAAA,oBAAoB,OAAA;AAC7B,mDAAiD;AAAxC,+GAAA,aAAa,OAAA;AACtB,+CAIwB;AAHtB,2GAAA,WAAW,OAAA;AAIb,mEAA8D;AAArD,8GAAA,WAAW,OAAA"}
|