@ember-data/model 4.6.4 → 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.
- package/addon/-private/many-array.ts +1 -0
- package/addon/-private/model.js +2 -3
- package/index.js +0 -1
- package/package.json +6 -6
|
@@ -217,6 +217,7 @@ export default class ManyArray extends MutableArrayWithObject<StableRecordIdenti
|
|
|
217
217
|
} else {
|
|
218
218
|
this._hasNotified = true;
|
|
219
219
|
this.notifyPropertyChange('[]');
|
|
220
|
+
this.notifyPropertyChange('length');
|
|
220
221
|
this.notifyPropertyChange('firstObject');
|
|
221
222
|
this.notifyPropertyChange('lastObject');
|
|
222
223
|
}
|
package/addon/-private/model.js
CHANGED
|
@@ -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
|
|
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
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-data/model",
|
|
3
|
-
"version": "4.6.
|
|
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.
|
|
22
|
-
"@ember-data/private-build-infra": "4.6.
|
|
23
|
-
"@ember-data/store": "4.6.
|
|
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.
|
|
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",
|
|
@@ -68,6 +68,6 @@
|
|
|
68
68
|
},
|
|
69
69
|
"volta": {
|
|
70
70
|
"node": "16.16.0",
|
|
71
|
-
"yarn": "1.22.
|
|
71
|
+
"yarn": "1.22.21"
|
|
72
72
|
}
|
|
73
73
|
}
|