ember-cli 6.1.0 → 6.2.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 +21 -0
- package/blueprints/addon/files/.github/workflows/ci.yml +8 -8
- package/blueprints/addon/files/README.md +2 -2
- package/blueprints/addon/files/addon-config/ember-try.js +4 -4
- package/blueprints/addon/index.js +1 -4
- package/blueprints/app/files/.github/workflows/ci.yml +4 -4
- package/blueprints/app/files/package.json +36 -39
- package/blueprints/app/files/tests/test-helper.ts +4 -2
- package/lib/commands/new.js +1 -1
- package/lib/utilities/instrumentation.js +1 -14
- package/package.json +9 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# ember-cli Changelog
|
|
2
2
|
|
|
3
|
+
## v6.2.0
|
|
4
|
+
|
|
5
|
+
#### Blueprint Changes
|
|
6
|
+
|
|
7
|
+
- [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v6.1.0...v6.2.0)
|
|
8
|
+
- [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v6.1.0...v6.2.0)
|
|
9
|
+
|
|
10
|
+
#### Changelog
|
|
11
|
+
|
|
12
|
+
- [#10496](https://github.com/ember-cli/ember-cli/pull/10496) [CLEANUP] Clean up support for incorrect values for `BROCCOLI_VIZ` env var [@bertdeblock](https://github.com/bertdeblock)
|
|
13
|
+
- [#10555](https://github.com/ember-cli/ember-cli/pull/10555) [ENHANCEMENT] Bump `pnpm/action-setup` to v4 in `app` and `addon` blueprints [@SergeAstapov](https://github.com/SergeAstapov)
|
|
14
|
+
- [#10562](https://github.com/ember-cli/ember-cli/pull/10562) [ENHANCEMENT] Allow creating apps and addons everywhere [@bertdeblock](https://github.com/bertdeblock)
|
|
15
|
+
- [#10577](https://github.com/ember-cli/ember-cli/pull/10577) [ENHANCEMENT] Remove `@ember/string` from `app` blueprint [@bertdeblock](https://github.com/bertdeblock)
|
|
16
|
+
- [#10578](https://github.com/ember-cli/ember-cli/pull/10578) [ENHANCEMENT] Test against Node v22 [@bertdeblock](https://github.com/bertdeblock)
|
|
17
|
+
- [#10579](https://github.com/ember-cli/ember-cli/pull/10579) [INTERNAL] Update `sort-package-json` [@bertdeblock](https://github.com/bertdeblock)
|
|
18
|
+
- [#10580](https://github.com/ember-cli/ember-cli/pull/10580) [ENHANCEMENT] Update LTS versions in blueprints [@bertdeblock](https://github.com/bertdeblock)
|
|
19
|
+
- [#10583](https://github.com/ember-cli/ember-cli/pull/10583) [ENHANCEMENT] Update `app` blueprint to support `ember-qunit` v9 [@ef4](https://github.com/ef4)
|
|
20
|
+
- [#10585](https://github.com/ember-cli/ember-cli/pull/10585) [INTERNAL] Support `WRITE_FIXTURES` in more test files [@ef4](https://github.com/ef4)
|
|
21
|
+
|
|
22
|
+
Thank you to all who took the time to contribute!
|
|
23
|
+
|
|
3
24
|
## v6.1.0
|
|
4
25
|
|
|
5
26
|
#### Blueprint Changes
|
|
@@ -19,9 +19,9 @@ jobs:
|
|
|
19
19
|
|
|
20
20
|
steps:
|
|
21
21
|
- uses: actions/checkout@v3<% if (pnpm) { %>
|
|
22
|
-
- uses: pnpm/action-setup@
|
|
22
|
+
- uses: pnpm/action-setup@v4
|
|
23
23
|
with:
|
|
24
|
-
version:
|
|
24
|
+
version: 9<% } %>
|
|
25
25
|
- name: Install Node
|
|
26
26
|
uses: actions/setup-node@v3
|
|
27
27
|
with:
|
|
@@ -41,9 +41,9 @@ jobs:
|
|
|
41
41
|
|
|
42
42
|
steps:
|
|
43
43
|
- uses: actions/checkout@v3<% if (pnpm) { %>
|
|
44
|
-
- uses: pnpm/action-setup@
|
|
44
|
+
- uses: pnpm/action-setup@v4
|
|
45
45
|
with:
|
|
46
|
-
version:
|
|
46
|
+
version: 9<% } %>
|
|
47
47
|
- uses: actions/setup-node@v3
|
|
48
48
|
with:
|
|
49
49
|
node-version: 18
|
|
@@ -63,8 +63,8 @@ jobs:
|
|
|
63
63
|
fail-fast: false
|
|
64
64
|
matrix:
|
|
65
65
|
try-scenario:
|
|
66
|
-
- ember-lts-
|
|
67
|
-
- ember-lts-5.
|
|
66
|
+
- ember-lts-5.8
|
|
67
|
+
- ember-lts-5.12
|
|
68
68
|
- ember-release
|
|
69
69
|
- ember-beta
|
|
70
70
|
- ember-canary
|
|
@@ -73,9 +73,9 @@ jobs:
|
|
|
73
73
|
|
|
74
74
|
steps:
|
|
75
75
|
- uses: actions/checkout@v3<% if (pnpm) { %>
|
|
76
|
-
- uses: pnpm/action-setup@
|
|
76
|
+
- uses: pnpm/action-setup@v4
|
|
77
77
|
with:
|
|
78
|
-
version:
|
|
78
|
+
version: 9<% } %>
|
|
79
79
|
- name: Install Node
|
|
80
80
|
uses: actions/setup-node@v3
|
|
81
81
|
with:
|
|
@@ -9,18 +9,18 @@ module.exports = async function () {
|
|
|
9
9
|
<% } else if (yarn) { %>useYarn: true,
|
|
10
10
|
<% } %>scenarios: [
|
|
11
11
|
{
|
|
12
|
-
name: 'ember-lts-
|
|
12
|
+
name: 'ember-lts-5.8',
|
|
13
13
|
npm: {
|
|
14
14
|
devDependencies: {
|
|
15
|
-
'ember-source': '~
|
|
15
|
+
'ember-source': '~5.8.0',
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
|
-
name: 'ember-lts-5.
|
|
20
|
+
name: 'ember-lts-5.12',
|
|
21
21
|
npm: {
|
|
22
22
|
devDependencies: {
|
|
23
|
-
'ember-source': '~5.
|
|
23
|
+
'ember-source': '~5.12.0',
|
|
24
24
|
},
|
|
25
25
|
},
|
|
26
26
|
},
|
|
@@ -7,7 +7,7 @@ const chalk = require('chalk');
|
|
|
7
7
|
const stringUtil = require('ember-cli-string-utils');
|
|
8
8
|
const { merge, uniq } = require('ember-cli-lodash-subset');
|
|
9
9
|
const SilentError = require('silent-error');
|
|
10
|
-
const sortPackageJson = require('sort-package-json');
|
|
10
|
+
const { sortPackageJson } = require('sort-package-json');
|
|
11
11
|
|
|
12
12
|
let date = new Date();
|
|
13
13
|
|
|
@@ -80,9 +80,6 @@ module.exports = {
|
|
|
80
80
|
}
|
|
81
81
|
delete contents.devDependencies['ember-fetch'];
|
|
82
82
|
|
|
83
|
-
// `@ember/string` is a peer dependency of `ember-data`.
|
|
84
|
-
delete contents.devDependencies['@ember/string'];
|
|
85
|
-
|
|
86
83
|
// Per RFC #811, addons should not have this dependency.
|
|
87
84
|
// @see https://github.com/emberjs/rfcs/blob/master/text/0811-element-modifiers.md#detailed-design
|
|
88
85
|
delete contents.devDependencies['ember-modifier'];
|
|
@@ -19,9 +19,9 @@ jobs:
|
|
|
19
19
|
|
|
20
20
|
steps:
|
|
21
21
|
- uses: actions/checkout@v3<% if (pnpm) { %>
|
|
22
|
-
- uses: pnpm/action-setup@
|
|
22
|
+
- uses: pnpm/action-setup@v4
|
|
23
23
|
with:
|
|
24
|
-
version:
|
|
24
|
+
version: 9<% } %>
|
|
25
25
|
- name: Install Node
|
|
26
26
|
uses: actions/setup-node@v3
|
|
27
27
|
with:
|
|
@@ -39,9 +39,9 @@ jobs:
|
|
|
39
39
|
|
|
40
40
|
steps:
|
|
41
41
|
- uses: actions/checkout@v3<% if (pnpm) { %>
|
|
42
|
-
- uses: pnpm/action-setup@
|
|
42
|
+
- uses: pnpm/action-setup@v4
|
|
43
43
|
with:
|
|
44
|
-
version:
|
|
44
|
+
version: 9<% } %>
|
|
45
45
|
- name: Install Node
|
|
46
46
|
uses: actions/setup-node@v3
|
|
47
47
|
with:
|
|
@@ -26,40 +26,37 @@
|
|
|
26
26
|
"test:ember": "ember test"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@babel/core": "^7.26.
|
|
30
|
-
"@babel/eslint-parser": "^7.
|
|
31
|
-
"@babel/plugin-proposal-decorators": "^7.25.9<% if (typescript) { %>",
|
|
32
|
-
"@ember-data/adapter": "~5.4.0-beta.
|
|
33
|
-
"@ember-data/graph": "~5.4.0-beta.
|
|
34
|
-
"@ember-data/json-api": "~5.4.0-beta.
|
|
35
|
-
"@ember-data/legacy-compat": "~5.4.0-beta.
|
|
36
|
-
"@ember-data/model": "~5.4.0-beta.
|
|
37
|
-
"@ember-data/request": "~5.4.0-beta.
|
|
38
|
-
"@ember-data/request-utils": "~5.4.0-beta.
|
|
39
|
-
"@ember-data/serializer": "~5.4.0-beta.
|
|
40
|
-
"@ember-data/store": "~5.4.0-beta.
|
|
41
|
-
"@ember-data/tracking": "~5.4.0-beta.
|
|
29
|
+
"@babel/core": "^7.26.7<% if (!typescript) { %>",
|
|
30
|
+
"@babel/eslint-parser": "^7.26.5",
|
|
31
|
+
"@babel/plugin-proposal-decorators": "^7.25.9<% } %><% if (typescript) { %>",
|
|
32
|
+
"@ember-data/adapter": "~5.4.0-beta.14",
|
|
33
|
+
"@ember-data/graph": "~5.4.0-beta.14",
|
|
34
|
+
"@ember-data/json-api": "~5.4.0-beta.14",
|
|
35
|
+
"@ember-data/legacy-compat": "~5.4.0-beta.14",
|
|
36
|
+
"@ember-data/model": "~5.4.0-beta.14",
|
|
37
|
+
"@ember-data/request": "~5.4.0-beta.14",
|
|
38
|
+
"@ember-data/request-utils": "~5.4.0-beta.14",
|
|
39
|
+
"@ember-data/serializer": "~5.4.0-beta.14",
|
|
40
|
+
"@ember-data/store": "~5.4.0-beta.14",
|
|
41
|
+
"@ember-data/tracking": "~5.4.0-beta.14<% } %>",
|
|
42
42
|
"@ember/optional-features": "^2.2.0",
|
|
43
|
-
"@ember/
|
|
44
|
-
"@
|
|
45
|
-
"@embroider/
|
|
46
|
-
"@embroider/core": "^3.4.20",
|
|
43
|
+
"@ember/test-helpers": "^4.0.5<% if (embroider) { %>",
|
|
44
|
+
"@embroider/compat": "^3.8.0",
|
|
45
|
+
"@embroider/core": "^3.5.0",
|
|
47
46
|
"@embroider/webpack": "^4.0.9<% } %>",
|
|
48
|
-
"@eslint/js": "^9.
|
|
47
|
+
"@eslint/js": "^9.19.0",
|
|
49
48
|
"@glimmer/component": "^1.1.2",
|
|
50
49
|
"@glimmer/tracking": "^1.1.2<% if (typescript) { %>",
|
|
51
|
-
"@glint/environment-ember-loose": "^1.5.
|
|
52
|
-
"@glint/environment-ember-template-imports": "^1.5.
|
|
53
|
-
"@glint/template": "^1.5.
|
|
54
|
-
"@tsconfig/ember": "^3.0.
|
|
50
|
+
"@glint/environment-ember-loose": "^1.5.2",
|
|
51
|
+
"@glint/environment-ember-template-imports": "^1.5.2",
|
|
52
|
+
"@glint/template": "^1.5.2",
|
|
53
|
+
"@tsconfig/ember": "^3.0.9",
|
|
55
54
|
"@types/eslint__js": "^8.42.3",
|
|
56
55
|
"@types/qunit": "^2.19.12",
|
|
57
56
|
"@types/rsvp": "^4.0.9",
|
|
58
|
-
"@
|
|
59
|
-
"@typescript-eslint/parser": "^8.18.2",
|
|
60
|
-
"@warp-drive/core-types": "~0.0.0-beta.12<% } %>",
|
|
57
|
+
"@warp-drive/core-types": "~0.0.0<% } %>",
|
|
61
58
|
"broccoli-asset-rev": "^3.0.0",
|
|
62
|
-
"concurrently": "^9.1.
|
|
59
|
+
"concurrently": "^9.1.2",
|
|
63
60
|
"ember-auto-import": "^2.10.0",
|
|
64
61
|
"ember-cli": "~<%= emberCLIVersion %>",
|
|
65
62
|
"ember-cli-app-version": "^7.0.0",
|
|
@@ -70,35 +67,35 @@
|
|
|
70
67
|
"ember-cli-inject-live-reload": "^2.1.0<% if (!embroider) { %>",
|
|
71
68
|
"ember-cli-sri": "^2.1.1",
|
|
72
69
|
"ember-cli-terser": "^4.0.2<% } %>",
|
|
73
|
-
"ember-data": "~5.3.
|
|
70
|
+
"ember-data": "~5.3.10",
|
|
74
71
|
"ember-fetch": "^8.1.2",
|
|
75
72
|
"ember-load-initializers": "^3.0.1",
|
|
76
73
|
"ember-modifier": "^4.2.0",
|
|
77
74
|
"ember-page-title": "^8.2.3",
|
|
78
|
-
"ember-qunit": "^
|
|
75
|
+
"ember-qunit": "^9.0.1",
|
|
79
76
|
"ember-resolver": "^13.1.0",
|
|
80
|
-
"ember-source": "~6.
|
|
81
|
-
"ember-template-imports": "^4.
|
|
82
|
-
"ember-template-lint": "^6.
|
|
77
|
+
"ember-source": "~6.2.0",
|
|
78
|
+
"ember-template-imports": "^4.3.0",
|
|
79
|
+
"ember-template-lint": "^6.1.0<% if (welcome) { %>",
|
|
83
80
|
"ember-welcome-page": "^7.0.2<% } %>",
|
|
84
|
-
"eslint": "^9.
|
|
81
|
+
"eslint": "^9.19.0",
|
|
85
82
|
"eslint-config-prettier": "^9.1.0",
|
|
86
|
-
"eslint-plugin-ember": "^12.
|
|
83
|
+
"eslint-plugin-ember": "^12.5.0",
|
|
87
84
|
"eslint-plugin-n": "^17.15.1",
|
|
88
|
-
"eslint-plugin-prettier": "^5.2.
|
|
85
|
+
"eslint-plugin-prettier": "^5.2.3",
|
|
89
86
|
"eslint-plugin-qunit": "^8.1.2",
|
|
90
87
|
"globals": "^15.14.0",
|
|
91
88
|
"loader.js": "^4.7.0",
|
|
92
89
|
"prettier": "^3.4.2",
|
|
93
90
|
"prettier-plugin-ember-template-tag": "^2.0.4",
|
|
94
|
-
"qunit": "^2.
|
|
91
|
+
"qunit": "^2.24.1",
|
|
95
92
|
"qunit-dom": "^3.4.0",
|
|
96
|
-
"stylelint": "^16.
|
|
93
|
+
"stylelint": "^16.14.1",
|
|
97
94
|
"stylelint-config-standard": "^36.0.1",
|
|
98
|
-
"stylelint-prettier": "^5.0.
|
|
95
|
+
"stylelint-prettier": "^5.0.3",
|
|
99
96
|
"tracked-built-ins": "^3.4.0<% if (typescript) { %>",
|
|
100
|
-
"typescript": "^5.7.
|
|
101
|
-
"typescript-eslint": "^8.
|
|
97
|
+
"typescript": "^5.7.3",
|
|
98
|
+
"typescript-eslint": "^8.23.0<% } %>",
|
|
102
99
|
"webpack": "^5.97.1"
|
|
103
100
|
},
|
|
104
101
|
"engines": {
|
|
@@ -3,10 +3,12 @@ import config from '<%= modulePrefix %>/config/environment';
|
|
|
3
3
|
import * as QUnit from 'qunit';
|
|
4
4
|
import { setApplication } from '@ember/test-helpers';
|
|
5
5
|
import { setup } from 'qunit-dom';
|
|
6
|
-
import {
|
|
6
|
+
import { loadTests } from 'ember-qunit/test-loader';
|
|
7
|
+
import { start, setupEmberOnerrorValidation } from 'ember-qunit';
|
|
7
8
|
|
|
8
9
|
setApplication(Application.create(config.APP));
|
|
9
10
|
|
|
10
11
|
setup(QUnit.assert);
|
|
11
|
-
|
|
12
|
+
setupEmberOnerrorValidation();
|
|
13
|
+
loadTests();
|
|
12
14
|
start();
|
package/lib/commands/new.js
CHANGED
|
@@ -11,7 +11,7 @@ const mergeBlueprintOptions = require('../utilities/merge-blueprint-options');
|
|
|
11
11
|
module.exports = Command.extend({
|
|
12
12
|
name: 'new',
|
|
13
13
|
description: `Creates a new directory and runs ${chalk.green('ember init')} in it.`,
|
|
14
|
-
works: '
|
|
14
|
+
works: 'everywhere',
|
|
15
15
|
|
|
16
16
|
availableOptions: [
|
|
17
17
|
{ name: 'dry-run', type: Boolean, default: false, aliases: ['d'] },
|
|
@@ -2,21 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
const getConfig = require('./get-config');
|
|
4
4
|
|
|
5
|
-
let _hasWarnedLegacyViz = false;
|
|
6
|
-
|
|
7
5
|
function vizEnabled() {
|
|
8
|
-
|
|
9
|
-
let isLegacyEnabled = !!process.env.BROCCOLI_VIZ && !isEnabled;
|
|
10
|
-
|
|
11
|
-
if (isLegacyEnabled && !_hasWarnedLegacyViz) {
|
|
12
|
-
// TODO: this.ui
|
|
13
|
-
console.warn(
|
|
14
|
-
`Please set BROCCOLI_VIZ=1 to enable visual instrumentation, rather than '${process.env.BROCCOLI_VIZ}'`
|
|
15
|
-
);
|
|
16
|
-
_hasWarnedLegacyViz = true;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
return isEnabled || isLegacyEnabled;
|
|
6
|
+
return process.env.BROCCOLI_VIZ === '1';
|
|
20
7
|
}
|
|
21
8
|
|
|
22
9
|
function isInstrumentationConfigEnabled(configOverride) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-cli",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"description": "Command line tool for developing ambitious ember.js apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@pnpm/find-workspace-dir": "^7.0.2",
|
|
42
|
+
"babel-remove-types": "^1.0.0",
|
|
42
43
|
"broccoli": "^3.5.2",
|
|
43
44
|
"broccoli-builder": "^0.18.14",
|
|
44
45
|
"broccoli-concat": "^4.2.5",
|
|
@@ -91,7 +92,7 @@
|
|
|
91
92
|
"inquirer": "^9.1.5",
|
|
92
93
|
"is-git-url": "^1.0.0",
|
|
93
94
|
"is-language-code": "^3.1.0",
|
|
94
|
-
"isbinaryfile": "^5.0.
|
|
95
|
+
"isbinaryfile": "^5.0.4",
|
|
95
96
|
"lodash": "^4.17.21",
|
|
96
97
|
"markdown-it": "^13.0.1",
|
|
97
98
|
"markdown-it-terminal": "^0.4.0",
|
|
@@ -105,14 +106,13 @@
|
|
|
105
106
|
"promise-map-series": "^0.3.0",
|
|
106
107
|
"promise.hash.helper": "^1.0.8",
|
|
107
108
|
"quick-temp": "^0.1.8",
|
|
108
|
-
"babel-remove-types": "^1.0.0",
|
|
109
109
|
"resolve": "^1.22.1",
|
|
110
110
|
"resolve-package-path": "^4.0.3",
|
|
111
111
|
"safe-stable-stringify": "^2.4.3",
|
|
112
112
|
"sane": "^5.0.1",
|
|
113
113
|
"semver": "^7.3.5",
|
|
114
114
|
"silent-error": "^1.1.1",
|
|
115
|
-
"sort-package-json": "^
|
|
115
|
+
"sort-package-json": "^2.12.0",
|
|
116
116
|
"symlink-or-copy": "^1.3.1",
|
|
117
117
|
"temp": "0.9.4",
|
|
118
118
|
"testem": "^3.15.2",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"tree-sync": "^2.1.0",
|
|
121
121
|
"walk-sync": "^3.0.0",
|
|
122
122
|
"watch-detector": "^1.0.2",
|
|
123
|
-
"workerpool": "^
|
|
123
|
+
"workerpool": "^9.2.0",
|
|
124
124
|
"yam": "^1.0.0"
|
|
125
125
|
},
|
|
126
126
|
"devDependencies": {
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"eslint": "^8.44.0",
|
|
137
137
|
"eslint-config-prettier": "^8.9.0",
|
|
138
138
|
"eslint-plugin-chai-expect": "^3.0.0",
|
|
139
|
-
"eslint-plugin-mocha": "^10.
|
|
139
|
+
"eslint-plugin-mocha": "^10.5.0",
|
|
140
140
|
"eslint-plugin-n": "^16.0.1",
|
|
141
141
|
"eslint-plugin-prettier": "^4.2.1",
|
|
142
142
|
"fixturify": "^3.0.0",
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"prettier": "2.8.7",
|
|
149
149
|
"release-it": "^15.10.0",
|
|
150
150
|
"strip-ansi": "^6.0.0",
|
|
151
|
-
"supertest": "^
|
|
151
|
+
"supertest": "^7.0.0",
|
|
152
152
|
"testdouble": "^3.18.0",
|
|
153
153
|
"tmp": "^0.2.1",
|
|
154
154
|
"websocket": "^1.0.32",
|
|
@@ -159,7 +159,9 @@
|
|
|
159
159
|
"engines": {
|
|
160
160
|
"node": ">= 18"
|
|
161
161
|
},
|
|
162
|
+
"packageManager": "pnpm@9.15.0",
|
|
162
163
|
"volta": {
|
|
164
|
+
"pnpm": "9.15.0",
|
|
163
165
|
"node": "18.12.0"
|
|
164
166
|
},
|
|
165
167
|
"publishConfig": {
|