@salesforce/lds-worker-api 1.353.1 → 1.354.0-dev2

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.
@@ -1128,4 +1128,4 @@ if (process.env.NODE_ENV !== 'production') {
1128
1128
  }
1129
1129
 
1130
1130
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
1131
- // version: 1.353.1-eeb55fde9b
1131
+ // version: 1.354.0-dev2-be1ef0f23e
@@ -4266,7 +4266,7 @@ function withDefaultLuvio(callback) {
4266
4266
  }
4267
4267
  callbacks.push(callback);
4268
4268
  }
4269
- // version: 1.353.1-eeb55fde9b
4269
+ // version: 1.354.0-dev2-be1ef0f23e
4270
4270
 
4271
4271
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4272
4272
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -5214,7 +5214,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
5214
5214
  const { apiFamily, name } = metadata;
5215
5215
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5216
5216
  }
5217
- // version: 1.353.1-eeb55fde9b
5217
+ // version: 1.354.0-dev2-be1ef0f23e
5218
5218
 
5219
5219
  /**
5220
5220
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -33990,7 +33990,7 @@ withDefaultLuvio((luvio) => {
33990
33990
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
33991
33991
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
33992
33992
  });
33993
- // version: 1.353.1-4693659f9b
33993
+ // version: 1.354.0-dev2-493c24af5a
33994
33994
 
33995
33995
  /**
33996
33996
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -80420,12 +80420,16 @@ function isCreateContentDocumentAndVersionDraftAdapterEvent(customEvent) {
80420
80420
  /* global __nimbus */
80421
80421
  function chunkToBase64(chunk) {
80422
80422
  const bytes = new Uint8Array(chunk);
80423
- const binary = String.fromCharCode.apply(null, bytes);
80423
+ const CHUNK_SIZE = 64 * 1024; // 64kb, any bigger and fromCharCode() can error out with an overflow.
80424
+ let binary = '';
80425
+ for (let i = 0; i < bytes.length; i += CHUNK_SIZE) {
80426
+ binary += String.fromCharCode(...bytes.subarray(i, i + CHUNK_SIZE));
80427
+ }
80424
80428
  return btoa(binary);
80425
80429
  }
80426
80430
  async function streamBufferToBinaryStore(binaryStore, file, mimeType) {
80427
80431
  const uri = await binaryStore.createStream(mimeType);
80428
- const CHUNK_SIZE = 64 * 1024; // 64KB
80432
+ const CHUNK_SIZE = 1024 * 1024 * 2; // 2mb
80429
80433
  const fileSize = file.size;
80430
80434
  let offset = 0;
80431
80435
  try {
@@ -93033,7 +93037,7 @@ register$1({
93033
93037
  id: '@salesforce/lds-network-adapter',
93034
93038
  instrument: instrument$2,
93035
93039
  });
93036
- // version: 1.353.1-eeb55fde9b
93040
+ // version: 1.354.0-dev2-be1ef0f23e
93037
93041
 
93038
93042
  const { create: create$2, keys: keys$2 } = Object;
93039
93043
  const { stringify, parse } = JSON;
@@ -116928,7 +116932,7 @@ register$1({
116928
116932
  configuration: { ...configurationForGraphQLAdapters$1 },
116929
116933
  instrument: instrument$1,
116930
116934
  });
116931
- // version: 1.353.1-4693659f9b
116935
+ // version: 1.354.0-dev2-493c24af5a
116932
116936
 
116933
116937
  // On core the unstable adapters are re-exported with different names,
116934
116938
  // we want to match them here.
@@ -117080,7 +117084,7 @@ withDefaultLuvio((luvio) => {
117080
117084
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
117081
117085
  graphQLImperative = ldsAdapter;
117082
117086
  });
117083
- // version: 1.353.1-4693659f9b
117087
+ // version: 1.354.0-dev2-493c24af5a
117084
117088
 
117085
117089
  var gqlApi = /*#__PURE__*/Object.freeze({
117086
117090
  __proto__: null,
@@ -117872,7 +117876,7 @@ const callbacks$1 = [];
117872
117876
  function register(r) {
117873
117877
  callbacks$1.forEach((callback) => callback(r));
117874
117878
  }
117875
- // version: 1.353.1-eeb55fde9b
117879
+ // version: 1.354.0-dev2-be1ef0f23e
117876
117880
 
117877
117881
  /**
117878
117882
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -118952,4 +118956,4 @@ const { luvio } = getRuntime();
118952
118956
  setDefaultLuvio({ luvio });
118953
118957
 
118954
118958
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
118955
- // version: 1.353.1-eeb55fde9b
118959
+ // version: 1.354.0-dev2-be1ef0f23e
@@ -4272,7 +4272,7 @@
4272
4272
  }
4273
4273
  callbacks.push(callback);
4274
4274
  }
4275
- // version: 1.353.1-eeb55fde9b
4275
+ // version: 1.354.0-dev2-be1ef0f23e
4276
4276
 
4277
4277
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4278
4278
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -5220,7 +5220,7 @@
5220
5220
  const { apiFamily, name } = metadata;
5221
5221
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5222
5222
  }
5223
- // version: 1.353.1-eeb55fde9b
5223
+ // version: 1.354.0-dev2-be1ef0f23e
5224
5224
 
5225
5225
  /**
5226
5226
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -33996,7 +33996,7 @@
33996
33996
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
33997
33997
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
33998
33998
  });
33999
- // version: 1.353.1-4693659f9b
33999
+ // version: 1.354.0-dev2-493c24af5a
34000
34000
 
34001
34001
  /**
34002
34002
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -80426,12 +80426,16 @@
80426
80426
  /* global __nimbus */
80427
80427
  function chunkToBase64(chunk) {
80428
80428
  const bytes = new Uint8Array(chunk);
80429
- const binary = String.fromCharCode.apply(null, bytes);
80429
+ const CHUNK_SIZE = 64 * 1024; // 64kb, any bigger and fromCharCode() can error out with an overflow.
80430
+ let binary = '';
80431
+ for (let i = 0; i < bytes.length; i += CHUNK_SIZE) {
80432
+ binary += String.fromCharCode(...bytes.subarray(i, i + CHUNK_SIZE));
80433
+ }
80430
80434
  return btoa(binary);
80431
80435
  }
80432
80436
  async function streamBufferToBinaryStore(binaryStore, file, mimeType) {
80433
80437
  const uri = await binaryStore.createStream(mimeType);
80434
- const CHUNK_SIZE = 64 * 1024; // 64KB
80438
+ const CHUNK_SIZE = 1024 * 1024 * 2; // 2mb
80435
80439
  const fileSize = file.size;
80436
80440
  let offset = 0;
80437
80441
  try {
@@ -93039,7 +93043,7 @@
93039
93043
  id: '@salesforce/lds-network-adapter',
93040
93044
  instrument: instrument$2,
93041
93045
  });
93042
- // version: 1.353.1-eeb55fde9b
93046
+ // version: 1.354.0-dev2-be1ef0f23e
93043
93047
 
93044
93048
  const { create: create$2, keys: keys$2 } = Object;
93045
93049
  const { stringify, parse } = JSON;
@@ -116934,7 +116938,7 @@
116934
116938
  configuration: { ...configurationForGraphQLAdapters$1 },
116935
116939
  instrument: instrument$1,
116936
116940
  });
116937
- // version: 1.353.1-4693659f9b
116941
+ // version: 1.354.0-dev2-493c24af5a
116938
116942
 
116939
116943
  // On core the unstable adapters are re-exported with different names,
116940
116944
  // we want to match them here.
@@ -117086,7 +117090,7 @@
117086
117090
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
117087
117091
  graphQLImperative = ldsAdapter;
117088
117092
  });
