@salesforce/lds-runtime-bridge 1.283.0 → 1.284.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.
@@ -3751,6 +3751,9 @@ function normalizeRecordFields(key, entry) {
3751
3751
  * Transforms a record for storage in the durable store. The transformation involves denormalizing
3752
3752
  * scalar fields and persisting link metadata to transform back into a normalized representation
3753
3753
  *
3754
+ * If the record contains pending fields this will return undefined as pending records do not get persisted
3755
+ * to the durable store. There should be a refresh operation outbound that will bring in the updated record.
3756
+ *
3754
3757
  * @param normalizedRecord Record containing normalized field links
3755
3758
  * @param recordStore a store containing referenced record fields
3756
3759
  */
@@ -3765,7 +3768,9 @@ function buildDurableRecordRepresentation(normalizedRecord, records, pendingEntr
3765
3768
  // pending fields get filtered out of the durable store
3766
3769
  const { pending } = field;
3767
3770
  if (pending === true) {
3768
- continue;
3771
+ // do not write records with pending fields to the durable store
3772
+ // there should be a refresh operation outbound that will bring in the updated record
3773
+ return undefined;
3769
3774
  }
3770
3775
  const { __ref } = field;
3771
3776
  if (__ref !== undefined) {
@@ -3931,10 +3936,12 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
3931
3936
  };
3932
3937
  }
3933
3938
  const denormalizedRecord = buildDurableRecordRepresentation(record, storeRecords, recordEntries, store);
3934
- putEntries[recordKey] = {
3935
- data: denormalizedRecord,
3936
- metadata,
3937
- };
3939
+ if (denormalizedRecord !== undefined) {
3940
+ putEntries[recordKey] = {
3941
+ data: denormalizedRecord,
3942
+ metadata,
3943
+ };
3944
+ }
3938
3945
  }
3939
3946
  else {
3940
3947
  putEntries[key] = value;
@@ -4077,4 +4084,4 @@ function ldsRuntimeBridge() {
4077
4084
  }
4078
4085
 
4079
4086
  export { ldsRuntimeBridge as default };
4080
- // version: 1.283.0-a330da944
4087
+ // version: 1.284.0-a7e8dc51c
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-bridge",
3
- "version": "1.283.0",
3
+ "version": "1.284.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS runtime for bridge.app.",
6
6
  "main": "dist/ldsRuntimeBridge.js",
@@ -34,17 +34,17 @@
34
34
  "release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-bridge"
35
35
  },
36
36
  "dependencies": {
37
- "@salesforce/lds-adapters-uiapi": "^1.283.0",
38
- "@salesforce/lds-instrumentation": "^1.283.0",
37
+ "@salesforce/lds-adapters-uiapi": "^1.284.0",
38
+ "@salesforce/lds-instrumentation": "^1.284.0",
39
39
  "@salesforce/user": "0.0.21",
40
40
  "o11y": "244.0.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@salesforce/lds-drafts-adapters-uiapi": "^1.283.0",
44
- "@salesforce/lds-network-aura": "^1.283.0",
45
- "@salesforce/lds-runtime-aura": "^1.283.0",
46
- "@salesforce/lds-store-nimbus": "^1.283.0",
47
- "@salesforce/nimbus-plugin-lds": "^1.283.0",
43
+ "@salesforce/lds-drafts-adapters-uiapi": "^1.284.0",
44
+ "@salesforce/lds-network-aura": "^1.284.0",
45
+ "@salesforce/lds-runtime-aura": "^1.284.0",
46
+ "@salesforce/lds-store-nimbus": "^1.284.0",
47
+ "@salesforce/nimbus-plugin-lds": "^1.284.0",
48
48
  "babel-plugin-dynamic-import-node": "^2.3.3"
49
49
  },
50
50
  "luvioBundlesize": [