@salesforce/lds-runtime-aura 1.187.0 → 1.195.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/ldsEngineCreator.js
CHANGED
|
@@ -17,8 +17,8 @@ import ldsTrackedFieldsBehaviorGate from '@salesforce/gate/lds.useNewTrackedFiel
|
|
|
17
17
|
import { instrument, configuration, InMemoryRecordRepresentationQueryEvaluator, UiApiNamespace, RecordRepresentationRepresentationType } from 'force/ldsAdaptersUiapi';
|
|
18
18
|
import { withRegistration, register, setDefaultLuvio } from 'force/ldsEngine';
|
|
19
19
|
import { REFRESH_ADAPTER_EVENT, ADAPTER_UNFULFILLED_ERROR, instrument as instrument$2 } from 'force/ldsBindings';
|
|
20
|
-
import { counter, registerCacheStats, perfStart, perfEnd, registerPeriodicLogger, interaction,
|
|
21
|
-
import { LRUCache, instrumentAdapter, instrumentLuvio, setupInstrumentation as setupInstrumentation$1, updatePercentileHistogramMetric, incrementCounterMetric, incrementGetRecordNotifyChangeAllowCount, incrementGetRecordNotifyChangeDropCount, incrementNotifyRecordUpdateAvailableAllowCount, incrementNotifyRecordUpdateAvailableDropCount, setLdsAdaptersUiapiInstrumentation, setLdsNetworkAdapterInstrumentation } from 'force/ldsInstrumentation';
|
|
20
|
+
import { counter, registerCacheStats, perfStart, perfEnd, registerPeriodicLogger, interaction, timer } from 'instrumentation/service';
|
|
21
|
+
import { LRUCache, instrumentAdapter, instrumentLuvio, setupInstrumentation as setupInstrumentation$1, logObjectInfoChanged as logObjectInfoChanged$1, updatePercentileHistogramMetric, incrementCounterMetric, incrementGetRecordNotifyChangeAllowCount, incrementGetRecordNotifyChangeDropCount, incrementNotifyRecordUpdateAvailableAllowCount, incrementNotifyRecordUpdateAvailableDropCount, setLdsAdaptersUiapiInstrumentation, setLdsNetworkAdapterInstrumentation } from 'force/ldsInstrumentation';
|
|
22
22
|
import networkAdapter, { instrument as instrument$1, forceRecordTransactionsDisabled, ldsNetworkAdapterInstrument } from 'force/ldsNetwork';
|
|
23
23
|
import { instrument as instrument$3 } from 'force/adsBridge';
|
|
24
24
|
import { clearStorages } from 'force/ldsStorage';
|
|
@@ -501,14 +501,8 @@ function incrementRequestResponseCount(cb) {
|
|
|
501
501
|
}
|
|
502
502
|
metric.increment();
|
|
503
503
|
}
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
*
|
|
507
|
-
* @param name The mark name.
|
|
508
|
-
* @param content The mark content.
|
|
509
|
-
*/
|
|
510
|
-
function mark(name, content) {
|
|
511
|
-
mark$1(NAMESPACE, name, content);
|
|
504
|
+
function logObjectInfoChanged() {
|
|
505
|
+
logObjectInfoChanged$1();
|
|
512
506
|
}
|
|
513
507
|
/**
|
|
514
508
|
* Create a new instrumentation cache stats and return it.
|
|
@@ -604,10 +598,6 @@ function logCRUDLightningInteraction(eventSource, attributes) {
|
|
|
604
598
|
const instrumentation = new Instrumentation();
|
|
605
599
|
|
|
606
600
|
const OBJECT_INFO_PREFIX = 'UiApi::ObjectInfoRepresentation:';
|
|
607
|
-
const STORAGE_DROP_MARK_NAME = 'storage-drop';
|
|
608
|
-
const STORAGE_DROP_MARK_CONTEXT = {
|
|
609
|
-
reason: 'Object info changed',
|
|
610
|
-
};
|
|
611
601
|
/**
|
|
612
602
|
* Watch a Luvio instance for metadata changes.
|
|
613
603
|
*/
|
|
@@ -620,7 +610,7 @@ function setupMetadataWatcher(luvio) {
|
|
|
620
610
|
const entry = entries[i];
|
|
621
611
|
const isObjectInfoUpdated = entry.inserted === false;
|
|
622
612
|
if (isObjectInfoUpdated) {
|
|
623
|
-
|
|
613
|
+
logObjectInfoChanged();
|
|
624
614
|
clearStorages().catch(() => {
|
|
625
615
|
/* noop */
|
|
626
616
|
});
|
|
@@ -679,4 +669,4 @@ function ldsEngineCreator() {
|
|
|
679
669
|
}
|
|
680
670
|
|
|
681
671
|
export { ldsEngineCreator as default, initializeLDS };
|
|
682
|
-
// version: 1.
|
|
672
|
+
// version: 1.195.0-a477ef0d0
|
|
@@ -7,3 +7,4 @@ export declare function instrumentLuvio(): void;
|
|
|
7
7
|
export declare function instrumentStoreMethods(): void;
|
|
8
8
|
export declare function setLdsAdaptersUiapiInstrumentation(): void;
|
|
9
9
|
export declare function setLdsNetworkAdapterInstrumentation(): void;
|
|
10
|
+
export declare function logObjectInfoChanged(): void;
|
|
@@ -150,6 +150,7 @@ export declare function incrementRequestResponseCount(cb: () => FetchResponse<un
|
|
|
150
150
|
* @param content The mark content.
|
|
151
151
|
*/
|
|
152
152
|
export declare function mark(name: string, content?: any): void;
|
|
153
|
+
export declare function logObjectInfoChanged(): void;
|
|
153
154
|
/**
|
|
154
155
|
* Create a new instrumentation cache stats and return it.
|
|
155
156
|
*
|