@salesforce/lds-runtime-bridge 1.280.0 → 1.282.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/ldsRuntimeBridge.js +14 -4
- package/package.json +8 -8
package/dist/ldsRuntimeBridge.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* *******************************************************************************************
|
|
13
13
|
*/
|
|
14
14
|
import { setDefaultLuvio } from 'force/ldsEngine';
|
|
15
|
-
import { StoreKeySet, serializeStructuredKey, StringKeyInMemoryStore, Reader, deepFreeze, emitAdapterEvent, InMemoryStore, Environment, Luvio } from 'force/luvioEngine';
|
|
15
|
+
import { setBypassDeepFreeze, StoreKeySet, serializeStructuredKey, StringKeyInMemoryStore, Reader, deepFreeze, emitAdapterEvent, InMemoryStore, Environment, Luvio } from 'force/luvioEngine';
|
|
16
16
|
import { instrumentLuvio } from 'force/ldsInstrumentation';
|
|
17
17
|
import { isStoreKeyRecordViewEntity, RECORD_ID_PREFIX, RECORD_FIELDS_KEY_JUNCTION, getRecordId18, extractRecordIdFromStoreKey, RECORD_VIEW_ENTITY_ID_PREFIX, keyBuilderRecord } from 'force/ldsAdaptersUiapi';
|
|
18
18
|
import '@salesforce/gate/lds.idempotencyWriteDisabled';
|
|
@@ -530,7 +530,9 @@ function isUnfulfilledSnapshot(cachedSnapshotResult) {
|
|
|
530
530
|
* @param durableStore A DurableStore implementation
|
|
531
531
|
* @param instrumentation An instrumentation function implementation
|
|
532
532
|
*/
|
|
533
|
-
function makeDurable(environment, { durableStore, instrumentation, useRevivingStore, enableDurableMetadataRefresh = false, }) {
|
|
533
|
+
function makeDurable(environment, { durableStore, instrumentation, useRevivingStore, enableDurableMetadataRefresh = false, disableDeepFreeze = false, }) {
|
|
534
|
+
// runtimes can choose to disable deepFreeze, e.g. headless mobile runtime
|
|
535
|
+
setBypassDeepFreeze(disableDeepFreeze);
|
|
534
536
|
let stagingStore = null;
|
|
535
537
|
const durableTTLStore = new DurableTTLStore(durableStore);
|
|
536
538
|
const mergeKeysPromiseMap = new Map();
|
|
@@ -2483,6 +2485,9 @@ function sanitizePredicateIDValue(value, draftFunction) {
|
|
|
2483
2485
|
if (isArray(value)) {
|
|
2484
2486
|
return value.map((singleValue) => sanitizePredicateIDValue(singleValue, draftFunction));
|
|
2485
2487
|
}
|
|
2488
|
+
else if (typeof value === 'string' && value === '') {
|
|
2489
|
+
return value;
|
|
2490
|
+
}
|
|
2486
2491
|
else {
|
|
2487
2492
|
const coercedId = getRecordId18(value);
|
|
2488
2493
|
if (coercedId !== undefined) {
|
|
@@ -3367,6 +3372,12 @@ function addResolversToSchema(schema, polyFields) {
|
|
|
3367
3372
|
break;
|
|
3368
3373
|
case 'LastModifiedDate':
|
|
3369
3374
|
field.resolve = ({ recordRepresentation: record }) => {
|
|
3375
|
+
// In UIAPI record reps, LastModifiedDate might be present as a field,
|
|
3376
|
+
// which will include both the value and displayValue
|
|
3377
|
+
if (record.fields['LastModifiedDate']) {
|
|
3378
|
+
return record.fields['LastModifiedDate'];
|
|
3379
|
+
}
|
|
3380
|
+
// If the field is not present, just return the value of the root property
|
|
3370
3381
|
return record.lastModifiedDate
|
|
3371
3382
|
? { value: record.lastModifiedDate }
|
|
3372
3383
|
: null;
|
|
@@ -3494,7 +3505,6 @@ _, { objectInfos }) {
|
|
|
3494
3505
|
}
|
|
3495
3506
|
}
|
|
3496
3507
|
}
|
|
3497
|
-
// TODO [W-14660068]: composite name fields
|
|
3498
3508
|
return null;
|
|
3499
3509
|
}
|
|
3500
3510
|
async function connectionEdgeResolver(obj, _args, context) {
|
|
@@ -4064,4 +4074,4 @@ function ldsRuntimeBridge() {
|
|
|
4064
4074
|
}
|
|
4065
4075
|
|
|
4066
4076
|
export { ldsRuntimeBridge as default };
|
|
4067
|
-
// version: 1.
|
|
4077
|
+
// version: 1.282.0-f3e0ca0c7
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-bridge",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.282.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.
|
|
38
|
-
"@salesforce/lds-instrumentation": "^1.
|
|
37
|
+
"@salesforce/lds-adapters-uiapi": "^1.282.0",
|
|
38
|
+
"@salesforce/lds-instrumentation": "^1.282.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.
|
|
44
|
-
"@salesforce/lds-network-aura": "^1.
|
|
45
|
-
"@salesforce/lds-runtime-aura": "^1.
|
|
46
|
-
"@salesforce/lds-store-nimbus": "^1.
|
|
47
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
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",
|
|
48
48
|
"babel-plugin-dynamic-import-node": "^2.3.3"
|
|
49
49
|
},
|
|
50
50
|
"luvioBundlesize": [
|