@salesforce/lds-worker-api 1.433.0 → 1.434.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.
@@ -1126,6 +1126,7 @@ function handleInstrumentation(activity, stat, progress) {
1126
1126
  const LUVIO_ADAPTER_FAMILY = /^force\/ldsAdapters/;
1127
1127
  async function importLuvioAdapterModule(specifier) {
1128
1128
  if (!LUVIO_ADAPTER_FAMILY.test(specifier)) {
1129
+ // eslint-disable-next-line no-throw-literal
1129
1130
  throw `${specifier} is not an allowed luvio adapter module`;
1130
1131
  }
1131
1132
  let module;
@@ -1133,6 +1134,7 @@ async function importLuvioAdapterModule(specifier) {
1133
1134
  module = await import(specifier);
1134
1135
  }
1135
1136
  catch {
1137
+ // eslint-disable-next-line no-throw-literal
1136
1138
  throw `module not found for specifier ${specifier}`;
1137
1139
  }
1138
1140
  return new LuvioAdapterModule(module);
@@ -1246,6 +1248,7 @@ function buildNativeResponse(response) {
1246
1248
  }
1247
1249
  async function importOneStoreAdapterModule(specifier) {
1248
1250
  if (!ONESTORE_ADAPTER_FAMILY.test(specifier)) {
1251
+ // eslint-disable-next-line no-throw-literal
1249
1252
  throw `${specifier} is not an allowed onestore adapter module`;
1250
1253
  }
1251
1254
  let module;
@@ -1253,6 +1256,7 @@ async function importOneStoreAdapterModule(specifier) {
1253
1256
  module = await import(specifier);
1254
1257
  }
1255
1258
  catch {
1259
+ // eslint-disable-next-line no-throw-literal
1256
1260
  throw `module not found for specifier ${specifier}`;
1257
1261
  }
1258
1262
  return new OneStoreAdapterModule(module);
@@ -1362,13 +1366,11 @@ class OneStoreAdapterModule {
1362
1366
  }
1363
1367
 
1364
1368
  if (process.env.NODE_ENV !== 'production') {
1365
- // eslint-disable-next-line no-undef
1366
1369
  withDefaultLuvio((luvio) => {
1367
- // eslint-disable-next-line no-undef
1368
1370
  const global = typeof globalThis === 'undefined' ? {} : globalThis;
1369
1371
  global.luvio = luvio;
1370
1372
  });
1371
1373
  }
1372
1374
 
1373
1375
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
1374
- // version: 1.433.0-8a15a98f24
1376
+ // version: 1.434.0-d8deb0d4ea
@@ -1,5 +1,6 @@
1
1
  import type { Unsubscribe } from '@luvio/engine';
2
- import { NativeAdapterRequestContext, type NativeCallbackValue, type NativeOnSnapshot } from './executeAdapter';
2
+ import type { NativeAdapterRequestContext } from './executeAdapter';
3
+ import { type NativeCallbackValue, type NativeOnSnapshot } from './executeAdapter';
3
4
  import { type ImperativeAdapterMapValue, type AdapterMapValue } from './lightningAdapterApi';
4
5
  export declare function importLuvioAdapterModule(specifier: string): Promise<LuvioAdapterModule>;
5
6
  declare class LuvioAdapterModule {
@@ -2,9 +2,9 @@ export type ContextKeys = {
2
2
  connectContext: symbol;
3
3
  disconnectContext: symbol;
4
4
  };
5
- export declare function setContextKeys(config: ContextKeys): void;
6
- export declare function setTrustedContextSet(context: WeakSet<object>): void;
7
- export declare function __dangerous_do_not_use_addTrustedContext(contextParticipant: object): void;
8
- export declare function isTrustedSignal(target: object): boolean;
9
- export declare function setTrustedSignalSet(signals: WeakSet<object>): void;
5
+ export declare function setContextKeys(_config: ContextKeys): void;
6
+ export declare function setTrustedContextSet(_context: WeakSet<object>): void;
7
+ export declare function __dangerous_do_not_use_addTrustedContext(_contextParticipant: object): void;
8
+ export declare function isTrustedSignal(_target: object): boolean;
9
+ export declare function setTrustedSignalSet(_signals: WeakSet<object>): void;
10
10
  export declare function unwrap<T>(data: T): T;