ember-cli 4.10.0-beta.0 → 4.11.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,19 +1,58 @@
1
1
  # ember-cli Changelog
2
2
 
3
- ## v4.10.0-beta.0
3
+ ## v4.11.0-beta.0
4
4
 
5
5
  #### Blueprint Changes
6
6
 
7
- - [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v4.9.0...v4.10.0-beta.0)
8
- - [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v4.9.0...v4.10.0-beta.0)
7
+ - [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v4.10.0...v4.11.0-beta.0)
8
+ - [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v4.10.0...v4.11.0-beta.0)
9
+
10
+ #### Changelog
11
+
12
+ - [#10103](https://github.com/ember-cli/ember-cli/pull/10103) Update `markdown-it-terminal` to v0.4.0 (resolve `markdown-it` vulnerability) [@bertdeblock](https://github.com/bertdeblock)
13
+ - [#10109](https://github.com/ember-cli/ember-cli/pull/10109) [RFC 811] Add `ember-modifier` dependency to app blueprint [@SergeAstapov](https://github.com/SergeAstapov)
14
+ - [#10110](https://github.com/ember-cli/ember-cli/pull/10110) [RFC 812] Add `tracked-built-ins` dependency to app blueprint [@SergeAstapov](https://github.com/SergeAstapov)
15
+
16
+ Thank you to all who took the time to contribute!
17
+
18
+ ## v4.10.0
19
+
20
+ #### Blueprint Changes
21
+
22
+ - [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v4.9.2...v4.10.0)
23
+ - [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v4.9.2...v4.10.0)
9
24
 
10
25
  #### Changelog
11
26
 
12
27
  - [#10048](https://github.com/ember-cli/ember-cli/pull/10048) Make addAddonsToProject support creating a new project with custom target directory [@simonihmig](https://github.com/simonihmig)
13
28
  - [#10054](https://github.com/ember-cli/ember-cli/pull/10054) [ENHANCEMENT] Conditionally apply ESLint parser options in `app` and `addon` blueprints [@Windvis](https://github.com/Windvis)
14
- - [#10056](https://github.com/ember-cli/ember-cli/pull/10056) [INTERNAL] Use `eslint-plugin-n` instead of `eslint-plugin-node` [@bertdeblock](https://github.com/bertdeblock)
15
29
  - [#10060](https://github.com/ember-cli/ember-cli/pull/10060) [ENHANCEMENT] Replace `eslint-plugin-node` with `eslint-plugin-n` in blueprints [@Windvis](https://github.com/Windvis)
16
30
  - [#10062](https://github.com/ember-cli/ember-cli/pull/10062) [ENHANCEMENT] Update Prettier config in blueprints to only use single quotes for `.js` and `.ts` files [@Windvis](https://github.com/Windvis)
31
+ - [#10132](https://github.com/ember-cli/ember-cli/pull/10132) Add @ember/string as a dependency of projects [@kategengler](https://github.com/kategengler)
32
+
33
+ Thank you to all who took the time to contribute!
34
+
35
+ ## v4.9.2
36
+
37
+ #### Blueprint Changes
38
+
39
+ - [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v4.9.1...v4.9.2)
40
+ - [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v4.9.1...v4.9.2)
41
+
42
+ #### Changelog
43
+
44
+ - [#10108](https://github.com/ember-cli/ember-cli/pull/10108) [BUGFIX release] Correctly instantiate server watcher [@bertdeblock](https://github.com/bertdeblock)
45
+
46
+ ## v4.9.1
47
+
48
+ #### Blueprint Changes
49
+
50
+ - [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v4.9.0...v4.9.1)
51
+ - [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v4.9.0...v4.9.1)
52
+
53
+ #### Changelog
54
+
55
+ - [#10101](https://github.com/ember-cli/ember-cli/pull/10101) [BUGFIX release] Correctly instantiate `Watcher` instance when running `ember test --serve` [@bertdeblock](https://github.com/bertdeblock)
17
56
 
18
57
  Thank you to all who took the time to contribute!
19
58
 
@@ -66,6 +66,14 @@ module.exports = {
66
66
  delete contents.devDependencies['ember-data'];
67
67
  delete contents.devDependencies['ember-fetch'];
68
68
 
69
+ // Per RFC #811, addons should not have this dependency.
70
+ // @see https://github.com/emberjs/rfcs/blob/master/text/0811-element-modifiers.md#detailed-design
71
+ delete contents.devDependencies['ember-modifier'];
72
+
73
+ // Per RFC #812, addons should not have this dependency.
74
+ // @see https://github.com/emberjs/rfcs/blob/master/text/0812-tracked-built-ins.md#detailed-design
75
+ delete contents.devDependencies['tracked-built-ins'];
76
+
69
77
  // 100% of addons don't need ember-cli-app-version, make it opt-in instead
70
78
  delete contents.devDependencies['ember-cli-app-version'];
71
79
 
@@ -25,14 +25,15 @@
25
25
  },
26
26
  "devDependencies": {
27
27
  "@ember/optional-features": "^2.0.0",
28
- "@ember/test-helpers": "^2.8.1<% if (embroider) { %>",
28
+ "@ember/string": "^3.0.1",
29
+ "@ember/test-helpers": "^2.9.3<% if (embroider) { %>",
29
30
  "@embroider/compat": "^2.0.2",
30
31
  "@embroider/core": "^2.0.2",
31
32
  "@embroider/webpack": "^2.0.2<% } %>",
32
33
  "@glimmer/component": "^1.1.2",
33
34
  "@glimmer/tracking": "^1.1.2<% if (typescript) { %>",
34
- "@typescript-eslint/eslint-plugin": "^5.45.1",
35
- "@typescript-eslint/parser": "^5.45.1<% } else { %>",
35
+ "@typescript-eslint/eslint-plugin": "^5.48.2",
36
+ "@typescript-eslint/parser": "^5.48.2<% } else { %>",
36
37
  "babel-eslint": "^10.1.0<% } %>",
37
38
  "broccoli-asset-rev": "^3.0.0",
38
39
  "concurrently": "^7.6.0",
@@ -41,29 +42,31 @@
41
42
  "ember-cli-app-version": "^5.0.0",
42
43
  "ember-cli-babel": "^7.26.11",
43
44
  "ember-cli-dependency-checker": "^3.3.1",
44
- "ember-cli-htmlbars": "^6.1.1",
45
+ "ember-cli-htmlbars": "^6.2.0",
45
46
  "ember-cli-inject-live-reload": "^2.1.0",
46
47
  "ember-cli-sri": "^2.1.1",
47
48
  "ember-cli-terser": "^4.0.2",
48
- "ember-data": "~4.10.0-beta.2",
49
+ "ember-data": "~4.10.0-beta.3",
49
50
  "ember-fetch": "^8.1.2",
50
51
  "ember-load-initializers": "^2.1.2",
52
+ "ember-modifier": "^4.0.0",
51
53
  "ember-page-title": "^7.0.0",
52
- "ember-qunit": "^6.0.0",
53
- "ember-resolver": "^8.0.3",
54
- "ember-source": "~4.10.0-beta.2",
55
- "ember-template-lint": "^5.2.0<% if (welcome) { %>",
54
+ "ember-qunit": "^6.1.1",
55
+ "ember-resolver": "^10.0.0",
56
+ "ember-source": "~4.11.0-beta.1",
57
+ "ember-template-lint": "^5.3.2<% if (welcome) { %>",
56
58
  "ember-welcome-page": "^6.2.0<% } %>",
57
59
  "eslint": "^7.32.0",
58
- "eslint-config-prettier": "^8.5.0",
59
- "eslint-plugin-ember": "^11.2.1",
60
- "eslint-plugin-n": "^15.6.0",
60
+ "eslint-config-prettier": "^8.6.0",
61
+ "eslint-plugin-ember": "^11.4.3",
62
+ "eslint-plugin-n": "^15.6.1",
61
63
  "eslint-plugin-prettier": "^4.2.1",
62
64
  "eslint-plugin-qunit": "^7.3.4",
63
65
  "loader.js": "^4.7.0",
64
- "prettier": "^2.8.1",
66
+ "prettier": "^2.8.3",
65
67
  "qunit": "^2.19.3",
66
68
  "qunit-dom": "^2.0.0",
69
+ "tracked-built-ins": "^3.1.0",
67
70
  "webpack": "^5.75.0"
68
71
  },
69
72
  "engines": {
@@ -3,7 +3,7 @@
3
3
  "logo": "https://ember-cli.com/assets/images/ember-cli-logo-small-dark.png",
4
4
  "name": "ember-cli",
5
5
  "description": "Command line tool for developing ambitious ember.js apps",
6
- "version": "4.10.0-beta.0-beta-0fcb3a31a0"
6
+ "version": "4.11.0-beta.0-beta-ac3e903d7e"
7
7
  },
8
8
  "files": {
9
9
  "lib/broccoli/default-packager.js": {
@@ -6437,7 +6437,7 @@
6437
6437
  },
6438
6438
  {
6439
6439
  "file": "lib/tasks/serve.js",
6440
- "line": 103,
6440
+ "line": 105,
6441
6441
  "description": "Exit silently",
6442
6442
  "access": "private",
6443
6443
  "tagname": "",
@@ -182,13 +182,15 @@ module.exports = Command.extend({
182
182
  session = this.runTask('TestServer', testOptions);
183
183
  } else {
184
184
  let builder = new this.Builder(testOptions);
185
- testOptions.watcher = new this.Watcher(
186
- Object.assign(this._env(), {
187
- builder,
188
- verbose: false,
189
- options: commandOptions,
190
- })
191
- );
185
+ testOptions.watcher = (
186
+ await this.Watcher.build(
187
+ Object.assign(this._env(), {
188
+ builder,
189
+ verbose: false,
190
+ options: commandOptions,
191
+ })
192
+ )
193
+ ).watcher;
192
194
  session = this.runTask('TestServer', testOptions).finally(() => builder.cleanup());
193
195
  }
194
196
  } else if (hasBuild) {
@@ -3,7 +3,7 @@
3
3
  const chalk = require('chalk');
4
4
  const availableExperiments = Object.freeze(['PACKAGER', 'EMBROIDER', 'CLASSIC']);
5
5
 
6
- const deprecatedExperiments = Object.freeze(['BROCCOLI_WATCHER', 'PACKAGER']);
6
+ const deprecatedExperiments = Object.freeze(['PACKAGER']);
7
7
  const enabledExperiments = Object.freeze([]);
8
8
  const deprecatedExperimentsDeprecationsIssued = [];
9
9
 
@@ -3,11 +3,13 @@
3
3
  const Watcher = require('./watcher');
4
4
 
5
5
  module.exports = class ServerWatcher extends Watcher {
6
- constructor(options, build) {
7
- super(options, build);
6
+ static async build(options, build) {
7
+ let { watcher: instance } = await super.build(options, build);
8
8
 
9
- this.watcher.on('add', this.didAdd.bind(this));
10
- this.watcher.on('delete', this.didDelete.bind(this));
9
+ instance.watcher.on('add', instance.didAdd.bind(instance));
10
+ instance.watcher.on('delete', instance.didDelete.bind(instance));
11
+
12
+ return { watcher: instance };
11
13
  }
12
14
 
13
15
  constructBroccoliWatcher(options) {
@@ -69,12 +69,14 @@ class ServeTask extends Task {
69
69
  let serverRoot = './server';
70
70
  let serverWatcher = null;
71
71
  if (fs.existsSync(serverRoot)) {
72
- serverWatcher = new ServerWatcher({
73
- ui: this.ui,
74
- analytics: this.analytics,
75
- watchedDir: path.resolve(serverRoot),
76
- options,
77
- });
72
+ serverWatcher = (
73
+ await ServerWatcher.build({
74
+ ui: this.ui,
75
+ analytics: this.analytics,
76
+ watchedDir: path.resolve(serverRoot),
77
+ options,
78
+ })
79
+ ).watcher;
78
80
  }
79
81
 
80
82
  let expressServer =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-cli",
3
- "version": "4.10.0-beta.0",
3
+ "version": "4.11.0-beta.0",
4
4
  "description": "Command line tool for developing ambitious ember.js apps",
5
5
  "keywords": [
6
6
  "app",
@@ -37,8 +37,8 @@
37
37
  "test:slow": "node --unhandled-rejections=strict tests/runner slow"
38
38
  },
39
39
  "dependencies": {
40
- "@babel/core": "^7.19.6",
41
- "@babel/plugin-transform-modules-amd": "^7.18.6",
40
+ "@babel/core": "^7.20.12",
41
+ "@babel/plugin-transform-modules-amd": "^7.19.6",
42
42
  "amd-name-resolver": "^1.3.1",
43
43
  "babel-plugin-module-resolver": "^4.1.0",
44
44
  "bower-config": "^1.4.3",
@@ -61,7 +61,7 @@
61
61
  "calculate-cache-key-for-tree": "^2.0.0",
62
62
  "capture-exit": "^2.0.0",
63
63
  "chalk": "^4.1.2",
64
- "ci-info": "^3.5.0",
64
+ "ci-info": "^3.7.0",
65
65
  "clean-base-url": "^1.0.0",
66
66
  "compression": "^1.7.4",
67
67
  "configstore": "^5.0.1",
@@ -93,7 +93,7 @@
93
93
  "heimdalljs-graph": "^1.0.0",
94
94
  "heimdalljs-logger": "^0.1.10",
95
95
  "http-proxy": "^1.18.1",
96
- "inflection": "^1.13.4",
96
+ "inflection": "^2.0.1",
97
97
  "inquirer": "^8.2.1",
98
98
  "is-git-url": "^1.0.0",
99
99
  "is-language-code": "^3.1.0",
@@ -102,11 +102,11 @@
102
102
  "leek": "0.0.24",
103
103
  "lodash.template": "^4.5.0",
104
104
  "markdown-it": "^13.0.1",
105
- "markdown-it-terminal": "0.2.1",
105
+ "markdown-it-terminal": "^0.4.0",
106
106
  "minimatch": "^5.1.0",
107
107
  "morgan": "^1.10.0",
108
108
  "nopt": "^3.0.6",
109
- "npm-package-arg": "^9.1.2",
109
+ "npm-package-arg": "^10.1.0",
110
110
  "os-locale": "^5.0.0",
111
111
  "p-defer": "^3.0.0",
112
112
  "portfinder": "^1.0.32",
@@ -123,13 +123,13 @@
123
123
  "sort-package-json": "^1.57.0",
124
124
  "symlink-or-copy": "^1.3.1",
125
125
  "temp": "0.9.4",
126
- "testem": "^3.9.0",
126
+ "testem": "^3.10.1",
127
127
  "tiny-lr": "^2.0.0",
128
128
  "tree-sync": "^2.1.0",
129
129
  "uuid": "^8.3.2",
130
130
  "walk-sync": "^3.0.0",
131
131
  "watch-detector": "^1.0.2",
132
- "workerpool": "^6.2.1",
132
+ "workerpool": "^6.3.1",
133
133
  "yam": "^1.0.0"
134
134
  },
135
135
  "devDependencies": {
@@ -137,26 +137,26 @@
137
137
  "@octokit/rest": "^19.0.5",
138
138
  "broccoli-plugin": "^4.0.3",
139
139
  "broccoli-test-helper": "^2.0.0",
140
- "chai": "^4.3.6",
140
+ "chai": "^4.3.7",
141
141
  "chai-as-promised": "^7.1.1",
142
142
  "chai-files": "^1.4.0",
143
143
  "chai-jest-snapshot": "^2.0.0",
144
144
  "ember-cli-blueprint-test-helpers": "^0.19.2",
145
145
  "ember-cli-internal-test-helpers": "^0.9.1",
146
- "eslint": "^8.24.0",
146
+ "eslint": "^8.28.0",
147
147
  "eslint-config-prettier": "^8.5.0",
148
148
  "eslint-plugin-chai-expect": "^3.0.0",
149
149
  "eslint-plugin-mocha": "^10.1.0",
150
150
  "eslint-plugin-n": "^15.3.0",
151
151
  "eslint-plugin-prettier": "^4.2.1",
152
152
  "fixturify": "^2.1.0",
153
- "jsdom": "^20.0.0",
153
+ "jsdom": "^20.0.3",
154
154
  "latest-version": "^5.1.0",
155
155
  "mocha": "^10.0.0",
156
156
  "nock": "^13.2.9",
157
157
  "nyc": "^15.1.0",
158
- "prettier": "2.7.1",
159
- "release-it": "^15.4.2",
158
+ "prettier": "2.8.2",
159
+ "release-it": "^15.6.0",
160
160
  "rimraf": "^3.0.2",
161
161
  "strip-ansi": "^6.0.0",
162
162
  "supertest": "^6.3.1",
@@ -173,9 +173,6 @@
173
173
  "publishConfig": {
174
174
  "registry": "https://registry.npmjs.org"
175
175
  },
176
- "greenkeeper": {
177
- "ignore": []
178
- },
179
176
  "release-it": {
180
177
  "hooks": {
181
178
  "after:release": "node ./dev/update-output-repos.js"