Skip to content
This repository has been archived by the owner on Mar 22, 2019. It is now read-only.

Add deprecation guide for ds.deprecated-initializers #2780 #2781

Merged
merged 2 commits into from
Jan 8, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions source/deprecations/ember-data/v2.x.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -676,3 +676,39 @@ Using `JSONAPISerializer.payloadKeyFromModelName` to serialize the type of a
See [JSONAPISerializer.payloadKeyFromModelName for
Resource](#toc_jsonapiserializer-payloadkeyfrommodelname-for-resource) for more
information.

#### Unused Initializers

###### until: 3.0.0
###### id: ds.deprecated-initializers

The Ember Data initializers `data-adapter`, `injectStore`, `transforms`, and `store` are no longer used, so they are being removed.
Applications that depend on these for the ordering of their own custom initializers can substitute `ember-data` instead, without any change in functionality.

Before:

```javascript
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty line before code block please!

export function initialize(application) {
// ... your code ...
};

export default {
name: 'websocketInit',
after: 'store',
initialize: initialize
};
```

After:

```javascript
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty line before code block please!

export function initialize(application) {
// ... your code ...
};

export default {
name: 'websocketInit',
after: 'ember-data',
initialize: initialize
};
```