@event-nest/core 3.4.2 → 4.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@event-nest/core",
3
- "version": "3.4.2",
3
+ "version": "4.0.0",
4
4
  "license": "MIT",
5
5
  "author": "Nick Tsitlakidis",
6
6
  "description": "Event sourcing module for NestJS. It provides a set of decorators and classes to build an application based on event sourcing.",
@@ -18,12 +18,12 @@
18
18
  "url": "https://github.com/NickTsitlakidis/event-nest.git"
19
19
  },
20
20
  "engines": {
21
- "node": ">= 18"
21
+ "node": ">= 20"
22
22
  },
23
23
  "type": "commonjs",
24
24
  "peerDependencies": {
25
- "@nestjs/common": "^9.0.0 || ^10.0.0",
26
- "@nestjs/core": "^9.0.0 || ^10.0.0",
25
+ "@nestjs/common": "^^10.0.0 || ^11.0.0",
26
+ "@nestjs/core": "^10.0.0 || ^11.0.0",
27
27
  "reflect-metadata": "^0.1.12 || ^0.2.0",
28
28
  "rxjs": "^7.2.0",
29
29
  "tslib": "^2.3.0"
@@ -8,7 +8,7 @@ export declare abstract class AggregateRoot {
8
8
  private _version;
9
9
  protected constructor(_id: string, logger?: Logger);
10
10
  /**
11
- * @deprecated Use {@link uncommittedEvents} instead
11
+ * @deprecated Use {@link uncommittedEvents} instead. It will be removed in version 5.x
12
12
  */
13
13
  get appendedEvents(): Array<AggregateRootEvent<object>>;
14
14
  get id(): string;
@@ -36,7 +36,7 @@ export declare abstract class AggregateRoot {
36
36
  * handlers will be called to take care of async updates.
37
37
  * Call this once all the events you want, have been appended.
38
38
  */
39
- commit(): Promise<AggregateRoot>;
39
+ commit(): Promise<this>;
40
40
  /**
41
41
  * Publishes all the provided events using a connected event publisher. To connect a publisher, use the
42
42
  * {@link EventStore}. Normally this should never be called by application logic. Instead, after you append the
@@ -16,7 +16,7 @@ class AggregateRoot {
16
16
  this._logger = (0, es_toolkit_1.isNil)(logger) ? new common_1.Logger(AggregateRoot.name) : logger;
17
17
  }
18
18
  /**
19
- * @deprecated Use {@link uncommittedEvents} instead
19
+ * @deprecated Use {@link uncommittedEvents} instead. It will be removed in version 5.x
20
20
  */
21
21
  get appendedEvents() {
22
22
  return [...this._uncommittedEvents];