Skip to content

Commit aeb98b8

Browse files
kategenglerNullVoxPopuli
authored andcommitted
Handle deprecations
1 parent 2ab1fb3 commit aeb98b8

3 files changed

Lines changed: 4 additions & 11 deletions

File tree

app/deprecation-workflow.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,5 @@ setupDeprecationWorkflow({
1111
handler: 'throw',
1212
matchId: 'deprecated-run-loop-and-computed-dot-access',
1313
},
14-
{
15-
handler: 'silence',
16-
matchId: 'ember-data:deprecate-non-strict-relationships',
17-
},
18-
{ handler: 'silence', matchId: 'ember-data:deprecate-store-find' },
19-
{ handler: 'silence', matchId: 'remove-owner-inject' },
20-
{ handler: 'silence', matchId: 'ember-polyfills.deprecate-assign' },
2114
],
2215
});

app/routes/project-version/classes/class.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ export default class ClassRoute extends Route {
3737
}
3838

3939
find(typeName, param) {
40-
return this.store.find(typeName, param).catch((e1) => {
40+
return this.store.findRecord(typeName, param).catch((e1) => {
4141
if (typeName != 'namespace') {
4242
console.warn(
4343
e1,
4444
'fetching by class or module failed, retrying as namespace',
4545
);
46-
return this.store.find('namespace', param).catch((e2) => {
46+
return this.store.findRecord('namespace', param).catch((e2) => {
4747
console.error(e2);
4848
return resolve({
4949
isError: true,

app/routes/project-version/functions/function.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ export default class FunctionRoute extends Route {
3333
let fnModule;
3434

3535
try {
36-
fnModule = await this.store.find(
36+
fnModule = await this.store.findRecord(
3737
'class',
3838
`${project}-${projectVersion}-${className}`.toLowerCase(),
3939
);
4040
} catch (e) {
4141
try {
42-
fnModule = await this.store.find(
42+
fnModule = await this.store.findRecord(
4343
'namespace',
4444
`${project}-${projectVersion}-${className}`.toLowerCase(),
4545
);

0 commit comments

Comments
 (0)