@gravito/flare 4.0.0 → 4.0.1

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/dist/index.cjs CHANGED
@@ -832,7 +832,8 @@ var RateLimitMiddleware = class {
832
832
  */
833
833
  buckets = /* @__PURE__ */ new Map();
834
834
  /**
835
- * Cache store for rate limit state (memory or distributed).
835
+ * Cache store for distributed rate limiting.
836
+ * 分散式限流使用的快取儲存
836
837
  */
837
838
  store;
838
839
  /**
package/dist/index.d.cts CHANGED
@@ -1038,7 +1038,8 @@ declare class RateLimitMiddleware implements ChannelMiddleware {
1038
1038
  */
1039
1039
  private buckets;
1040
1040
  /**
1041
- * Cache store for rate limit state (memory or distributed).
1041
+ * Cache store for distributed rate limiting.
1042
+ * 分散式限流使用的快取儲存
1042
1043
  */
1043
1044
  private store;
1044
1045
  /**
package/dist/index.d.ts CHANGED
@@ -1038,7 +1038,8 @@ declare class RateLimitMiddleware implements ChannelMiddleware {
1038
1038
  */
1039
1039
  private buckets;
1040
1040
  /**
1041
- * Cache store for rate limit state (memory or distributed).
1041
+ * Cache store for distributed rate limiting.
1042
+ * 分散式限流使用的快取儲存
1042
1043
  */
1043
1044
  private store;
1044
1045
  /**
package/dist/index.js CHANGED
@@ -790,7 +790,8 @@ var RateLimitMiddleware = class {
790
790
  */
791
791
  buckets = /* @__PURE__ */ new Map();
792
792
  /**
793
- * Cache store for rate limit state (memory or distributed).
793
+ * Cache store for distributed rate limiting.
794
+ * 分散式限流使用的快取儲存
794
795
  */
795
796
  store;
796
797
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravito/flare",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -27,7 +27,7 @@
27
27
  "typecheck": "bun tsc -p tsconfig.json --noEmit --skipLibCheck",
28
28
  "test:coverage": "bun test --timeout=10000 --coverage --coverage-reporter=lcov --coverage-dir coverage && bun run --bun scripts/check-coverage.ts",
29
29
  "test:ci": "bun test --timeout=10000 --coverage --coverage-reporter=lcov --coverage-dir coverage && bun run --bun scripts/check-coverage.ts",
30
- "test:unit": "bun test tests/ --timeout=10000",
30
+ "test:unit": "bun test $(find tests -name '*.test.ts' ! -name '*.integration.test.ts' 2>/dev/null | tr '\\n' ' ') --timeout=10000",
31
31
  "test:integration": "test $(find tests -name '*.integration.test.ts' 2>/dev/null | wc -l) -gt 0 && find tests -name '*.integration.test.ts' -print0 | xargs -0 bun test --timeout=10000 || echo 'No integration tests found'"
32
32
  },
33
33
  "keywords": [
@@ -42,13 +42,13 @@
42
42
  "author": "Carl Lee <carllee0520@gmail.com>",
43
43
  "license": "MIT",
44
44
  "dependencies": {
45
- "@gravito/core": "workspace:*",
45
+ "@gravito/core": "^1.6.1",
46
46
  "@aws-sdk/client-sns": "^3.734.0"
47
47
  },
48
48
  "peerDependencies": {
49
- "@gravito/stream": "workspace:*",
50
- "@gravito/signal": "workspace:*",
51
- "@gravito/radiance": "workspace:*"
49
+ "@gravito/stream": "^2.0.2",
50
+ "@gravito/signal": "^3.0.4",
51
+ "@gravito/radiance": "^1.0.4"
52
52
  },
53
53
  "devDependencies": {
54
54
  "bun-types": "latest",