@salesforce/lds-runtime-mobile 1.447.1 → 1.448.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 +37 -5
  2. package/package.json +33 -33
  3. package/sfdc/main.js +37 -5
package/dist/main.js CHANGED
@@ -57068,7 +57068,14 @@ class AuraNetworkCommand extends NetworkCommand$1 {
57068
57068
  fetch() {
57069
57069
  if (this.shouldUseAuraNetwork()) {
57070
57070
  return this.convertAuraResponseToData(
57071
- this.services.auraNetwork(this.endpoint, this.auraParams, this.actionConfig),
57071
+ // The Aura transport is untyped at the network boundary (getReturnValue: () =>
57072
+ // Record<string, unknown>); assert it to this command's concrete Data here so the
57073
+ // untyped boundary is isolated to this single site rather than leaking `any`.
57074
+ this.services.auraNetwork(
57075
+ this.endpoint,
57076
+ this.auraParams,
57077
+ this.actionConfig
57078
+ ),
57072
57079
  this.coerceAuraErrors
57073
57080
  );
57074
57081
  } else if (this.shouldUseFetch()) {
@@ -57664,8 +57671,13 @@ class AuraCacheControlCommand extends CacheControlCommand {
57664
57671
  }
57665
57672
  requestFromNetwork() {
57666
57673
  if (this.shouldUseAuraNetwork()) {
57674
+ const responsePromise = this.services.auraNetwork(
57675
+ this.endpoint,
57676
+ this.auraParams,
57677
+ this.actionConfig
57678
+ );
57667
57679
  return this.convertAuraResponseToData(
57668
- this.services.auraNetwork(this.endpoint, this.auraParams, this.actionConfig),
57680
+ responsePromise,
57669
57681
  (errs) => this.coerceAuraErrors(errs)
57670
57682
  );
57671
57683
  } else if (this.shouldUseFetch()) {
@@ -58670,6 +58682,14 @@ class O11ySpan {
58670
58682
  this.attributes = { ...this.attributes, ...attributes };
58671
58683
  return this;
58672
58684
  }
58685
+ addLink(_link) {
58686
+ this.logger.warn("O11ySpan does not support addLink.");
58687
+ return this;
58688
+ }
58689
+ addLinks(_links) {
58690
+ this.logger.warn("O11ySpan does not support addLinks.");
58691
+ return this;
58692
+ }
58673
58693
  addEvent(_name, _attributesOrStartTime, _startTime) {
58674
58694
  this.logger.warn("O11ySpan does not support addEvents.");
58675
58695
  return this;
@@ -58729,6 +58749,9 @@ class O11yMeter {
58729
58749
  }
58730
58750
  return new O11yCounter(name, this.o11yInstrumentation, this.logger);
58731
58751
  }
58752
+ createGauge(_name, _options) {
58753
+ return new O11yGauge(this.logger);
58754
+ }
58732
58755
  createUpDownCounter(_name, _options) {
58733
58756
  return new O11yUpDownCounter(this.logger);
58734
58757
  }
@@ -58786,6 +58809,14 @@ class O11yHistogram {
58786
58809
  );
58787
58810
  }
58788
58811
  }
58812
+ class O11yGauge {
58813
+ constructor(logger) {
58814
+ this.logger = logger;
58815
+ }
58816
+ record(_value, _attributes, _context) {
58817
+ this.logger.warn("O11yGauge not supported yet.");
58818
+ }
58819
+ }
58789
58820
  class O11yUpDownCounter {
58790
58821
  constructor(logger) {
58791
58822
  this.logger = logger;
@@ -58977,7 +59008,7 @@ function buildServiceDescriptor$b(luvio) {
58977
59008
  },
58978
59009
  };
58979
59010
  }
58980
- // version: 1.447.1-1f695b605e
59011
+ // version: 1.448.0-ea92d38c8e
58981
59012
 
58982
59013
  /**
58983
59014
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -59003,7 +59034,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
59003
59034
  },
59004
59035
  };
59005
59036
  }
59006
- // version: 1.447.1-1f695b605e
59037
+ // version: 1.448.0-ea92d38c8e
59007
59038
 
59008
59039
  function findExecutableOperation(input) {
59009
59040
  const operations = input.query.definitions.filter(
@@ -59236,6 +59267,7 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
59236
59267
  }
59237
59268
  return addTypenameToDocument(augmentedQueryResult.value);
59238
59269
  }
59270
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- load-bearing: GraphQLResponse.data is `Record<string,any> | null | undefined`, but WriteInput<Data>.data requires `Data`. Narrowing the Data arg to GraphQLData yields TS2322 at the return (`data.data` includes null|undefined; tests write `data: undefined` for error responses — see error-handling spec). The `any` faithfully models that the cache write accepts the nullable response payload. Same #870 GraphQLData/GraphQLResponse contravariance family.
59239
59271
  buildWriteInput(data) {
59240
59272
  const extensionResult = buildGraphQLInputExtension({
59241
59273
  ...this.config,
@@ -61692,4 +61724,4 @@ register({
61692
61724
  });
61693
61725
 
61694
61726
  export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, initializeOneStore, registerReportObserver, reportGraphqlQueryParseError };
61695
- // version: 1.447.1-1f695b605e
61727
+ // version: 1.448.0-ea92d38c8e
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-mobile",
3
- "version": "1.447.1",
3
+ "version": "1.448.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,43 +32,43 @@
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.24.0",
36
- "@conduit-client/service-bindings-lwc": "3.24.0",
37
- "@conduit-client/service-provisioner": "3.24.0",
38
- "@salesforce/lds-adapters-uiapi": "^1.447.1",
39
- "@salesforce/lds-bindings": "^1.447.1",
40
- "@salesforce/lds-instrumentation": "^1.447.1",
41
- "@salesforce/lds-luvio-service": "^1.447.1",
42
- "@salesforce/lds-luvio-uiapi-records-service": "^1.447.1",
35
+ "@conduit-client/service-bindings-imperative": "3.25.0",
36
+ "@conduit-client/service-bindings-lwc": "3.25.0",
37
+ "@conduit-client/service-provisioner": "3.25.0",
38
+ "@salesforce/lds-adapters-uiapi": "^1.448.0",
39
+ "@salesforce/lds-bindings": "^1.448.0",
40
+ "@salesforce/lds-instrumentation": "^1.448.0",
41
+ "@salesforce/lds-luvio-service": "^1.448.0",
42
+ "@salesforce/lds-luvio-uiapi-records-service": "^1.448.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.24.0",
49
- "@conduit-client/command-aura-normalized-cache-control": "3.24.0",
50
- "@conduit-client/command-fetch-network": "3.24.0",
51
- "@conduit-client/command-http-normalized-cache-control": "3.24.0",
52
- "@conduit-client/command-network": "3.24.0",
53
- "@conduit-client/service-cache": "3.24.0",
54
- "@conduit-client/service-cache-control": "3.24.0",
55
- "@conduit-client/service-cache-inclusion-policy": "3.24.0",
56
- "@conduit-client/service-fetch-network": "3.24.0",
57
- "@conduit-client/service-instrument-command": "3.24.0",
58
- "@conduit-client/service-instrumentation": "3.24.0",
59
- "@conduit-client/service-pubsub": "3.24.0",
60
- "@conduit-client/service-store": "3.24.0",
61
- "@conduit-client/utils": "3.24.0",
62
- "@salesforce/lds-adapters-graphql": "^1.447.1",
63
- "@salesforce/lds-drafts": "^1.447.1",
64
- "@salesforce/lds-durable-records": "^1.447.1",
65
- "@salesforce/lds-network-adapter": "^1.447.1",
66
- "@salesforce/lds-network-nimbus": "^1.447.1",
67
- "@salesforce/lds-store-binary": "^1.447.1",
68
- "@salesforce/lds-store-nimbus": "^1.447.1",
69
- "@salesforce/lds-store-sql": "^1.447.1",
70
- "@salesforce/lds-utils-adapters": "^1.447.1",
71
- "@salesforce/nimbus-plugin-lds": "^1.447.1",
48
+ "@conduit-client/command-aura-network": "3.25.0",
49
+ "@conduit-client/command-aura-normalized-cache-control": "3.25.0",
50
+ "@conduit-client/command-fetch-network": "3.25.0",
51
+ "@conduit-client/command-http-normalized-cache-control": "3.25.0",
52
+ "@conduit-client/command-network": "3.25.0",
53
+ "@conduit-client/service-cache": "3.25.0",
54
+ "@conduit-client/service-cache-control": "3.25.0",
55
+ "@conduit-client/service-cache-inclusion-policy": "3.25.0",
56
+ "@conduit-client/service-fetch-network": "3.25.0",
57
+ "@conduit-client/service-instrument-command": "3.25.0",
58
+ "@conduit-client/service-instrumentation": "3.25.0",
59
+ "@conduit-client/service-pubsub": "3.25.0",
60
+ "@conduit-client/service-store": "3.25.0",
61
+ "@conduit-client/utils": "3.25.0",
62
+ "@salesforce/lds-adapters-graphql": "^1.448.0",
63
+ "@salesforce/lds-drafts": "^1.448.0",
64
+ "@salesforce/lds-durable-records": "^1.448.0",
65
+ "@salesforce/lds-network-adapter": "^1.448.0",
66
+ "@salesforce/lds-network-nimbus": "^1.448.0",
67
+ "@salesforce/lds-store-binary": "^1.448.0",
68
+ "@salesforce/lds-store-nimbus": "^1.448.0",
69
+ "@salesforce/lds-store-sql": "^1.448.0",
70
+ "@salesforce/lds-utils-adapters": "^1.448.0",
71
+ "@salesforce/nimbus-plugin-lds": "^1.448.0",
72
72
  "babel-plugin-dynamic-import-node": "^2.3.3",
73
73
  "wait-for-expect": "^3.0.2"
74
74
  },
package/sfdc/main.js CHANGED
@@ -57068,7 +57068,14 @@ class AuraNetworkCommand extends NetworkCommand$1 {
57068
57068
  fetch() {
57069
57069
  if (this.shouldUseAuraNetwork()) {
57070
57070
  return this.convertAuraResponseToData(
57071
- this.services.auraNetwork(this.endpoint, this.auraParams, this.actionConfig),
57071
+ // The Aura transport is untyped at the network boundary (getReturnValue: () =>
57072
+ // Record<string, unknown>); assert it to this command's concrete Data here so the
57073
+ // untyped boundary is isolated to this single site rather than leaking `any`.
57074
+ this.services.auraNetwork(
57075
+ this.endpoint,
57076
+ this.auraParams,
57077
+ this.actionConfig
57078
+ ),
57072
57079
  this.coerceAuraErrors
57073
57080
  );
57074
57081
  } else if (this.shouldUseFetch()) {
@@ -57664,8 +57671,13 @@ class AuraCacheControlCommand extends CacheControlCommand {
57664
57671
  }
57665
57672
  requestFromNetwork() {
57666
57673
  if (this.shouldUseAuraNetwork()) {
57674
+ const responsePromise = this.services.auraNetwork(
57675
+ this.endpoint,
57676
+ this.auraParams,
57677
+ this.actionConfig
57678
+ );
57667
57679
  return this.convertAuraResponseToData(
57668
- this.services.auraNetwork(this.endpoint, this.auraParams, this.actionConfig),
57680
+ responsePromise,
57669
57681
  (errs) => this.coerceAuraErrors(errs)
57670
57682
  );
57671
57683
  } else if (this.shouldUseFetch()) {
@@ -58670,6 +58682,14 @@ class O11ySpan {
58670
58682
  this.attributes = { ...this.attributes, ...attributes };
58671
58683
  return this;
58672
58684
  }
58685
+ addLink(_link) {
58686
+ this.logger.warn("O11ySpan does not support addLink.");
58687
+ return this;
58688
+ }
58689
+ addLinks(_links) {
58690
+ this.logger.warn("O11ySpan does not support addLinks.");
58691
+ return this;
58692
+ }
58673
58693
  addEvent(_name, _attributesOrStartTime, _startTime) {
58674
58694
  this.logger.warn("O11ySpan does not support addEvents.");
58675
58695
  return this;
@@ -58729,6 +58749,9 @@ class O11yMeter {
58729
58749
  }
58730
58750
  return new O11yCounter(name, this.o11yInstrumentation, this.logger);
58731
58751
  }
58752
+ createGauge(_name, _options) {
58753
+ return new O11yGauge(this.logger);
58754
+ }
58732
58755
  createUpDownCounter(_name, _options) {
58733
58756
  return new O11yUpDownCounter(this.logger);
58734
58757
  }
@@ -58786,6 +58809,14 @@ class O11yHistogram {
58786
58809
  );
58787
58810
  }
58788
58811
  }
58812
+ class O11yGauge {
58813
+ constructor(logger) {
58814
+ this.logger = logger;
58815
+ }
58816
+ record(_value, _attributes, _context) {
58817
+ this.logger.warn("O11yGauge not supported yet.");
58818
+ }
58819
+ }
58789
58820
  class O11yUpDownCounter {
58790
58821
  constructor(logger) {
58791
58822
  this.logger = logger;
@@ -58977,7 +59008,7 @@ function buildServiceDescriptor$b(luvio) {
58977
59008
  },
58978
59009
  };
58979
59010
  }
58980
- // version: 1.447.1-1f695b605e
59011
+ // version: 1.448.0-ea92d38c8e
58981
59012
 
58982
59013
  /**
58983
59014
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -59003,7 +59034,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
59003
59034
  },
59004
59035
  };
59005
59036
  }
59006
- // version: 1.447.1-1f695b605e
59037
+ // version: 1.448.0-ea92d38c8e
59007
59038
 
59008
59039
  function findExecutableOperation(input) {
59009
59040
  const operations = input.query.definitions.filter(
@@ -59236,6 +59267,7 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
59236
59267
  }
59237
59268
  return addTypenameToDocument(augmentedQueryResult.value);
59238
59269
  }
59270
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- load-bearing: GraphQLResponse.data is `Record<string,any> | null | undefined`, but WriteInput<Data>.data requires `Data`. Narrowing the Data arg to GraphQLData yields TS2322 at the return (`data.data` includes null|undefined; tests write `data: undefined` for error responses — see error-handling spec). The `any` faithfully models that the cache write accepts the nullable response payload. Same #870 GraphQLData/GraphQLResponse contravariance family.
59239
59271
  buildWriteInput(data) {
59240
59272
  const extensionResult = buildGraphQLInputExtension({
59241
59273
  ...this.config,
@@ -61692,4 +61724,4 @@ register({
61692
61724
  });
61693
61725
 
61694
61726
  export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, initializeOneStore, registerReportObserver, reportGraphqlQueryParseError };
61695
- // version: 1.447.1-1f695b605e
61727
+ // version: 1.448.0-ea92d38c8e