117089
- // version: 1.353.1-4693659f9b
117093
+ // version: 1.354.0-dev2-493c24af5a
117090
117094
 
117091
117095
  var gqlApi = /*#__PURE__*/Object.freeze({
117092
117096
  __proto__: null,
@@ -117878,7 +117882,7 @@
117878
117882
  function register(r) {
117879
117883
  callbacks$1.forEach((callback) => callback(r));
117880
117884
  }
117881
- // version: 1.353.1-eeb55fde9b
117885
+ // version: 1.354.0-dev2-be1ef0f23e
117882
117886
 
117883
117887
  /**
117884
117888
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -118977,4 +118981,4 @@
118977
118981
  exports.subscribeToAdapter = subscribeToAdapter;
118978
118982
 
118979
118983
  }));
118980
- // version: 1.353.1-eeb55fde9b
118984
+ // version: 1.354.0-dev2-be1ef0f23e
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.353.1",
3
+ "version": "1.354.0-dev2",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/es/lds-worker-api.js",
@@ -35,14 +35,14 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
38
- "@salesforce/lds-adapters-graphql": "^1.353.1",
39
- "@salesforce/lds-adapters-uiapi": "^1.353.1",
40
- "@salesforce/lds-default-luvio": "^1.353.1",
41
- "@salesforce/lds-drafts": "^1.353.1",
42
- "@salesforce/lds-graphql-parser": "^1.353.1",
43
- "@salesforce/lds-luvio-engine": "^1.353.1",
44
- "@salesforce/lds-runtime-mobile": "^1.353.1",
45
- "@salesforce/nimbus-plugin-lds": "^1.353.1",
38
+ "@salesforce/lds-adapters-graphql": "^1.354.0-dev2",
39
+ "@salesforce/lds-adapters-uiapi": "^1.354.0-dev2",
40
+ "@salesforce/lds-default-luvio": "^1.354.0-dev2",
41
+ "@salesforce/lds-drafts": "^1.354.0-dev2",
42
+ "@salesforce/lds-graphql-parser": "^1.354.0-dev2",
43
+ "@salesforce/lds-luvio-engine": "^1.354.0-dev2",
44
+ "@salesforce/lds-runtime-mobile": "^1.354.0-dev2",
45
+ "@salesforce/nimbus-plugin-lds": "^1.354.0-dev2",
46
46
  "ajv": "^8.11.0",
47
47
  "glob": "^7.1.5",
48
48
  "nimbus-types": "^2.0.0-alpha1",