@zuplo/runtime 5.2106.0 → 5.2107.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuplo/runtime",
3
- "version": "5.2106.0",
3
+ "version": "5.2107.0",
4
4
  "repository": "https://github.com/zuplo/zuplo",
5
5
  "author": "Zuplo, Inc.",
6
6
  "exports": {
package/types-beta.d.ts CHANGED
@@ -481,7 +481,11 @@ export declare class BackgroundDispatcher<TPayload> {
481
481
 
482
482
  export declare class BackgroundLoader<T = unknown> {
483
483
  #private;
484
+ /**
485
+ * @deprecated Use constructor(loader: BackgroundLoaderFunction<T>, options: BackgroundLoaderOptions) instead
486
+ */
484
487
  constructor(loader: BackgroundLoaderFunction<T>, ttlSeconds: number);
488
+ constructor(loader: BackgroundLoaderFunction<T>, options: BackgroundLoaderOptions);
485
489
  get(key: string): Promise<T>;
486
490
  }
487
491
 
@@ -489,6 +493,11 @@ declare interface BackgroundLoaderFunction<T> {
489
493
  (key: string): Promise<T>;
490
494
  }
491
495
 
496
+ declare interface BackgroundLoaderOptions {
497
+ ttlSeconds: number;
498
+ loaderTimeoutSeconds?: number;
499
+ }
500
+
492
501
  /**
493
502
  * @beta
494
503
  */
package/types-public.d.ts CHANGED
@@ -474,7 +474,11 @@ export declare class BackgroundDispatcher<TPayload> {
474
474
 
475
475
  export declare class BackgroundLoader<T = unknown> {
476
476
  #private;
477
+ /**
478
+ * @deprecated Use constructor(loader: BackgroundLoaderFunction<T>, options: BackgroundLoaderOptions) instead
479
+ */
477
480
  constructor(loader: BackgroundLoaderFunction<T>, ttlSeconds: number);
481
+ constructor(loader: BackgroundLoaderFunction<T>, options: BackgroundLoaderOptions);
478
482
  get(key: string): Promise<T>;
479
483
  }
480
484
 
@@ -482,6 +486,11 @@ declare interface BackgroundLoaderFunction<T> {
482
486
  (key: string): Promise<T>;
483
487
  }
484
488
 
489
+ declare interface BackgroundLoaderOptions {
490
+ ttlSeconds: number;
491
+ loaderTimeoutSeconds?: number;
492
+ }
493
+
485
494
  /* Excluded from this release type: BaseCryptoBeta */
486
495
 
487
496
  /* Excluded from this release type: BaseKeyValueStore */