@salesforce/lds-worker-api 1.447.0 → 1.448.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.
@@ -1373,4 +1373,4 @@ if (process.env.NODE_ENV !== 'production') {
1373
1373
  }
1374
1374
 
1375
1375
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
1376
- // version: 1.447.0-9045666657
1376
+ // version: 1.448.0-ea92d38c8e
@@ -4276,7 +4276,7 @@ function withDefaultLuvio(callback) {
4276
4276
  }
4277
4277
  callbacks.push(callback);
4278
4278
  }
4279
- // version: 1.447.0-9045666657
4279
+ // version: 1.448.0-ea92d38c8e
4280
4280
 
4281
4281
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4282
4282
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -5320,7 +5320,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
5320
5320
  const { apiFamily, name } = metadata;
5321
5321
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5322
5322
  }
5323
- // version: 1.447.0-9045666657
5323
+ // version: 1.448.0-ea92d38c8e
5324
5324
 
5325
5325
  function isSupportedEntity(_objectApiName) {
5326
5326
  return true;
@@ -32574,7 +32574,7 @@ withDefaultLuvio((luvio) => {
32574
32574
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
32575
32575
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
32576
32576
  });
32577
- // version: 1.447.0-b75721e8dd
32577
+ // version: 1.448.0-8bacde725a
32578
32578
 
32579
32579
  var draftQueueMaxRetryAttemptsGate = {
32580
32580
  isOpen: function (e) {
@@ -94763,7 +94763,14 @@ class AuraNetworkCommand extends NetworkCommand$1 {
94763
94763
  fetch() {
94764
94764
  if (this.shouldUseAuraNetwork()) {
94765
94765
  return this.convertAuraResponseToData(
94766
- this.services.auraNetwork(this.endpoint, this.auraParams, this.actionConfig),
94766
+ // The Aura transport is untyped at the network boundary (getReturnValue: () =>
94767
+ // Record<string, unknown>); assert it to this command's concrete Data here so the
94768
+ // untyped boundary is isolated to this single site rather than leaking `any`.
94769
+ this.services.auraNetwork(
94770
+ this.endpoint,
94771
+ this.auraParams,
94772
+ this.actionConfig
94773
+ ),
94767
94774
  this.coerceAuraErrors
94768
94775
  );
94769
94776
  } else if (this.shouldUseFetch()) {
@@ -95359,8 +95366,13 @@ class AuraCacheControlCommand extends CacheControlCommand {
95359
95366
  }
95360
95367
  requestFromNetwork() {
95361
95368
  if (this.shouldUseAuraNetwork()) {
95369
+ const responsePromise = this.services.auraNetwork(
95370
+ this.endpoint,
95371
+ this.auraParams,
95372
+ this.actionConfig
95373
+ );
95362
95374
  return this.convertAuraResponseToData(
95363
- this.services.auraNetwork(this.endpoint, this.auraParams, this.actionConfig),
95375
+ responsePromise,
95364
95376
  (errs) => this.coerceAuraErrors(errs)
95365
95377
  );
95366
95378
  } else if (this.shouldUseFetch()) {
@@ -96348,6 +96360,14 @@ class O11ySpan {
96348
96360
  this.attributes = { ...this.attributes, ...attributes };
96349
96361
  return this;
96350
96362
  }
96363
+ addLink(_link) {
96364
+ this.logger.warn("O11ySpan does not support addLink.");
96365
+ return this;
96366
+ }
96367
+ addLinks(_links) {
96368
+ this.logger.warn("O11ySpan does not support addLinks.");
96369
+ return this;
96370
+ }
96351
96371
  addEvent(_name, _attributesOrStartTime, _startTime) {
96352
96372
  this.logger.warn("O11ySpan does not support addEvents.");
96353
96373
  return this;
@@ -96407,6 +96427,9 @@ class O11yMeter {
96407
96427
  }
96408
96428
  return new O11yCounter(name, this.o11yInstrumentation, this.logger);
96409
96429
  }
96430
+ createGauge(_name, _options) {
96431
+ return new O11yGauge(this.logger);
96432
+ }
96410
96433
  createUpDownCounter(_name, _options) {
96411
96434
  return new O11yUpDownCounter(this.logger);
96412
96435
  }
@@ -96464,6 +96487,14 @@ class O11yHistogram {
96464
96487
  );
96465
96488
  }
96466
96489
  }
96490
+ class O11yGauge {
96491
+ constructor(logger) {
96492
+ this.logger = logger;
96493
+ }
96494
+ record(_value, _attributes, _context) {
96495
+ this.logger.warn("O11yGauge not supported yet.");
96496
+ }
96497
+ }
96467
96498
  class O11yUpDownCounter {
96468
96499
  constructor(logger) {
96469
96500
  this.logger = logger;
@@ -96655,7 +96686,7 @@ function buildServiceDescriptor$b(luvio) {
96655
96686
  },
96656
96687
  };
96657
96688
  }
96658
- // version: 1.447.0-9045666657
96689
+ // version: 1.448.0-ea92d38c8e
96659
96690
 
96660
96691
  /**
96661
96692
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -96681,7 +96712,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
96681
96712
  },
96682
96713
  };
96683
96714
  }
96684
- // version: 1.447.0-9045666657
96715
+ // version: 1.448.0-ea92d38c8e
96685
96716
 
96686
96717
  function findExecutableOperation$1(input) {
96687
96718
  const operations = input.query.definitions.filter(
@@ -96914,6 +96945,7 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
96914
96945
  }
96915
96946
  return addTypenameToDocument(augmentedQueryResult.value);
96916
96947
  }
96948
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- load-bearing: GraphQLResponse.data is `Record<string,any> | null | undefined`, but WriteInput<Data>.data requires `Data`. Narrowing the Data arg to GraphQLData yields TS2322 at the return (`data.data` includes null|undefined; tests write `data: undefined` for error responses — see error-handling spec). The `any` faithfully models that the cache write accepts the nullable response payload. Same #870 GraphQLData/GraphQLResponse contravariance family.
96917
96949
  buildWriteInput(data) {
96918
96950
  const extensionResult = buildGraphQLInputExtension$1({
96919
96951
  ...this.config,
@@ -99367,7 +99399,7 @@ register$1({
99367
99399
  id: '@salesforce/lds-network-adapter',
99368
99400
  instrument: instrument$2,
99369
99401
  });
99370
- // version: 1.447.0-9045666657
99402
+ // version: 1.448.0-ea92d38c8e
99371
99403
 
99372
99404
  const { create: create$2, keys: keys$2 } = Object;
99373
99405
  const { stringify, parse } = JSON;
@@ -106896,7 +106928,7 @@ function registerCallback(cb) {
106896
106928
  cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
106897
106929
  }
106898
106930
  }
106899
- // version: 1.447.0-b75721e8dd
106931
+ // version: 1.448.0-8bacde725a
106900
106932
 
106901
106933
  function createFragmentMap(documentNode) {
106902
106934
  const fragments = {};
@@ -136103,7 +136135,7 @@ register$1({
136103
136135
  configuration: { ...configurationForGraphQLAdapters$1 },
136104
136136
  instrument: instrument$1,
136105
136137
  });
136106
- // version: 1.447.0-b75721e8dd
136138
+ // version: 1.448.0-8bacde725a
136107
136139
 
136108
136140
  // On core the unstable adapters are re-exported with different names,
136109
136141
  // we want to match them here.
@@ -136255,7 +136287,7 @@ withDefaultLuvio((luvio) => {
136255
136287
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
136256
136288
  graphQLImperative = ldsAdapter;
136257
136289
  });
136258
- // version: 1.447.0-b75721e8dd
136290
+ // version: 1.448.0-8bacde725a
136259
136291
 
136260
136292
  var gqlApi = /*#__PURE__*/Object.freeze({
136261
136293
  __proto__: null,
@@ -137054,7 +137086,7 @@ const callbacks$1 = [];
137054
137086
  function register(r) {
137055
137087
  callbacks$1.forEach((callback) => callback(r));
137056
137088
  }
137057
- // version: 1.447.0-9045666657
137089
+ // version: 1.448.0-ea92d38c8e
137058
137090
 
137059
137091
  /**
137060
137092
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -138343,4 +138375,4 @@ const { luvio } = getRuntime();
138343
138375
  setDefaultLuvio({ luvio });
138344
138376
 
138345
138377
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
138346
- // version: 1.447.0-9045666657
138378
+ // version: 1.448.0-ea92d38c8e
@@ -4282,7 +4282,7 @@
4282
4282
  }
4283
4283
  callbacks.push(callback);
4284
4284
  }
4285
- // version: 1.447.0-9045666657
4285
+ // version: 1.448.0-ea92d38c8e
4286
4286
 
4287
4287
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4288
4288
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -5326,7 +5326,7 @@
5326
5326
  const { apiFamily, name } = metadata;
5327
5327
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5328
5328
  }
5329
- // version: 1.447.0-9045666657
5329
+ // version: 1.448.0-ea92d38c8e
5330
5330
 
5331
5331
  function isSupportedEntity(_objectApiName) {
5332
5332
  return true;
@@ -32580,7 +32580,7 @@
32580
32580
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
32581
32581
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
32582
32582
  });
32583
- // version: 1.447.0-b75721e8dd
32583
+ // version: 1.448.0-8bacde725a
32584
32584
 
32585
32585
  var draftQueueMaxRetryAttemptsGate = {
32586
32586
  isOpen: function (e) {
@@ -94769,7 +94769,14 @@
94769
94769
  fetch() {
94770
94770
  if (this.shouldUseAuraNetwork()) {
94771
94771
  return this.convertAuraResponseToData(
94772
- this.services.auraNetwork(this.endpoint, this.auraParams, this.actionConfig),
94772
+ // The Aura transport is untyped at the network boundary (getReturnValue: () =>
94773
+ // Record<string, unknown>); assert it to this command's concrete Data here so the
94774
+ // untyped boundary is isolated to this single site rather than leaking `any`.
94775
+ this.services.auraNetwork(
94776
+ this.endpoint,
94777
+ this.auraParams,
94778
+ this.actionConfig
94779
+ ),
94773
94780
  this.coerceAuraErrors
94774
94781
  );
94775
94782
  } else if (this.shouldUseFetch()) {
@@ -95365,8 +95372,13 @@
95365
95372
  }
95366
95373
  requestFromNetwork() {
95367
95374
  if (this.shouldUseAuraNetwork()) {
95375
+ const responsePromise = this.services.auraNetwork(
95376
+ this.endpoint,
95377
+ this.auraParams,
95378
+ this.actionConfig
95379
+ );
95368
95380
  return this.convertAuraResponseToData(
95369
- this.services.auraNetwork(this.endpoint, this.auraParams, this.actionConfig),
95381
+ responsePromise,
95370
95382
  (errs) => this.coerceAuraErrors(errs)
95371
95383
  );
95372
95384
  } else if (this.shouldUseFetch()) {
@@ -96354,6 +96366,14 @@
96354
96366
  this.attributes = { ...this.attributes, ...attributes };
96355
96367
  return this;
96356
96368
  }
96369
+ addLink(_link) {
96370
+ this.logger.warn("O11ySpan does not support addLink.");
96371
+ return this;
96372
+ }
96373
+ addLinks(_links) {
96374
+ this.logger.warn("O11ySpan does not support addLinks.");
96375
+ return this;
96376
+ }
96357
96377
  addEvent(_name, _attributesOrStartTime, _startTime) {
96358
96378
  this.logger.warn("O11ySpan does not support addEvents.");
96359
96379
  return this;
@@ -96413,6 +96433,9 @@
96413
96433
  }
96414
96434
  return new O11yCounter(name, this.o11yInstrumentation, this.logger);
96415
96435
  }
96436
+ createGauge(_name, _options) {
96437
+ return new O11yGauge(this.logger);
96438
+ }
96416
96439
  createUpDownCounter(_name, _options) {
96417
96440
  return new O11yUpDownCounter(this.logger);
96418
96441
  }
@@ -96470,6 +96493,14 @@
96470
96493
  );
96471
96494
  }
96472
96495
  }
96496
+ class O11yGauge {
96497
+ constructor(logger) {
96498
+ this.logger = logger;
96499
+ }
96500
+ record(_value, _attributes, _context) {
96501
+ this.logger.warn("O11yGauge not supported yet.");
96502
+ }
96503
+ }
96473
96504
  class O11yUpDownCounter {
96474
96505
  constructor(logger) {
96475
96506
  this.logger = logger;
@@ -96661,7 +96692,7 @@
96661
96692
  },
96662
96693
  };
96663
96694
  }
96664
- // version: 1.447.0-9045666657
96695
+ // version: 1.448.0-ea92d38c8e
96665
96696
 
96666
96697
  /**
96667
96698
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -96687,7 +96718,7 @@
96687
96718
  },
96688
96719
  };
96689
96720
  }
96690
- // version: 1.447.0-9045666657
96721
+ // version: 1.448.0-ea92d38c8e
96691
96722
 
96692
96723
  function findExecutableOperation$1(input) {
96693
96724
  const operations = input.query.definitions.filter(
@@ -96920,6 +96951,7 @@
96920
96951
  }
96921
96952
  return addTypenameToDocument(augmentedQueryResult.value);
96922
96953
  }
96954
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- load-bearing: GraphQLResponse.data is `Record<string,any> | null | undefined`, but WriteInput<Data>.data requires `Data`. Narrowing the Data arg to GraphQLData yields TS2322 at the return (`data.data` includes null|undefined; tests write `data: undefined` for error responses — see error-handling spec). The `any` faithfully models that the cache write accepts the nullable response payload. Same #870 GraphQLData/GraphQLResponse contravariance family.
96923
96955
  buildWriteInput(data) {
96924
96956
  const extensionResult = buildGraphQLInputExtension$1({
96925
96957
  ...this.config,
@@ -99373,7 +99405,7 @@
99373
99405
  id: '@salesforce/lds-network-adapter',
99374
99406
  instrument: instrument$2,
99375
99407
  });
99376
- // version: 1.447.0-9045666657
99408
+ // version: 1.448.0-ea92d38c8e
99377
99409
 
99378
99410
  const { create: create$2, keys: keys$2 } = Object;
99379
99411
  const { stringify, parse } = JSON;
@@ -106902,7 +106934,7 @@
106902
106934
  cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
106903
106935
  }
106904
106936
  }
106905
- // version: 1.447.0-b75721e8dd
106937
+ // version: 1.448.0-8bacde725a
106906
106938
 
106907
106939
  function createFragmentMap(documentNode) {
106908
106940
  const fragments = {};
@@ -136109,7 +136141,7 @@
136109
136141
  configuration: { ...configurationForGraphQLAdapters$1 },
136110
136142
  instrument: instrument$1,
136111
136143
  });
136112
- // version: 1.447.0-b75721e8dd
136144
+ // version: 1.448.0-8bacde725a
136113
136145
 
136114
136146
  // On core the unstable adapters are re-exported with different names,
136115
136147
  // we want to match them here.
@@ -136261,7 +136293,7 @@
136261
136293
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
136262
136294
  graphQLImperative = ldsAdapter;
136263
136295
  });
136264
- // version: 1.447.0-b75721e8dd
136296
+ // version: 1.448.0-8bacde725a
136265
136297
 
136266
136298
  var gqlApi = /*#__PURE__*/Object.freeze({
136267
136299
  __proto__: null,
@@ -137060,7 +137092,7 @@
137060
137092
  function register(r) {
137061
137093
  callbacks$1.forEach((callback) => callback(r));
137062
137094
  }
137063
- // version: 1.447.0-9045666657
137095
+ // version: 1.448.0-ea92d38c8e
137064
137096
 
137065
137097
  /**
137066
137098
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -138370,4 +138402,4 @@
138370
138402
  exports.subscribeToAdapter = subscribeToAdapter;
138371
138403
 
138372
138404
  }));
138373
- // version: 1.447.0-9045666657
138405
+ // version: 1.448.0-ea92d38c8e
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.447.0",
3
+ "version": "1.448.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/es/lds-worker-api.js",
@@ -35,14 +35,14 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
38
- "@salesforce/lds-adapters-graphql": "^1.447.0",
39
- "@salesforce/lds-adapters-uiapi": "^1.447.0",
40
- "@salesforce/lds-default-luvio": "^1.447.0",
41
- "@salesforce/lds-drafts": "^1.447.0",
42
- "@salesforce/lds-graphql-parser": "^1.447.0",
43
- "@salesforce/lds-luvio-engine": "^1.447.0",
44
- "@salesforce/lds-runtime-mobile": "^1.447.0",
45
- "@salesforce/nimbus-plugin-lds": "^1.447.0",
38
+ "@salesforce/lds-adapters-graphql": "^1.448.0",
39
+ "@salesforce/lds-adapters-uiapi": "^1.448.0",
40
+ "@salesforce/lds-default-luvio": "^1.448.0",
41
+ "@salesforce/lds-drafts": "^1.448.0",
42
+ "@salesforce/lds-graphql-parser": "^1.448.0",
43
+ "@salesforce/lds-luvio-engine": "^1.448.0",
44
+ "@salesforce/lds-runtime-mobile": "^1.448.0",
45
+ "@salesforce/nimbus-plugin-lds": "^1.448.0",
46
46
  "ajv": "^8.11.0",
47
47
  "glob": "^7.1.5",
48
48
  "nimbus-types": "^2.0.0-alpha1",