ember-cli 6.1.0-beta.0 → 6.2.0-beta.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 CHANGED
@@ -1,14 +1,37 @@
1
1
  # ember-cli Changelog
2
2
 
3
- ## v6.1.0-beta.0
3
+ ## v6.2.0-beta.0
4
4
 
5
5
  #### Blueprint Changes
6
6
 
7
- - [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v6.0.0...v6.1.0-beta.0)
8
- - [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v6.0.0...v6.1.0-beta.0)
7
+ - [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v6.1.0...v6.2.0-beta.0)
8
+ - [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v6.1.0...v6.2.0-beta.0)
9
9
 
10
10
  #### Changelog
11
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
+
24
+ ## v6.1.0
25
+
26
+ #### Blueprint Changes
27
+
28
+ - [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v6.0.0...v6.1.0)
29
+ - [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v6.0.0...v6.1.0)
30
+
31
+ #### Changelog
32
+
33
+ - [#10563](https://github.com/ember-cli/ember-cli/pull/10563) [Backport release]: update @ember/test-helpers. #10522 [@NullVoxPopuli](https://github.com/NullVoxPopuli)
34
+ - [#10564](https://github.com/ember-cli/ember-cli/pull/10564) [BUGFIX] Add missing package for TS eslint config [@mkszepp](https://github.com/mkszepp)
12
35
  - [#10514](https://github.com/ember-cli/ember-cli/pull/10514) [backport release] use fork of remove-types with config: false [@mansona](https://github.com/mansona)
13
36
  - [#10515](https://github.com/ember-cli/ember-cli/pull/10515) Use colors for the concurrently prefixes in package.json [@NullVoxPopuli](https://github.com/NullVoxPopuli)
14
37
  - [#10516](https://github.com/ember-cli/ember-cli/pull/10516) Use ESLint 9 and Flat Config [@NullVoxPopuli](https://github.com/NullVoxPopuli)
@@ -22,6 +45,19 @@
22
45
 
23
46
  Thank you to all who took the time to contribute!
24
47
 
48
+ ## v6.0.1
49
+
50
+ #### Blueprint Changes
51
+
52
+ - [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v6.0.0...v6.0.1)
53
+ - [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v6.0.0...v6.0.1)
54
+
55
+ #### Changelog
56
+
57
+ - [#10563](https://github.com/ember-cli/ember-cli/pull/10563) [Backport release]: update @ember/test-helpers. #10522 [@NullVoxPopuli](https://github.com/NullVoxPopuli)
58
+
59
+ Thank you to all who took the time to contribute!
60
+
25
61
  ## v6.0.0
26
62
 
27
63
  #### 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@v2
22
+ - uses: pnpm/action-setup@v4
23
23
  with:
24
- version: 8<% } %>
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@v2
44
+ - uses: pnpm/action-setup@v4
45
45
  with:
46
- version: 8<% } %>
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-4.12
67
- - ember-lts-5.4
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@v2
76
+ - uses: pnpm/action-setup@v4
77
77
  with:
78
- version: 8<% } %>
78
+ version: 9<% } %>
79
79
  - name: Install Node
80
80
  uses: actions/setup-node@v3
81
81
  with:
@@ -4,8 +4,8 @@
4
4
 
5
5
  ## Compatibility
6
6
 
7
- - Ember.js v4.12 or above
8
- - Ember CLI v4.12 or above
7
+ - Ember.js v5.8 or above
8
+ - Ember CLI v5.8 or above
9
9
  - Node.js v18 or above
10
10
 
11
11
  ## Installation
@@ -9,18 +9,18 @@ module.exports = async function () {
9
9
  <% } else if (yarn) { %>useYarn: true,
10
10
  <% } %>scenarios: [
11
11
  {
12
- name: 'ember-lts-4.12',
12
+ name: 'ember-lts-5.8',
13
13
  npm: {
14
14
  devDependencies: {
15
- 'ember-source': '~4.12.0',
15
+ 'ember-source': '~5.8.0',
16
16
  },
17
17
  },
18
18
  },
19
19
  {
20
- name: 'ember-lts-5.4',
20
+ name: 'ember-lts-5.12',
21
21
  npm: {
22
22
  devDependencies: {
23
- 'ember-source': '~5.4.0',
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@v2
22
+ - uses: pnpm/action-setup@v4
23
23
  with:
24
- version: 8<% } %>
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@v2
42
+ - uses: pnpm/action-setup@v4
43
43
  with:
44
- version: 8<% } %>
44
+ version: 9<% } %>
45
45
  - name: Install Node
46
46
  uses: actions/setup-node@v3
47
47
  with:
@@ -40,12 +40,11 @@
40
40
  "@ember-data/store": "~5.4.0-beta.12",
41
41
  "@ember-data/tracking": "~5.4.0-beta.12<% } %>",
42
42
  "@ember/optional-features": "^2.2.0",
43
- "@ember/string": "^4.0.0",
44
43
  "@ember/test-helpers": "^4.0.4<% if (embroider) { %>",
45
- "@embroider/compat": "^3.7.0",
46
- "@embroider/core": "^3.4.19",
47
- "@embroider/webpack": "^4.0.8<% } %>",
48
- "@eslint/js": "^9.14.0",
44
+ "@embroider/compat": "^3.7.1",
45
+ "@embroider/core": "^3.4.20",
46
+ "@embroider/webpack": "^4.0.9<% } %>",
47
+ "@eslint/js": "^9.17.0",
49
48
  "@glimmer/component": "^1.1.2",
50
49
  "@glimmer/tracking": "^1.1.2<% if (typescript) { %>",
51
50
  "@glint/environment-ember-loose": "^1.5.0",
@@ -55,8 +54,6 @@
55
54
  "@types/eslint__js": "^8.42.3",
56
55
  "@types/qunit": "^2.19.12",
57
56
  "@types/rsvp": "^4.0.9",
58
- "@typescript-eslint/eslint-plugin": "^8.14.0",
59
- "@typescript-eslint/parser": "^8.14.0",
60
57
  "@warp-drive/core-types": "~0.0.0-beta.12<% } %>",
61
58
  "broccoli-asset-rev": "^3.0.0",
62
59
  "concurrently": "^9.1.0",
@@ -65,7 +62,7 @@
65
62
  "ember-cli-app-version": "^7.0.0",
66
63
  "ember-cli-babel": "^8.2.0",
67
64
  "ember-cli-clean-css": "^3.0.0",
68
- "ember-cli-dependency-checker": "^3.3.2",
65
+ "ember-cli-dependency-checker": "^3.3.3",
69
66
  "ember-cli-htmlbars": "^6.3.0",
70
67
  "ember-cli-inject-live-reload": "^2.1.0<% if (!embroider) { %>",
71
68
  "ember-cli-sri": "^2.1.1",
@@ -75,31 +72,31 @@
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": "^8.1.1",
79
- "ember-resolver": "^13.0.2",
80
- "ember-source": "~6.1.0-beta.1",
75
+ "ember-qunit": "^9.0.1",
76
+ "ember-resolver": "^13.1.0",
77
+ "ember-source": "~6.2.0-beta.1",
81
78
  "ember-template-imports": "^4.2.0",
82
79
  "ember-template-lint": "^6.0.0<% if (welcome) { %>",
83
80
  "ember-welcome-page": "^7.0.2<% } %>",
84
- "eslint": "^9.14.0",
81
+ "eslint": "^9.17.0",
85
82
  "eslint-config-prettier": "^9.1.0",
86
- "eslint-plugin-ember": "^12.3.1",
87
- "eslint-plugin-n": "^17.13.1",
83
+ "eslint-plugin-ember": "^12.3.3",
84
+ "eslint-plugin-n": "^17.15.1",
88
85
  "eslint-plugin-prettier": "^5.2.1",
89
86
  "eslint-plugin-qunit": "^8.1.2",
90
- "globals": "^15.12.0",
87
+ "globals": "^15.14.0",
91
88
  "loader.js": "^4.7.0",
92
- "prettier": "^3.3.3",
89
+ "prettier": "^3.4.2",
93
90
  "prettier-plugin-ember-template-tag": "^2.0.4",
94
- "qunit": "^2.22.0",
95
- "qunit-dom": "^3.3.0",
96
- "stylelint": "^16.10.0",
91
+ "qunit": "^2.23.1",
92
+ "qunit-dom": "^3.4.0",
93
+ "stylelint": "^16.12.0",
97
94
  "stylelint-config-standard": "^36.0.1",
98
95
  "stylelint-prettier": "^5.0.2",
99
- "tracked-built-ins": "^3.3.0<% if (typescript) { %>",
100
- "typescript": "^5.6.3",
101
- "typescript-eslint": "^8.14.0<% } %>",
102
- "webpack": "^5.96.1"
96
+ "tracked-built-ins": "^3.4.0<% if (typescript) { %>",
97
+ "typescript": "^5.7.2",
98
+ "typescript-eslint": "^8.18.2<% } %>",
99
+ "webpack": "^5.97.1"
103
100
  },
104
101
  "engines": {
105
102
  "node": ">= 18"
@@ -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 { start } from 'ember-qunit';
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();
@@ -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: 'outsideProject',
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
- let isEnabled = process.env.BROCCOLI_VIZ === '1';
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.1.0-beta.0",
3
+ "version": "6.2.0-beta.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.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": "^1.57.0",
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": "^6.4.0",
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.1.0",
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": "^6.3.1",
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": {