@hazeljs/resilience 0.7.9 → 0.8.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.
Files changed (2) hide show
  1. package/README.md +7 -1
  2. package/package.json +6 -3
package/README.md CHANGED
@@ -27,7 +27,13 @@ npm install @hazeljs/resilience
27
27
 
28
28
  ```typescript
29
29
  import { Injectable } from '@hazeljs/core';
30
- import { WithCircuitBreaker, WithRetry, WithTimeout, WithBulkhead, Fallback } from '@hazeljs/resilience';
30
+ import {
31
+ WithCircuitBreaker,
32
+ WithRetry,
33
+ WithTimeout,
34
+ WithBulkhead,
35
+ Fallback,
36
+ } from '@hazeljs/resilience';
31
37
 
32
38
  @Injectable()
33
39
  class PaymentService {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hazeljs/resilience",
3
- "version": "0.7.9",
3
+ "version": "0.8.0",
4
4
  "description": "Fault-tolerance and resilience patterns for HazelJS - Circuit Breaker, Retry, Bulkhead, Timeout, Rate Limiter",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,10 +18,13 @@
18
18
  "clean": "rm -rf dist"
19
19
  },
20
20
  "dependencies": {
21
- "@hazeljs/core": "^0.7.9",
22
21
  "reflect-metadata": "^0.2.2"
23
22
  },
23
+ "peerDependencies": {
24
+ "@hazeljs/core": ">=0.2.0-beta.0"
25
+ },
24
26
  "devDependencies": {
27
+ "@hazeljs/core": "^0.8.0",
25
28
  "@types/jest": "^29.5.14",
26
29
  "@types/node": "^20.19.39",
27
30
  "@typescript-eslint/eslint-plugin": "^8.58.0",
@@ -59,5 +62,5 @@
59
62
  "url": "https://github.com/hazeljs/hazel-js/issues"
60
63
  },
61
64
  "homepage": "https://hazeljs.ai",
62
- "gitHead": "28c21c509aeca3bf2d0878fbee737d906b654c67"
65
+ "gitHead": "e0ed98ca074dd4f7472816d3c32ef576900dcca6"
63
66
  }