@luvio/environments 0.85.0 → 0.88.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.
@@ -14,7 +14,7 @@ export interface TTLOverridesMap {
14
14
  overrides: DurableTTLOverride[];
15
15
  }
16
16
  /**
17
- * Class to set and get the TTL override values in the Durable InMemoryStore
17
+ * Class to set and get the TTL override values in the Durable Store
18
18
  */
19
19
  export declare class DurableTTLStore {
20
20
  private durableStore;
@@ -206,7 +206,7 @@ function isDefaultDurableTTLOverride(override) {
206
206
  return (override.namespace === TTL_DEFAULT_KEY && override.representationName === TTL_DEFAULT_KEY);
207
207
  }
208
208
  /**
209
- * Class to set and get the TTL override values in the Durable InMemoryStore
209
+ * Class to set and get the TTL override values in the Durable Store
210
210
  */
211
211
  class DurableTTLStore {
212
212
  constructor(durableStore) {
@@ -544,11 +544,11 @@ function makeDurable(environment, { durableStore, instrumentation }) {
544
544
  state: 'Pending',
545
545
  };
546
546
  };
547
- const withContext = function (adapter, options = {}) {
547
+ const withContext = function (adapter, options) {
548
548
  validateNotDisposed();
549
549
  const { contextId, onContextLoaded } = options;
550
550
  let context = undefined;
551
- const contextAsPromise = reviveOrCreateContext(contextId === undefined ? adapter.name : `${contextId}${ADAPTER_CONTEXT_ID_SUFFIX}`, durableStore, durableStoreErrorHandler, onContextLoaded);
551
+ const contextAsPromise = reviveOrCreateContext(`${contextId}${ADAPTER_CONTEXT_ID_SUFFIX}`, durableStore, durableStoreErrorHandler, onContextLoaded);
552
552
  return (config, requestContext) => {
553
553
  if (context === undefined) {
554
554
  return contextAsPromise.then((revivedContext) => {
@@ -14,7 +14,7 @@ export interface TTLOverridesMap {
14
14
  overrides: DurableTTLOverride[];
15
15
  }
16
16
  /**
17
- * Class to set and get the TTL override values in the Durable InMemoryStore
17
+ * Class to set and get the TTL override values in the Durable Store
18
18
  */
19
19
  export declare class DurableTTLStore {
20
20
  private durableStore;
@@ -210,7 +210,7 @@
210
210
  return (override.namespace === TTL_DEFAULT_KEY && override.representationName === TTL_DEFAULT_KEY);
211
211
  }
212
212
  /**
213
- * Class to set and get the TTL override values in the Durable InMemoryStore
213
+ * Class to set and get the TTL override values in the Durable Store
214
214
  */
215
215
  class DurableTTLStore {
216
216
  constructor(durableStore) {
@@ -548,11 +548,11 @@
548
548
  state: 'Pending',
549
549
  };
550
550
  };
551
- const withContext = function (adapter, options = {}) {
551
+ const withContext = function (adapter, options) {
552
552
  validateNotDisposed();
553
553
  const { contextId, onContextLoaded } = options;
554
554
  let context = undefined;
555
- const contextAsPromise = reviveOrCreateContext(contextId === undefined ? adapter.name : `${contextId}${ADAPTER_CONTEXT_ID_SUFFIX}`, durableStore, durableStoreErrorHandler, onContextLoaded);
555
+ const contextAsPromise = reviveOrCreateContext(`${contextId}${ADAPTER_CONTEXT_ID_SUFFIX}`, durableStore, durableStoreErrorHandler, onContextLoaded);
556
556
  return (config, requestContext) => {
557
557
  if (context === undefined) {
558
558
  return contextAsPromise.then((revivedContext) => {
@@ -14,7 +14,7 @@ export interface TTLOverridesMap {
14
14
  overrides: DurableTTLOverride[];
15
15
  }
16
16
  /**
17
- * Class to set and get the TTL override values in the Durable InMemoryStore
17
+ * Class to set and get the TTL override values in the Durable Store
18
18
  */
19
19
  export declare class DurableTTLStore {
20
20
  private durableStore;
@@ -249,7 +249,7 @@
249
249
  return (override.namespace === TTL_DEFAULT_KEY && override.representationName === TTL_DEFAULT_KEY);
250
250
  }
251
251
  /**
252
- * Class to set and get the TTL override values in the Durable InMemoryStore
252
+ * Class to set and get the TTL override values in the Durable Store
253
253
  */
254
254
  var DurableTTLStore = /** @class */ (function () {
255
255
  function DurableTTLStore(durableStore) {
@@ -591,11 +591,10 @@
591
591
  : __assign(__assign({}, snapshot), { state: 'Pending' });
592
592
  };
593
593
  var withContext = function (adapter, options) {
594
- if (options === void 0) { options = {}; }
595
594
  validateNotDisposed();
596
595
  var contextId = options.contextId, onContextLoaded = options.onContextLoaded;
597
596
  var context = undefined;
598
- var contextAsPromise = reviveOrCreateContext(contextId === undefined ? adapter.name : "".concat(contextId).concat(ADAPTER_CONTEXT_ID_SUFFIX), durableStore, durableStoreErrorHandler, onContextLoaded);
597
+ var contextAsPromise = reviveOrCreateContext("".concat(contextId).concat(ADAPTER_CONTEXT_ID_SUFFIX), durableStore, durableStoreErrorHandler, onContextLoaded);
599
598
  return function (config, requestContext) {
600
599
  if (context === undefined) {
601
600
  return contextAsPromise.then(function (revivedContext) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luvio/environments",
3
- "version": "0.85.0",
3
+ "version": "0.88.0",
4
4
  "description": "Luvio Environments",
5
5
  "main": "dist/umd/es2018/environments.js",
6
6
  "module": "dist/es/es2018/environments.js",
@@ -27,7 +27,7 @@
27
27
  "dist/"
28
28
  ],
29
29
  "dependencies": {
30
- "@luvio/engine": "0.85.0"
30
+ "@luvio/engine": "0.88.0"
31
31
  },
32
32
  "bundlesize": [
33
33
  {