@salesforce/lds-runtime-one-runtime 1.468.0 → 1.469.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.
@@ -13,6 +13,7 @@
13
13
  */
14
14
  /* proxy-compat-disable */
15
15
  import { HttpStatusCode as HttpStatusCode$2, InMemoryStore, Environment, Luvio, InMemoryStoreQueryEvaluator } from 'force/luvioEngine';
16
+ import useHttpUiapiLex from '@salesforce/gate/lds.usehttpuiapilex';
16
17
  import usePersistedQueries from '@salesforce/gate/lds.graphqlusepersistedqueries';
17
18
  import canCombineRecordLayoutRequests from '@salesforce/gate/lds.pdl.canCombineRecordLayoutRequests';
18
19
  import { GetApexWireAdapterFactory, registerPrefetcher as registerPrefetcher$1 } from 'force/ldsAdaptersApex';
@@ -38,7 +39,6 @@ import csrfValidationEnabled from '@salesforce/gate/ui.services.LightningConnect
38
39
  import sessionApiEnabled from '@salesforce/gate/ui.uisdk.session.api.enabled';
39
40
  import { pageScopedCache } from 'instrumentation/utility';
40
41
  import { createStorage, clearStorages } from 'force/ldsDurableStorage';
41
- import useHttpUiapiLex from '@salesforce/gate/lds.usehttpuiapilex';
42
42
  import auraBasedRequestsEnabled from '@salesforce/gate/ui.services.auraBasedRequests.enabled';
43
43
  import { registerSubRequestNetworkAdapter } from 'force/ldsNetwork';
44
44
 
@@ -2785,7 +2785,7 @@ function buildServiceDescriptor$d(luvio) {
2785
2785
  },
2786
2786
  };
2787
2787
  }
2788
- // version: 1.468.0-9ef0fbdaee
2788
+ // version: 1.469.0-efd4e5a180
2789
2789
 
2790
2790
  class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheControlCommand {
2791
2791
  constructor(config, documentRootType, services) {
@@ -3124,7 +3124,7 @@ function buildServiceDescriptor$9(notifyRecordUpdateAvailable, getNormalizedLuvi
3124
3124
  },
3125
3125
  };
3126
3126
  }
3127
- // version: 1.468.0-9ef0fbdaee
3127
+ // version: 1.469.0-efd4e5a180
3128
3128
 
