@salesforce/lds-runtime-aura 1.448.0 → 1.449.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.
@@ -402,6 +402,7 @@ class AuraNetworkCommand extends NetworkCommand$1 {
402
402
  storable: false
403
403
  };
404
404
  this.networkPreference = "aura";
405
+ this.additionalNullResponses = [];
405
406
  }
406
407
  get fetchParams() {
407
408
  throw new Error(
@@ -439,14 +440,37 @@ class AuraNetworkCommand extends NetworkCommand$1 {
439
440
  return err$1(toError("Error fetching component"));
440
441
  });
441
442
  }
443
+ isSemanticNullResponse(response) {
444
+ return this.additionalNullResponses.includes(response.status);
445
+ }
446
+ isProtocolNoBodyStatus(status) {
447
+ return status === 204 || status === 205;
448
+ }
449
+ isUndeclaredNoBodyResponse(response) {
450
+ return this.isProtocolNoBodyStatus(response.status) && !this.isSemanticNullResponse(response);
451
+ }
442
452
  convertFetchResponseToData(response) {
443
453
  return response.then(
444
454
  (response2) => {
445
455
  if (response2.ok) {
446
- return response2.json().then(
447
- (json) => ok$2(json),
448
- (reason) => err$1(toError(reason))
449
- ).finally(() => {
456
+ let resultPromise;
457
+ if (this.isSemanticNullResponse(response2)) {
458
+ resultPromise = Promise.resolve(ok$2(null));
459
+ } else if (this.isUndeclaredNoBodyResponse(response2)) {
460
+ resultPromise = Promise.resolve(
461
+ err$1(
462
+ toError(
463
+ `Unexpected ${response2.status} response: no-content status was not declared in the API specification. Declare this response in your OAS without a content property.`
464
+ )
465
+ )
466
+ );
467
+ } else {
468
+ resultPromise = response2.json().then(
469
+ (json) => ok$2(json),
470
+ (reason) => err$1(toError(reason))
471
+ );
472
+ }
473
+ return resultPromise.finally(() => {
450
474
  try {
451
475
  this.afterRequestHooks({ statusCode: response2.status });
452
476
  } catch {
@@ -2567,7 +2591,7 @@ function buildServiceDescriptor$d(luvio) {
2567
2591
  },
2568
2592
  };
2569
2593
  }
2570
- // version: 1.448.0-ea92d38c8e
2594
+ // version: 1.449.0-83e1fb14eb
2571
2595
 
2572
2596
  class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheControlCommand {
2573
2597
  constructor(config, documentRootType, services) {
@@ -2906,7 +2930,7 @@ function buildServiceDescriptor$9(notifyRecordUpdateAvailable, getNormalizedLuvi
2906
2930
  },
2907
2931
  };
2908
2932
  }
2909
- // version: 1.448.0-ea92d38c8e
2933
+ // version: 1.449.0-83e1fb14eb
2910
2934
 
2911
2935
  class RetryService {
2912
2936
  constructor(defaultRetryPolicy) {
@@ -5798,7 +5822,7 @@ function getEnvironmentSetting(name) {
5798
5822
  }
5799
5823
  return undefined;
5800
5824
  }
5801
- // version: 1.448.0-8bacde725a
5825
+ // version: 1.449.0-7b415dc950
5802
5826
 
5803
5827
  /**
5804
5828
  * Helpers for reaching the Aura framework from the LDS Aura runtime.
@@ -7614,10 +7638,9 @@ const DATA_360_CDP_URL_REWRITE_AUTH_SCOPE = 'data_360_cdp_url_rewrite';
7614
7638
  // The server's `SFAPJwtClaimHandlerImpl` emits it for CDP-provisioned orgs as a
7615
7639
  // verbatim passthrough of `DataCloudTenant.getApiEndpoint()` — no normalization.
7616
7640
  // The exact FORM therefore varies and must not be assumed: it may be a bare host
7617
- // (`<hash>.c360a.salesforce.com`) or a full URL with scheme
7618
- // (`https://a360.cdp.<region>.aws.sfdc.cl`), and the suffix is cloud-dependent
7619
- // (commercial `.salesforce.com`, substrate `.aws.sfdc.cl`, GovCloud
7620
- // `.salesforce.mil`). This is why the interceptor strips any scheme before parsing
7641
+ // (`<host>`) or a full URL with scheme (`<scheme>://<host>`), and the host suffix
7642
+ // (`<domain-suffix>`) is environment-dependent it differs per deployment
7643
+ // environment. This is why the interceptor strips any scheme before parsing
7621
7644
  // and applies no host-suffix policy — see the interceptor docblock's trust boundary.
7622
7645
  const CDP_URL_CLAIM = 'cdp_url';
7623
7646
  function buildDispatchingSfapJwtResolver(legacyResolver, parameterizedResolver) {
@@ -11461,4 +11484,4 @@ function ldsEngineCreator() {
11461
11484
  }
11462
11485
 
11463
11486
  export { LexRequestStrategy, PdlPrefetcherEventType, PdlRequestPriority, buildPredictorForContext, configService, ldsEngineCreator as default, initializeLDS, initializeOneStore, notifyUpdateAvailableFactory, registerRequestStrategy, saveRequestAsPrediction, subscribeToPrefetcherEvents, unregisterRequestStrategy, whenPredictionsReady };
11464
- // version: 1.448.0-ea92d38c8e
11487
+ // version: 1.449.0-83e1fb14eb
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-aura",
3
- "version": "1.448.0",
3
+ "version": "1.449.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS engine for Aura runtime.",
6
6
  "main": "dist/ldsEngineCreator.js",
@@ -34,53 +34,53 @@
34
34
  "release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-aura"
35
35
  },
36
36
  "devDependencies": {
37
- "@conduit-client/service-provisioner": "3.25.0",
38
- "@conduit-client/tools-core": "3.25.0",
39
- "@salesforce/lds-adapters-apex": "^1.448.0",
40
- "@salesforce/lds-adapters-uiapi": "^1.448.0",
41
- "@salesforce/lds-ads-bridge": "^1.448.0",
42
- "@salesforce/lds-aura-storage": "^1.448.0",
43
- "@salesforce/lds-bindings": "^1.448.0",
44
- "@salesforce/lds-instrumentation": "^1.448.0",
45
- "@salesforce/lds-network-adapter": "^1.448.0",
46
- "@salesforce/lds-network-aura": "^1.448.0",
47
- "@salesforce/lds-network-fetch": "^1.448.0",
37
+ "@conduit-client/service-provisioner": "3.25.1",
38
+ "@conduit-client/tools-core": "3.25.1",
39
+ "@salesforce/lds-adapters-apex": "^1.449.0",
40
+ "@salesforce/lds-adapters-uiapi": "^1.449.0",
41
+ "@salesforce/lds-ads-bridge": "^1.449.0",
42
+ "@salesforce/lds-aura-storage": "^1.449.0",
43
+ "@salesforce/lds-bindings": "^1.449.0",
44
+ "@salesforce/lds-instrumentation": "^1.449.0",
45
+ "@salesforce/lds-network-adapter": "^1.449.0",
46
+ "@salesforce/lds-network-aura": "^1.449.0",
47
+ "@salesforce/lds-network-fetch": "^1.449.0",
48
48
  "jwt-encode": "1.0.1"
49
49
  },
50
50
  "dependencies": {
51
- "@conduit-client/command-aura-graphql-normalized-cache-control": "3.25.0",
52
- "@conduit-client/command-aura-network": "3.25.0",
53
- "@conduit-client/command-aura-normalized-cache-control": "3.25.0",
54
- "@conduit-client/command-fetch-network": "3.25.0",
55
- "@conduit-client/command-http-graphql-normalized-cache-control": "3.25.0",
56
- "@conduit-client/command-http-normalized-cache-control": "3.25.0",
57
- "@conduit-client/command-ndjson": "3.25.0",
58
- "@conduit-client/command-network": "3.25.0",
59
- "@conduit-client/command-sse": "3.25.0",
60
- "@conduit-client/command-streaming": "3.25.0",
61
- "@conduit-client/jwt-manager": "3.25.0",
62
- "@conduit-client/service-aura-network": "3.25.0",
63
- "@conduit-client/service-bindings-imperative": "3.25.0",
64
- "@conduit-client/service-bindings-lwc": "3.25.0",
65
- "@conduit-client/service-cache": "3.25.0",
66
- "@conduit-client/service-cache-control": "3.25.0",
67
- "@conduit-client/service-cache-inclusion-policy": "3.25.0",
68
- "@conduit-client/service-config": "3.25.0",
69
- "@conduit-client/service-feature-flags": "3.25.0",
70
- "@conduit-client/service-fetch-network": "3.25.0",
71
- "@conduit-client/service-instrument-command": "3.25.0",
72
- "@conduit-client/service-pubsub": "3.25.0",
73
- "@conduit-client/service-renewable-resource-manager": "3.25.0",
74
- "@conduit-client/service-store": "3.25.0",
75
- "@conduit-client/utils": "3.25.0",
51
+ "@conduit-client/command-aura-graphql-normalized-cache-control": "3.25.1",
52
+ "@conduit-client/command-aura-network": "3.25.1",
53
+ "@conduit-client/command-aura-normalized-cache-control": "3.25.1",
54
+ "@conduit-client/command-fetch-network": "3.25.1",
55
+ "@conduit-client/command-http-graphql-normalized-cache-control": "3.25.1",
56
+ "@conduit-client/command-http-normalized-cache-control": "3.25.1",
57
+ "@conduit-client/command-ndjson": "3.25.1",
58
+ "@conduit-client/command-network": "3.25.1",
59
+ "@conduit-client/command-sse": "3.25.1",
60
+ "@conduit-client/command-streaming": "3.25.1",
61
+ "@conduit-client/jwt-manager": "3.25.1",
62
+ "@conduit-client/service-aura-network": "3.25.1",
63
+ "@conduit-client/service-bindings-imperative": "3.25.1",
64
+ "@conduit-client/service-bindings-lwc": "3.25.1",
65
+ "@conduit-client/service-cache": "3.25.1",
66
+ "@conduit-client/service-cache-control": "3.25.1",
67
+ "@conduit-client/service-cache-inclusion-policy": "3.25.1",
68
+ "@conduit-client/service-config": "3.25.1",
69
+ "@conduit-client/service-feature-flags": "3.25.1",
70
+ "@conduit-client/service-fetch-network": "3.25.1",
71
+ "@conduit-client/service-instrument-command": "3.25.1",
72
+ "@conduit-client/service-pubsub": "3.25.1",
73
+ "@conduit-client/service-renewable-resource-manager": "3.25.1",
74
+ "@conduit-client/service-store": "3.25.1",
75
+ "@conduit-client/utils": "3.25.1",
76
76
  "@luvio/network-adapter-composable": "0.161.0",
77
77
  "@luvio/network-adapter-fetch": "0.161.0",
78
78
  "@lwc/state": "^0.29.0",
79
- "@salesforce/lds-adapters-onestore-graphql": "^1.448.0",
79
+ "@salesforce/lds-adapters-onestore-graphql": "^1.449.0",
80
80
  "@salesforce/lds-adapters-uiapi-lex": "^1.415.0",
81
- "@salesforce/lds-durable-storage": "^1.448.0",
82
- "@salesforce/lds-luvio-service": "^1.448.0",
83
- "@salesforce/lds-luvio-uiapi-records-service": "^1.448.0"
81
+ "@salesforce/lds-durable-storage": "^1.449.0",
82
+ "@salesforce/lds-luvio-service": "^1.449.0",
83
+ "@salesforce/lds-luvio-uiapi-records-service": "^1.449.0"
84
84
  },
85
85
  "luvioBundlesize": [
86
86
  {