File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ title : Store will no longer extend EmberObject in 6.0
3+ until : 6.0
4+ since : 5.4
5+ displayId : ember-data:deprecate-store-extends-ember-object
6+ ---
7+
8+ The Store class extending from EmberObject is deprecated and the class will no
9+ longer extend from EmberObject in 6.0.
10+
11+ Please remove usage of [ EmberObject APIs] ( https://api.emberjs.com/ember/release/modules/@ember%2Fobject )
12+ in your Store class.
13+
14+ To mark the class as no longer extending from EmberObject, in ember-cli-build.js
15+ set the following config:
16+
17+ ``` js
18+ const app = new EmberApp (defaults, {
19+ emberData: {
20+ deprecations: {
21+ DEPRECATE_STORE_EXTENDS_EMBER_OBJECT : false
22+ }
23+ }
24+ });
25+ ```
26+
27+ If you are unsure whether your Store class uses EmberObject APIs, set this
28+ config and uses of those APIs will throw exceptions. The most common API that
29+ may have been used is ` Store.extend({... ` .
30+
31+ This deprecation is from RFC [ #1026 ] ( https://rfcs.emberjs.com/id/1026-ember-data-deprecate-store-extends-ember-object ) .
You can’t perform that action at this time.
0 commit comments