@salesforce/lds-runtime-bridge 1.332.0-dev2 → 1.332.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.
@@ -1394,14 +1394,10 @@ class NimbusSqliteStore {
1394
1394
  ...additionalTableMap,
1395
1395
  [DefaultDurableSegment]: new LdsDataTable(plugin),
1396
1396
  };
1397
- this.supportsBatchUpdates = plugin.supportsBatchUpdates !== undefined;
1398
1397
  }
1399
1398
  isEvalSupported() {
1400
1399
  return true;
1401
1400
  }
1402
- isBatchUpdateSupported() {
1403
- return this.supportsBatchUpdates;
1404
- }
1405
1401
  query(sql, params) {
1406
1402
  return new Promise((resolve, reject) => {
1407
1403
  this.plugin.query(sql, params, (result) => {
@@ -1437,16 +1433,7 @@ class NimbusSqliteStore {
1437
1433
  return Promise.resolve();
1438
1434
  }
1439
1435
  const table = this.getTable(segment);
1440
- let operation;
1441
- if (this.supportsBatchUpdates) {
1442
- operation = table.metadataToUpdateOperations(entries, segment);
1443
- }
1444
- else {
1445
- operation = table.entriesToUpsertOperations(entries, segment);
1446
- // manually set the context type on the upsert so notifications do not notify rebuilds without
1447
- // plugin updates
1448
- operation.context.type = 'setMetadata';
1449
- }
1436
+ let operation = table.metadataToUpdateOperations(entries, segment);
1450
1437
  return this.batchOperationAsPromise([operation]);
1451
1438
  }
1452
1439
  batchOperations(operations) {
@@ -1460,16 +1447,7 @@ class NimbusSqliteStore {
1460
1447
  else if (cur.type === 'setMetadata') {
1461
1448
  if (keys$1(cur.entries).length > 0) {
1462
1449
  const table = this.getTable(cur.segment);
1463
- if (this.supportsBatchUpdates) {
1464
- acc.push(table.metadataToUpdateOperations(cur.entries, cur.segment));
1465
- }
1466
- else {
1467
- const upsert = table.entriesToUpsertOperations(cur.entries, cur.segment);
1468
- // manually set the context type on the upsert so notifications do not notify rebuilds without
1469
- // plugin updates
1470
- upsert.context.type = 'setMetadata';
1471
- acc.push(upsert);
1472
- }
1450
+ acc.push(table.metadataToUpdateOperations(cur.entries, cur.segment));
1473
1451
  }
1474
1452
  }
1475
1453
  else {
@@ -1861,7 +1839,7 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
1861
1839
  const promises = [
1862
1840
  hasEntries ? durableStore.setEntries(putEntries, segment) : undefined,
1863
1841
  ];
1864
- if (sqlStore !== undefined && sqlStore.isBatchUpdateSupported()) {
1842
+ if (sqlStore !== undefined) {
1865
1843
  promises.push(hasMetadata && sqlStore !== undefined
1866
1844
  ? durableStore.setMetadata(putMetadata, segment)
1867
1845
  : undefined);
@@ -1888,9 +1866,7 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
1888
1866
  ...operation,
1889
1867
  entries: putEntries,
1890
1868
  });
1891
- if (hasMetadata &&
1892
- sqlStore !== undefined &&
1893
- sqlStore.isBatchUpdateSupported() === true) {
1869
+ if (hasMetadata && sqlStore !== undefined) {
1894
1870
  operationsWithDenormedRecords.push({
1895
1871
  ...operation,
1896
1872
  entries: putMetadata,
@@ -1913,9 +1889,7 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
1913
1889
  ...operation,
1914
1890
  entries: putEntries,
1915
1891
  });
1916
- if (hasMetadata &&
1917
- sqlStore !== undefined &&
1918
- sqlStore.isBatchUpdateSupported() === true) {
1892
+ if (hasMetadata && sqlStore !== undefined) {
1919
1893
  operationsWithDenormedRecords.push({
1920
1894
  ...operation,
1921
1895
  entries: putMetadata,
@@ -1998,4 +1972,4 @@ function ldsRuntimeBridge() {
1998
1972
  }
1999
1973
 
2000
1974
  export { ldsRuntimeBridge as default };
2001
- // version: 1.332.0-dev2-fcd88ea533
1975
+ // version: 1.332.0-fe34ef5c6f
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-bridge",
3
- "version": "1.332.0-dev2",
3
+ "version": "1.332.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.332.0-dev2",
38
- "@salesforce/lds-durable-records": "^1.332.0-dev2",
39
- "@salesforce/lds-instrumentation": "^1.332.0-dev2",
40
- "@salesforce/lds-runtime-mobile": "^1.332.0-dev2",
37
+ "@salesforce/lds-bindings": "^1.332.0",
38
+ "@salesforce/lds-durable-records": "^1.332.0",
39
+ "@salesforce/lds-instrumentation": "^1.332.0",
40
+ "@salesforce/lds-runtime-mobile": "^1.332.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.332.0-dev2",
46
- "@salesforce/lds-runtime-aura": "^1.332.0-dev2",
47
- "@salesforce/lds-store-nimbus": "^1.332.0-dev2",
48
- "@salesforce/nimbus-plugin-lds": "^1.332.0-dev2",
45
+ "@salesforce/lds-network-aura": "^1.332.0",
46
+ "@salesforce/lds-runtime-aura": "^1.332.0",
47
+ "@salesforce/lds-store-nimbus": "^1.332.0",
48
+ "@salesforce/nimbus-plugin-lds": "^1.332.0",
49
49
  "babel-plugin-dynamic-import-node": "^2.3.3"
50
50
  },
51
51
  "luvioBundlesize": [