ember-source 4.11.0-alpha.6 → 4.11.0
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 +16 -19
- package/blueprints/route/index.js +28 -6
- package/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +9 -8
- package/dist/ember-template-compiler.map +1 -1
- package/dist/ember-testing.js +1 -1
- package/dist/ember-testing.map +1 -1
- package/dist/ember.debug.js +75 -18
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/-internals/glimmer/index.js +68 -12
- package/dist/packages/@ember/canary-features/index.js +7 -6
- package/dist/packages/@ember/template/index.js +2 -0
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +72 -7
- package/package.json +4 -7
- package/types/preview/@ember/template/index.d.ts +1 -0
- package/types/stable/@ember/-internals/glimmer/lib/utils/string.d.ts +55 -6
- package/types/stable/@ember/string/index.d.ts +1 -1
- package/types/stable/@ember/template/index.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
# Ember Changelog
|
|
2
2
|
|
|
3
|
-
## v4.
|
|
3
|
+
## v4.11.0 (February 20, 2023)
|
|
4
4
|
|
|
5
|
-
- [#
|
|
5
|
+
- [#20288](https://github.com/emberjs/ember.js/pull/20288) [FEATURE] Stable types for `@ember/owner`
|
|
6
|
+
- [#20323](https://github.com/emberjs/ember.js/pull/20323) [FEATURE] Introduce stable types for `@ember/error`
|
|
7
|
+
- [#20361](https://github.com/emberjs/ember.js/pull/20361) [BUGFIX] Support a `router.ts` file when generating routes
|
|
8
|
+
- [#20373](https://github.com/emberjs/ember.js/pull/20373) / [#20374](https://github.com/emberjs/ember.js/pull/20374) [BUGFIX] Make the type for `SafeString` public
|
|
9
|
+
- [#20345](https://github.com/emberjs/ember.js/pull/20345) [CLEANUP] Remove flags for released features
|
|
10
|
+
- [#20285](https://github.com/emberjs/ember.js/pull/20285) Update to TS v4.9
|
|
6
11
|
|
|
7
|
-
## v4.10.0
|
|
12
|
+
## v4.10.0 (January 11, 2023)
|
|
8
13
|
|
|
9
|
-
- [#
|
|
14
|
+
- [#20270](https://github.com/emberjs/ember.js/pull/20270) / [#20271](https://github.com/emberjs/ember.js/pull/20271) [FEATURE] Add new imports for `getOwner` and `setOwner` from `@ember/owner` and introduce new `@ember/routing` sub-modules as part of [RFC #821](https://rfcs.emberjs.com/id/0821-public-types).
|
|
15
|
+
- [#20341](https://github.com/emberjs/ember.js/pull/20341) [DEPRECATION] Deprecations for importing `htmlSafe` and `isHTMLSafe` from `@ember/string`. They have moved to `@ember/template`. From [RFC #236](https://rfcs.emberjs.com/id/0236-deprecation-ember-string).
|
|
16
|
+
- [#20344](https://github.com/emberjs/ember.js/pull/20344) [DEPRECATION] Deprecate @ember/string when used from ember-source; point users to add the `@ember/string` addon per [RFC #236](https://rfcs.emberjs.com/id/0236-deprecation-ember-string).
|
|
17
|
+
- [#20342](https://github.com/emberjs/ember.js/pull/20342) [DEPRECATION] Deprecate @ember/error per [RFC #889](https://rfcs.emberjs.com/id/0889-deprecate-ember-error).
|
|
18
|
+
- [#20327](https://github.com/emberjs/ember.js/pull/20327) [BUGFIX] Fix the types for the mutation-methods of `NativeArray`
|
|
19
|
+
- [#20283](https://github.com/emberjs/ember.js/pull/20283) [BUGFIX] revert TS `compilerOptions.target` to ES2017
|
|
20
|
+
- [#20253](https://github.com/emberjs/ember.js/pull/20253) Types: Add the `Resolver` type to preview types
|
|
21
|
+
- [#20319](https://github.com/emberjs/ember.js/pull/20319) Types: resolve services with `Owner.lookup`
|
|
10
22
|
|
|
11
23
|
## v4.9.3 (December 13, 2022)
|
|
12
24
|
|
|
@@ -21,11 +33,6 @@
|
|
|
21
33
|
- [#20296](https://github.com/emberjs/ember.js/pull/20296) Controller `queryParams` should support `readonly` arrays
|
|
22
34
|
- [#20318](https://github.com/emberjs/ember.js/pull/20318) Backport `Resolver` to preview types
|
|
23
35
|
|
|
24
|
-
## v4.10.0-beta.3 (December 12, 2022)
|
|
25
|
-
|
|
26
|
-
- [#20296](https://github.com/emberjs/ember.js/pull/20296) Controller `queryParams` should support `readonly` arrays
|
|
27
|
-
- [#20319](https://github.com/emberjs/ember.js/pull/20319) Types: resolve services with `Owner.lookup`
|
|
28
|
-
|
|
29
36
|
## v4.8.3 (December 12, 2022)
|
|
30
37
|
|
|
31
38
|
- [#20296](https://github.com/emberjs/ember.js/pull/20296) Controller `queryParams` should support `readonly` arrays
|
|
@@ -35,20 +42,10 @@
|
|
|
35
42
|
|
|
36
43
|
- [#20284](https://github.com/emberjs/ember.js/pull/20284) [BUGFIX] remove incorrect types for deprecation functions
|
|
37
44
|
|
|
38
|
-
## v4.10.0-beta.2 (November 30, 2022)
|
|
39
|
-
|
|
40
|
-
- [#20283](https://github.com/emberjs/ember.js/pull/20283) [BUGFIX] revert TS `compilerOptions.target` to ES2017
|
|
41
|
-
- [#20284](https://github.com/emberjs/ember.js/pull/20284) [BUGFIX] remove incorrect types for deprecation functions
|
|
42
|
-
|
|
43
45
|
## v3.28.11 (November 30, 2022)
|
|
44
46
|
|
|
45
47
|
- [#20286](https://github.com/emberjs/ember.js/pull/20286) [BUGFIX] Allow class-based helpers in strict-mode
|
|
46
48
|
|
|
47
|
-
## v4.10.0-beta.1 (November 28, 2022)
|
|
48
|
-
|
|
49
|
-
- [#20253](https://github.com/emberjs/ember.js/pull/20253) [FEATURE] Add the `Resolver` type to preview types
|
|
50
|
-
- [#20270](https://github.com/emberjs/ember.js/pull/20270) / [#20271](https://github.com/emberjs/ember.js/pull/20271) [FEATURE] Add new imports for `getOwner` and `setOwner` from `@ember/owner` and introduce new `@ember/routing` sub-modules as part of [RFC #821](https://rfcs.emberjs.com/id/0821-public-types).
|
|
51
|
-
|
|
52
49
|
## v4.9.0 (November 28, 2022)
|
|
53
50
|
|
|
54
51
|
- [#20274](https://github.com/emberjs/ember.js/pull/20274) [BUGFIX] Add some missing types to preview types
|
|
@@ -5,6 +5,7 @@ const path = require('path');
|
|
|
5
5
|
const chalk = require('chalk');
|
|
6
6
|
const stringUtil = require('ember-cli-string-utils');
|
|
7
7
|
const EmberRouterGenerator = require('ember-router-generator');
|
|
8
|
+
const SilentError = require('silent-error');
|
|
8
9
|
|
|
9
10
|
const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
|
|
10
11
|
|
|
@@ -148,21 +149,42 @@ function updateRouter(action, options) {
|
|
|
148
149
|
}
|
|
149
150
|
}
|
|
150
151
|
|
|
151
|
-
function
|
|
152
|
+
function findRouterPath(options) {
|
|
152
153
|
let routerPathParts = [options.project.root];
|
|
153
|
-
let root = 'app';
|
|
154
154
|
|
|
155
155
|
if (options.dummy && options.project.isEmberCLIAddon()) {
|
|
156
|
-
routerPathParts
|
|
156
|
+
routerPathParts.push('tests', 'dummy', 'app');
|
|
157
157
|
} else {
|
|
158
|
-
routerPathParts
|
|
158
|
+
routerPathParts.push('app');
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
|
|
161
|
+
let jsRouterPath = path.join(...routerPathParts, 'router.js');
|
|
162
|
+
let tsRouterPath = path.join(...routerPathParts, 'router.ts');
|
|
163
|
+
|
|
164
|
+
let jsRouterPathExists = fs.existsSync(jsRouterPath);
|
|
165
|
+
let tsRouterPathExists = fs.existsSync(tsRouterPath);
|
|
166
|
+
|
|
167
|
+
if (jsRouterPathExists && tsRouterPathExists) {
|
|
168
|
+
throw new SilentError(
|
|
169
|
+
'Found both a `router.js` and `router.ts` file. Please make sure your project only has one or the other.'
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
if (jsRouterPathExists) {
|
|
174
|
+
return jsRouterPath;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if (tsRouterPathExists) {
|
|
178
|
+
return tsRouterPath;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
throw new SilentError(
|
|
182
|
+
'Could not find a router file. Please make sure your project has a `router.js` or `router.ts` file.'
|
|
183
|
+
);
|
|
162
184
|
}
|
|
163
185
|
|
|
164
186
|
function writeRoute(action, name, options) {
|
|
165
|
-
let routerPath =
|
|
187
|
+
let routerPath = findRouterPath(options);
|
|
166
188
|
let source = fs.readFileSync(routerPath, 'utf-8');
|
|
167
189
|
|
|
168
190
|
let routes = new EmberRouterGenerator(source);
|
package/build-metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "4.11.0
|
|
2
|
+
"version": "4.11.0",
|
|
3
3
|
"buildType": "tag",
|
|
4
|
-
"SHA": "
|
|
5
|
-
"assetPath": "/tag/shas/
|
|
4
|
+
"SHA": "2b1011f1ef06befc12da863a75fe8cc5e7042769",
|
|
5
|
+
"assetPath": "/tag/shas/2b1011f1ef06befc12da863a75fe8cc5e7042769.tgz"
|
|
6
6
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
|
|
7
7
|
* @license Licensed under MIT license
|
|
8
8
|
* See https://raw.github.com/emberjs/ember.js/master/LICENSE
|
|
9
|
-
* @version 4.11.0
|
|
9
|
+
* @version 4.11.0
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
/* eslint-disable no-var */
|
|
@@ -1021,12 +1021,13 @@ define("@ember/canary-features/index", ["exports", "@ember/-internals/environmen
|
|
|
1021
1021
|
return false;
|
|
1022
1022
|
}
|
|
1023
1023
|
}
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1024
|
+
// Uncomment the below when features are present:
|
|
1025
|
+
// function featureValue(value: null | boolean) {
|
|
1026
|
+
// if (ENV.ENABLE_OPTIONAL_FEATURES && value === null) {
|
|
1027
|
+
// return true;
|
|
1028
|
+
// }
|
|
1029
|
+
// return value;
|
|
1030
|
+
// }
|
|
1030
1031
|
// export const FLAG_NAME = featureValue(FEATURES.FLAG_NAME);
|
|
1031
1032
|
});
|
|
1032
1033
|
define("@ember/debug/container-debug-adapter", ["exports", "@ember/-internals/string", "@ember/object", "@ember/utils", "@ember/-internals/owner", "@ember/application/namespace"], function (_exports, _string, _object, _utils, _owner, _namespace) {
|
|
@@ -16464,7 +16465,7 @@ define("ember/version", ["exports"], function (_exports) {
|
|
|
16464
16465
|
value: true
|
|
16465
16466
|
});
|
|
16466
16467
|
_exports.default = void 0;
|
|
16467
|
-
var _default = "4.11.0
|
|
16468
|
+
var _default = "4.11.0";
|
|
16468
16469
|
_exports.default = _default;
|
|
16469
16470
|
});
|
|
16470
16471
|
define("simple-html-tokenizer", ["exports"], function (_exports) {
|