@salesforce/lds-runtime-one-app 1.452.0 → 1.454.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.
@@ -41,8 +41,6 @@ import bypassAppRestrictionEnabled from '@salesforce/gate/ui.services.LightningC
41
41
  import csrfValidationEnabled from '@salesforce/gate/ui.services.LightningConnect.CsrfValidation.enabled';
42
42
  import sessionApiEnabled from '@salesforce/gate/ui.uisdk.session.api.enabled';
43
43
  import useHttpUiapiLex from '@salesforce/gate/lds.usehttpuiapilex';
44
- import useHttpUiapiOneRuntime from '@salesforce/gate/lds.useHttpUiapiOneRuntime';
45
- import useHttpUiapiAuraSites from '@salesforce/gate/lds.usehttpuiapiaurasites';
46
44
  import auraBasedRequestsEnabled from '@salesforce/gate/ui.services.auraBasedRequests.enabled';
47
45
  import disableCreateContentDocumentAndVersionHTTPLexRuntime from '@salesforce/gate/lds.lex.http.disableCreateContentDocumentAndVersion';
48
46
  import useHotspotLimit from '@salesforce/gate/lds.pdl.useHotspotLimit';
@@ -50,7 +48,7 @@ import { createStorage, clearStorages } from 'force/ldsDurableStorage';
50
48
  import { registerSubRequestNetworkAdapter } from 'force/ldsNetwork';
51
49
 
52
50
  const { create: create$1, freeze, keys: keys$2, entries: entries$1 } = Object;
53
- const { isArray: isArray$3 } = Array;
51
+ const { isArray: isArray$4 } = Array;
54
52
  const { stringify: stringify$3, parse: parse$2 } = JSON;
55
53
  const WeakSetConstructor = WeakSet;