3129
3129
  class RetryService {
3130
3130
  constructor(defaultRetryPolicy) {
@@ -6121,7 +6121,7 @@ function createActionEndMark(responseStatus, responseStatusText, serverTiming, u
6121
6121
  const ctx = {
6122
6122
  id: instrumentationId,
6123
6123
  state: responseStatusText || getResponseStatusText(responseStatus.toString()),
6124
- def: url,
6124
+ def: toMarkDef(url),
6125
6125
  };
6126
6126
  // this step adds the serverTime to the base object, as opposed to being in the context field
6127
6127
  const receiveCtx = { ...ctx, serverTime: getServerTimeObject(serverTiming) };
@@ -6129,6 +6129,18 @@ function createActionEndMark(responseStatus, responseStatusText, serverTiming, u
6129
6129
  mark('actions', 'finishStart', ctx);
6130
6130
  mark('actions', 'finishEnd', ctx);
6131
6131
  }
6132
+ // A path segment (or comma-separated item within one, e.g. records/batch/001..,005..,
6133
+ // with the comma raw or percent-encoded) that looks like a 15- or 18-char Salesforce ID.
6134
+ // Requiring a digit keeps alphabetic API names of the same length (e.g.
6135
+ // OpportunityHistory) intact.
6136
+ const RECORD_ID_SEGMENT = /(\/|,|%2[Cc])(?=[A-Za-z]*\d)[A-Za-z0-9]{15}(?:[A-Za-z0-9]{3})?(?=\/|,|%2[Cc]|$)/g;
6137
+ // The action mark `def` is beaconed to the server, whose PII check flags user IDs (005...)
6138
+ // anywhere under marks.actions and then re-tokenizes the entire payload. Drop the query
6139
+ // string and template record IDs so `def` identifies the endpoint without carrying data,
6140
+ // analogous to the Aura action name it replaces.
6141
+ function toMarkDef(url) {
6142
+ return url.split(/[?#]/)[0].replace(RECORD_ID_SEGMENT, '$1{id}');
6143
+ }
6132
6144
  const seenResources = new WeakSet();
6133
6145
  function createTransportEndMark(responseStatus, responseStatusText, url, context, errorMessage) {
6134
6146
  if (context && context.instrumentationId) {
@@ -8065,7 +8077,7 @@ function getEnvironmentSetting(name) {
8065
8077
  }
8066
8078
  return undefined;
8067
8079
  }
8068
- // version: 1.468.0-c060a9b9c6
8080
+ // version: 1.469.0-20bccd4816
8069
8081
 
8070
8082
  /**
8071
8083
  * Helpers for reaching the Aura framework from the LDS Aura runtime.
@@ -11632,12 +11644,8 @@ function initializeOneStore(luvio) {
11632
11644
  version: '1.0',
11633
11645
  service: prefetchSfapJwt,
11634
11646
  };
11635
- // Use the Aura transport for the OneStore GraphQL command by default. The
11636
- // HTTP transport's CSRF handling is broken on Aura/Experience sites
11637
- // (W-23092947), and defaulting to Aura keeps a single, known-good transport
11638
- // across LEX and sites. Paired with the HTTP UIAPI fetch path being
11639
- // disabled on sites (see network-fetch.ts).
11640
- featureFlagsService.set('graphQLUseAura', true);
11647
+ // OneStore GraphQL follows the HTTP UIAPI gate (LEX never runs on sites).
11648
+ featureFlagsService.set('graphQLUseAura', !useHttpUiapiLex.isOpen({ fallback: false }));
11641
11649
  // Persisted (named) GraphQL queries; no consumers yet (W-23971639).
11642
11650
  featureFlagsService.set('graphQLUsePersistedQueries', usePersistedQueries.isOpen({ fallback: false }));
11643
11651
  const services = [
@@ -11700,4 +11708,4 @@ function ldsEngineCreator() {
11700
11708
  }
11701
11709
 
11702
11710
  export { LexRequestStrategy, PDL_ENGINE_REGISTRATION_ID, PdlPrefetcherEventType, PdlRequestPriority, buildPredictorForContext, configService, ldsEngineCreator as default, initializeLDS, initializeOneStore, notifyUpdateAvailableFactory, registerRequestStrategy, saveRequestAsPrediction, subscribeToPrefetcherEvents, unregisterRequestStrategy, whenPredictionsReady };
11703
- // version: 1.468.0-9ef0fbdaee
11711
+ // version: 1.469.0-efd4e5a180
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-one-runtime",
3
- "version": "1.468.0",
3
+ "version": "1.469.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS engine for the LEX on One Runtime (LWR) runtime.",
6
6
  "main": "dist/oneRuntimeLdsEngineCreator.js",
@@ -34,54 +34,54 @@
34
34
  "release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-one-runtime"
35
35
  },
36
36
  "devDependencies": {
37
- "@conduit-client/service-provisioner": "3.35.0",
38
- "@conduit-client/tools-core": "3.35.0",
39
- "@salesforce/lds-adapters-apex": "^1.468.0",
40
- "@salesforce/lds-adapters-uiapi": "^1.468.0",
41
- "@salesforce/lds-ads-bridge": "^1.468.0",
42
- "@salesforce/lds-aura-storage": "^1.468.0",
43
- "@salesforce/lds-bindings": "^1.468.0",
44
- "@salesforce/lds-instrumentation": "^1.468.0",
45
- "@salesforce/lds-network-adapter": "^1.468.0",
46
- "@salesforce/lds-network-aura": "^1.468.0",
47
- "@salesforce/lds-network-fetch": "^1.468.0",
48
- "@salesforce/lds-runtime-shared": "^1.468.0",
37
+ "@conduit-client/service-provisioner": "3.35.1",
38
+ "@conduit-client/tools-core": "3.35.1",
39
+ "@salesforce/lds-adapters-apex": "^1.469.0",
40
+ "@salesforce/lds-adapters-uiapi": "^1.469.0",
41
+ "@salesforce/lds-ads-bridge": "^1.469.0",
42
+ "@salesforce/lds-aura-storage": "^1.469.0",
43
+ "@salesforce/lds-bindings": "^1.469.0",
44
+ "@salesforce/lds-instrumentation": "^1.469.0",
45
+ "@salesforce/lds-network-adapter": "^1.469.0",
46
+ "@salesforce/lds-network-aura": "^1.469.0",
47
+ "@salesforce/lds-network-fetch": "^1.469.0",
48
+ "@salesforce/lds-runtime-shared": "^1.469.0",
49
49
  "jwt-encode": "1.0.1"
50
50
  },
51
51
  "dependencies": {
52
- "@conduit-client/command-aura-graphql-normalized-cache-control": "3.35.0",
53
- "@conduit-client/command-aura-network": "3.35.0",
54
- "@conduit-client/command-aura-normalized-cache-control": "3.35.0",
55
- "@conduit-client/command-fetch-network": "3.35.0",
56
- "@conduit-client/command-http-graphql-normalized-cache-control": "3.35.0",
57
- "@conduit-client/command-http-normalized-cache-control": "3.35.0",
58
- "@conduit-client/command-ndjson": "3.35.0",
59
- "@conduit-client/command-network": "3.35.0",
60
- "@conduit-client/command-sse": "3.35.0",
61
- "@conduit-client/command-streaming": "3.35.0",
62
- "@conduit-client/jwt-manager": "3.35.0",
63
- "@conduit-client/service-aura-network": "3.35.0",
64
- "@conduit-client/service-bindings-imperative": "3.35.0",
65
- "@conduit-client/service-bindings-lwc": "3.35.0",
66
- "@conduit-client/service-cache": "3.35.0",
67
- "@conduit-client/service-cache-control": "3.35.0",
68
- "@conduit-client/service-cache-inclusion-policy": "3.35.0",
69
- "@conduit-client/service-config": "3.35.0",
70
- "@conduit-client/service-feature-flags": "3.35.0",
71
- "@conduit-client/service-fetch-network": "3.35.0",
72
- "@conduit-client/service-instrument-command": "3.35.0",
73
- "@conduit-client/service-pubsub": "3.35.0",
74
- "@conduit-client/service-renewable-resource-manager": "3.35.0",
75
- "@conduit-client/service-store": "3.35.0",
76
- "@conduit-client/utils": "3.35.0",
52
+ "@conduit-client/command-aura-graphql-normalized-cache-control": "3.35.1",
53
+ "@conduit-client/command-aura-network": "3.35.1",
54
+ "@conduit-client/command-aura-normalized-cache-control": "3.35.1",
55
+ "@conduit-client/command-fetch-network": "3.35.1",
56
+ "@conduit-client/command-http-graphql-normalized-cache-control": "3.35.1",
57
+ "@conduit-client/command-http-normalized-cache-control": "3.35.1",
58
+ "@conduit-client/command-ndjson": "3.35.1",
59
+ "@conduit-client/command-network": "3.35.1",
60
+ "@conduit-client/command-sse": "3.35.1",
61
+ "@conduit-client/command-streaming": "3.35.1",
62
+ "@conduit-client/jwt-manager": "3.35.1",
63
+ "@conduit-client/service-aura-network": "3.35.1",
64
+ "@conduit-client/service-bindings-imperative": "3.35.1",
65
+ "@conduit-client/service-bindings-lwc": "3.35.1",
66
+ "@conduit-client/service-cache": "3.35.1",
67
+ "@conduit-client/service-cache-control": "3.35.1",
68
+ "@conduit-client/service-cache-inclusion-policy": "3.35.1",
69
+ "@conduit-client/service-config": "3.35.1",
70
+ "@conduit-client/service-feature-flags": "3.35.1",
71
+ "@conduit-client/service-fetch-network": "3.35.1",
72
+ "@conduit-client/service-instrument-command": "3.35.1",
73
+ "@conduit-client/service-pubsub": "3.35.1",
74
+ "@conduit-client/service-renewable-resource-manager": "3.35.1",
75
+ "@conduit-client/service-store": "3.35.1",
76
+ "@conduit-client/utils": "3.35.1",
77
77
  "@luvio/network-adapter-composable": "0.161.2",
78
78
  "@luvio/network-adapter-fetch": "0.161.2",
79
79
  "@lwc/state": "^0.29.0",
80
- "@salesforce/lds-adapters-onestore-graphql": "^1.468.0",
80
+ "@salesforce/lds-adapters-onestore-graphql": "^1.469.0",
81
81
  "@salesforce/lds-adapters-uiapi-lex": "^1.415.0",
82
- "@salesforce/lds-durable-storage": "^1.468.0",
83
- "@salesforce/lds-luvio-service": "^1.468.0",
84
- "@salesforce/lds-luvio-uiapi-records-service": "^1.468.0"
82
+ "@salesforce/lds-durable-storage": "^1.469.0",
83
+ "@salesforce/lds-luvio-service": "^1.469.0",
84
+ "@salesforce/lds-luvio-uiapi-records-service": "^1.469.0"
85
85
  },
86
86
  "luvioBundlesize": [
87
87
  {