@ember-data/store 4.4.2 → 4.4.3
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.
|
@@ -92,10 +92,14 @@ export function promiseArray(promise, label) {
|
|
|
92
92
|
|
|
93
93
|
// constructor is accessed in some internals but not including it in the copyright for the deprecation
|
|
94
94
|
const ALLOWABLE_METHODS = ['constructor', 'then', 'catch', 'finally'];
|
|
95
|
+
const ALLOWABLE_PROPS = ['__ec_yieldable__', '__ec_cancel__'];
|
|
95
96
|
|
|
96
97
|
export function deprecatedPromiseObject(promise) {
|
|
97
98
|
const handler = {
|
|
98
99
|
get(target, prop) {
|
|
100
|
+
if (ALLOWABLE_PROPS.includes(prop)) {
|
|
101
|
+
return target[prop];
|
|
102
|
+
}
|
|
99
103
|
if (!ALLOWABLE_METHODS.includes(prop)) {
|
|
100
104
|
deprecate(
|
|
101
105
|
`Accessing ${prop} is deprecated. Only available methods to access on a promise returned from model.save() are .then, .catch and .finally`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-data/store",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.3",
|
|
4
4
|
"description": "The default blueprint for ember-cli addons.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"start": "ember serve"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@ember-data/canary-features": "4.4.
|
|
21
|
-
"@ember-data/private-build-infra": "4.4.
|
|
20
|
+
"@ember-data/canary-features": "4.4.3",
|
|
21
|
+
"@ember-data/private-build-infra": "4.4.3",
|
|
22
22
|
"@ember/string": "^3.0.0",
|
|
23
23
|
"@glimmer/tracking": "^1.0.4",
|
|
24
24
|
"ember-auto-import": "^2.2.4",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"ember-cli-typescript": "^5.0.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@ember-data/unpublished-test-infra": "4.4.
|
|
31
|
+
"@ember-data/unpublished-test-infra": "4.4.3",
|
|
32
32
|
"@ember/optional-features": "^2.0.0",
|
|
33
33
|
"@ember/test-helpers": "^2.6.0",
|
|
34
34
|
"@types/ember": "^4.0.0",
|