Skip to content

Commit

Permalink
Remove support for global DS variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bmac committed Dec 18, 2017
1 parent 91c533c commit 4eb53a5
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions addon/index.js
@@ -1,6 +1,5 @@
import EmberError from '@ember/error';
import Ember from "ember";
import { deprecate } from '@ember/debug';

/**
Ember Data
Expand All @@ -22,7 +21,6 @@ import {
BuildURLMixin,
belongsTo,
hasMany,
global,
Errors,
RootState,
Model,
Expand Down Expand Up @@ -145,18 +143,4 @@ Object.defineProperty(DS, 'normalizeModelName', {
value: normalizeModelName
});

Object.defineProperty(global, 'DS', {
configurable: true,
get() {
deprecate(
'Using the global version of DS is deprecated. Please either import ' +
'the specific modules needed or `import DS from \'ember-data\';`.',
false,
{ id: 'ember-data.global-ds', until: '3.0.0' }
);

return DS;
}
});

export default DS;

0 comments on commit 4eb53a5

Please sign in to comment.