@salesforce/lds-runtime-mobile 1.410.0 → 1.411.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.
Files changed (3) hide show
  1. package/dist/main.js +56 -14
  2. package/package.json +34 -34
  3. package/sfdc/main.js +56 -14
package/dist/main.js CHANGED
@@ -56341,7 +56341,12 @@ class AuraNetworkCommand extends NetworkCommand$1 {
56341
56341
  this.coerceAuraErrors
56342
56342
  );
56343
56343
  } else if (this.shouldUseFetch()) {
56344
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
56344
+ const params = this.fetchParams;
56345
+ try {
56346
+ return this.convertFetchResponseToData(this.services.fetch(...params));
56347
+ } catch (reason) {
56348
+ return resolvedPromiseLike$2(err$1(toError(reason)));
56349
+ }
56345
56350
  }
56346
56351
  return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
56347
56352
  }
@@ -56939,7 +56944,12 @@ let AuraCacheControlCommand$1 = class AuraCacheControlCommand extends CacheContr
56939
56944
  (errs) => this.coerceAuraErrors(errs)
56940
56945
  );
56941
56946
  } else if (this.shouldUseFetch()) {
56942
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
56947
+ const params = this.fetchParams;
56948
+ try {
56949
+ return this.convertFetchResponseToData(this.services.fetch(...params));
56950
+ } catch (reason) {
56951
+ return resolvedPromiseLike$2(err$1(toError(reason)));
56952
+ }
56943
56953
  }
56944
56954
  return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
56945
56955
  }
@@ -57078,7 +57088,12 @@ class AuraCacheControlCommand extends CacheControlCommand {
57078
57088
  (errs) => this.coerceAuraErrors(errs)
57079
57089
  );
57080
57090
  } else if (this.shouldUseFetch()) {
57081
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
57091
+ const params = this.fetchParams;
57092
+ try {
57093
+ return this.convertFetchResponseToData(this.services.fetch(...params));
57094
+ } catch (reason) {
57095
+ return resolvedPromiseLike$2(err$1(toError(reason)));
57096
+ }
57082
57097
  }
57083
57098
  return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
57084
57099
  }
@@ -57314,7 +57329,11 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
57314
57329
  this.services = services;
57315
57330
  }
57316
57331
  fetch() {
57317
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
57332
+ try {
57333
+ return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
57334
+ } catch (reason) {
57335
+ return resolvedPromiseLike$2(err$1(toError(reason)));
57336
+ }
57318
57337
  }
