@dereekb/dbx-components-mcp 13.25.1 → 13.27.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.
@@ -10,7 +10,7 @@ var __export = (target, all) => {
10
10
  // packages/dbx-components-mcp/package.json
11
11
  var package_default = {
12
12
  name: "@dereekb/dbx-components-mcp",
13
- version: "13.25.1",
13
+ version: "13.27.0",
14
14
  type: "module",
15
15
  bin: {
16
16
  "dbx-components-mcp": "dbx-components-mcp.js"
@@ -21,8 +21,8 @@ var package_default = {
21
21
  "ts-morph": "^21.0.0"
22
22
  },
23
23
  peerDependencies: {
24
- "@dereekb/dbx-cli": "13.25.1",
25
- "@dereekb/util": "13.25.1"
24
+ "@dereekb/dbx-cli": "13.27.0",
25
+ "@dereekb/util": "13.27.0"
26
26
  }
27
27
  };
28
28
 
@@ -4947,6 +4947,45 @@
4947
4947
  "forward-function"
4948
4948
  ]
4949
4949
  },
4950
+ {
4951
+ "slug": "expiring-cached-getter",
4952
+ "name": "expiringCachedGetter",
4953
+ "kind": "factory",
4954
+ "category": "getter",
4955
+ "module": "@dereekb/util",
4956
+ "subpath": "getter/getter.cache.expiring",
4957
+ "signature": "expiringCachedGetter(config: ExpiringCachedGetterConfig<T, A>): ExpiringCachedGetter<T, A>",
4958
+ "description": "Creates an {@link ExpiringCachedGetter} from the input configuration.\n\nThe value is loaded and cached by an internal {@link cachedGetter}; this getter layers expiration on top —\nonce the cached value expires the next retrieval resets the internal cache and reloads. Expiration is\nconfigured one of two ways:\n\n- **Fixed TTL** — pass `ttl` (milliseconds); the value expires that long after it is loaded.\n- **Value-derived** — pass an `expiration` function deriving the expiration Date/epoch-ms from the loaded\n value (e.g. `(value) => value.expiresAt`, or `(value, loadedAt) => addMilliseconds(loadedAt, ttlOf(value))`).\n Returning null/undefined means \"never expires\". `expiration` takes precedence over `ttl`; with neither set\n the value never expires (matching {@link cachedGetter}).\n\nA freshly-loaded value is returned without an expiration check; set `checkExpirationOnFirstGet` to reject a\ndead-on-arrival value with an error instead. Set `dynamic` to recompute the expiration details on every\nretrieval rather than once at load. Use {@link ExpiringCachedGetter.expirationDetails} to inspect the current\nexpiration state.",
4959
+ "params": [
4960
+ {
4961
+ "name": "config",
4962
+ "type": "ExpiringCachedGetterConfig<T, A>",
4963
+ "description": "- The getter to cache plus its expiration configuration.",
4964
+ "optional": false
4965
+ }
4966
+ ],
4967
+ "returns": "An ExpiringCachedGetter that caches the value until it expires.",
4968
+ "tags": [
4969
+ "getter",
4970
+ "cache",
4971
+ "expire",
4972
+ "expiring",
4973
+ "ttl",
4974
+ "time-to-live",
4975
+ "refresh",
4976
+ "memoize",
4977
+ "lazy",
4978
+ "factory",
4979
+ "cached",
4980
+ "expiringcachedgetter"
4981
+ ],
4982
+ "relatedSlugs": [
4983
+ "cached-getter",
4984
+ "expiration-details",
4985
+ "is-expired",
4986
+ "calculate-expiration-date"
4987
+ ]
4988
+ },
4950
4989
  {
4951
4990
  "slug": "cached-getter",
4952
4991
  "name": "cachedGetter",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-components-mcp",
3
- "version": "13.25.1",
3
+ "version": "13.27.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "dbx-components-mcp": "dbx-components-mcp.js"
@@ -11,7 +11,7 @@
11
11
  "ts-morph": "^21.0.0"
12
12
  },
13
13
  "peerDependencies": {
14
- "@dereekb/dbx-cli": "13.25.1",
15
- "@dereekb/util": "13.25.1"
14
+ "@dereekb/dbx-cli": "13.27.0",
15
+ "@dereekb/util": "13.27.0"
16
16
  }
17
17
  }