@salesforce/lds-runtime-mobile 1.367.0 → 1.369.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
|
@@ -36,6 +36,7 @@ import { getDateTimeFormat, getDateTimeISO8601Parser, getNumberFormat } from 'li
|
|
|
36
36
|
import formattingOptions from 'lightning/i18nCldrOptions';
|
|
37
37
|
import ldsPrimingGraphqlBatch from '@salesforce/gate/lds.primingGraphqlBatch';
|
|
38
38
|
import lmrPrimingUseSoql from '@salesforce/gate/lmr.primingUseSoql';
|
|
39
|
+
import aggressiveTrimCountKillSwitchGate from '@salesforce/gate/lmr.disableAggresiveTrimCountChange';
|
|
39
40
|
import graphqlL2AdapterGate from '@salesforce/gate/lmr.graphqlL2Adapter';
|
|
40
41
|
import productConsumedSideEffects from '@salesforce/gate/com.salesforce.fieldservice.vanStockLDSBypass256';
|
|
41
42
|
import useOneStore from '@salesforce/gate/lmr.useOneStore';
|
|
@@ -42820,6 +42821,10 @@ const GRAPHQL_QUERY_PARSE_ERROR = 'gql-query-parse-error';
|
|
|
42820
42821
|
const GRAPHQL_SQL_EVAL_PRECONDITION_ERROR = 'gql-sql-pre-eval-error';
|
|
42821
42822
|
const GRAPHQL_CREATE_SNAPSHOT_ERROR = 'gql-create-snapshot-error';
|
|
42822
42823
|
const DRAFT_AWARE_CREATE_CONTENT_DOCUMENT_AND_VERSION_ERROR = 'draft-aware-create-content-document-and-version-error';
|
|
42824
|
+
/** Garbage Collection */
|
|
42825
|
+
const GARBAGE_COLLECTION_AGGRESSIVE_TRIM_COUNT = 'garbage-collection-aggressive-trim-count';
|
|
42826
|
+
const GARBAGE_COLLECTION_AGGRESSIVE_TRIM_RECORDS_TRIMMED = 'garbage-collection-aggressive-trim-records-trimmed';
|
|
42827
|
+
const GARBAGE_COLLECTION_AGGRESSIVE_TRIM_TOTAL_RECORDS_BEFORE_TRIM = 'garbage-collection-aggressive-trim-total-records-before-trim';
|
|
42823
42828
|
const ldsMobileInstrumentation = getInstrumentation(O11Y_NAMESPACE_LDS_MOBILE);
|
|
42824
42829
|
const nimbusLogger = typeof __nimbus !== 'undefined' &&
|
|
42825
42830
|
__nimbus.plugins !== undefined &&
|
|
@@ -42960,6 +42965,12 @@ function reportChunkCandidateUrlLength(urlLength) {
|
|
|
42960
42965
|
const buckets = [8000, 10000, 12000, 14000, 16000];
|
|
42961
42966
|
ldsMobileInstrumentation.bucketValue('chunk-candidate-url-length-histogram', urlLength, buckets);
|
|
42962
42967
|
}
|
|
42968
|
+
/** Garbage Collection */
|
|
42969
|
+
function reportAggressiveTrimTriggered(trimCount, beforeTrimRecordCount, totalRecordsTrimmed) {
|
|
42970
|
+
ldsMobileInstrumentation.trackValue(GARBAGE_COLLECTION_AGGRESSIVE_TRIM_COUNT, trimCount);
|
|
42971
|
+
ldsMobileInstrumentation.trackValue(GARBAGE_COLLECTION_AGGRESSIVE_TRIM_TOTAL_RECORDS_BEFORE_TRIM, beforeTrimRecordCount);
|
|
42972
|
+
ldsMobileInstrumentation.trackValue(GARBAGE_COLLECTION_AGGRESSIVE_TRIM_RECORDS_TRIMMED, totalRecordsTrimmed);
|
|
42973
|
+
}
|
|
42963
42974
|
|
|
42964
42975
|
const QUICK_ACTION_HANDLER = 'QUICK_ACTION_HANDLER';
|
|
42965
42976
|
class QuickActionExecutionRepresentationHandler extends AbstractQuickActionHandler {
|
|
@@ -54153,8 +54164,14 @@ function primingSessionFactory(config) {
|
|
|
54153
54164
|
return instrumentPrimingSession(session);
|
|
54154
54165
|
}
|
|
54155
54166
|
|
|
54156
|
-
|
|
54157
|
-
|
|
54167
|
+
// count will get reset to 0 when the module is instantated again when bootstrapped
|
|
54168
|
+
let aggressiveTrimCount = 0;
|
|
54169
|
+
const DEFAULT_MAX_RECORD_COUNT = aggressiveTrimCountKillSwitchGate.isOpen({ fallback: false })
|
|
54170
|
+
? 10000
|
|
54171
|
+
: 80000;
|
|
54172
|
+
const DEFAULT_MAX_BATCH_SIZE = aggressiveTrimCountKillSwitchGate.isOpen({ fallback: false })
|
|
54173
|
+
? 1000
|
|
54174
|
+
: 200;
|
|
54158
54175
|
async function aggressiveTrim(data, deallocateFn, options = {}) {
|
|
54159
54176
|
const maxStoreRecords = options.maxStoreRecords !== undefined ? options.maxStoreRecords : DEFAULT_MAX_RECORD_COUNT;
|
|
54160
54177
|
const batchSize = options.batchSize !== undefined ? options.batchSize : DEFAULT_MAX_BATCH_SIZE;
|
|
@@ -54186,6 +54203,9 @@ async function aggressiveTrim(data, deallocateFn, options = {}) {
|
|
|
54186
54203
|
const count = await batch();
|
|
54187
54204
|
deallocatedCount = deallocatedCount + count;
|
|
54188
54205
|
}
|
|
54206
|
+
//increment trim count and report metrics
|
|
54207
|
+
aggressiveTrimCount++;
|
|
54208
|
+
reportAggressiveTrimTriggered(aggressiveTrimCount, storeKeyLength, deallocatedCount);
|
|
54189
54209
|
const trimKeysSkipped = makeSetFilteredFromDifference(pendingTrimKeys, (key) => trimKeys.has(key) === false);
|
|
54190
54210
|
return {
|
|
54191
54211
|
deallocatedCount,
|
|
@@ -58178,4 +58198,4 @@ register({
|
|
|
58178
58198
|
});
|
|
58179
58199
|
|
|
58180
58200
|
export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, registerReportObserver, reportGraphqlQueryParseError };
|
|
58181
|
-
// version: 1.
|
|
58201
|
+
// version: 1.369.0-b61b56bd49
|
|
@@ -20,3 +20,5 @@ export declare function reportPrimingSuccess(recordCount: number): void;
|
|
|
20
20
|
export declare function reportPrimingConflict(resolutionType: string, recordCount: number): void;
|
|
21
21
|
/** Network */
|
|
22
22
|
export declare function reportChunkCandidateUrlLength(urlLength: number): void;
|
|
23
|
+
/** Garbage Collection */
|
|
24
|
+
export declare function reportAggressiveTrimTriggered(trimCount: number, beforeTrimRecordCount: number, totalRecordsTrimmed: number): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-mobile",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.369.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS runtime for mobile/hybrid environments.",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@luvio/service-provisioner": "5.43.1",
|
|
36
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
37
|
-
"@salesforce/lds-bindings": "^1.
|
|
38
|
-
"@salesforce/lds-instrumentation": "^1.
|
|
36
|
+
"@salesforce/lds-adapters-uiapi": "^1.369.0",
|
|
37
|
+
"@salesforce/lds-bindings": "^1.369.0",
|
|
38
|
+
"@salesforce/lds-instrumentation": "^1.369.0",
|
|
39
39
|
"@salesforce/user": "0.0.21",
|
|
40
40
|
"o11y": "250.7.0",
|
|
41
41
|
"o11y_schema": "256.126.0"
|
|
@@ -56,16 +56,16 @@
|
|
|
56
56
|
"@luvio/service-pubsub": "5.43.1",
|
|
57
57
|
"@luvio/service-store": "5.43.1",
|
|
58
58
|
"@luvio/utils": "5.43.1",
|
|
59
|
-
"@salesforce/lds-adapters-graphql": "^1.
|
|
60
|
-
"@salesforce/lds-drafts": "^1.
|
|
61
|
-
"@salesforce/lds-durable-records": "^1.
|
|
62
|
-
"@salesforce/lds-network-adapter": "^1.
|
|
63
|
-
"@salesforce/lds-network-nimbus": "^1.
|
|
64
|
-
"@salesforce/lds-store-binary": "^1.
|
|
65
|
-
"@salesforce/lds-store-nimbus": "^1.
|
|
66
|
-
"@salesforce/lds-store-sql": "^1.
|
|
67
|
-
"@salesforce/lds-utils-adapters": "^1.
|
|
68
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
59
|
+
"@salesforce/lds-adapters-graphql": "^1.369.0",
|
|
60
|
+
"@salesforce/lds-drafts": "^1.369.0",
|
|
61
|
+
"@salesforce/lds-durable-records": "^1.369.0",
|
|
62
|
+
"@salesforce/lds-network-adapter": "^1.369.0",
|
|
63
|
+
"@salesforce/lds-network-nimbus": "^1.369.0",
|
|
64
|
+
"@salesforce/lds-store-binary": "^1.369.0",
|
|
65
|
+
"@salesforce/lds-store-nimbus": "^1.369.0",
|
|
66
|
+
"@salesforce/lds-store-sql": "^1.369.0",
|
|
67
|
+
"@salesforce/lds-utils-adapters": "^1.369.0",
|
|
68
|
+
"@salesforce/nimbus-plugin-lds": "^1.369.0",
|
|
69
69
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
70
70
|
"wait-for-expect": "^3.0.2"
|
|
71
71
|
},
|
package/sfdc/main.js
CHANGED
|
@@ -36,6 +36,7 @@ import { getDateTimeFormat, getDateTimeISO8601Parser, getNumberFormat } from 'li
|
|
|
36
36
|
import formattingOptions from 'lightning/i18nCldrOptions';
|
|
37
37
|
import ldsPrimingGraphqlBatch from '@salesforce/gate/lds.primingGraphqlBatch';
|
|
38
38
|
import lmrPrimingUseSoql from '@salesforce/gate/lmr.primingUseSoql';
|
|
39
|
+
import aggressiveTrimCountKillSwitchGate from '@salesforce/gate/lmr.disableAggresiveTrimCountChange';
|
|
39
40
|
import graphqlL2AdapterGate from '@salesforce/gate/lmr.graphqlL2Adapter';
|
|
40
41
|
import productConsumedSideEffects from '@salesforce/gate/com.salesforce.fieldservice.vanStockLDSBypass256';
|
|
41
42
|
import useOneStore from '@salesforce/gate/lmr.useOneStore';
|
|
@@ -42820,6 +42821,10 @@ const GRAPHQL_QUERY_PARSE_ERROR = 'gql-query-parse-error';
|
|
|
42820
42821
|
const GRAPHQL_SQL_EVAL_PRECONDITION_ERROR = 'gql-sql-pre-eval-error';
|
|
42821
42822
|
const GRAPHQL_CREATE_SNAPSHOT_ERROR = 'gql-create-snapshot-error';
|
|
42822
42823
|
const DRAFT_AWARE_CREATE_CONTENT_DOCUMENT_AND_VERSION_ERROR = 'draft-aware-create-content-document-and-version-error';
|
|
42824
|
+
/** Garbage Collection */
|
|
42825
|
+
const GARBAGE_COLLECTION_AGGRESSIVE_TRIM_COUNT = 'garbage-collection-aggressive-trim-count';
|
|
42826
|
+
const GARBAGE_COLLECTION_AGGRESSIVE_TRIM_RECORDS_TRIMMED = 'garbage-collection-aggressive-trim-records-trimmed';
|
|
42827
|
+
const GARBAGE_COLLECTION_AGGRESSIVE_TRIM_TOTAL_RECORDS_BEFORE_TRIM = 'garbage-collection-aggressive-trim-total-records-before-trim';
|
|
42823
42828
|
const ldsMobileInstrumentation = getInstrumentation(O11Y_NAMESPACE_LDS_MOBILE);
|
|
42824
42829
|
const nimbusLogger = typeof __nimbus !== 'undefined' &&
|
|
42825
42830
|
__nimbus.plugins !== undefined &&
|
|
@@ -42960,6 +42965,12 @@ function reportChunkCandidateUrlLength(urlLength) {
|
|
|
42960
42965
|
const buckets = [8000, 10000, 12000, 14000, 16000];
|
|
42961
42966
|
ldsMobileInstrumentation.bucketValue('chunk-candidate-url-length-histogram', urlLength, buckets);
|
|
42962
42967
|
}
|
|
42968
|
+
/** Garbage Collection */
|
|
42969
|
+
function reportAggressiveTrimTriggered(trimCount, beforeTrimRecordCount, totalRecordsTrimmed) {
|
|
42970
|
+
ldsMobileInstrumentation.trackValue(GARBAGE_COLLECTION_AGGRESSIVE_TRIM_COUNT, trimCount);
|
|
42971
|
+
ldsMobileInstrumentation.trackValue(GARBAGE_COLLECTION_AGGRESSIVE_TRIM_TOTAL_RECORDS_BEFORE_TRIM, beforeTrimRecordCount);
|
|
42972
|
+
ldsMobileInstrumentation.trackValue(GARBAGE_COLLECTION_AGGRESSIVE_TRIM_RECORDS_TRIMMED, totalRecordsTrimmed);
|
|
42973
|
+
}
|
|
42963
42974
|
|
|
42964
42975
|
const QUICK_ACTION_HANDLER = 'QUICK_ACTION_HANDLER';
|
|
42965
42976
|
class QuickActionExecutionRepresentationHandler extends AbstractQuickActionHandler {
|
|
@@ -54153,8 +54164,14 @@ function primingSessionFactory(config) {
|
|
|
54153
54164
|
return instrumentPrimingSession(session);
|
|
54154
54165
|
}
|
|
54155
54166
|
|
|
54156
|
-
|
|
54157
|
-
|
|
54167
|
+
// count will get reset to 0 when the module is instantated again when bootstrapped
|
|
54168
|
+
let aggressiveTrimCount = 0;
|
|
54169
|
+
const DEFAULT_MAX_RECORD_COUNT = aggressiveTrimCountKillSwitchGate.isOpen({ fallback: false })
|
|
54170
|
+
? 10000
|
|
54171
|
+
: 80000;
|
|
54172
|
+
const DEFAULT_MAX_BATCH_SIZE = aggressiveTrimCountKillSwitchGate.isOpen({ fallback: false })
|
|
54173
|
+
? 1000
|
|
54174
|
+
: 200;
|
|
54158
54175
|
async function aggressiveTrim(data, deallocateFn, options = {}) {
|
|
54159
54176
|
const maxStoreRecords = options.maxStoreRecords !== undefined ? options.maxStoreRecords : DEFAULT_MAX_RECORD_COUNT;
|
|
54160
54177
|
const batchSize = options.batchSize !== undefined ? options.batchSize : DEFAULT_MAX_BATCH_SIZE;
|
|
@@ -54186,6 +54203,9 @@ async function aggressiveTrim(data, deallocateFn, options = {}) {
|
|
|
54186
54203
|
const count = await batch();
|
|
54187
54204
|
deallocatedCount = deallocatedCount + count;
|
|
54188
54205
|
}
|
|
54206
|
+
//increment trim count and report metrics
|
|
54207
|
+
aggressiveTrimCount++;
|
|
54208
|
+
reportAggressiveTrimTriggered(aggressiveTrimCount, storeKeyLength, deallocatedCount);
|
|
54189
54209
|
const trimKeysSkipped = makeSetFilteredFromDifference(pendingTrimKeys, (key) => trimKeys.has(key) === false);
|
|
54190
54210
|
return {
|
|
54191
54211
|
deallocatedCount,
|
|
@@ -58178,4 +58198,4 @@ register({
|
|
|
58178
58198
|
});
|
|
58179
58199
|
|
|
58180
58200
|
export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, registerReportObserver, reportGraphqlQueryParseError };
|
|
58181
|
-
// version: 1.
|
|
58201
|
+
// version: 1.369.0-b61b56bd49
|
|
@@ -20,3 +20,5 @@ export declare function reportPrimingSuccess(recordCount: number): void;
|
|
|
20
20
|
export declare function reportPrimingConflict(resolutionType: string, recordCount: number): void;
|
|
21
21
|
/** Network */
|
|
22
22
|
export declare function reportChunkCandidateUrlLength(urlLength: number): void;
|
|
23
|
+
/** Garbage Collection */
|
|
24
|
+
export declare function reportAggressiveTrimTriggered(trimCount: number, beforeTrimRecordCount: number, totalRecordsTrimmed: number): void;
|