@ember-data/store 5.3.0-alpha.8 → 5.3.0-alpha.9

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 { f as AdapterPopulatedRecordArray, C as CacheHandler, h as IDENTIFIER_ARRAY_TAG, I as IdentifierArray, M as MUTATE, I as RecordArray, R as RecordArrayManager, g as SOURCE, S as Store, m as StoreMap, _ as _clearCaches, e as coerceId, j as fastPush, i as isStableIdentifier, n as notifyArray, p as peekCache, r as recordIdentifierFor, k as removeRecordDataFor, o as setCacheFor, c as setIdentifierForgetMethod, a as setIdentifierGenerationMethod, d as setIdentifierResetMethod, b as setIdentifierUpdateMethod, l as setRecordIdentifier, s as storeFor } from "./store-service-7750e2f0";
1
+ export { f as AdapterPopulatedRecordArray, C as CacheHandler, h as IDENTIFIER_ARRAY_TAG, I as IdentifierArray, M as MUTATE, I as RecordArray, R as RecordArrayManager, g as SOURCE, S as Store, m as StoreMap, _ as _clearCaches, e as coerceId, j as fastPush, i as isStableIdentifier, n as notifyArray, p as peekCache, r as recordIdentifierFor, k as removeRecordDataFor, o as setCacheFor, c as setIdentifierForgetMethod, a as setIdentifierGenerationMethod, d as setIdentifierResetMethod, b as setIdentifierUpdateMethod, l as setRecordIdentifier, s as storeFor } from "./store-service-845a5162";
package/addon/index.js CHANGED
@@ -1 +1 @@
1
- export { C as CacheHandler, S as default, r as recordIdentifierFor, c as setIdentifierForgetMethod, a as setIdentifierGenerationMethod, d as setIdentifierResetMethod, b as setIdentifierUpdateMethod, s as storeFor } from "./store-service-7750e2f0";
1
+ export { C as CacheHandler, S as default, r as recordIdentifierFor, c as setIdentifierForgetMethod, a as setIdentifierGenerationMethod, d as setIdentifierResetMethod, b as setIdentifierUpdateMethod, s as storeFor } from "./store-service-845a5162";
@@ -1246,7 +1246,7 @@ let RecordReference = (_class$1 = class RecordReference {
1246
1246
  @module @ember-data/store
1247
1247
  */
1248
1248
 
1249
- class CacheStoreWrapper {
1249
+ class CacheCapabilitiesManager {
1250
1250
  constructor(_store) {
1251
1251
  this._store = _store;
1252
1252
  this._willNotify = false;
@@ -1398,7 +1398,7 @@ class InstanceCache {
1398
1398
  reference: new WeakMap()
1399
1399
  };
1400
1400
  this.store = store;
1401
- this._storeWrapper = new CacheStoreWrapper(this.store);
1401
+ this._storeWrapper = new CacheCapabilitiesManager(this.store);
1402
1402
  store.identifierCache.__configureMerge((identifier, matchedIdentifier, resourceData) => {
1403
1403
  let keptIdentifier = identifier;
1404
1404
  if (identifier.id !== matchedIdentifier.id) {
@@ -3582,14 +3582,12 @@ class Store extends EmberObject {
3582
3582
 
3583
3583
  // DEBUG-only properties
3584
3584
 
3585
- // @ts-expect-error
3586
3585
  get isDestroying() {
3587
3586
  return this._isDestroying;
3588
3587
  }
3589
3588
  set isDestroying(value) {
3590
3589
  this._isDestroying = value;
3591
3590
  }
3592
- // @ts-expect-error
3593
3591
  get isDestroyed() {
3594
3592
  return this._isDestroyed;
3595
3593
  }
@@ -3602,6 +3600,7 @@ class Store extends EmberObject {
3602
3600
  @private
3603
3601
  */
3604
3602
  constructor(createArgs) {
3603
+ // @ts-expect-error ember-source types improperly expect createArgs to be `Owner`
3605
3604
  super(createArgs);
3606
3605
  Object.assign(this, createArgs);
3607
3606
  this.identifierCache = new IdentifierCache();