@salesforce/lds-runtime-bridge 1.282.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.
@@ -2561,6 +2561,9 @@ function createSinglePredicate(val, operator, field, alias) {
2561
2561
  else if (field.apiName === 'weakEtag') {
2562
2562
  leftPath = '$.weakEtag';
2563
2563
  }
2564
+ else if (field.apiName === 'RecordTypeId') {
2565
+ leftPath = '$.recordTypeId';
2566
+ }
2564
2567
  return {
2565
2568
  alias,
2566
2569
  leftPath,
@@ -3748,6 +3751,9 @@ function normalizeRecordFields(key, entry) {
3748
3751
  * Transforms a record for storage in the durable store. The transformation involves denormalizing
3749
3752
  * scalar fields and persisting link metadata to transform back into a normalized representation
3750
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
+ *
3751
3757
  * @param normalizedRecord Record containing normalized field links
3752
3758
  * @param recordStore a store containing referenced record fields
3753
3759
  */
@@ -3762,7 +3768,9 @@ function buildDurableRecordRepresentation(normalizedRecord, records, pendingEntr
3762
3768
  // pending fields get filtered out of the durable store
3763
3769
  const { pending } = field;
3764
3770
  if (pending === true) {
3765
- 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;
3766
3774
  }
3767
3775
  const { __ref } = field;
3768
3776
  if (__ref !== undefined) {
@@ -3928,10 +3936,12 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
3928
3936
  };
3929
3937
  }
3930
3938
  const denormalizedRecord = buildDurableRecordRepresentation(record, storeRecords, recordEntries, store);
3931
- putEntries[recordKey] = {
3932
- data: denormalizedRecord,
3933
- metadata,
3934
- };
3939
+ if (denormalizedRecord !== undefined) {
3940
+ putEntries[recordKey] = {
3941
+ data: denormalizedRecord,
3942
+ metadata,
3943
+ };
3944
+ }
3935
3945
  }
3936
3946
  else {
3937
3947
  putEntries[key] = value;
@@ -4074,4 +4084,4 @@ function ldsRuntimeBridge() {
4074
4084
  }
4075
4085
 
4076
4086
  export { ldsRuntimeBridge as default };
4077
- // version: 1.282.0-f3e0ca0c7
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.282.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.282.0",
38
- "@salesforce/lds-instrumentation": "^1.282.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.282.0",
44
- "@salesforce/lds-network-aura": "^1.282.0",
45
- "@salesforce/lds-runtime-aura": "^1.282.0",
46
- "@salesforce/lds-store-nimbus": "^1.282.0",
47
- "@salesforce/nimbus-plugin-lds": "^1.282.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": [