@warp-drive/legacy 5.8.0-alpha.20 → 5.8.0-alpha.21

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.
@@ -38,8 +38,8 @@ export declare class LegacySupport {
38
38
  _updatePromiseProxyFor(kind: "belongsTo", key: string, args: {
39
39
  promise: Promise<OpaqueRecordInstance | null>;
40
40
  }): PromiseBelongsTo;
41
- referenceFor(kind: "belongsTo", name: string): BelongsToReference;
42
- referenceFor(kind: "hasMany", name: string): HasManyReference;
41
+ referenceFor(kind: "belongsTo", key: string): BelongsToReference;
42
+ referenceFor(kind: "hasMany", key: string): HasManyReference;
43
43
  _findHasManyByJsonApiResource(resource: CollectionResourceRelationship, parentIdentifier: ResourceKey, relationship: CollectionEdge, options?: BaseFinderOptions): Promise<void | unknown[]> | void;
44
44
  _findBelongsToByJsonApiResource(resource: SingleResourceRelationship, parentIdentifier: ResourceKey, relationship: ResourceEdge, options?: BaseFinderOptions): Promise<ResourceKey | null>;
45
45
  destroy(): void;
@@ -1581,28 +1581,31 @@ class LegacySupport {
1581
1581
  this.cache.mutate(mutation);
1582
1582
  }
1583
1583
  _findBelongsTo(key, resource, relationship, options) {
1584
+ const name = getRealFieldName(this, key);
1585
+
1584
1586
  // TODO @runspired follow up if parent isNew then we should not be attempting load here
1585
1587
  // TODO @runspired follow up on whether this should be in the relationship requests cache
1586
- return this._findBelongsToByJsonApiResource(resource, this.identifier, relationship, options).then(identifier => handleCompletedRelationshipRequest(this, key, relationship, identifier), e => handleCompletedRelationshipRequest(this, key, relationship, null, e));
1588
+ return this._findBelongsToByJsonApiResource(resource, this.identifier, relationship, options).then(identifier => handleCompletedRelationshipRequest(this, name, relationship, identifier), e => handleCompletedRelationshipRequest(this, name, relationship, null, e));
1587
1589
  }
1588
1590
  reloadBelongsTo(key, options) {
1589
1591
  const loadingPromise = this._relationshipPromisesCache[key];
1590
1592
  if (loadingPromise) {
1591
1593
  return loadingPromise;
1592
1594
  }
1593
- const relationship = this.graph.get(this.identifier, key);
1595
+ const name = getRealFieldName(this, key);
1596
+ const resource = this.store.cache.getRelationship(this.identifier, name);
1597
+ const relationship = this.graph.get(this.identifier, name);
1594
1598
  macroCondition(getGlobalConfig().WarpDrive.env.DEBUG) ? (test => {
1595
1599
  if (!test) {
1596
- throw new Error(`Expected ${key} to be a belongs-to relationship`);
1600
+ throw new Error(`Expected ${key === name ? name : `${key} (source: ${name})`} to be a belongs-to relationship`);
1597
1601
  }
1598
1602
  })(isBelongsTo(relationship)) : {};
1599
- const resource = this.cache.getRelationship(this.identifier, key);
1600
1603
  relationship.state.hasFailedLoadAttempt = false;
1601
1604
  relationship.state.shouldForceReload = true;
1602
- const promise = this._findBelongsTo(key, resource, relationship, options);
1603
- if (this._relationshipProxyCache[key]) {
1605
+ const promise = this._findBelongsTo(name, resource, relationship, options);
1606
+ if (this._relationshipProxyCache[name]) {
1604
1607
  // @ts-expect-error
1605
- return this._updatePromiseProxyFor('belongsTo', key, {
1608
+ return this._updatePromiseProxyFor('belongsTo', name, {
1606
1609
  promise
1607
1610
  });
1608
1611
  }
@@ -1610,10 +1613,10 @@ class LegacySupport {
1610
1613
  }
1611
1614
  getBelongsTo(key, options) {
1612
1615
  const {
1613
- identifier,
1614
- cache
1616
+ identifier
1615
1617
  } = this;
1616
- const resource = cache.getRelationship(this.identifier, key);
1618
+ const name = getRealFieldName(this, key);
1619
+ const resource = this.store.cache.getRelationship(this.identifier, name);
1617
1620
  const relatedIdentifier = resource && resource.data ? resource.data : null;
1618
1621
  macroCondition(getGlobalConfig().WarpDrive.env.DEBUG) ? (test => {
1619
1622
  if (!test) {
@@ -1621,10 +1624,10 @@ class LegacySupport {
1621
1624
  }
1622
1625
  })(!relatedIdentifier || isResourceKey(relatedIdentifier)) : {};
1623
1626
  const store = this.store;
1624
- const relationship = this.graph.get(this.identifier, key);
1627
+ const relationship = this.graph.get(this.identifier, name);
1625
1628
  macroCondition(getGlobalConfig().WarpDrive.env.DEBUG) ? (test => {
1626
1629
  if (!test) {
1627
- throw new Error(`Expected ${key} to be a belongs-to relationship`);
1630
+ throw new Error(`Expected ${key === name ? name : `${key} (source: ${name})`} to be a belongs-to relationship`);
1628
1631
  }
1629
1632
  })(isBelongsTo(relationship)) : {};
1630
1633
  const isAsync = relationship.definition.isAsync;
@@ -1636,11 +1639,11 @@ class LegacySupport {
1636
1639
  };
1637
1640
  if (isAsync) {
1638
1641
  if (relationship.state.hasFailedLoadAttempt) {
1639
- return this._relationshipProxyCache[key];
1642
+ return this._relationshipProxyCache[name];
1640
1643
  }
1641
- const promise = this._findBelongsTo(key, resource, relationship, options);
1644
+ const promise = this._findBelongsTo(name, resource, relationship, options);
1642
1645
  const isLoaded = relatedIdentifier && store._instanceCache.recordIsLoaded(relatedIdentifier);
1643
- return this._updatePromiseProxyFor('belongsTo', key, {
1646
+ return this._updatePromiseProxyFor('belongsTo', name, {
1644
1647
  promise,
1645
1648
  content: isLoaded ? store._instanceCache.getRecord(relatedIdentifier) : null,
1646
1649
  _belongsToState
@@ -1651,7 +1654,7 @@ class LegacySupport {
1651
1654
  } else {
1652
1655
  macroCondition(getGlobalConfig().WarpDrive.env.DEBUG) ? (test => {
1653
1656
  if (!test) {
1654
- throw new Error(`You looked up the '${key}' relationship on a '${identifier.type}' with id ${identifier.id || 'null'} but some of the associated records were not loaded. Either make sure they are all loaded together with the parent record, or specify that the relationship is async (\`belongsTo(<type>, { async: true, inverse: <inverse> })\`)`);
1657
+ throw new Error(`You looked up the '${key === name ? name : `${key} (source: ${name})`}' relationship on a '${identifier.type}' with id ${identifier.id || 'null'} but some of the associated records were not loaded. Either make sure they are all loaded together with the parent record, or specify that the relationship is async (\`belongsTo(<type>, { async: true, inverse: <inverse> })\`)`);
1655
1658
  }
1656
1659
  })(store._instanceCache.recordIsLoaded(relatedIdentifier, true)) : {};
1657
1660
  return store._instanceCache.getRecord(relatedIdentifier);
@@ -1659,10 +1662,11 @@ class LegacySupport {
1659
1662
  }
1660
1663
  }
1661
1664
  setDirtyBelongsTo(key, value) {
1665
+ const name = getRealFieldName(this, key);
1662
1666
  return this.cache.mutate({
1663
1667
  op: 'replaceRelatedRecord',
1664
1668
  record: this.identifier,
1665
- field: key,
1669
+ field: name,
1666
1670
  value: extractIdentifierFromRecord(value)
1667
1671
  },
1668
1672
  // @ts-expect-error
@@ -1688,13 +1692,15 @@ class LegacySupport {
1688
1692
  return [identifiers, jsonApi];
1689
1693
  }
1690
1694
  getManyArray(key, definition) {
1695
+ const name = getRealFieldName(this, key);
1691
1696
  if (this.graph) {
1692
- let manyArray = this._manyArrayCache[key];
1697
+ let manyArray = this._manyArrayCache[name];
1693
1698
  if (!definition) {
1694
- definition = this.graph.get(this.identifier, key).definition;
1699
+ definition = this.graph.get(this.identifier, name).definition;
1695
1700
  }
1696
1701
  if (!manyArray) {
1697
- const [identifiers, doc] = this._getCurrentState(this.identifier, key);
1702
+ const [identifiers, doc] = this._getCurrentState(this.identifier, name);
1703
+ const field = getField(this, name);
1698
1704
  manyArray = createLegacyManyArray({
1699
1705
  store: this.store,
1700
1706
  // @ts-expect-error Typescript doesn't have a way for us to thread the generic backwards so it infers unknown instead of T
@@ -1705,12 +1711,12 @@ class LegacySupport {
1705
1711
  editable: true,
1706
1712
  isAsync: definition.isAsync,
1707
1713
  isPolymorphic: definition.isPolymorphic,
1708
- field: this.store.schema.fields(this.identifier).get(key),
1714
+ field: field,
1709
1715
  identifier: this.identifier,
1710
1716
  links: doc.links || null,
1711
1717
  meta: doc.meta || null
1712
1718
  });
1713
- this._manyArrayCache[key] = manyArray;
1719
+ this._manyArrayCache[name] = manyArray;
1714
1720
  }
1715
1721
  return manyArray;
1716
1722
  }
@@ -1721,19 +1727,20 @@ class LegacySupport {
1721
1727
  })() : {};
1722
1728
  }
1723
1729
  fetchAsyncHasMany(key, relationship, manyArray, options) {
1730
+ const name = getRealFieldName(this, key);
1724
1731
  if (this.graph) {
1725
- let loadingPromise = this._relationshipPromisesCache[key];
1732
+ let loadingPromise = this._relationshipPromisesCache[name];
1726
1733
  if (loadingPromise) {
1727
1734
  return loadingPromise;
1728
1735
  }
1729
- const jsonApi = this.cache.getRelationship(this.identifier, key);
1736
+ const jsonApi = this.cache.getRelationship(this.identifier, name);
1730
1737
  const promise = this._findHasManyByJsonApiResource(jsonApi, this.identifier, relationship, options);
1731
1738
  if (!promise) {
1732
1739
  manyArray.isLoaded = true;
1733
1740
  return Promise.resolve(manyArray);
1734
1741
  }
1735
- loadingPromise = promise.then(() => handleCompletedRelationshipRequest(this, key, relationship, manyArray), e => handleCompletedRelationshipRequest(this, key, relationship, manyArray, e));
1736
- this._relationshipPromisesCache[key] = loadingPromise;
1742
+ loadingPromise = promise.then(() => handleCompletedRelationshipRequest(this, name, relationship, manyArray), e => handleCompletedRelationshipRequest(this, name, relationship, manyArray, e));
1743
+ this._relationshipPromisesCache[name] = loadingPromise;
1737
1744
  return loadingPromise;
1738
1745
  }
1739
1746
  macroCondition(getGlobalConfig().WarpDrive.env.DEBUG) ? (test => {
@@ -1743,22 +1750,23 @@ class LegacySupport {
1743
1750
  })() : {};
1744
1751
  }
1745
1752
  reloadHasMany(key, options) {
1753
+ const name = getRealFieldName(this, key);
1746
1754
  if (this.graph) {
1747
- const loadingPromise = this._relationshipPromisesCache[key];
1755
+ const loadingPromise = this._relationshipPromisesCache[name];
1748
1756
  if (loadingPromise) {
1749
1757
  return loadingPromise;
1750
1758
  }
1751
- const relationship = this.graph.get(this.identifier, key);
1759
+ const relationship = this.graph.get(this.identifier, name);
1752
1760
  const {
1753
1761
  definition,
1754
1762
  state
1755
1763
  } = relationship;
1756
1764
  state.hasFailedLoadAttempt = false;
1757
1765
  state.shouldForceReload = true;
1758
- const manyArray = this.getManyArray(key, definition);
1759
- const promise = this.fetchAsyncHasMany(key, relationship, manyArray, options);
1760
- if (this._relationshipProxyCache[key]) {
1761
- return this._updatePromiseProxyFor('hasMany', key, {
1766
+ const manyArray = this.getManyArray(name, definition);
1767
+ const promise = this.fetchAsyncHasMany(name, relationship, manyArray, options);
1768
+ if (this._relationshipProxyCache[name]) {
1769
+ return this._updatePromiseProxyFor('hasMany', name, {
1762
1770
  promise
1763
1771
  });
1764
1772
  }
@@ -1771,26 +1779,27 @@ class LegacySupport {
1771
1779
  })() : {};
1772
1780
  }
1773
1781
  getHasMany(key, options) {
1782
+ const name = getRealFieldName(this, key);
1774
1783
  if (this.graph) {
1775
- const relationship = this.graph.get(this.identifier, key);
1784
+ const relationship = this.graph.get(this.identifier, name);
1776
1785
  const {
1777
1786
  definition,
1778
1787
  state
1779
1788
  } = relationship;
1780
- const manyArray = this.getManyArray(key, definition);
1789
+ const manyArray = this.getManyArray(name, definition);
1781
1790
  if (definition.isAsync) {
1782
1791
  if (state.hasFailedLoadAttempt) {
1783
- return this._relationshipProxyCache[key];
1792
+ return this._relationshipProxyCache[name];
1784
1793
  }
1785
- const promise = this.fetchAsyncHasMany(key, relationship, manyArray, options);
1786
- return this._updatePromiseProxyFor('hasMany', key, {
1794
+ const promise = this.fetchAsyncHasMany(name, relationship, manyArray, options);
1795
+ return this._updatePromiseProxyFor('hasMany', name, {
1787
1796
  promise,
1788
1797
  content: manyArray
1789
1798
  });
1790
1799
  } else {
1791
1800
  macroCondition(getGlobalConfig().WarpDrive.env.DEBUG) ? (test => {
1792
1801
  if (!test) {
1793
- throw new Error(`You looked up the '${key}' relationship on a '${this.identifier.type}' with id ${this.identifier.id || 'null'} but some of the associated records were not loaded. Either make sure they are all loaded together with the parent record, or specify that the relationship is async ('hasMany(<type>, { async: true, inverse: <inverse> })')`);
1802
+ throw new Error(`You looked up the '${key === name ? name : `${key} (source: ${name})`}' relationship on a '${this.identifier.type}' with id ${this.identifier.id || 'null'} but some of the associated records were not loaded. Either make sure they are all loaded together with the parent record, or specify that the relationship is async ('hasMany(<type>, { async: true, inverse: <inverse> })')`);
1794
1803
  }
1795
1804
  })(!anyUnloaded(this.store, relationship)) : {};
1796
1805
  return manyArray;
@@ -1841,7 +1850,8 @@ class LegacySupport {
1841
1850
  }
1842
1851
  return promiseProxy;
1843
1852
  }
1844
- referenceFor(kind, name) {
1853
+ referenceFor(kind, key) {
1854
+ const name = getRealFieldName(this, key);
1845
1855
  let reference = this.references[name];
1846
1856
  if (!reference) {
1847
1857
  if (!this.graph) {
@@ -1865,16 +1875,16 @@ class LegacySupport {
1865
1875
  const actualRelationshipKind = relationship.definition.kind;
1866
1876
  macroCondition(getGlobalConfig().WarpDrive.env.DEBUG) ? (test => {
1867
1877
  if (!test) {
1868
- throw new Error(`You tried to get the '${name}' relationship on a '${modelName}' via record.${kind}('${name}'), but the relationship is of kind '${actualRelationshipKind}'. Use record.${actualRelationshipKind}('${name}') instead.`);
1878
+ throw new Error(`You tried to get the '${key === name ? name : `${key} (source: ${name})`}' relationship on a '${modelName}' via record.${kind}('${key}'), but the relationship is of kind '${actualRelationshipKind}'. Use record.${actualRelationshipKind}('${key}') instead.`);
1869
1879
  }
1870
1880
  })(actualRelationshipKind === kind) : {};
1871
1881
  }
1872
1882
  }
1873
1883
  const relationshipKind = relationship.definition.kind;
1874
1884
  if (relationshipKind === 'belongsTo') {
1875
- reference = new BelongsToReference(this.store, graph, identifier, relationship, name);
1885
+ reference = new BelongsToReference(this.store, graph, identifier, relationship, key);
1876
1886
  } else if (relationshipKind === 'hasMany') {
1877
- reference = new HasManyReference(this.store, graph, identifier, relationship, name);
1887
+ reference = new HasManyReference(this.store, graph, identifier, relationship, key);
1878
1888
  }
1879
1889
  this.references[name] = reference;
1880
1890
  }
@@ -1991,12 +2001,13 @@ class LegacySupport {
1991
2001
  return Promise.resolve(null);
1992
2002
  }
1993
2003
  const key = relationship.definition.key;
2004
+ const name = getRealFieldName(this, key);
1994
2005
 
1995
2006
  // interleaved promises mean that we MUST cache this here
1996
2007
  // in order to prevent infinite re-render if the request
1997
2008
  // fails.
1998
- if (this._pending[key]) {
1999
- return this._pending[key];
2009
+ if (this._pending[name]) {
2010
+ return this._pending[name];
2000
2011
  }
2001
2012
  const identifier = resource.data ? resource.data : null;
2002
2013
  macroCondition(getGlobalConfig().WarpDrive.env.DEBUG) ? (test => {
@@ -2046,10 +2057,10 @@ class LegacySupport {
2046
2057
  }
2047
2058
  };
2048
2059
  const future = this.store.request(req);
2049
- this._pending[key] = future.then(doc => field.options.linksMode ? doc.content.data : doc.content).finally(() => {
2050
- this._pending[key] = undefined;
2060
+ this._pending[name] = future.then(doc => field.options.linksMode ? doc.content.data : doc.content).finally(() => {
2061
+ this._pending[name] = undefined;
2051
2062
  });
2052
- return this._pending[key];
2063
+ return this._pending[name];
2053
2064
  }
2054
2065
  const preferLocalCache = hasReceivedData && allInverseRecordsAreLoaded && !isEmpty;
2055
2066
  const hasLocalPartialData = hasDematerializedInverse || isEmpty && resource.data;
@@ -2076,7 +2087,7 @@ class LegacySupport {
2076
2087
  }
2077
2088
  })(identifier) : {};
2078
2089
  options.reload = options.reload || !attemptLocalCache || undefined;
2079
- this._pending[key] = this.store.request({
2090
+ this._pending[name] = this.store.request({
2080
2091
  op: 'findBelongsTo',
2081
2092
  records: [identifier],
2082
2093
  data: request,
@@ -2084,9 +2095,9 @@ class LegacySupport {
2084
2095
  [Symbol.for('wd:skip-cache')]: true
2085
2096
  }
2086
2097
  }).then(doc => doc.content).finally(() => {
2087
- this._pending[key] = undefined;
2098
+ this._pending[name] = undefined;
2088
2099
  });
2089
- return this._pending[key];
2100
+ return this._pending[name];
2090
2101
  }
2091
2102
 
2092
2103
  // we were explicitly told we have no data and no links.
@@ -2213,6 +2224,17 @@ function areAllInverseRecordsLoaded(store, resource) {
2213
2224
  function isBelongsTo(relationship) {
2214
2225
  return relationship.definition.kind === 'belongsTo';
2215
2226
  }
2227
+ function getField(context, key) {
2228
+ const {
2229
+ identifier,
2230
+ store
2231
+ } = context;
2232
+ return store.schema.fields(identifier).get(key) ?? store.schema.cacheFields?.(identifier).get(key);
2233
+ }
2234
+ function getRealFieldName(context, key) {
2235
+ const field = getField(context, key);
2236
+ return field ? field.sourceKey ?? field.name : key;
2237
+ }
2216
2238
 
2217
2239
  // we force the type here to our own construct because mixin and extend patterns
2218
2240
  // lose generic signatures. We also do this because we need to Omit `clear` from
@@ -1,6 +1,6 @@
1
1
  import { setOwner, getOwner } from '@ember/application';
2
2
  import { assertPrivateStore, setRecordIdentifier, StoreMap } from '@warp-drive/core/store/-private';
3
- import { g as getModelFactory } from "./schema-provider-JlCneqZH.js";
3
+ import { g as getModelFactory } from "./schema-provider-BnVr_CnJ.js";
4
4
  import { n as normalizeModelName } from "./util-Dul6TZts.js";
5
5
  import { macroCondition, getGlobalConfig } from '@embroider/macros';
6
6
  function instantiateRecord(identifier, createRecordArgs) {
package/dist/index.js CHANGED
@@ -9,9 +9,9 @@ import '@ember/debug';
9
9
  import '@warp-drive/utilities/string';
10
10
  import { macroCondition, getGlobalConfig } from '@embroider/macros';
11
11
  import '@warp-drive/core/store/-private';
12
- import "./errors-COviC59J.js";
13
- import "./schema-provider-JlCneqZH.js";
14
- import { i as instantiateRecord, t as teardownRecord, m as modelFor } from "./hooks-Bp8SIQBU.js";
12
+ import "./errors-B9CDPh3R.js";
13
+ import "./schema-provider-BnVr_CnJ.js";
14
+ import { i as instantiateRecord, t as teardownRecord, m as modelFor } from "./hooks-CQXyievu.js";
15
15
  import { registerDerivations as registerDerivations$1, DelegatingSchemaService } from './model/migration-support.js';
16
16
  import { F as FragmentExtension, a as FragmentArrayExtension, f as fragmentsModelFor } from "./model-for-B0TSd9HU.js";
17
17
  import { restoreDeprecatedStoreBehaviors } from './store.js';
@@ -1 +1 @@
1
- export { E as Errors, L as LEGACY_SUPPORT, P as PromiseBelongsTo, a as PromiseManyArray, l as lookupLegacySupport } from "../errors-COviC59J.js";
1
+ export { E as Errors, L as LEGACY_SUPPORT, P as PromiseBelongsTo, a as PromiseManyArray, l as lookupLegacySupport } from "../errors-B9CDPh3R.js";
@@ -4,8 +4,8 @@ import { Context } from '@warp-drive/core/reactive/-private';
4
4
  import { notifyInternalSignal, assertPrivateStore } from '@warp-drive/core/store/-private';
5
5
  import { getOrSetGlobal } from '@warp-drive/core/types/-private';
6
6
  import { Type } from '@warp-drive/core/types/symbols';
7
- import { l as lookupLegacySupport, E as Errors } from "../errors-COviC59J.js";
8
- import { b as buildSchema, u as unloadRecord, s as serialize, _ as _save, a as save, r as rollbackAttributes, c as _reload, d as reload, h as hasMany, e as _destroyRecord, f as destroyRecord, i as deleteRecord, R as RecordState, j as changedAttributes, k as belongsTo, l as createSnapshot } from "../schema-provider-JlCneqZH.js";
7
+ import { l as lookupLegacySupport, E as Errors } from "../errors-B9CDPh3R.js";
8
+ import { b as buildSchema, u as unloadRecord, s as serialize, _ as _save, a as save, r as rollbackAttributes, c as _reload, d as reload, h as hasMany, e as _destroyRecord, f as destroyRecord, i as deleteRecord, R as RecordState, j as changedAttributes, k as belongsTo, l as createSnapshot } from "../schema-provider-BnVr_CnJ.js";
9
9
  import { macroCondition, getGlobalConfig } from '@embroider/macros';
10
10
 
11
11
  /**
package/dist/model.js CHANGED
@@ -5,10 +5,10 @@ import { i as isElementDescriptor, n as normalizeModelName } from "./util-Dul6TZ
5
5
  import { macroCondition, getGlobalConfig } from '@embroider/macros';
6
6
  import { warn, deprecate } from '@ember/debug';
7
7
  import { assertPrivateStore } from '@warp-drive/core/store/-private';
8
- import { l as lookupLegacySupport } from "./errors-COviC59J.js";
8
+ import { l as lookupLegacySupport } from "./errors-B9CDPh3R.js";
9
9
  import { singularize, dasherize } from '@warp-drive/utilities/string';
10
- export { M as Model, b as buildSchema, M as default, m as restoreDeprecatedModelRequestBehaviors } from "./schema-provider-JlCneqZH.js";
11
- export { i as instantiateRecord, m as modelFor, t as teardownRecord } from "./hooks-Bp8SIQBU.js";
10
+ export { M as Model, b as buildSchema, M as default, m as restoreDeprecatedModelRequestBehaviors } from "./schema-provider-BnVr_CnJ.js";
11
+ export { i as instantiateRecord, m as modelFor, t as teardownRecord } from "./hooks-CQXyievu.js";
12
12
  function _attr(type, options) {
13
13
  if (typeof type === 'object') {
14
14
  options = type;
@@ -4,7 +4,7 @@ import EmberObject from '@ember/object';
4
4
  import { recordIdentifierFor, storeFor } from '@warp-drive/core';
5
5
  import { assertPrivateStore, notifyInternalSignal, peekInternalSignal, withSignalStore, recordIdentifierFor as recordIdentifierFor$1, gate, memoized, defineSignal, coerceId, entangleSignal, defineGate } from '@warp-drive/core/store/-private';
6
6
  import { RecordStore } from '@warp-drive/core/types/symbols';
7
- import { l as lookupLegacySupport, L as LEGACY_SUPPORT, E as Errors } from "./errors-COviC59J.js";
7
+ import { l as lookupLegacySupport, L as LEGACY_SUPPORT, E as Errors } from "./errors-B9CDPh3R.js";
8
8
  import { u as upgradeStore, F as FetchManager } from "./-private-B1pSSN52.js";
9
9
  import { macroCondition, getGlobalConfig } from '@embroider/macros';
10
10
  import { cacheFor } from '@ember/object/internals';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warp-drive/legacy",
3
- "version": "5.8.0-alpha.20",
3
+ "version": "5.8.0-alpha.21",
4
4
  "description": "Decommissioned Packages for WarpDrive | Things your app might still want to maintain use of for a little longer.",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -32,8 +32,8 @@
32
32
  }
33
33
  },
34
34
  "peerDependencies": {
35
- "@warp-drive/core": "5.8.0-alpha.20",
36
- "@warp-drive/utilities": "5.8.0-alpha.20"
35
+ "@warp-drive/core": "5.8.0-alpha.21",
36
+ "@warp-drive/utilities": "5.8.0-alpha.21"
37
37
  },
38
38
  "dependencies": {
39
39
  "@embroider/macros": "^1.18.1"
@@ -43,9 +43,9 @@
43
43
  "@babel/plugin-transform-typescript": "^7.28.0",
44
44
  "@babel/preset-typescript": "^7.27.1",
45
45
  "@types/jquery": "^3.5.33",
46
- "@warp-drive/internal-config": "5.8.0-alpha.20",
47
- "@warp-drive/core": "5.8.0-alpha.20",
48
- "@warp-drive/utilities": "5.8.0-alpha.20",
46
+ "@warp-drive/internal-config": "5.8.0-alpha.21",
47
+ "@warp-drive/core": "5.8.0-alpha.21",
48
+ "@warp-drive/utilities": "5.8.0-alpha.21",
49
49
  "ember-source": "~6.6.0",
50
50
  "decorator-transforms": "^2.3.0",
51
51
  "expect-type": "^1.2.2",