@salesforce/lds-runtime-mobile 1.128.1 → 1.129.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.
package/dist/main.js CHANGED
@@ -12331,8 +12331,9 @@ function draftAwareGraphQLAdapterFactory(userId, objectInfoService, store, luvio
12331
12331
  if (!rebuildResult.errors) {
12332
12332
  rebuildResult = removeSyntheticFields(rebuildResult, config.query);
12333
12333
  }
12334
+ // 'originalSnapshot' is the local eval snapshot subscribed. It is always in 'Fulfilled' state. This behavior would change once W-1273462(rebuild non-evaluated snapshot when the graphql local eval rebuild is triggered) is resolved.
12334
12335
  return {
12335
- ...nonEvaluatedSnapshot,
12336
+ ...originalSnapshot,
12336
12337
  data: rebuildResult,
12337
12338
  recordId,
12338
12339
  seenRecords: createSeenRecords(seenRecordIds, nonEvaluatedSnapshot),
@@ -14864,6 +14865,7 @@ function formatDisplayValue(value, datatype) {
14864
14865
  }
14865
14866
  }
14866
14867
 
14868
+ //TODO: [W-12734162] - rebuild non-evaluated snapshot when graph rebuild is triggered. The dependency work on luvio needs to be done.
14867
14869
  function makeEnvironmentGraphqlAware(environment) {
14868
14870
  const rebuildSnapshot = function (snapshot, onRebuild) {
14869
14871
  if (isStoreEvalSnapshot(snapshot)) {
@@ -15625,4 +15627,4 @@ register({
15625
15627
  });
15626
15628
 
15627
15629
  export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
15628
- // version: 1.128.1-55cd38df6
15630
+ // version: 1.129.0-caa83ed0e
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-mobile",
3
- "version": "1.128.1",
3
+ "version": "1.129.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS runtime for mobile/hybrid environments.",
6
6
  "main": "dist/main.js",
package/sfdc/main.js CHANGED
@@ -12331,8 +12331,9 @@ function draftAwareGraphQLAdapterFactory(userId, objectInfoService, store, luvio
12331
12331
  if (!rebuildResult.errors) {
12332
12332
  rebuildResult = removeSyntheticFields(rebuildResult, config.query);
12333
12333
  }
12334
+ // 'originalSnapshot' is the local eval snapshot subscribed. It is always in 'Fulfilled' state. This behavior would change once W-1273462(rebuild non-evaluated snapshot when the graphql local eval rebuild is triggered) is resolved.
12334
12335
  return {
12335
- ...nonEvaluatedSnapshot,
12336
+ ...originalSnapshot,
12336
12337
  data: rebuildResult,
12337
12338
  recordId,
12338
12339
  seenRecords: createSeenRecords(seenRecordIds, nonEvaluatedSnapshot),
@@ -14864,6 +14865,7 @@ function formatDisplayValue(value, datatype) {
14864
14865
  }
14865
14866
  }
14866
14867
 
14868
+ //TODO: [W-12734162] - rebuild non-evaluated snapshot when graph rebuild is triggered. The dependency work on luvio needs to be done.
14867
14869
  function makeEnvironmentGraphqlAware(environment) {
14868
14870
  const rebuildSnapshot = function (snapshot, onRebuild) {
14869
14871
  if (isStoreEvalSnapshot(snapshot)) {
@@ -15625,4 +15627,4 @@ register({
15625
15627
  });
15626
15628
 
15627
15629
  export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
15628
- // version: 1.128.1-55cd38df6
15630
+ // version: 1.129.0-caa83ed0e