@ember-data/model 4.6.5 → 4.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,6 @@
3
3
  */
4
4
 
5
5
  import { assert, warn } from '@ember/debug';
6
- import EmberError from '@ember/error';
7
6
  import EmberObject, { get } from '@ember/object';
8
7
  import { dependentKeyCompat } from '@ember/object/compat';
9
8
  import { run } from '@ember/runloop';
@@ -125,7 +124,7 @@ class Model extends EmberObject {
125
124
 
126
125
  init(options = {}) {
127
126
  if (DEBUG && !options._secretInit && !options._internalModel && !options._createProps) {
128
- throw new EmberError(
127
+ throw new Error(
129
128
  'You should not call `create` on a model. Instead, call `store.createRecord` with the attributes you would like to set.'
130
129
  );
131
130
  }
@@ -2105,7 +2104,7 @@ if (DEBUG) {
2105
2104
  let idDesc = lookupDescriptor(this, 'id');
2106
2105
 
2107
2106
  if (idDesc.get !== ID_DESCRIPTOR.get) {
2108
- throw new EmberError(
2107
+ throw new Error(
2109
2108
  `You may not set 'id' as an attribute on your model. Please remove any lines that look like: \`id: attr('<type>')\` from ${this.constructor.toString()}`
2110
2109
  );
2111
2110
  }
package/index.js CHANGED
@@ -24,7 +24,6 @@ module.exports = Object.assign({}, addonBaseConfig, {
24
24
  '@ember/array/mutable',
25
25
  '@ember/array/proxy',
26
26
  '@ember/debug',
27
- '@ember/error',
28
27
  '@ember/object',
29
28
  '@ember/object/compat',
30
29
  '@ember/object/computed',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ember-data/model",
3
- "version": "4.6.5",
3
+ "version": "4.6.6",
4
4
  "description": "The default blueprint for ember-cli addons.",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -18,9 +18,9 @@
18
18
  "test:node": "mocha"
19
19
  },
20
20
  "dependencies": {
21
- "@ember-data/canary-features": "4.6.5",
22
- "@ember-data/private-build-infra": "4.6.5",
23
- "@ember-data/store": "4.6.5",
21
+ "@ember-data/canary-features": "4.6.6",
22
+ "@ember-data/private-build-infra": "4.6.6",
23
+ "@ember-data/store": "4.6.6",
24
24
  "@ember/edition-utils": "^1.2.0",
25
25
  "@ember/string": "^3.0.0",
26
26
  "@embroider/macros": "^1.8.3",
@@ -34,7 +34,7 @@
34
34
  "inflection": "~1.13.2"
35
35
  },
36
36
  "devDependencies": {
37
- "@ember-data/unpublished-test-infra": "4.6.5",
37
+ "@ember-data/unpublished-test-infra": "4.6.6",
38
38
  "@ember/optional-features": "^2.0.0",
39
39
  "@ember/test-helpers": "~2.7.0",
40
40
  "broccoli-asset-rev": "^3.0.0",