@@ -9,7 +9,7 @@ import type { LocalRelationshipOperation } from '@ember-data/graph/-private/grap
9
9
import type { ImplicitRelationship } from '@ember-data/graph/-private/graph/index' ;
10
10
import type BelongsToRelationship from '@ember-data/graph/-private/relationships/state/belongs-to' ;
11
11
import type ManyRelationship from '@ember-data/graph/-private/relationships/state/has-many' ;
12
- import { HAS_RECORD_DATA_PACKAGE } from '@ember-data/private-build-infra' ;
12
+ import { HAS_JSON_API_PACKAGE } from '@ember-data/private-build-infra' ;
13
13
import { DEPRECATE_PROMISE_PROXIES } from '@ember-data/private-build-infra/deprecations' ;
14
14
import type Store from '@ember-data/store' ;
15
15
import { fastPush , isStableIdentifier , recordIdentifierFor , SOURCE , storeFor } from '@ember-data/store/-private' ;
@@ -207,7 +207,7 @@ export class LegacySupport {
207
207
}
208
208
209
209
getManyArray ( key : string , definition ?: UpgradedMeta ) : RelatedCollection {
210
- if ( HAS_RECORD_DATA_PACKAGE ) {
210
+ if ( HAS_JSON_API_PACKAGE ) {
211
211
let manyArray : RelatedCollection | undefined = this . _manyArrayCache [ key ] ;
212
212
if ( ! definition ) {
213
213
const graphFor = ( importSync ( '@ember-data/graph/-private' ) as typeof import ( '@ember-data/graph/-private' ) )
@@ -248,7 +248,7 @@ export class LegacySupport {
248
248
manyArray : RelatedCollection ,
249
249
options ?: FindOptions
250
250
) : Promise < RelatedCollection > {
251
- if ( HAS_RECORD_DATA_PACKAGE ) {
251
+ if ( HAS_JSON_API_PACKAGE ) {
252
252
let loadingPromise = this . _relationshipPromisesCache [ key ] as Promise < RelatedCollection > | undefined ;
253
253
if ( loadingPromise ) {
254
254
return loadingPromise ;
@@ -273,7 +273,7 @@ export class LegacySupport {
273
273
}
274
274
275
275
reloadHasMany ( key : string , options ?: FindOptions ) {
276
- if ( HAS_RECORD_DATA_PACKAGE ) {
276
+ if ( HAS_JSON_API_PACKAGE ) {
277
277
let loadingPromise = this . _relationshipPromisesCache [ key ] ;
278
278
if ( loadingPromise ) {
279
279
return loadingPromise ;
@@ -298,7 +298,7 @@ export class LegacySupport {
298
298
}
299
299
300
300
getHasMany ( key : string , options ?: FindOptions ) : PromiseManyArray | RelatedCollection {
301
- if ( HAS_RECORD_DATA_PACKAGE ) {
301
+ if ( HAS_JSON_API_PACKAGE ) {
302
302
const graphFor = ( importSync ( '@ember-data/graph/-private' ) as typeof import ( '@ember-data/graph/-private' ) )
303
303
. graphFor ;
304
304
const relationship = graphFor ( this . store ) . get ( this . identifier , key ) as ManyRelationship ;
@@ -370,7 +370,7 @@ export class LegacySupport {
370
370
let reference = this . references [ name ] ;
371
371
372
372
if ( ! reference ) {
373
- if ( ! HAS_RECORD_DATA_PACKAGE ) {
373
+ if ( ! HAS_JSON_API_PACKAGE ) {
374
374
// TODO @runspired while this feels odd, it is not a regression in capability because we do
375
375
// not today support references pulling from RecordDatas other than our own
376
376
// because of the intimate API access involved. This is something we will need to redesign.
@@ -418,7 +418,7 @@ export class LegacySupport {
418
418
relationship : ManyRelationship ,
419
419
options : FindOptions = { }
420
420
) : Promise < void | unknown [ ] > | void {
421
- if ( HAS_RECORD_DATA_PACKAGE ) {
421
+ if ( HAS_JSON_API_PACKAGE ) {
422
422
if ( ! resource ) {
423
423
return ;
424
424
}
0 commit comments