@salesforce/lds-runtime-mobile 1.235.0 → 1.236.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/main.js CHANGED
@@ -41,6 +41,7 @@ import ldsMetadataRefreshEnabled from '@salesforce/gate/lds.metadataRefreshEnabl
41
41
  * For full license text, see the LICENSE.txt file
42
42
  */
43
43
 
44
+
44
45
  const { parse: parse$6, stringify: stringify$6 } = JSON;
45
46
  const { join: join$2, push: push$2, unshift } = Array.prototype;
46
47
  const { isArray: isArray$5 } = Array;
@@ -1643,6 +1644,7 @@ function isEntryDurableRecordRepresentation(entry, key) {
1643
1644
  * For full license text, see the LICENSE.txt file
1644
1645
  */
1645
1646
 
1647
+
1646
1648
  const GRAPHQL_ROOT_KEY$1 = `GraphQL::graphql`;
1647
1649
  function findIds(json) {
1648
1650
  const entries = Object.entries(json);
@@ -4873,6 +4875,7 @@ function makeStoreEval(preconditioner, objectInfoService, userId, contextProvide
4873
4875
  * For full license text, see the LICENSE.txt file
4874
4876
  */
4875
4877
 
4878
+
4876
4879
  /* Ideally we would use AbortController but it does not exist in V8, this is a simplified version */
4877
4880
  class LdsAbortController {
4878
4881
  constructor() {
@@ -4967,6 +4970,7 @@ class AsyncWorkerPool {
4967
4970
  * For full license text, see the LICENSE.txt file
4968
4971
  */
4969
4972
 
4973
+
4970
4974
  var DraftActionStatus;
4971
4975
  (function (DraftActionStatus) {
4972
4976
  DraftActionStatus["Pending"] = "pending";
@@ -6903,6 +6907,7 @@ function buildQueryTypeStringKey(args) {
6903
6907
  * For full license text, see the LICENSE.txt file
6904
6908
  */
6905
6909
 
6910
+
6906
6911
  class DataLoader {
6907
6912
  constructor(batchLoadFn) {
6908
6913
  this._batchLoadFn = batchLoadFn;
@@ -11045,6 +11050,7 @@ function referenceIdFieldForRelationship(relationshipName) {
11045
11050
  * For full license text, see the LICENSE.txt file
11046
11051
  */
11047
11052
 
11053
+
11048
11054
  const { keys: keys$3, values: values$1, create: create$3, assign: assign$3, freeze } = Object;
11049
11055
  const { stringify: stringify$3, parse: parse$3 } = JSON;
11050
11056
  const { shift } = Array.prototype;
@@ -13718,6 +13724,7 @@ const recordIdGenerator = (id) => {
13718
13724
  * For full license text, see the LICENSE.txt file
13719
13725
  */
13720
13726
 
13727
+
13721
13728
  const { keys: keys$2, create: create$2, assign: assign$2, entries: entries$2 } = Object;
13722
13729
  const { stringify: stringify$2, parse: parse$2 } = JSON;
13723
13730
  const { push: push$1, join: join$1, slice: slice$1 } = Array.prototype;
@@ -13843,6 +13850,7 @@ function buildLdsResponse(response) {
13843
13850
  }
13844
13851
 
13845
13852
  // so eslint doesn't complain about nimbus
13853
+ /* global __nimbus */
13846
13854
  const tasker = idleDetector.declareNotifierTaskMulti('NimbusNetworkAdapter');
13847
13855
  const NimbusNetworkAdapter = (request, resourceRequestContext) => {
13848
13856
  tasker.add();
@@ -14519,6 +14527,7 @@ const { stringify: stringify$1, parse: parse$1 } = JSON;
14519
14527
  const { push, join, slice } = Array.prototype;
14520
14528
 
14521
14529
  // so eslint doesn't complain about nimbus
14530
+ /* global __nimbus */
14522
14531
  /**
14523
14532
  * An implementation of the DraftQueue interface which serializes
14524
14533
  * requests and sends them across the Nimbus bridge and deserializes the result.
@@ -14868,6 +14877,7 @@ function instrumentDraftQueue(queue) {
14868
14877
  }
14869
14878
 
14870
14879
  // so eslint doesn't complain about nimbus
14880
+ /* global __nimbus */
14871
14881
  function buildLdsDraftQueue(durableStore) {
14872
14882
  if (typeof __nimbus !== 'undefined' &&
14873
14883
  __nimbus.plugins !== undefined &&
@@ -15623,6 +15633,7 @@ class LdsDraftIdMapDataTable extends AbstractKeyValueDataTable {
15623
15633
  }
15624
15634
 
15625
15635
  // so eslint doesn't complain about nimbus
15636
+ /* global __nimbus */
15626
15637
  let baseDurableStore;
15627
15638
  function getNimbusDurableStore(plugin) {
15628
15639
  if (baseDurableStore === undefined) {
@@ -15828,6 +15839,7 @@ function setupInspection(luvio) {
15828
15839
  * For full license text, see the LICENSE.txt file
15829
15840
  */
15830
15841
 
15842
+
15831
15843
  class EventEmitter {
15832
15844
  constructor() {
15833
15845
  // @ts-ignore typescript doesn't like us setting this to an empty object for some reason
@@ -16879,6 +16891,8 @@ function primingSessionFactory(config) {
16879
16891
  }
16880
16892
 
16881
16893
  // so eslint doesn't complain about nimbus
16894
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
16895
+ /* global __nimbus */
16882
16896
  let lazyDraftQueue;
16883
16897
  let lazyDraftManager;
16884
16898
  let lazyLuvio;
@@ -17033,4 +17047,4 @@ register({
17033
17047
  });
17034
17048
 
17035
17049
  export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
17036
- // version: 1.235.0-3790decf0
17050
+ // version: 1.236.0-036823f57
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-mobile",
3
- "version": "1.235.0",
3
+ "version": "1.236.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS runtime for mobile/hybrid environments.",
6
6
  "main": "dist/main.js",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "scripts": {
26
26
  "prepare": "yarn build",
27
- "build": "rollup --config rollup.config.js",
27
+ "build": "rollup --bundleConfigAsCjs --config rollup.config.js",
28
28
  "test:debug": "node --inspect-brk ../../node_modules/.bin/jest --runInBand",
29
29
  "test:unit": "NODE_ENV=production jest",
30
30
  "test:size": "luvioBundlesize",
package/sfdc/main.js CHANGED
@@ -41,6 +41,7 @@ import ldsMetadataRefreshEnabled from '@salesforce/gate/lds.metadataRefreshEnabl
41
41
  * For full license text, see the LICENSE.txt file
42
42
  */
43
43
 
44
+
44
45
  const { parse: parse$6, stringify: stringify$6 } = JSON;
45
46
  const { join: join$2, push: push$2, unshift } = Array.prototype;
46
47
  const { isArray: isArray$5 } = Array;
@@ -1643,6 +1644,7 @@ function isEntryDurableRecordRepresentation(entry, key) {
1643
1644
  * For full license text, see the LICENSE.txt file
1644
1645
  */
1645
1646
 
1647
+
1646
1648
  const GRAPHQL_ROOT_KEY$1 = `GraphQL::graphql`;
1647
1649
  function findIds(json) {
1648
1650
  const entries = Object.entries(json);
@@ -4873,6 +4875,7 @@ function makeStoreEval(preconditioner, objectInfoService, userId, contextProvide
4873
4875
  * For full license text, see the LICENSE.txt file
4874
4876
  */
4875
4877
 
4878
+
4876
4879
  /* Ideally we would use AbortController but it does not exist in V8, this is a simplified version */
4877
4880
  class LdsAbortController {
4878
4881
  constructor() {
@@ -4967,6 +4970,7 @@ class AsyncWorkerPool {
4967
4970
  * For full license text, see the LICENSE.txt file
4968
4971
  */
4969
4972
 
4973
+
4970
4974
  var DraftActionStatus;
4971
4975
  (function (DraftActionStatus) {
4972
4976
  DraftActionStatus["Pending"] = "pending";
@@ -6903,6 +6907,7 @@ function buildQueryTypeStringKey(args) {
6903
6907
  * For full license text, see the LICENSE.txt file
6904
6908
  */
6905
6909
 
6910
+
6906
6911
  class DataLoader {
6907
6912
  constructor(batchLoadFn) {
6908
6913
  this._batchLoadFn = batchLoadFn;
@@ -11045,6 +11050,7 @@ function referenceIdFieldForRelationship(relationshipName) {
11045
11050
  * For full license text, see the LICENSE.txt file
11046
11051
  */
11047
11052
 
11053
+
11048
11054
  const { keys: keys$3, values: values$1, create: create$3, assign: assign$3, freeze } = Object;
11049
11055
  const { stringify: stringify$3, parse: parse$3 } = JSON;
11050
11056
  const { shift } = Array.prototype;
@@ -13718,6 +13724,7 @@ const recordIdGenerator = (id) => {
13718
13724
  * For full license text, see the LICENSE.txt file
13719
13725
  */
13720
13726
 
13727
+
13721
13728
  const { keys: keys$2, create: create$2, assign: assign$2, entries: entries$2 } = Object;
13722
13729
  const { stringify: stringify$2, parse: parse$2 } = JSON;
13723
13730
  const { push: push$1, join: join$1, slice: slice$1 } = Array.prototype;
@@ -13843,6 +13850,7 @@ function buildLdsResponse(response) {
13843
13850
  }
13844
13851
 
13845
13852
  // so eslint doesn't complain about nimbus
13853
+ /* global __nimbus */
13846
13854
  const tasker = idleDetector.declareNotifierTaskMulti('NimbusNetworkAdapter');
13847
13855
  const NimbusNetworkAdapter = (request, resourceRequestContext) => {
13848
13856
  tasker.add();
@@ -14519,6 +14527,7 @@ const { stringify: stringify$1, parse: parse$1 } = JSON;
14519
14527
  const { push, join, slice } = Array.prototype;
14520
14528
 
14521
14529
  // so eslint doesn't complain about nimbus
14530
+ /* global __nimbus */
14522
14531
  /**
14523
14532
  * An implementation of the DraftQueue interface which serializes
14524
14533
  * requests and sends them across the Nimbus bridge and deserializes the result.
@@ -14868,6 +14877,7 @@ function instrumentDraftQueue(queue) {
14868
14877
  }
14869
14878
 
14870
14879
  // so eslint doesn't complain about nimbus
14880
+ /* global __nimbus */
14871
14881
  function buildLdsDraftQueue(durableStore) {
14872
14882
  if (typeof __nimbus !== 'undefined' &&
14873
14883
  __nimbus.plugins !== undefined &&
@@ -15623,6 +15633,7 @@ class LdsDraftIdMapDataTable extends AbstractKeyValueDataTable {
15623
15633
  }
15624
15634
 
15625
15635
  // so eslint doesn't complain about nimbus
15636
+ /* global __nimbus */
15626
15637
  let baseDurableStore;
15627
15638
  function getNimbusDurableStore(plugin) {
15628
15639
  if (baseDurableStore === undefined) {
@@ -15828,6 +15839,7 @@ function setupInspection(luvio) {
15828
15839
  * For full license text, see the LICENSE.txt file
15829
15840
  */
15830
15841
 
15842
+
15831
15843
  class EventEmitter {
15832
15844
  constructor() {
15833
15845
  // @ts-ignore typescript doesn't like us setting this to an empty object for some reason
@@ -16879,6 +16891,8 @@ function primingSessionFactory(config) {
16879
16891
  }
16880
16892
 
16881
16893
  // so eslint doesn't complain about nimbus
16894
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
16895
+ /* global __nimbus */
16882
16896
  let lazyDraftQueue;
16883
16897
  let lazyDraftManager;
16884
16898
  let lazyLuvio;
@@ -17033,4 +17047,4 @@ register({
17033
17047
  });
17034
17048
 
17035
17049
  export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
17036
- // version: 1.235.0-3790decf0
17050
+ // version: 1.236.0-036823f57