@ember-data/store 5.4.0-alpha.53 → 5.4.0-alpha.54

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 CHANGED
@@ -1 +1 @@
1
- export { A as ARRAY_SIGNAL, h as AdapterPopulatedRecordArray, C as CacheHandler, I as IdentifierArray, M as MUTATE, I as RecordArray, R as RecordArrayManager, j as SOURCE, S as Store, o as StoreMap, _ as _clearCaches, t as _deprecatingNormalize, f as coerceId, e as constructResource, g as ensureStringId, k as fastPush, i as isStableIdentifier, n as notifyArray, p as peekCache, r as recordIdentifierFor, l as removeRecordDataFor, q as setCacheFor, c as setIdentifierForgetMethod, a as setIdentifierGenerationMethod, d as setIdentifierResetMethod, b as setIdentifierUpdateMethod, m as setRecordIdentifier, s as storeFor } from "./cache-handler-CrNbsoZR";
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 _, setIdentifierGenerationMethod as a, setIdentifierUpdateMethod as b, setIdentifierForgetMethod as c, setIdentifierResetMethod as d, constructResource as e, coerceId as f, ensureStringId as g, Collection as h, isStableIdentifier as i, SOURCE as j, fastPush as k, removeRecordDataFor as l, setRecordIdentifier as m, notifyArray as n, StoreMap as o, peekCache as p, setCacheFor as q, recordIdentifierFor as r, storeFor as s, normalizeModelName as t };
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 };