@twin.org/core 0.0.1-next.50 → 0.0.1-next.51

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.
@@ -3985,7 +3985,7 @@ class AsyncCache {
3985
3985
  static async set(key, value, ttlMs) {
3986
3986
  AsyncCache._cache[key] = {
3987
3987
  response: Promise.resolve(value),
3988
- expires: ttlMs === 0 ? 0 : Date.now() + (ttlMs ?? 1000)
3988
+ expires: Date.now() + (ttlMs ?? 1000)
3989
3989
  };
3990
3990
  }
3991
3991
  /**
@@ -3983,7 +3983,7 @@ class AsyncCache {
3983
3983
  static async set(key, value, ttlMs) {
3984
3984
  AsyncCache._cache[key] = {
3985
3985
  response: Promise.resolve(value),
3986
- expires: ttlMs === 0 ? 0 : Date.now() + (ttlMs ?? 1000)
3986
+ expires: Date.now() + (ttlMs ?? 1000)
3987
3987
  };
3988
3988
  }
3989
3989
  /**
package/docs/changelog.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @twin.org/core - Changelog
2
2
 
3
+ ## [0.0.1-next.51](https://github.com/twinfoundation/framework/compare/core-v0.0.1-next.50...core-v0.0.1-next.51) (2025-03-27)
4
+
5
+
6
+ ### Features
7
+
8
+ * simplify async set ([#121](https://github.com/twinfoundation/framework/issues/121)) ([2693c32](https://github.com/twinfoundation/framework/commit/2693c325266fd1a0aede6f1336c8b254c981a9ca))
9
+
3
10
  ## [0.0.1-next.50](https://github.com/twinfoundation/framework/compare/core-v0.0.1-next.49...core-v0.0.1-next.50) (2025-03-26)
4
11
 
5
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/core",
3
- "version": "0.0.1-next.50",
3
+ "version": "0.0.1-next.51",
4
4
  "description": "Helper methods/classes for data type checking/validation/guarding/error handling",
5
5
  "repository": {
6
6
  "type": "git",