57319
57338
  async coerceError(errorResponse) {
57320
57339
  return toError(errorResponse.statusText);
@@ -57378,7 +57397,11 @@ class HttpCacheControlCommand extends CacheControlCommand {
57378
57397
  return this.fetch();
57379
57398
  }
57380
57399
  fetch() {
57381
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
57400
+ try {
57401
+ return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
57402
+ } catch (reason) {
57403
+ return resolvedPromiseLike$2(err$1(toError(reason)));
57404
+ }
57382
57405
  }
57383
57406
  async coerceError(errorResponse) {
57384
57407
  return toError(errorResponse.statusText);
@@ -57855,9 +57878,13 @@ class OnlyIfCachedCacheControlStrategy extends CacheControlStrategy {
57855
57878
  }
57856
57879
  get expiredChecks() {
57857
57880
  return [
57858
- (cacheControlMetadata) => cacheControlMetadata.type === "no-store"
57881
+ ...super.expiredChecks,
57882
+ (cacheControlMetadata) => cacheControlMetadata.type === "no-cache"
57859
57883
  ];
57860
57884
  }
57885
+ // Note: If we add support for `stale-while-revalidate` in the future, we may
57886
+ // need to further override expiredChecks to allow stale entries that are within the
57887
+ // stale-while-revalidate window to be returned for only-if-cached requests.
57861
57888
  collectCacheHitInstrumentation(startTime, instrumentationAttributes) {
57862
57889
  if (this.services.instrumentation) {
57863
57890
  const meter = this.services.instrumentation.metrics.getMeter("onestore");
@@ -58379,7 +58406,7 @@ function buildServiceDescriptor$b(luvio) {
58379
58406
  },
58380
58407
  };
58381
58408
  }
58382
- // version: 1.410.0-7c228ee347
58409
+ // version: 1.411.0-8fa163ef05
58383
58410
 
58384
58411
  /**
58385
58412
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -58405,7 +58432,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
58405
58432
  },
58406
58433
  };
58407
58434
  }
58408
- // version: 1.410.0-7c228ee347
58435
+ // version: 1.411.0-8fa163ef05
58409
58436
 
58410
58437
  /*!
58411
58438
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -58616,11 +58643,26 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
58616
58643
  return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
58617
58644
  });
58618
58645
  } else if (this.shouldUseFetch()) {
58619
- return this.convertFetchResponseToData(
58620
- this.services.fetch(...this.originalFetchParams)
58621
- ).then((result) => {
58622
- return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
58623
- });
58646
+ const params = this.originalFetchParams;
58647
+ try {
58648
+ return this.convertFetchResponseToData(this.services.fetch(...params)).then(
58649
+ (result) => {
58650
+ return buildSubscribableResult$1(
58651
+ result,
58652
+ this.buildSubscribe(),
58653
+ () => this.refresh()
58654
+ );
58655
+ }
58656
+ );
58657
+ } catch (reason) {
58658
+ return resolvedPromiseLike$2(
58659
+ buildSubscribableResult$1(
58660
+ err$1(toError(reason)),
58661
+ this.buildSubscribe(),
58662
+ () => this.refresh()
58663
+ )
58664
+ );
58665
+ }
58624
58666
  }
58625
58667
  return resolvedPromiseLike$2(
58626
58668
  buildSubscribableResult$1(
@@ -60978,4 +61020,4 @@ register({
60978
61020
  });
60979
61021
 
60980
61022
  export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, initializeOneStore, registerReportObserver, reportGraphqlQueryParseError };
60981
- // version: 1.410.0-19e0e5d352
61023
+ // version: 1.411.0-193e3a20c1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-mobile",
3
- "version": "1.410.0",
3
+ "version": "1.411.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS runtime for mobile/hybrid environments.",
6
6
  "main": "dist/main.js",
@@ -32,44 +32,44 @@
32
32
  "release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-mobile"
33
33
  },
34
34
  "dependencies": {
35
- "@conduit-client/service-bindings-imperative": "3.6.1",
36
- "@conduit-client/service-bindings-lwc": "3.6.1",
37
- "@conduit-client/service-provisioner": "3.6.1",
38
- "@salesforce/lds-adapters-uiapi": "^1.410.0",
39
- "@salesforce/lds-bindings": "^1.410.0",
40
- "@salesforce/lds-instrumentation": "^1.410.0",
41
- "@salesforce/lds-luvio-service": "^1.410.0",
42
- "@salesforce/lds-luvio-uiapi-records-service": "^1.410.0",
35
+ "@conduit-client/service-bindings-imperative": "3.6.3",
36
+ "@conduit-client/service-bindings-lwc": "3.6.3",
37
+ "@conduit-client/service-provisioner": "3.6.3",
38
+ "@salesforce/lds-adapters-uiapi": "^1.411.0",
39
+ "@salesforce/lds-bindings": "^1.411.0",
40
+ "@salesforce/lds-instrumentation": "^1.411.0",
41
+ "@salesforce/lds-luvio-service": "^1.411.0",
42
+ "@salesforce/lds-luvio-uiapi-records-service": "^1.411.0",
43
43
  "@salesforce/user": "0.0.21",
44
44
  "o11y": "250.7.0",
45
45
  "o11y_schema": "256.126.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@conduit-client/command-aura-network": "3.6.1",
49
- "@conduit-client/command-aura-normalized-cache-control": "3.6.1",
50
- "@conduit-client/command-aura-resource-cache-control": "3.6.1",
51
- "@conduit-client/command-fetch-network": "3.6.1",
52
- "@conduit-client/command-http-normalized-cache-control": "3.6.1",
53
- "@conduit-client/command-network": "3.6.1",
54
- "@conduit-client/service-cache": "3.6.1",
55
- "@conduit-client/service-cache-control": "3.6.1",
56
- "@conduit-client/service-cache-inclusion-policy": "3.6.1",
57
- "@conduit-client/service-fetch-network": "3.6.1",
58
- "@conduit-client/service-instrument-command": "3.6.1",
59
- "@conduit-client/service-instrumentation": "3.6.1",
60
- "@conduit-client/service-pubsub": "3.6.1",
61
- "@conduit-client/service-store": "3.6.1",
62
- "@conduit-client/utils": "3.6.1",
63
- "@salesforce/lds-adapters-graphql": "^1.410.0",
64
- "@salesforce/lds-drafts": "^1.410.0",
65
- "@salesforce/lds-durable-records": "^1.410.0",
66
- "@salesforce/lds-network-adapter": "^1.410.0",
67
- "@salesforce/lds-network-nimbus": "^1.410.0",
68
- "@salesforce/lds-store-binary": "^1.410.0",
69
- "@salesforce/lds-store-nimbus": "^1.410.0",
70
- "@salesforce/lds-store-sql": "^1.410.0",
71
- "@salesforce/lds-utils-adapters": "^1.410.0",
72
- "@salesforce/nimbus-plugin-lds": "^1.410.0",
48
+ "@conduit-client/command-aura-network": "3.6.3",
49
+ "@conduit-client/command-aura-normalized-cache-control": "3.6.3",
50
+ "@conduit-client/command-aura-resource-cache-control": "3.6.3",
51
+ "@conduit-client/command-fetch-network": "3.6.3",
52
+ "@conduit-client/command-http-normalized-cache-control": "3.6.3",
53
+ "@conduit-client/command-network": "3.6.3",
54
+ "@conduit-client/service-cache": "3.6.3",
55
+ "@conduit-client/service-cache-control": "3.6.3",
56
+ "@conduit-client/service-cache-inclusion-policy": "3.6.3",
57
+ "@conduit-client/service-fetch-network": "3.6.3",
58
+ "@conduit-client/service-instrument-command": "3.6.3",
59
+ "@conduit-client/service-instrumentation": "3.6.3",
60
+ "@conduit-client/service-pubsub": "3.6.3",
61
+ "@conduit-client/service-store": "3.6.3",
62
+ "@conduit-client/utils": "3.6.3",
63
+ "@salesforce/lds-adapters-graphql": "^1.411.0",
64
+ "@salesforce/lds-drafts": "^1.411.0",
65
+ "@salesforce/lds-durable-records": "^1.411.0",
66
+ "@salesforce/lds-network-adapter": "^1.411.0",
67
+ "@salesforce/lds-network-nimbus": "^1.411.0",
68
+ "@salesforce/lds-store-binary": "^1.411.0",
69
+ "@salesforce/lds-store-nimbus": "^1.411.0",
70
+ "@salesforce/lds-store-sql": "^1.411.0",
71
+ "@salesforce/lds-utils-adapters": "^1.411.0",
72
+ "@salesforce/nimbus-plugin-lds": "^1.411.0",
73
73
  "babel-plugin-dynamic-import-node": "^2.3.3",
74
74
  "wait-for-expect": "^3.0.2"
75
75
  },
package/sfdc/main.js CHANGED
@@ -56341,7 +56341,12 @@ class AuraNetworkCommand extends NetworkCommand$1 {
56341
56341
  this.coerceAuraErrors
56342
56342
  );
56343
56343
  } else if (this.shouldUseFetch()) {
56344
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
56344
+ const params = this.fetchParams;
56345
+ try {
56346
+ return this.convertFetchResponseToData(this.services.fetch(...params));
56347
+ } catch (reason) {
56348
+ return resolvedPromiseLike$2(err$1(toError(reason)));
56349
+ }
56345
56350
  }
56346
56351
  return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
56347
56352
  }
@@ -56939,7 +56944,12 @@ let AuraCacheControlCommand$1 = class AuraCacheControlCommand extends CacheContr
56939
56944
  (errs) => this.coerceAuraErrors(errs)
56940
56945
  );
56941
56946
  } else if (this.shouldUseFetch()) {
56942
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
56947
+ const params = this.fetchParams;
56948
+ try {
56949
+ return this.convertFetchResponseToData(this.services.fetch(...params));
56950
+ } catch (reason) {
56951
+ return resolvedPromiseLike$2(err$1(toError(reason)));
56952
+ }
56943
56953
  }
56944
56954
  return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
56945
56955
  }
@@ -57078,7 +57088,12 @@ class AuraCacheControlCommand extends CacheControlCommand {
57078
57088
  (errs) => this.coerceAuraErrors(errs)
57079
57089
  );
57080
57090
  } else if (this.shouldUseFetch()) {
57081
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
57091
+ const params = this.fetchParams;
57092
+ try {
57093
+ return this.convertFetchResponseToData(this.services.fetch(...params));
57094
+ } catch (reason) {
57095
+ return resolvedPromiseLike$2(err$1(toError(reason)));
57096
+ }
57082
57097
  }
57083
57098
  return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
57084
57099
  }
@@ -57314,7 +57329,11 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
57314
57329
  this.services = services;
57315
57330
  }
57316
57331
  fetch() {
57317
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
57332
+ try {
57333
+ return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
57334
+ } catch (reason) {
57335
+ return resolvedPromiseLike$2(err$1(toError(reason)));
57336
+ }
57318
57337
  }
57319
57338
  async coerceError(errorResponse) {
57320
57339
  return toError(errorResponse.statusText);
@@ -57378,7 +57397,11 @@ class HttpCacheControlCommand extends CacheControlCommand {
57378
57397
  return this.fetch();
57379
57398
  }
57380
57399
  fetch() {
57381
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
57400
+ try {
57401
+ return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
57402
+ } catch (reason) {
57403
+ return resolvedPromiseLike$2(err$1(toError(reason)));
57404
+ }
57382
57405
  }
57383
57406
  async coerceError(errorResponse) {
57384
57407
  return toError(errorResponse.statusText);
@@ -57855,9 +57878,13 @@ class OnlyIfCachedCacheControlStrategy extends CacheControlStrategy {
57855
57878
  }
57856
57879
  get expiredChecks() {
57857
57880
  return [
57858
- (cacheControlMetadata) => cacheControlMetadata.type === "no-store"
57881
+ ...super.expiredChecks,
57882
+ (cacheControlMetadata) => cacheControlMetadata.type === "no-cache"
57859
57883
  ];
57860
57884
  }
57885
+ // Note: If we add support for `stale-while-revalidate` in the future, we may
57886
+ // need to further override expiredChecks to allow stale entries that are within the
57887
+ // stale-while-revalidate window to be returned for only-if-cached requests.
57861
57888
  collectCacheHitInstrumentation(startTime, instrumentationAttributes) {
57862
57889
  if (this.services.instrumentation) {
57863
57890
  const meter = this.services.instrumentation.metrics.getMeter("onestore");
@@ -58379,7 +58406,7 @@ function buildServiceDescriptor$b(luvio) {
58379
58406
  },
58380
58407
  };
58381
58408
  }
58382
- // version: 1.410.0-7c228ee347
58409
+ // version: 1.411.0-8fa163ef05
58383
58410
 
58384
58411
  /**
58385
58412
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -58405,7 +58432,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
58405
58432
  },
58406
58433
  };
58407
58434
  }
58408
- // version: 1.410.0-7c228ee347
58435
+ // version: 1.411.0-8fa163ef05
58409
58436
 
58410
58437
  /*!
58411
58438
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -58616,11 +58643,26 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
58616
58643
  return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
58617
58644
  });
58618
58645
  } else if (this.shouldUseFetch()) {
58619
- return this.convertFetchResponseToData(
58620
- this.services.fetch(...this.originalFetchParams)
58621
- ).then((result) => {
58622
- return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
58623
- });
58646
+ const params = this.originalFetchParams;
58647
+ try {
58648
+ return this.convertFetchResponseToData(this.services.fetch(...params)).then(
58649
+ (result) => {
58650
+ return buildSubscribableResult$1(
58651
+ result,
58652
+ this.buildSubscribe(),
58653
+ () => this.refresh()
58654
+ );
58655
+ }
58656
+ );
58657
+ } catch (reason) {
58658
+ return resolvedPromiseLike$2(
58659
+ buildSubscribableResult$1(
58660
+ err$1(toError(reason)),
58661
+ this.buildSubscribe(),
58662
+ () => this.refresh()
58663
+ )
58664
+ );
58665
+ }
58624
58666
  }
58625
58667
  return resolvedPromiseLike$2(
58626
58668
  buildSubscribableResult$1(
@@ -60978,4 +61020,4 @@ register({
60978
61020
  });
60979
61021
 
60980
61022
  export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, initializeOneStore, registerReportObserver, reportGraphqlQueryParseError };
60981
- // version: 1.410.0-19e0e5d352
61023
+ // version: 1.411.0-193e3a20c1