@salesforce/lds-runtime-bridge 1.335.0 → 1.337.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 +21 -7
- package/package.json +9 -9
package/dist/ldsRuntimeBridge.js
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
import { setDefaultLuvio } from 'force/ldsEngine';
|
|
15
15
|
import { setBypassDeepFreeze, StoreKeySet, serializeStructuredKey, StringKeyInMemoryStore, Reader, deepFreeze, emitAdapterEvent, InMemoryStore, Environment, Luvio } from 'force/luvioEngine';
|
|
16
16
|
import { setupInstrumentation, instrumentAdapter as instrumentAdapter$1, instrumentLuvio } from 'force/ldsInstrumentation';
|
|
17
|
+
import { idleDetector } from 'o11y/client';
|
|
17
18
|
import { instrument } from 'force/ldsBindings';
|
|
18
19
|
import { extractRecordIdFromStoreKey, RECORD_VIEW_ENTITY_ID_PREFIX, isStoreKeyRecordViewEntity, keyBuilderRecord, RECORD_ID_PREFIX, RECORD_FIELDS_KEY_JUNCTION } from 'force/ldsAdaptersUiapi';
|
|
19
20
|
import networkAdapter from 'force/ldsNetwork';
|
|
@@ -1386,6 +1387,7 @@ class LdsInternalDataTable {
|
|
|
1386
1387
|
}
|
|
1387
1388
|
}
|
|
1388
1389
|
|
|
1390
|
+
const tasker = idleDetector.declareNotifierTaskMulti('NimbusSqliteStore');
|
|
1389
1391
|
class NimbusSqliteStore {
|
|
1390
1392
|
constructor(plugin, additionalTableMap = {}) {
|
|
1391
1393
|
this.plugin = plugin;
|
|
@@ -1399,26 +1401,37 @@ class NimbusSqliteStore {
|
|
|
1399
1401
|
return true;
|
|
1400
1402
|
}
|
|
1401
1403
|
query(sql, params) {
|
|
1404
|
+
tasker.add();
|
|
1402
1405
|
return new Promise((resolve, reject) => {
|
|
1403
1406
|
this.plugin.query(sql, params, (result) => {
|
|
1404
1407
|
resolve(result);
|
|
1405
1408
|
}, (error) => {
|
|
1406
1409
|
reject(error);
|
|
1407
1410
|
});
|
|
1408
|
-
});
|
|
1411
|
+
}).finally(() => tasker.done());
|
|
1409
1412
|
}
|
|
1410
1413
|
batchQuery(queries) {
|
|
1411
1414
|
const promises = queries.map((q) => this.query(q.sql, q.params));
|
|
1412
|
-
|
|
1415
|
+
tasker.add();
|
|
1416
|
+
return Promise.all(promises).finally(() => tasker.done());
|
|
1413
1417
|
}
|
|
1414
1418
|
async getEntries(entryIds, segment) {
|
|
1415
|
-
|
|
1419
|
+
tasker.add();
|
|
1420
|
+
return this.getTable(segment)
|
|
1421
|
+
.getByKeys(entryIds, segment)
|
|
1422
|
+
.finally(() => tasker.done());
|
|
1416
1423
|
}
|
|
1417
1424
|
async getMetadata(entryIds, segment) {
|
|
1418
|
-
|
|
1425
|
+
tasker.add();
|
|
1426
|
+
return this.getTable(segment)
|
|
1427
|
+
.getMetadataByKeys(entryIds, segment)
|
|
1428
|
+
.finally(() => tasker.done());
|
|
1419
1429
|
}
|
|
1420
1430
|
getAllEntries(segment) {
|
|
1421
|
-
|
|
1431
|
+
tasker.add();
|
|
1432
|
+
return this.getTable(segment)
|
|
1433
|
+
.getAll(segment)
|
|
1434
|
+
.finally(() => tasker.done());
|
|
1422
1435
|
}
|
|
1423
1436
|
setEntries(entries, segment) {
|
|
1424
1437
|
if (keys$1(entries).length === 0) {
|
|
@@ -1514,6 +1527,7 @@ class NimbusSqliteStore {
|
|
|
1514
1527
|
};
|
|
1515
1528
|
}
|
|
1516
1529
|
batchOperationAsPromise(sqliteOperations) {
|
|
1530
|
+
tasker.add();
|
|
1517
1531
|
return new Promise((resolve, reject) => {
|
|
1518
1532
|
this.plugin.batchOperations(sqliteOperations, (error) => {
|
|
1519
1533
|
if (error && error !== null) {
|
|
@@ -1523,7 +1537,7 @@ class NimbusSqliteStore {
|
|
|
1523
1537
|
resolve();
|
|
1524
1538
|
}
|
|
1525
1539
|
});
|
|
1526
|
-
});
|
|
1540
|
+
}).finally(() => tasker.done());
|
|
1527
1541
|
}
|
|
1528
1542
|
}
|
|
1529
1543
|
|
|
@@ -1972,4 +1986,4 @@ function ldsRuntimeBridge() {
|
|
|
1972
1986
|
}
|
|
1973
1987
|
|
|
1974
1988
|
export { ldsRuntimeBridge as default };
|
|
1975
|
-
// version: 1.
|
|
1989
|
+
// version: 1.337.0-d91af1f460
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-bridge",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.337.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS runtime for bridge.app.",
|
|
6
6
|
"main": "dist/ldsRuntimeBridge.js",
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-bridge"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@salesforce/lds-bindings": "^1.
|
|
38
|
-
"@salesforce/lds-durable-records": "^1.
|
|
39
|
-
"@salesforce/lds-instrumentation": "^1.
|
|
40
|
-
"@salesforce/lds-runtime-mobile": "^1.
|
|
37
|
+
"@salesforce/lds-bindings": "^1.337.0",
|
|
38
|
+
"@salesforce/lds-durable-records": "^1.337.0",
|
|
39
|
+
"@salesforce/lds-instrumentation": "^1.337.0",
|
|
40
|
+
"@salesforce/lds-runtime-mobile": "^1.337.0",
|
|
41
41
|
"@salesforce/user": "0.0.21",
|
|
42
42
|
"o11y": "250.7.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@salesforce/lds-network-aura": "^1.
|
|
46
|
-
"@salesforce/lds-runtime-aura": "^1.
|
|
47
|
-
"@salesforce/lds-store-nimbus": "^1.
|
|
48
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
45
|
+
"@salesforce/lds-network-aura": "^1.337.0",
|
|
46
|
+
"@salesforce/lds-runtime-aura": "^1.337.0",
|
|
47
|
+
"@salesforce/lds-store-nimbus": "^1.337.0",
|
|
48
|
+
"@salesforce/nimbus-plugin-lds": "^1.337.0",
|
|
49
49
|
"babel-plugin-dynamic-import-node": "^2.3.3"
|
|
50
50
|
},
|
|
51
51
|
"luvioBundlesize": [
|