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

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, f as AdapterPopulatedRecordArray, C as CacheHandler, I as IdentifierArray, M as MUTATE, I as RecordArray, R as RecordArrayManager, g as SOURCE, S as Store, l as StoreMap, _ as _clearCaches, o as _deprecatingNormalize, e as coerceId, h as fastPush, i as isStableIdentifier, n as notifyArray, p as peekCache, r as recordIdentifierFor, j as removeRecordDataFor, m as setCacheFor, c as setIdentifierForgetMethod, a as setIdentifierGenerationMethod, d as setIdentifierResetMethod, b as setIdentifierUpdateMethod, k as setRecordIdentifier, s as storeFor } from "./cache-handler-BGVZPfAA";
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";
@@ -3666,7 +3666,7 @@ class Store extends EmberObject {
3666
3666
  * a resource.
3667
3667
  *
3668
3668
  * This hook can be used to select or instantiate any desired
3669
- * mechanism of presentating cache data to the ui for access
3669
+ * mechanism of presenting cache data to the ui for access
3670
3670
  * mutation, and interaction.
3671
3671
  *
3672
3672
  * @method instantiateRecord (hook)
@@ -4996,7 +4996,7 @@ class Store extends EmberObject {
4996
4996
  if (macroCondition(getOwnConfig().env.DEBUG)) {
4997
4997
  assertDestroyingStore(this, 'saveRecord');
4998
4998
  }
4999
- assert(`Unable to initate save for a record in a disconnected state`, storeFor(record));
4999
+ assert(`Unable to initiate save for a record in a disconnected state`, storeFor(record));
5000
5000
  const identifier = recordIdentifierFor(record);
5001
5001
  const cache = this.cache;
5002
5002
  if (!identifier) {
@@ -5004,7 +5004,6 @@ class Store extends EmberObject {
5004
5004
  // but just in case we reject here to prevent bad things.
5005
5005
  return Promise.reject(new Error(`Record Is Disconnected`));
5006
5006
  }
5007
- // TODO we used to check if the record was destroyed here
5008
5007
  assert(`Cannot initiate a save request for an unloaded record: ${identifier.lid}`, this._instanceCache.recordIsLoaded(identifier));
5009
5008
  if (resourceIsFullyDeleted(this._instanceCache, identifier)) {
5010
5009
  return Promise.resolve(record);
@@ -5029,11 +5028,6 @@ class Store extends EmberObject {
5029
5028
  [SkipCache]: true
5030
5029
  }
5031
5030
  };
5032
-
5033
- // we lie here on the type because legacy doesn't have enough context
5034
- cache.willCommit(identifier, {
5035
- request
5036
- });
5037
5031
  return this.request(request).then(document => document.content);
5038
5032
  }
5039
5033
 
@@ -5716,4 +5710,4 @@ function isCacheAffecting(document) {
5716
5710
  }
5717
5711
  return document.response?.status !== 204;
5718
5712
  }
5719
- 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, coerceId as e, Collection as f, SOURCE as g, fastPush as h, isStableIdentifier as i, removeRecordDataFor as j, setRecordIdentifier as k, StoreMap as l, setCacheFor as m, notifyArray as n, normalizeModelName as o, peekCache as p, recordIdentifierFor as r, storeFor as s };
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 };