Skip to content

Commit

Permalink
refactor: replace other diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnaceMaes committed Jul 7, 2024
1 parent 600943b commit 595e8ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@ displayId: ember-cli.blacklist-whitelist-build-options
Using the `blacklist` and `whitelist` build options has been deprecated. Please
use `exclude` and `include` respectively instead.

```diff
// ember-cli-build.js

```js {data-filename="ember-cli-build.js" data-diff="-4,+5"}
module.exports = function (defaults) {
const app = new EmberApp(defaults, {
addons: {
- blacklist: ['addon-name'],
+ exclude: ['addon-name'],
blacklist: ['addon-name'],
exclude: ['addon-name'],
},
};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Deprecates `schema.attributesDefinitionFor(type)` and `schema.relationshipsDefin

To resolve change:

```diff
- store.getSchemaDefinitionService().attributesDefinitionFor('user')
+ store.getSchemaDefinitionService().attributesDefinitionFor({ type: 'user' })
```js {data-diff="-1,+2"}
store.getSchemaDefinitionService().attributesDefinitionFor('user')
store.getSchemaDefinitionService().attributesDefinitionFor({ type: 'user' })
```

0 comments on commit 595e8ed

Please sign in to comment.