@luvio/engine 0.160.5 → 0.161.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/engine.js
CHANGED
|
@@ -4473,4 +4473,4 @@ function createResourceParamsImpl(config, configMetadata) {
|
|
|
4473
4473
|
}
|
|
4474
4474
|
|
|
4475
4475
|
export { Environment, GraphNode, HttpStatusCode, InMemoryStore, InMemoryStoreQueryEvaluator, Luvio, Reader, StoreKeyMap, StoreKeySet, StoreResolveResultState, StringKeyInMemoryStore, Wildcard, adapterToNetworkPriority, buildNetworkSnapshotCachePolicy, coerceAdapterRequestContext, coerceConfig, createCustomAdapterEventEmitter, createResourceParams, deepFreeze, emitAdapterEvent, ingestShape, isFileReference, isFormData, resolveLink, serializeStructuredKey, setBypassDeepFreeze, typeCheckConfig };
|
|
4476
|
-
// engine version: 0.
|
|
4476
|
+
// engine version: 0.161.0-fe06f180
|
|
@@ -41,6 +41,24 @@ export interface AdapterRequestContext {
|
|
|
41
41
|
*/
|
|
42
42
|
excludeFromPredictions?: boolean;
|
|
43
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* A narrowed view of {@link AdapterRequestContext} accepted by DML
|
|
46
|
+
* (mutating) adapter factories.
|
|
47
|
+
*
|
|
48
|
+
* DML adapters do not read from the cache and have no meaningful use for
|
|
49
|
+
* most context fields — `cachePolicy`, `excludeFromPredictions`,
|
|
50
|
+
* `eventObservers`, `priority`, and `luvioMethod` are all read-side or
|
|
51
|
+
* infrastructure concerns. The only field that is relevant on the write
|
|
52
|
+
* path today is `requestCorrelator`, which carries the caller's
|
|
53
|
+
* observability context through to the network adapter so that mutation
|
|
54
|
+
* network spans can be parented to the originating user action.
|
|
55
|
+
*
|
|
56
|
+
* If a future use case warrants additional fields on the DML write path
|
|
57
|
+
* (e.g. a stable `priority` need), widen this `Pick<>` here in one place
|
|
58
|
+
* rather than threading the full `AdapterRequestContext` through the
|
|
59
|
+
* mutating-adapter factories.
|
|
60
|
+
*/
|
|
61
|
+
export type DmlAdapterRequestContext = Pick<AdapterRequestContext, 'requestCorrelator'>;
|
|
44
62
|
export interface CoercedAdapterRequestContext {
|
|
45
63
|
networkPriority: NetworkRequestPriority;
|
|
46
64
|
requestCorrelator: unknown;
|
package/dist/types/main.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export { Unsubscribe, StoreRecordError, StoreLink, RecordSource, StoreMetadataMa
|
|
|
11
11
|
export { FetchResponse, FormData, isFormData, FormDataEntryValue, FileReference, isFileReference, File, Headers, HttpStatusCode, LuvioRequestMethod, NetworkAdapter, IngestPath, ResourceIngest, ResourceRequest, ResourceRequestOverride, ResourceRequestContext, adapterToNetworkPriority, } from './network';
|
|
12
12
|
export { TTLStrategy } from './reader/resolve';
|
|
13
13
|
export { AdapterContext, AdapterWithContext, OnContextLoaded } from './AdapterContext';
|
|
14
|
-
export { AdapterRequestContext, CoercedAdapterRequestContext, coerceAdapterRequestContext, } from './AdapterRequestContext';
|
|
14
|
+
export { AdapterRequestContext, CoercedAdapterRequestContext, DmlAdapterRequestContext, coerceAdapterRequestContext, } from './AdapterRequestContext';
|
|
15
15
|
export { BuildCachedSnapshot, BuildNetworkSnapshot, CachePolicy, CachePolicyCacheAndNetwork, CachePolicyCacheThenNetwork, CachePolicyImplementation, CachePolicyImplementationArgs, CachePolicyNoCache, CachePolicyOnlyIfCached, CachePolicyStaleWhileRevalidate, CachePolicyValidAt, StoreLookup, } from './CachePolicy';
|
|
16
16
|
export { CacheMissOutOfTtlEvent, DataOutOfTtlDurationUpdateEvent, AdapterLookupStartEvent, AdapterLookupEndEvent, CacheLookupStartEvent, CacheLookupEndEvent, NetworkLookupStartEvent, NetworkLookupEndEvent, LuvioAdapterEvent, CustomAdapterEvent, LuvioAdapterEventObserver, LuvioStoreEvent, LuvioStoreEventObserver, EnvironmentAdapterEvent, emitAdapterEvent, createCustomAdapterEventEmitter, } from './events';
|
|
17
17
|
export * from './interfaces/queryability';
|