@ember-data/store 5.4.0-beta.14 → 5.4.0-beta.15

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/README.md CHANGED
@@ -108,12 +108,9 @@ import RequestManager from '@ember-data/request';
108
108
  import Fetch from '@ember-data/request/fetch';
109
109
 
110
110
  export default class extends Store {
111
- constructor() {
112
- super(...arguments);
113
- this.requestManager = new RequestManager();
114
- this.requestManager.use([Fetch]);
115
- this.requestManager.useCache(CacheHandler);
116
- }
111
+ requestManager = new RequestManager()
112
+ .use([Fetch])
113
+ .useCache(CacheHandler);
117
114
  }
118
115
  ```
119
116
 
package/dist/-private.js CHANGED
@@ -1 +1 @@
1
- export { A as ARRAY_SIGNAL, C as CacheHandler, j as CollectionRecordArray, I as LiveArray, M as MUTATE, R as RecordArrayManager, k as SOURCE, S as Store, q as StoreMap, _ as _clearCaches, u as _deprecatingNormalize, g as coerceId, f as constructResource, h as ensureStringId, l as fastPush, i as isStableIdentifier, n as notifyArray, p as peekCache, r as recordIdentifierFor, m as removeRecordDataFor, t as setCacheFor, o as setRecordIdentifier, s as storeFor } from "./handler-CW2kp6Ua.js";
1
+ export { A as ARRAY_SIGNAL, C as CacheHandler, j as CollectionRecordArray, I as LiveArray, M as MUTATE, R as RecordArrayManager, k as SOURCE, S as Store, q as StoreMap, _ as _clearCaches, u as _deprecatingNormalize, g as coerceId, f as constructResource, h as ensureStringId, l as fastPush, i as isStableIdentifier, n as notifyArray, p as peekCache, r as recordIdentifierFor, m as removeRecordDataFor, t as setCacheFor, o as setRecordIdentifier, s as storeFor } from "./handler-DX830Swd.js";
@@ -1,6 +1,6 @@
1
1
  import { deprecate, warn } from '@ember/debug';
2
2
  import { macroCondition, getGlobalConfig, dependencySatisfies, importSync } from '@embroider/macros';
3
- import { SkipCache, EnableHydration } from '@warp-drive/core-types/request';
3
+ import { EnableHydration, SkipCache } from '@warp-drive/core-types/request';
4
4
  import { getOrSetGlobal, setTransient, peekTransient } from '@warp-drive/core-types/-private';
5
5
  import { CACHE_OWNER, DEBUG_STALE_CACHE_OWNER, DEBUG_CLIENT_ORIGINATED, DEBUG_IDENTIFIER_BUCKET } from '@warp-drive/core-types/identifier';
6
6
  import { dasherize } from '@ember-data/request-utils/string';
@@ -3622,12 +3622,9 @@ class Store extends BaseClass {
3622
3622
  * import Fetch from '@ember-data/request/fetch';
3623
3623
  *
3624
3624
  * class extends Store {
3625
- * constructor() {
3626
- * super(...arguments);
3627
- * this.requestManager = new RequestManager();
3628
- * this.requestManager.use([Fetch]);
3629
- * this.requestManager.useCache(CacheHandler);
3630
- * }
3625
+ * requestManager = new RequestManager()
3626
+ * .use([Fetch])
3627
+ * .useCache(CacheHandler);
3631
3628
  * }
3632
3629
  * ```
3633
3630
  *
@@ -3869,7 +3866,7 @@ class Store extends BaseClass {
3869
3866
  // the user has had the chance to set the prop.
3870
3867
  const opts = {
3871
3868
  store: this,
3872
- [EnableHydration]: true
3869
+ [EnableHydration]: requestConfig[EnableHydration] ?? true
3873
3870
  };
3874
3871
  if (requestConfig.records) {
3875
3872
  const identifierCache = this.identifierCache;