@salesforce/lds-runtime-aura 1.348.0 → 1.348.1

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.
@@ -40,6 +40,48 @@ import { createStorage, clearStorages } from 'force/ldsStorage';
40
40
  import useHttpInsteadAuraTransport from '@salesforce/gate/lds.useHttpInsteadAuraTransport';
41
41
  import { ThirdPartyTracker } from 'instrumentation:beaconLib';
42
42
 
43
+ /**
44
+ * Copyright (c) 2022, Salesforce, Inc.,
45
+ * All rights reserved.
46
+ * For full license text, see the LICENSE.txt file
47
+ */
48
+
49
+ /**
50
+ * BaseCommand is an abstract implementation of SubscribableCommand. It adds the
51
+ * notions of typed configuration, request context, and a set of runtime services
52
+ * to the contract defined by Command/SubscribableCommand.
53
+ */
54
+ class BaseCommand {
55
+ }
56
+
57
+ /**
58
+ * Copyright (c) 2022, Salesforce, Inc.,
59
+ * All rights reserved.
60
+ * For full license text, see the LICENSE.txt file
61
+ */
62
+
63
+
64
+ /**
65
+ * An implementation of BaseCommand that makes network requests but does not try to
66
+ * use the store.
67
+ */
68
+ class NetworkCommand extends BaseCommand {
69
+ constructor(services) {
70
+ super();
71
+ this.services = services;
72
+ }
73
+ execute() {
74
+ return this.fetch();
75
+ }
76
+ }
77
+ function buildServiceDescriptor$b() {
78
+ return {
79
+ type: 'networkCommandBaseClass',
80
+ version: '1.0',
81
+ service: NetworkCommand,
82
+ };
83
+ }
84
+
43
85
  /**
44
86
  * Copyright (c) 2022, Salesforce, Inc.,
45
87
  * All rights reserved.
@@ -316,78 +358,6 @@ var HttpStatusCode$2;
316
358
  HttpStatusCode[HttpStatusCode["GatewayTimeout"] = 504] = "GatewayTimeout";
317
359
  })(HttpStatusCode$2 || (HttpStatusCode$2 = {}));
318
360
 
319
- /**
320
- * Copyright (c) 2022, Salesforce, Inc.,
321
- * All rights reserved.
322
- * For full license text, see the LICENSE.txt file
323
- */
324
-
325
- /**
326
- * BaseCommand is an abstract implementation of SubscribableCommand. It adds the
327
- * notions of typed configuration, request context, and a set of runtime services
328
- * to the contract defined by Command/SubscribableCommand.
329
- */
330
- class BaseCommand {
331
- }
332
-
333
- /**
334
- * Copyright (c) 2022, Salesforce, Inc.,
335
- * All rights reserved.
336
- * For full license text, see the LICENSE.txt file
337
- */
338
-
339
-
340
- /**
341
- * An implementation of BaseCommand that makes network requests but does not try to
342
- * use the store.
343
- */
344
- class NetworkCommand extends BaseCommand {
345
- constructor(services) {
346
- super();
347
- this.services = services;
348
- this.subscriptions = [];
349
- }
350
- execute() {
351
- return this.fetch().then((networkResult) => {
352
- if (networkResult.isErr()) {
353
- return err(networkResult.error);
354
- }
355
- else {
356
- const data = networkResult.value;
357
- return ok({
358
- data,
359
- subscribe: (cb) => {
360
- this.subscriptions.push(cb);
361
- return () => {
362
- this.subscriptions = this.subscriptions.filter((cb2) => cb2 !== cb);
363
- };
364
- },
365
- refresh: () => this.refresh(),
366
- });
367
- }
368
- });
369
- }
370
- refresh() {
371
- return this.execute().then((newResult) => {
372
- if (newResult.isOk()) {
373
- const value = newResult.value;
374
- this.subscriptions.forEach((cb) => {
375
- cb(ok(value.data));
376
- });
377
- return ok(undefined);
378
- }
379
- return err(newResult.error);
380
- });
381
- }
382
- }
383
- function buildServiceDescriptor$b() {
384
- return {
385
- type: 'networkCommandBaseClass',
386
- version: '1.0',
387
- service: NetworkCommand,
388
- };
389
- }
390
-
391
361
  /**
392
362
  * Copyright (c) 2022, Salesforce, Inc.,
393
363
  * All rights reserved.
@@ -484,14 +454,6 @@ class CacheControlCommand extends BaseCommand {
484
454
  writeToCache: (networkResult) => this.writeToCacheAndPublish(cache, networkResult),
485
455
  };
486
456
  }
487
- refresh() {
488
- return this.execute({ cacheControlConfig: { type: 'no-cache' } }).then((res) => {
489
- if (res.isOk()) {
490
- return ok(undefined);
491
- }
492
- return err(res.error);
493
- });
494
- }
495
457
  // TODO: This is added as a temporary measure for ensuring that cache write events are
496
458
  // published to pubSub. A follow-up will be required to find the right home for this logic.
497
459
  writeToCacheAndPublish(cache, networkResult) {
@@ -520,7 +482,6 @@ class CacheControlCommand extends BaseCommand {
520
482
  return ok({
521
483
  data,
522
484
  subscribe: this.buildSubscribe(),
523
- refresh: () => this.refresh(),
524
485
  });
525
486
  }
526
487
  return ok(undefined);
@@ -5369,7 +5330,7 @@ function getEnvironmentSetting(name) {
5369
5330
  }
5370
5331
  return undefined;
5371
5332
  }
5372
- // version: 1.348.0-4aa8c0c0cb
5333
+ // version: 1.348.1-163f0bd450
5373
5334
 
5374
5335
  const forceRecordTransactionsDisabled = getEnvironmentSetting(EnvironmentSettings.ForceRecordTransactionsDisabled);
5375
5336
  //TODO: Some duplication here that can be most likely moved to a util class
@@ -6059,4 +6020,4 @@ function ldsEngineCreator() {
6059
6020
  }
6060
6021
 
6061
6022
  export { LexRequestStrategy, PdlRequestPriority, buildPredictorForContext, ldsEngineCreator as default, initializeLDS, initializeOneStore, registerRequestStrategy, saveRequestAsPrediction, unregisterRequestStrategy, whenPredictionsReady };
6062
- // version: 1.348.0-09ae8e3e37
6023
+ // version: 1.348.1-44d4bea72f
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-aura",
3
- "version": "1.348.0",
3
+ "version": "1.348.1",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS engine for Aura runtime",
6
6
  "main": "dist/ldsEngineCreator.js",
@@ -34,36 +34,36 @@
34
34
  "release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-aura"
35
35
  },
36
36
  "devDependencies": {
37
- "@luvio/service-provisioner": "5.32.1",
38
- "@salesforce/lds-adapters-apex": "^1.348.0",
39
- "@salesforce/lds-adapters-uiapi": "^1.348.0",
37
+ "@luvio/service-provisioner": "5.33.0",
38
+ "@salesforce/lds-adapters-apex": "^1.348.1",
39
+ "@salesforce/lds-adapters-uiapi": "^1.348.1",
40
40
  "@salesforce/lds-adapters-uiapi-lex": "^1.302.0",
41
- "@salesforce/lds-ads-bridge": "^1.348.0",
42
- "@salesforce/lds-aura-storage": "^1.348.0",
43
- "@salesforce/lds-bindings": "^1.348.0",
44
- "@salesforce/lds-instrumentation": "^1.348.0",
45
- "@salesforce/lds-network-aura": "^1.348.0",
46
- "@salesforce/lds-network-fetch": "^1.348.0",
41
+ "@salesforce/lds-ads-bridge": "^1.348.1",
42
+ "@salesforce/lds-aura-storage": "^1.348.1",
43
+ "@salesforce/lds-bindings": "^1.348.1",
44
+ "@salesforce/lds-instrumentation": "^1.348.1",
45
+ "@salesforce/lds-network-aura": "^1.348.1",
46
+ "@salesforce/lds-network-fetch": "^1.348.1",
47
47
  "jwt-encode": "1.0.1"
48
48
  },
49
49
  "dependencies": {
50
- "@luvio/command-aura-network": "5.32.1",
51
- "@luvio/command-aura-resource-cache-control": "5.32.1",
52
- "@luvio/command-fetch-network": "5.32.1",
53
- "@luvio/command-network": "5.32.1",
54
- "@luvio/command-sse": "5.32.1",
55
- "@luvio/command-streaming": "5.32.1",
50
+ "@luvio/command-aura-network": "5.33.0",
51
+ "@luvio/command-aura-resource-cache-control": "5.33.0",
52
+ "@luvio/command-fetch-network": "5.33.0",
53
+ "@luvio/command-network": "5.33.0",
54
+ "@luvio/command-sse": "5.33.0",
55
+ "@luvio/command-streaming": "5.33.0",
56
56
  "@luvio/network-adapter-composable": "0.156.7",
57
57
  "@luvio/network-adapter-fetch": "0.156.7",
58
- "@luvio/service-aura-network": "5.32.1",
59
- "@luvio/service-cache": "5.32.1",
60
- "@luvio/service-cache-control": "5.32.1",
61
- "@luvio/service-fetch-network": "5.32.1",
62
- "@luvio/service-instrument-command": "5.32.1",
63
- "@luvio/service-pubsub": "5.32.1",
64
- "@luvio/service-store": "5.32.1",
65
- "@luvio/utils": "5.32.1",
66
- "@salesforce/lds-adapters-uiapi-lex": "^1.348.0"
58
+ "@luvio/service-aura-network": "5.33.0",
59
+ "@luvio/service-cache": "5.33.0",
60
+ "@luvio/service-cache-control": "5.33.0",
61
+ "@luvio/service-fetch-network": "5.33.0",
62
+ "@luvio/service-instrument-command": "5.33.0",
63
+ "@luvio/service-pubsub": "5.33.0",
64
+ "@luvio/service-store": "5.33.0",
65
+ "@luvio/utils": "5.33.0",
66
+ "@salesforce/lds-adapters-uiapi-lex": "^1.348.1"
67
67
  },
68
68
  "luvioBundlesize": [
69
69
  {