@ember-data/store 5.4.0-alpha.53 → 5.4.0-alpha.55
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/addon/-private.js +1 -1
- package/addon/{cache-handler-CrNbsoZR.js → cache-handler-TC2-lizB.js} +6 -2
- package/addon/cache-handler-TC2-lizB.js.map +1 -0
- package/addon/index.js +1 -1
- package/package.json +13 -13
- package/unstable-preview-types/-private/caches/identifier-cache.d.ts +1 -6
- package/unstable-preview-types/-private/caches/identifier-cache.d.ts.map +1 -1
- package/unstable-preview-types/-private.d.ts +1 -1
- package/unstable-preview-types/-private.d.ts.map +1 -1
- package/unstable-preview-types/-types/q/identifier.d.ts +24 -0
- package/unstable-preview-types/-types/q/identifier.d.ts.map +1 -1
- package/unstable-preview-types/-types/q/schema-service.d.ts +1 -1
- package/unstable-preview-types/-types/q/schema-service.d.ts.map +1 -1
- package/unstable-preview-types/index.d.ts +26 -25
- package/unstable-preview-types/index.d.ts.map +1 -1
- package/addon/cache-handler-CrNbsoZR.js.map +0 -1
package/addon/-private.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as ARRAY_SIGNAL,
|
|
1
|
+
export { A as ARRAY_SIGNAL, b as AdapterPopulatedRecordArray, C as CacheHandler, I as IdentifierArray, M as MUTATE, I as RecordArray, R as RecordArrayManager, d as SOURCE, S as Store, j as StoreMap, _ as _clearCaches, l as _deprecatingNormalize, a as coerceId, c as constructResource, e as ensureStringId, f as fastPush, i as isStableIdentifier, n as notifyArray, p as peekCache, r as recordIdentifierFor, g as removeRecordDataFor, k as setCacheFor, h as setRecordIdentifier, s as storeFor } from "./cache-handler-TC2-lizB";
|
|
@@ -152,6 +152,7 @@ let configuredForgetMethod;
|
|
|
152
152
|
let configuredGenerationMethod;
|
|
153
153
|
let configuredResetMethod;
|
|
154
154
|
let configuredUpdateMethod;
|
|
155
|
+
let configuredKeyInfoMethod;
|
|
155
156
|
function setIdentifierGenerationMethod(method) {
|
|
156
157
|
configuredGenerationMethod = method;
|
|
157
158
|
}
|
|
@@ -164,6 +165,9 @@ function setIdentifierForgetMethod(method) {
|
|
|
164
165
|
function setIdentifierResetMethod(method) {
|
|
165
166
|
configuredResetMethod = method;
|
|
166
167
|
}
|
|
168
|
+
function setKeyInfoForResource(method) {
|
|
169
|
+
configuredKeyInfoMethod = method;
|
|
170
|
+
}
|
|
167
171
|
|
|
168
172
|
// Map<type, Map<id, lid>>
|
|
169
173
|
|
|
@@ -249,7 +253,7 @@ class IdentifierCache {
|
|
|
249
253
|
this._forget = configuredForgetMethod || defaultEmptyCallback;
|
|
250
254
|
this._reset = configuredResetMethod || defaultEmptyCallback;
|
|
251
255
|
this._merge = defaultMergeMethod;
|
|
252
|
-
this._keyInfoForResource = defaultKeyInfoMethod;
|
|
256
|
+
this._keyInfoForResource = configuredKeyInfoMethod || defaultKeyInfoMethod;
|
|
253
257
|
this._isDefaultConfig = !configuredGenerationMethod;
|
|
254
258
|
this._id = IDENTIFIER_CACHE_ID++;
|
|
255
259
|
this._cache = {
|
|
@@ -5710,4 +5714,4 @@ function isCacheAffecting(document) {
|
|
|
5710
5714
|
}
|
|
5711
5715
|
return document.response?.status !== 204;
|
|
5712
5716
|
}
|
|
5713
|
-
export { ARRAY_SIGNAL as A, CacheHandler as C, IdentifierArray as I, MUTATE as M, RecordArrayManager as R, Store as S, _clearCaches as _,
|
|
5717
|
+
export { ARRAY_SIGNAL as A, CacheHandler as C, IdentifierArray as I, MUTATE as M, RecordArrayManager as R, Store as S, _clearCaches as _, coerceId as a, Collection as b, constructResource as c, SOURCE as d, ensureStringId as e, fastPush as f, removeRecordDataFor as g, setRecordIdentifier as h, isStableIdentifier as i, StoreMap as j, setCacheFor as k, normalizeModelName as l, setIdentifierGenerationMethod as m, notifyArray as n, setIdentifierUpdateMethod as o, peekCache as p, setIdentifierForgetMethod as q, recordIdentifierFor as r, storeFor as s, setIdentifierResetMethod as t, setKeyInfoForResource as u };
|