56
54
  const LogLevelMap = {
@@ -192,7 +190,7 @@ function stableJSONStringify$2(node) {
192
190
  }
193
191
  let i;
194
192
  let out;
195
- if (isArray$3(node)) {
193
+ if (isArray$4(node)) {
196
194
  out = "[";
197
195
  for (i = 0; i < node.length; i++) {
198
196
  if (i) {
@@ -300,7 +298,7 @@ function deepFreeze(value) {
300
298
  return;
301
299
  }
302
300
  deeplyFrozen.add(value);
303
- if (isArray$3(value)) {
301
+ if (isArray$4(value)) {
304
302
  for (let i = 0, len = value.length; i < len; i += 1) {
305
303
  deepFreeze(value[i]);
306
304
  }
@@ -527,7 +525,7 @@ function buildServiceDescriptor$p() {
527
525
  };
528
526
  }
529
527
 
530
- const { isArray: isArray$2 } = Array;
528
+ const { isArray: isArray$3 } = Array;
531
529
  let Ok$1 = class Ok {
532
530
  constructor(value) {
533
531
  this.value = value;
@@ -607,8 +605,8 @@ function deepEquals$1(x, y) {
607
605
  return y === null;
608
606
  } else if (y === null) {
609
607
  return x === null;
610
- } else if (isArray$2(x)) {
611
- if (!isArray$2(y) || x.length !== y.length) {
608
+ } else if (isArray$3(x)) {
609
+ if (!isArray$3(y) || x.length !== y.length) {
612
610
  return false;
613
611
  }
614
612
  for (let i = 0; i < x.length; ++i) {
@@ -2590,7 +2588,7 @@ function buildServiceDescriptor$d(luvio) {
2590
2588
  },
2591
2589
  };
2592
2590
  }
2593
- // version: 1.452.0-bcd113b7fd
2591
+ // version: 1.454.0-4223ab4365
2594
2592
 
2595
2593
  class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheControlCommand {
2596
2594
  constructor(config, documentRootType, services) {
@@ -2929,7 +2927,7 @@ function buildServiceDescriptor$9(notifyRecordUpdateAvailable, getNormalizedLuvi
2929
2927
  },
2930
2928
  };
2931
2929
  }
2932
- // version: 1.452.0-bcd113b7fd
2930
+ // version: 1.454.0-4223ab4365
2933
2931
 
2934
2932
  class RetryService {
2935
2933
  constructor(defaultRetryPolicy) {
@@ -4642,9 +4640,10 @@ var TypeCheckShapes;
4642
4640
  TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
4643
4641
  TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
4644
4642
  })(TypeCheckShapes || (TypeCheckShapes = {}));
4645
- // engine version: 0.161.0-fe06f180
4643
+ // engine version: 0.161.2-bd1bd38a
4646
4644
 
4647
4645
  const { keys: keys$1 } = Object;
4646
+ const { isArray: isArray$2 } = Array;
4648
4647
 
4649
4648
  // we're going to intentionally bundle this small bit of luvio engine code into
4650
4649
  // this module to keep it runtime dependency-free
@@ -4717,7 +4716,14 @@ const fetchNetworkAdapter = async (resourceRequest, _resourceRequestContext) =>
4717
4716
  function generateQueryString(params) {
4718
4717
  const searchParams = new URLSearchParams();
4719
4718
  for (const key of keys$1(params)) {
4720
- searchParams.append(key, String(params[key]));
4719
+ const value = params[key];
4720
+ // omit undefined and empty-array values entirely: String(undefined) === 'undefined'
4721
+ // and String([]) === '', both of which would otherwise serialize as a valueless
4722
+ // `key=` or literal `key=undefined` query param that servers can reject.
4723
+ if (value === undefined || (isArray$2(value) && value.length === 0)) {
4724
+ continue;
4725
+ }
4726
+ searchParams.append(key, String(value));
4721
4727
  }
4722
4728
  const queryString = searchParams.toString();
4723
4729
  if (queryString.length > 0) {
@@ -5734,7 +5740,7 @@ class PrioritizedConfigService {
5734
5740
  get: (_, property) => {
5735
5741
  const propertyPath = [...path, property];
5736
5742
  const value = this.valueFor(propertyPath);
5737
- return typeof value === "object" && value !== null && !isArray$3(value) ? this.buildReadonlyObjectProxy(propertyPath) : value;
5743
+ return typeof value === "object" && value !== null && !isArray$4(value) ? this.buildReadonlyObjectProxy(propertyPath) : value;
5738
5744
  },
5739
5745
  getOwnPropertyDescriptor: (target, property) => {
5740
5746
  const propertyPath = [...path, property];
@@ -5742,7 +5748,7 @@ class PrioritizedConfigService {
5742
5748
  return {
5743
5749
  value: (
5744
5750
  // TODO - need to wrap arrays in a Proxy as well
5745
- typeof value === "object" && value !== null && !isArray$3(value) ? this.buildReadonlyObjectProxy(propertyPath) : value
5751
+ typeof value === "object" && value !== null && !isArray$4(value) ? this.buildReadonlyObjectProxy(propertyPath) : value
5746
5752
  ),
5747
5753
  writable: false,
5748
5754
  configurable: true,
@@ -5843,7 +5849,7 @@ function getEnvironmentSetting(name) {
5843
5849
  }
5844
5850
  return undefined;
5845
5851
  }
5846
- // version: 1.452.0-1ecfe8af95
5852
+ // version: 1.454.0-761808c4e9
5847
5853
 
5848
5854
  /**
5849
5855
  * Helpers for reaching the Aura framework from the LDS Aura runtime.
@@ -5880,26 +5886,6 @@ function dispatchGlobalEvent(...args) {
5880
5886
  function getAuraClientService() {
5881
5887
  return getAura()?.clientService;
5882
5888
  }
5883
- /**
5884
- * Returns `true` when the Aura runtime is hosted inside an Aura/Experience
5885
- * site (Experience Builder / `communityApp`) rather than LEX (one.app).
5886
- * `$A.get('$Site')` is present and truthy on Aura sites and absent/falsy in
5887
- * LEX. A stable per-page signal, so it is safe to evaluate once at module
5888
- * load. Defensive: never throws.
5889
- *
5890
- * Used to keep the OneStore GraphQL adapter — and the HTTP UIAPI fetch path —
5891
- * on the Aura transport for sites, because the HTTP transport's CSRF handling
5892
- * does not work in the Aura Sites runtime (W-23092947).
5893
- */
5894
- function isAuraSite() {
5895
- const aura = getAura();
5896
- try {
5897
- return !!aura?.get?.('$Site');
5898
- }
5899
- catch {
5900
- return false;
5901
- }
5902
- }
5903
5889
 
5904
5890
  const auraClientService = getAuraClientService();
5905
5891
  const defaultConfig = {
@@ -7095,9 +7081,6 @@ function buildLuvioActionMarksSendInterceptor() {
7095
7081
  };
7096
7082
  }
7097
7083
 
7098
- function isOneRuntime() {
7099
- return !!globalThis.LWR;
7100
- }
7101
7084
  /**
7102
7085
  * Public UIAPI url paths verified for HTTP transport.
7103
7086
  *
@@ -7300,63 +7283,31 @@ const CONTENT_DOCUMENTS_VERSIONS_PATH = '/ui-api/records/content-documents/conte
7300
7283
  * paths: ['/ui-api/some-endpoint/{id}'],
7301
7284
  * }
7302
7285
  */
7303
- // Each runtime uses a SINGLE LDS gate that enables both the public and
7304
- // private path lists. The public/private split is preserved as two separate
7286
+ // This fork package (lds-runtime-one-app) is provisioned only in one/one.app's
7287
+ // Aura services=, which means it always runs as classic Aura LEX — never LWR,
7288
+ // never on a site. The single LDS gate `useHttpUiapiLex` enables both the public
7289
+ // and private path lists. The public/private split is preserved as two separate
7305
7290
  // arrays because the PRIVATE paths carry an extra condition: the server-side
7306
7291
  // `auraBasedRequests` UiSdk gate. If UiSdk turns that gate off, private
7307
7292
  // (UiTier-restricted) Connect resources can no longer be served over HTTP and
7308
7293
  // must fall back to Aura, whereas public/allowlisted paths are unaffected.
7309
- //
7310
- // Runtimes are mutually exclusive: One Runtime (globalThis.LWR), Aura Sites
7311
- // ($Site present), and LEX/one.app (everything else). Each has its own gate.
7312
7294
  const PREDICATE_PATH_SETS = [
7313
- // One Runtime — public UIAPI endpoints
7314
- {
7315
- predicate: () => isOneRuntime() && useHttpUiapiOneRuntime.isOpen({ fallback: false }),
7316
- paths: UIAPI_PUBLIC_PATHS,
7317
- },
7318
- // One Runtime — private UIAPI endpoints (also require the UiSdk gate)
7319
- {
7320
- predicate: () => isOneRuntime() &&
7321
- useHttpUiapiOneRuntime.isOpen({ fallback: false }) &&
7322
- auraBasedRequestsEnabled.isOpen({ fallback: false }),
7323
- paths: UIAPI_PRIVATE_PATHS,
7324
- },
7325
- // Aura Sites — public UIAPI endpoints.
7326
- // Gate defaults closed, which keeps HTTP UIAPI OFF on Aura/Experience sites:
7327
- // the HTTP transport's CSRF handling is broken there (W-23092947), so until
7328
- // that is fixed this gate must not be opened. Wiring it as a normal gated
7329
- // predicate (rather than a hard block) lets it be flipped on once CSRF works.
7330
- {
7331
- predicate: () => isAuraSite() && useHttpUiapiAuraSites.isOpen({ fallback: false }),
7332
- paths: UIAPI_PUBLIC_PATHS,
7333
- },
7334
- // Aura Sites — private UIAPI endpoints (also require the UiSdk gate)
7335
- {
7336
- predicate: () => isAuraSite() &&
7337
- useHttpUiapiAuraSites.isOpen({ fallback: false }) &&
7338
- auraBasedRequestsEnabled.isOpen({ fallback: false }),
7339
- paths: UIAPI_PRIVATE_PATHS,
7340
- },
7341
7295
  // LEX (one.app) — public UIAPI endpoints
7342
7296
  {
7343
- predicate: () => !isOneRuntime() && !isAuraSite() && useHttpUiapiLex.isOpen({ fallback: false }),
7297
+ predicate: () => useHttpUiapiLex.isOpen({ fallback: false }),
7344
7298
  paths: UIAPI_PUBLIC_PATHS,
7345
7299
  },
7346
7300
  // LEX (one.app) — private UIAPI endpoints (also require the UiSdk gate)
7347
7301
  {
7348
- predicate: () => !isOneRuntime() &&
7349
- !isAuraSite() &&
7350
- useHttpUiapiLex.isOpen({ fallback: false }) &&
7302
+ predicate: () => useHttpUiapiLex.isOpen({ fallback: false }) &&
7351
7303
  auraBasedRequestsEnabled.isOpen({ fallback: false }),
7352
7304
  paths: UIAPI_PRIVATE_PATHS,
7353
7305
  },
7354
7306
  // disableCreateContentDocumentAndVersionHTTPLexRuntime killswitch.
7355
- // Excluded on Aura Sites for the same broken-CSRF reason as the UIAPI paths
7356
- // (W-23092947); LEX / One Runtime are unaffected.
7307
+ // This fork only runs in LEX (one.app), never on a site, so the killswitch
7308
+ // alone controls the feature.
7357
7309
  {
7358
- predicate: () => !isAuraSite() &&
7359
- !disableCreateContentDocumentAndVersionHTTPLexRuntime.isOpen({ fallback: false }),
7310
+ predicate: () => !disableCreateContentDocumentAndVersionHTTPLexRuntime.isOpen({ fallback: false }),
7360
7311
  paths: [CONTENT_DOCUMENTS_VERSIONS_PATH],
7361
7312
  },
7362
7313
  ];
@@ -11235,7 +11186,7 @@ register({
11235
11186
  instrument: ldsNetworkAdapterInstrument,
11236
11187
  });
11237
11188
  // Publish buildPredictorForContext on the force/ldsEngine registration bus so that
11238
- // shared laf loaders can obtain it without a dynamic import("force/ldsEngineCreator"),
11189
+ // shared laf loaders can obtain it without a dynamic import of the aura ldsEngineCreator module,
11239
11190
  // which would evaluate this whole bootstrap a second time. See ADR
11240
11191
  // 2026-07-10-pdl-service-provisioner-decoupling. buildPredictorForContext is a hoisted
11241
11192
  // function declaration and internally no-ops (returns undefined) when the PDL gate is
@@ -11557,4 +11508,4 @@ function ldsEngineCreator() {
11557
11508
  }
11558
11509
 
11559
11510
  export { LexRequestStrategy, PDL_ENGINE_REGISTRATION_ID, PdlPrefetcherEventType, PdlRequestPriority, buildPredictorForContext, configService, ldsEngineCreator as default, initializeLDS, initializeOneStore, notifyUpdateAvailableFactory, registerRequestStrategy, saveRequestAsPrediction, subscribeToPrefetcherEvents, unregisterRequestStrategy, whenPredictionsReady };
11560
- // version: 1.452.0-bcd113b7fd
11511
+ // version: 1.454.0-4223ab4365
@@ -42,16 +42,4 @@ export interface AuraClientService {
42
42
  * `undefined` otherwise. Defensive: never throws.
43
43
  */
44
44
  export declare function getAuraClientService(): AuraClientService | undefined;
45
- /**
46
- * Returns `true` when the Aura runtime is hosted inside an Aura/Experience
47
- * site (Experience Builder / `communityApp`) rather than LEX (one.app).
48
- * `$A.get('$Site')` is present and truthy on Aura sites and absent/falsy in
49
- * LEX. A stable per-page signal, so it is safe to evaluate once at module
50
- * load. Defensive: never throws.
51
- *
52
- * Used to keep the OneStore GraphQL adapter — and the HTTP UIAPI fetch path —
53
- * on the Aura transport for sites, because the HTTP transport's CSRF handling
54
- * does not work in the Aura Sites runtime (W-23092947).
55
- */
56
- export declare function isAuraSite(): boolean;
57
45
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-one-app",
3
- "version": "1.452.0",
3
+ "version": "1.454.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS engine for the one.app (LEX) runtime.",
6
6
  "main": "dist/oneAppLdsEngineCreator.js",
@@ -34,53 +34,53 @@
34
34
  "release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-one-app"
35
35
  },
36
36
  "devDependencies": {
37
- "@conduit-client/service-provisioner": "3.26.0",
38
- "@conduit-client/tools-core": "3.26.0",
39
- "@salesforce/lds-adapters-apex": "^1.452.0",
40
- "@salesforce/lds-adapters-uiapi": "^1.452.0",
41
- "@salesforce/lds-ads-bridge": "^1.452.0",
42
- "@salesforce/lds-aura-storage": "^1.452.0",
43
- "@salesforce/lds-bindings": "^1.452.0",
44
- "@salesforce/lds-instrumentation": "^1.452.0",
45
- "@salesforce/lds-network-adapter": "^1.452.0",
46
- "@salesforce/lds-network-aura": "^1.452.0",
47
- "@salesforce/lds-network-fetch": "^1.452.0",
37
+ "@conduit-client/service-provisioner": "3.26.3",
38
+ "@conduit-client/tools-core": "3.26.3",
39
+ "@salesforce/lds-adapters-apex": "^1.454.0",
40
+ "@salesforce/lds-adapters-uiapi": "^1.454.0",
41
+ "@salesforce/lds-ads-bridge": "^1.454.0",
42
+ "@salesforce/lds-aura-storage": "^1.454.0",
43
+ "@salesforce/lds-bindings": "^1.454.0",
44
+ "@salesforce/lds-instrumentation": "^1.454.0",
45
+ "@salesforce/lds-network-adapter": "^1.454.0",
46
+ "@salesforce/lds-network-aura": "^1.454.0",
47
+ "@salesforce/lds-network-fetch": "^1.454.0",
48
48
  "jwt-encode": "1.0.1"
49
49
  },
50
50
  "dependencies": {
51
- "@conduit-client/command-aura-graphql-normalized-cache-control": "3.26.0",
52
- "@conduit-client/command-aura-network": "3.26.0",
53
- "@conduit-client/command-aura-normalized-cache-control": "3.26.0",
54
- "@conduit-client/command-fetch-network": "3.26.0",
55
- "@conduit-client/command-http-graphql-normalized-cache-control": "3.26.0",
56
- "@conduit-client/command-http-normalized-cache-control": "3.26.0",
57
- "@conduit-client/command-ndjson": "3.26.0",
58
- "@conduit-client/command-network": "3.26.0",
59
- "@conduit-client/command-sse": "3.26.0",
60
- "@conduit-client/command-streaming": "3.26.0",
61
- "@conduit-client/jwt-manager": "3.26.0",
62
- "@conduit-client/service-aura-network": "3.26.0",
63
- "@conduit-client/service-bindings-imperative": "3.26.0",
64
- "@conduit-client/service-bindings-lwc": "3.26.0",
65
- "@conduit-client/service-cache": "3.26.0",
66
- "@conduit-client/service-cache-control": "3.26.0",
67
- "@conduit-client/service-cache-inclusion-policy": "3.26.0",
68
- "@conduit-client/service-config": "3.26.0",
69
- "@conduit-client/service-feature-flags": "3.26.0",
70
- "@conduit-client/service-fetch-network": "3.26.0",
71
- "@conduit-client/service-instrument-command": "3.26.0",
72
- "@conduit-client/service-pubsub": "3.26.0",
73
- "@conduit-client/service-renewable-resource-manager": "3.26.0",
74
- "@conduit-client/service-store": "3.26.0",
75
- "@conduit-client/utils": "3.26.0",
76
- "@luvio/network-adapter-composable": "0.161.0",
77
- "@luvio/network-adapter-fetch": "0.161.0",
51
+ "@conduit-client/command-aura-graphql-normalized-cache-control": "3.26.3",
52
+ "@conduit-client/command-aura-network": "3.26.3",
53
+ "@conduit-client/command-aura-normalized-cache-control": "3.26.3",
54
+ "@conduit-client/command-fetch-network": "3.26.3",
55
+ "@conduit-client/command-http-graphql-normalized-cache-control": "3.26.3",
56
+ "@conduit-client/command-http-normalized-cache-control": "3.26.3",
57
+ "@conduit-client/command-ndjson": "3.26.3",
58
+ "@conduit-client/command-network": "3.26.3",
59
+ "@conduit-client/command-sse": "3.26.3",
60
+ "@conduit-client/command-streaming": "3.26.3",
61
+ "@conduit-client/jwt-manager": "3.26.3",
62
+ "@conduit-client/service-aura-network": "3.26.3",
63
+ "@conduit-client/service-bindings-imperative": "3.26.3",
64
+ "@conduit-client/service-bindings-lwc": "3.26.3",
65
+ "@conduit-client/service-cache": "3.26.3",
66
+ "@conduit-client/service-cache-control": "3.26.3",
67
+ "@conduit-client/service-cache-inclusion-policy": "3.26.3",
68
+ "@conduit-client/service-config": "3.26.3",
69
+ "@conduit-client/service-feature-flags": "3.26.3",
70
+ "@conduit-client/service-fetch-network": "3.26.3",
71
+ "@conduit-client/service-instrument-command": "3.26.3",
72
+ "@conduit-client/service-pubsub": "3.26.3",
73
+ "@conduit-client/service-renewable-resource-manager": "3.26.3",
74
+ "@conduit-client/service-store": "3.26.3",
75
+ "@conduit-client/utils": "3.26.3",
76
+ "@luvio/network-adapter-composable": "0.161.2",
77
+ "@luvio/network-adapter-fetch": "0.161.2",
78
78
  "@lwc/state": "^0.29.0",
79
- "@salesforce/lds-adapters-onestore-graphql": "^1.452.0",
79
+ "@salesforce/lds-adapters-onestore-graphql": "^1.454.0",
80
80
  "@salesforce/lds-adapters-uiapi-lex": "^1.415.0",
81
- "@salesforce/lds-durable-storage": "^1.452.0",
82
- "@salesforce/lds-luvio-service": "^1.452.0",
83
- "@salesforce/lds-luvio-uiapi-records-service": "^1.452.0"
81
+ "@salesforce/lds-durable-storage": "^1.454.0",
82
+ "@salesforce/lds-luvio-service": "^1.454.0",
83
+ "@salesforce/lds-luvio-uiapi-records-service": "^1.454.0"
84
84
  },
85
85
  "luvioBundlesize": [
86
86
  {