ember-source 4.9.0-beta.1 → 4.9.0-beta.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.
- package/CHANGELOG.md +13 -0
- package/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +3 -3
- package/dist/ember-template-compiler.map +1 -1
- package/dist/ember-testing.js +2 -2
- package/dist/ember-testing.map +1 -1
- package/dist/ember.debug.js +9 -5
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/-internals/metal/index.js +6 -2
- package/dist/packages/@ember/debug/lib/deprecate.js +1 -1
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +1 -1
- package/package.json +4 -4
- package/types/preview/@ember/component/index.d.ts +9 -0
- package/types/preview/@ember/controller/index.d.ts +1 -2
package/dist/header/license.js
CHANGED
|
@@ -1825,7 +1825,7 @@ function _getProp(obj, keyName) {
|
|
|
1825
1825
|
|
|
1826
1826
|
return value;
|
|
1827
1827
|
}
|
|
1828
|
-
function _getPath(obj, path) {
|
|
1828
|
+
function _getPath(obj, path, forSet) {
|
|
1829
1829
|
let parts = typeof path === 'string' ? path.split('.') : path;
|
|
1830
1830
|
|
|
1831
1831
|
for (let part of parts) {
|
|
@@ -1833,6 +1833,10 @@ function _getPath(obj, path) {
|
|
|
1833
1833
|
return undefined;
|
|
1834
1834
|
}
|
|
1835
1835
|
|
|
1836
|
+
if (forSet && (part === '__proto__' || part === 'constructor')) {
|
|
1837
|
+
return;
|
|
1838
|
+
}
|
|
1839
|
+
|
|
1836
1840
|
obj = _getProp(obj, part);
|
|
1837
1841
|
}
|
|
1838
1842
|
|
|
@@ -1948,7 +1952,7 @@ function _setPath(root, path, value, tolerant) {
|
|
|
1948
1952
|
let parts = path.split('.');
|
|
1949
1953
|
let keyName = parts.pop();
|
|
1950
1954
|
assert('Property set failed: You passed an empty path', keyName.trim().length > 0);
|
|
1951
|
-
let newRoot = _getPath(root, parts);
|
|
1955
|
+
let newRoot = _getPath(root, parts, true);
|
|
1952
1956
|
|
|
1953
1957
|
if (newRoot !== null && newRoot !== undefined) {
|
|
1954
1958
|
return set(newRoot, keyName, value);
|
|
@@ -68,7 +68,7 @@ if (DEBUG) {
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
if (options === null || options === void 0 ? void 0 : options.until) {
|
|
71
|
-
message = message + ` This will be removed in
|
|
71
|
+
message = message + ` This will be removed in ${options.for} ${options.until}.`;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
if (options === null || options === void 0 ? void 0 : options.url) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "4.9.0-beta.
|
|
1
|
+
export default "4.9.0-beta.3";
|
package/docs/data.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "The Ember API",
|
|
4
4
|
"description": "The Ember API: a framework for building ambitious web applications",
|
|
5
5
|
"url": "https://emberjs.com/",
|
|
6
|
-
"version": "4.9.0-beta.
|
|
6
|
+
"version": "4.9.0-beta.3"
|
|
7
7
|
},
|
|
8
8
|
"files": {
|
|
9
9
|
"node_modules/rsvp/lib/rsvp/promise/all.js": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-source",
|
|
3
|
-
"version": "4.9.0-beta.
|
|
3
|
+
"version": "4.9.0-beta.3",
|
|
4
4
|
"description": "A JavaScript framework for creating ambitious web applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"@glimmer/validator": "0.84.2",
|
|
99
99
|
"@simple-dom/document": "^1.4.0",
|
|
100
100
|
"@tsconfig/ember": "^1.0.1",
|
|
101
|
-
"@types/node": "^18.7
|
|
101
|
+
"@types/node": "^18.11.7",
|
|
102
102
|
"@types/qunit": "^2.19.2",
|
|
103
103
|
"@types/rsvp": "^4.0.4",
|
|
104
104
|
"@typescript-eslint/eslint-plugin": "^5.38.0",
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"@glimmer/component": "^1.1.2"
|
|
165
165
|
},
|
|
166
166
|
"engines": {
|
|
167
|
-
"node": ">=
|
|
167
|
+
"node": ">= 14.*"
|
|
168
168
|
},
|
|
169
169
|
"ember-addon": {
|
|
170
170
|
"after": "ember-cli-legacy-blueprints"
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
]
|
|
180
180
|
}
|
|
181
181
|
},
|
|
182
|
-
"_originalVersion": "4.9.0-beta.
|
|
182
|
+
"_originalVersion": "4.9.0-beta.3",
|
|
183
183
|
"_versionPreviouslyCalculated": true,
|
|
184
184
|
"publishConfig": {
|
|
185
185
|
"tag": "beta"
|
|
@@ -106,6 +106,15 @@ declare module '@ember/component' {
|
|
|
106
106
|
object: T
|
|
107
107
|
): T;
|
|
108
108
|
|
|
109
|
+
/**
|
|
110
|
+
* Takes a component class and returns the template associated with the given component class,
|
|
111
|
+
* if any, or one of its superclasses, if any, or undefined if no template association was found.
|
|
112
|
+
*
|
|
113
|
+
* @param object the component object
|
|
114
|
+
* @return the template factory of the given component
|
|
115
|
+
*/
|
|
116
|
+
export function getComponentTemplate(obj: object): TemplateFactory | undefined;
|
|
117
|
+
|
|
109
118
|
// In normal TypeScript, these built-in components are essentially opaque tokens
|
|
110
119
|
// that just need to be importable. Declaring them with unique interfaces
|
|
111
120
|
// like this, however, gives tools like Glint (that DO have a richer
|
|
@@ -16,7 +16,7 @@ declare module '@ember/controller' {
|
|
|
16
16
|
/**
|
|
17
17
|
* Additional methods for the Controller.
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
interface ControllerMixin extends ActionHandler {
|
|
20
20
|
/**
|
|
21
21
|
* @deprecated until 5.0. Use `RouterService.replaceWith` instead.
|
|
22
22
|
*/
|
|
@@ -33,7 +33,6 @@ declare module '@ember/controller' {
|
|
|
33
33
|
queryParams: Array<string | Record<string, QueryParamConfig | string | undefined>>;
|
|
34
34
|
target: object;
|
|
35
35
|
}
|
|
36
|
-
export const ControllerMixin: Mixin;
|
|
37
36
|
|
|
38
37
|
export default class Controller extends EmberObject {}
|
|
39
38
|
export default interface Controller extends ControllerMixin {}
|