@ember-data/store 5.4.0-alpha.126 → 5.4.0-alpha.127

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/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-kHKRbgVM.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-CW2kp6Ua.js";
@@ -2683,7 +2683,6 @@ class IdentifierArray {
2683
2683
  }
2684
2684
  const original = target[index];
2685
2685
  const newIdentifier = extractIdentifierFromRecord$1(value);
2686
- target[index] = newIdentifier;
2687
2686
  macroCondition(getGlobalConfig().WarpDrive.env.DEBUG) ? (test => {
2688
2687
  if (!test) {
2689
2688
  throw new Error(`Expected a record`);
@@ -2812,7 +2811,11 @@ const desc = {
2812
2811
  enumerable: true,
2813
2812
  configurable: false,
2814
2813
  get: function () {
2815
- return this;
2814
+ // here to support computed chains
2815
+ // and {{#each}}
2816
+ if (macroCondition(getGlobalConfig().WarpDrive.deprecations.DEPRECATE_COMPUTED_CHAINS)) {
2817
+ return this;
2818
+ }
2816
2819
  }
2817
2820
  };
2818
2821
  compat(desc);