I just ran the no-legacy-imports autofixer in our 6.12 classic project and noticed that it doesn't use the correct replacement for some packages.
In our app, both the JSONAPISerializer and Adapter were replaced with the wrong import.
- import JSONAPIAdapter from '@ember-data/adapter/json-api';
+ import JSONAPIAdapter from '@warp-drive/legacy/model';
While it should have been the following instead:
- import JSONAPIAdapter from '@ember-data/adapter/json-api';
+ import { JSONAPIAdapter } from '@warp-drive/legacy/adapter/json-api';
It looks like the mapping file is simply incorrect for these entries (and potentially others):
|
{ |
|
"filePath": "packages/adapter/src/json-api.ts", |
|
"module": "@ember-data/adapter/json-api", |
|
"export": "default", |
|
"typeOnly": false, |
|
"replacement": { |
|
"module": "@warp-drive/legacy/model", |
|
"export": "default", |
|
"sourceFile": "warp-drive-packages/legacy/src/model.ts", |
|
"typeOnly": false |
|
} |
|
}, |
I just ran the
no-legacy-importsautofixer in our 6.12 classic project and noticed that it doesn't use the correct replacement for some packages.In our app, both the JSONAPISerializer and Adapter were replaced with the wrong import.
While it should have been the following instead:
It looks like the mapping file is simply incorrect for these entries (and potentially others):
warp-drive/packages/eslint-plugin-warp-drive/src/public-exports-mapping-5.5.enriched.json
Lines 278 to 289 in e3a30bb