@hazeljs/saga 0.8.1 → 0.8.6

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.
Files changed (2) hide show
  1. package/README.md +4 -3
  2. package/package.json +8 -4
package/README.md CHANGED
@@ -27,13 +27,14 @@ npm install @hazeljs/saga
27
27
 
28
28
  ### Peer Dependencies
29
29
 
30
- Ensure you have these installed as they are required for decorators and event-driven sagas:
30
+ `@hazeljs/saga` works with `@hazeljs/core` for runtime integration and `@hazeljs/event-emitter` for choreography events. Install them alongside:
31
31
 
32
32
  ```bash
33
- npm install reflect-metadata
34
- npm install @hazeljs/event-emitter
33
+ npm install @hazeljs/core @hazeljs/event-emitter
35
34
  ```
36
35
 
36
+ > You do **not** need to install or import `reflect-metadata` yourself. `@hazeljs/saga` declares it as a regular dependency and its decorator modules load it via a side-effect import. Just enable `experimentalDecorators` in your `tsconfig.json`.
37
+
37
38
  ---
38
39
 
39
40
  ## Quick Start (Orchestration)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hazeljs/saga",
3
- "version": "0.8.1",
3
+ "version": "0.8.6",
4
4
  "description": "Saga pattern implementation for HazelJS - Orchestration and Choreography for distributed transactions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -17,11 +17,15 @@
17
17
  "clean": "rm -rf dist"
18
18
  },
19
19
  "dependencies": {
20
- "@hazeljs/core": "^0.8.1",
21
- "@hazeljs/event-emitter": "^0.8.1",
22
20
  "reflect-metadata": "^0.2.2"
23
21
  },
22
+ "peerDependencies": {
23
+ "@hazeljs/core": "^0.8.6",
24
+ "@hazeljs/event-emitter": "^0.8.6"
25
+ },
24
26
  "devDependencies": {
27
+ "@hazeljs/core": "^0.8.5",
28
+ "@hazeljs/event-emitter": "^0.8.5",
25
29
  "@types/jest": "^29.5.14",
26
30
  "@types/node": "^20.19.39",
27
31
  "@typescript-eslint/eslint-plugin": "^8.58.0",
@@ -36,5 +40,5 @@
36
40
  },
37
41
  "author": "Muhammad Arslan <muhammad.arslan@hazeljs.ai>",
38
42
  "license": "Apache-2.0",
39
- "gitHead": "8b7685d1250c4622f25d83992f58e13a59bb3dba"
43
+ "gitHead": "49c952f8081c2613273eda80285a2022b91dcfa8"
40
44
  }