You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`You looked up the ${factoryType} "${factoryName}" but it was not found. Likely this means you are using a legacy ember-qunit moduleFor helper. Add "needs: ['${factoryType}:${factoryName}']", "integration: true", or refactor to modern syntax to resolve this deprecation.`,
109
113
false,
@@ -1269,8 +1273,8 @@ abstract class CoreStore extends Service {
1269
1273
if(missingInternalModels.length){
1270
1274
warn(
1271
1275
'Ember Data expected to find records with the following ids in the adapter response but they were missing: [ "'+
1272
-
missingInternalModels.map(r=>r.id).join('", "')+
1273
-
'" ]',
1276
+
missingInternalModels.map(r=>r.id).join('", "')+
1277
+
'" ]',
1274
1278
false,
1275
1279
{
1276
1280
id: 'ds.store.missing-records-from-adapter',
@@ -1291,9 +1295,9 @@ abstract class CoreStore extends Service {
1291
1295
if(pair){
1292
1296
pair.resolver.reject(
1293
1297
error||
1294
-
newError(
1295
-
`Expected: '${internalModel}' to be present in the adapter provided payload, but it was not found.`
1296
-
)
1298
+
newError(
1299
+
`Expected: '${internalModel}' to be present in the adapter provided payload, but it was not found.`
1300
+
)
1297
1301
);
1298
1302
}
1299
1303
}
@@ -1331,12 +1335,12 @@ abstract class CoreStore extends Service {
deprecate(`store.serializerFor("${modelName}") resolved the "${serializerName}" serializer via the deprecated \`adapter.defaultSerializer\` property.\n\n\tPreviously, if no application or type-specific serializer was specified, the store would attempt to lookup a serializer via the \`defaultSerializer\` property on the type's adapter. This behavior is deprecated in favor of explicitly defining a type-specific serializer or application serializer`,!serializerName,{
`store.serializerFor("${modelName}") resolved the "${serializerName}" serializer via the deprecated \`adapter.defaultSerializer\` property.\n\n\tPreviously, if no application or type-specific serializer was specified, the store would attempt to lookup a serializer via the \`defaultSerializer\` property on the type's adapter. This behavior is deprecated in favor of explicitly defining a type-specific serializer or application serializer`,
deprecate(`store.serializerFor("${modelName}") resolved the "-default" serializer via the deprecated "-default" lookup fallback.\n\n\tPreviously, when no type-specific serializer, application serializer, or adapter.defaultSerializer had been defined by the app, the "-default" serializer would be used which defaulted to the \`JSONSerializer\`. This behavior is deprecated in favor of explicitly defining an application or type-specific serializer`,!serializer,{
`store.serializerFor("${modelName}") resolved the "-default" serializer via the deprecated "-default" lookup fallback.\n\n\tPreviously, when no type-specific serializer, application serializer, or adapter.defaultSerializer had been defined by the app, the "-default" serializer would be used which defaulted to the \`JSONSerializer\`. This behavior is deprecated in favor of explicitly defining an application or type-specific serializer`,
`No serializer was found for '${modelName}' and no 'application' serializer was found as a fallback`,
@@ -3448,12 +3460,12 @@ abstract class CoreStore extends Service {
3448
3460
if(shouldTrack){
3449
3461
thrownewError(
3450
3462
'Async Request leaks detected. Add a breakpoint here and set `store.generateStackTracesForTrackedRequests = true;`to inspect traces for leak origins:\n\t - '+
3451
-
tracked.map(o=>o.label).join('\n\t - ')
3463
+
tracked.map(o=>o.label).join('\n\t - ')
3452
3464
);
3453
3465
}else{
3454
3466
warn(
3455
3467
'Async Request leaks detected. Add a breakpoint here and set `store.generateStackTracesForTrackedRequests = true;`to inspect traces for leak origins:\n\t - '+
3456
-
tracked.map(o=>o.label).join('\n\t - '),
3468
+
tracked.map(o=>o.label).join('\n\t - '),
3457
3469
false,
3458
3470
{
3459
3471
id: 'ds.async.leak.detected',
@@ -3506,14 +3518,15 @@ abstract class CoreStore extends Service {
3506
3518
defineProperty(
3507
3519
CoreStore.prototype,
3508
3520
'defaultAdapter',
3509
-
computed('adapter',function(){
3521
+
computed('adapter',function(){
3510
3522
deprecate(
3511
-
`store.adapterFor(modelName) resolved the ("${this.adapter||'-json-api'}") adapter via the deprecated \`store.defaultAdapter\` property.\n\n\tPreviously, applications could define the store's \`adapter\` property which would be used by \`defaultAdapter\` and \`adapterFor\` as a fallback for when an adapter was not found by an exact name match. This behavior is deprecated in favor of explicitly defining an application or type-specific adapter.`,
3523
+
`store.adapterFor(modelName) resolved the ("${this.adapter||
3524
+
'-json-api'}") adapter via the deprecated \`store.defaultAdapter\` property.\n\n\tPreviously, applications could define the store's \`adapter\` property which would be used by \`defaultAdapter\` and \`adapterFor\` as a fallback for when an adapter was not found by an exact name match. This behavior is deprecated in favor of explicitly defining an application or type-specific adapter.`,
0 commit comments