ember-cli 5.5.0-beta.1 → 5.6.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,25 +1,26 @@
1
1
  # ember-cli Changelog
2
2
 
3
- ## v5.5.0-beta.1
3
+ ## v5.6.0-beta.0
4
4
 
5
5
  #### Blueprint Changes
6
6
 
7
- - [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v5.5.0-beta.0...v5.5.0-beta.1)
8
- - [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v5.5.0-beta.0...v5.5.0-beta.1)
7
+ - [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v5.5.0...v5.6.0-beta.0)
8
+ - [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v5.5.0...v5.6.0-beta.0)
9
9
 
10
10
  #### Changelog
11
11
 
12
- - [#10403](https://github.com/ember-cli/ember-cli/pull/10403) Fix some docs that were showing up weirdly in generated api docs [@kategengler](https://github.com/kategengler)
13
- - [#10406](https://github.com/ember-cli/ember-cli/pull/10406) [BUGFIX beta] use import type in helpers/index.ts :: typechecking in new apps otherwise fails [@NullVoxPopuli](https://github.com/NullVoxPopuli)
12
+ - [#10394](https://github.com/ember-cli/ember-cli/pull/10394) [ENHANCEMENT] automatically select a port by default with `ember serve` [@sportshead](https://github.com/sportshead)
13
+ - [#10404](https://github.com/ember-cli/ember-cli/pull/10404) Add a workflow to deploy api docs to ember-learn/ember-cli.github.io [@kategengler](https://github.com/kategengler)
14
+ - [#10405](https://github.com/ember-cli/ember-cli/pull/10405) Update to deploy to the master branch and also correct a comment [@kategengler](https://github.com/kategengler)
14
15
 
15
16
  Thank you to all who took the time to contribute!
16
17
 
17
- ## v5.5.0-beta.0
18
+ ## v5.5.0
18
19
 
19
20
  #### Blueprint Changes
20
21
 
21
- - [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v5.4.0...v5.5.0-beta.0)
22
- - [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v5.4.0...v5.5.0-beta.0)
22
+ - [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v5.4.1...v5.5.0)
23
+ - [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v5.4.1...v5.5.0)
23
24
 
24
25
  #### Changelog
25
26
 
@@ -27,10 +28,24 @@ Thank you to all who took the time to contribute!
27
28
  - [#10350](https://github.com/ember-cli/ember-cli/pull/10350) [ENHANCEMENT] Deprecate Travis CI support [@bertdeblock](https://github.com/bertdeblock)
28
29
  - [#10370](https://github.com/ember-cli/ember-cli/pull/10370) When generating a new app with --embroider use all optimisation flags [@mansona](https://github.com/mansona)
29
30
  - [#10393](https://github.com/ember-cli/ember-cli/pull/10393) [ENHANCEMENT] feat: add skip-install alias to skip-npm [@IgnaceMaes](https://github.com/IgnaceMaes)
31
+ - [#10403](https://github.com/ember-cli/ember-cli/pull/10403) Fix some docs that were showing up weirdly in generated api docs [@kategengler](https://github.com/kategengler)
30
32
  - [#9514](https://github.com/ember-cli/ember-cli/pull/9514) [ENHANCEMENT] Use packager commands in `CONTRIBUTING.md` and `README.md` files in `app` and `addon` blueprints [@elwayman02](https://github.com/elwayman02)
31
33
 
32
34
  Thank you to all who took the time to contribute!
33
35
 
36
+ ## v5.4.1
37
+
38
+ #### Blueprint Changes
39
+
40
+ - [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v5.4.0...v5.4.1)
41
+ - [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v5.4.0...v5.4.1)
42
+
43
+ #### Changelog
44
+
45
+ - [#10402](https://github.com/ember-cli/ember-cli/pull/10402) [BUGFIX release] use import type in helpers/index.ts :: typechecking in new apps otherwise fails [@NullVoxPopuli](https://github.com/NullVoxPopuli)
46
+
47
+ Thank you to all who took the time to contribute!
48
+
34
49
  ## v5.4.0
35
50
 
36
51
  #### Blueprint Changes
@@ -6,7 +6,7 @@
6
6
  "test:ember-compatibility": "ember try:each"
7
7
  },
8
8
  "devDependencies": {
9
- "@embroider/test-setup": "^3.0.2",
9
+ "@embroider/test-setup": "^3.0.3",
10
10
  "ember-source-channel-url": "^3.0.0",
11
11
  "ember-try": "^3.0.0"
12
12
  },
@@ -26,53 +26,53 @@
26
26
  "test:ember": "ember test"
27
27
  },
28
28
  "devDependencies": {
29
- "@babel/core": "^7.23.2",
30
- "<% if (!typescript) { %>@babel/eslint-parser": "^7.22.15",
31
- "@babel/plugin-proposal-decorators": "^7.23.2",
29
+ "@babel/core": "^7.23.6",
30
+ "<% if (!typescript) { %>@babel/eslint-parser": "^7.23.3",
31
+ "@babel/plugin-proposal-decorators": "^7.23.6",
32
32
  "<% } %>@ember/optional-features": "^2.0.0",
33
33
  "@ember/string": "^3.1.1",
34
- "@ember/test-helpers": "^3.2.0<% if (embroider) { %>",
35
- "@embroider/compat": "^3.2.3",
36
- "@embroider/core": "^3.3.0",
37
- "@embroider/webpack": "^3.2.0<% } %>",
34
+ "@ember/test-helpers": "^3.2.1<% if (embroider) { %>",
35
+ "@embroider/compat": "^3.4.2",
36
+ "@embroider/core": "^3.4.3",
37
+ "@embroider/webpack": "^3.2.1<% } %>",
38
38
  "@glimmer/component": "^1.1.2",
39
39
  "@glimmer/tracking": "^1.1.2<% if (typescript) { %>",
40
40
  "@glint/environment-ember-loose": "^1.2.1",
41
41
  "@glint/template": "^1.2.1",
42
- "@tsconfig/ember": "^3.0.2",
43
- "@types/ember": "^4.0.8",
44
- "@types/ember-data": "^4.4.13",
45
- "@types/ember-data__adapter": "^4.0.4",
46
- "@types/ember-data__model": "^4.0.3",
47
- "@types/ember-data__serializer": "^4.0.4",
48
- "@types/ember-data__store": "^4.0.5",
49
- "@types/ember__application": "^4.0.9",
50
- "@types/ember__array": "^4.0.7",
51
- "@types/ember__component": "^4.0.19",
52
- "@types/ember__controller": "^4.0.9",
53
- "@types/ember__debug": "^4.0.6",
54
- "@types/ember__destroyable": "^4.0.3",
55
- "@types/ember__engine": "^4.0.8",
56
- "@types/ember__error": "^4.0.4",
57
- "@types/ember__helper": "^4.0.4",
58
- "@types/ember__modifier": "^4.0.7",
59
- "@types/ember__object": "^4.0.9",
60
- "@types/ember__owner": "^4.0.7",
61
- "@types/ember__polyfills": "^4.0.4",
62
- "@types/ember__routing": "^4.0.17",
63
- "@types/ember__runloop": "^4.0.7",
64
- "@types/ember__service": "^4.0.6",
42
+ "@tsconfig/ember": "^3.0.3",
43
+ "@types/ember": "^4.0.10",
44
+ "@types/ember-data": "^4.4.15",
45
+ "@types/ember-data__adapter": "^4.0.5",
46
+ "@types/ember-data__model": "^4.0.4",
47
+ "@types/ember-data__serializer": "^4.0.5",
48
+ "@types/ember-data__store": "^4.0.6",
49
+ "@types/ember__application": "^4.0.10",
50
+ "@types/ember__array": "^4.0.9",
51
+ "@types/ember__component": "^4.0.21",
52
+ "@types/ember__controller": "^4.0.11",
53
+ "@types/ember__debug": "^4.0.7",
54
+ "@types/ember__destroyable": "^4.0.4",
55
+ "@types/ember__engine": "^4.0.10",
56
+ "@types/ember__error": "^4.0.5",
57
+ "@types/ember__helper": "^4.0.5",
58
+ "@types/ember__modifier": "^4.0.8",
59
+ "@types/ember__object": "^4.0.11",
60
+ "@types/ember__owner": "^4.0.8",
61
+ "@types/ember__polyfills": "^4.0.5",
62
+ "@types/ember__routing": "^4.0.19",
63
+ "@types/ember__runloop": "^4.0.8",
64
+ "@types/ember__service": "^4.0.8",
65
65
  "@types/ember__string": "^3.16.3",
66
- "@types/ember__template": "^4.0.4",
67
- "@types/ember__test": "^4.0.4",
68
- "@types/ember__utils": "^4.0.5",
69
- "@types/qunit": "^2.19.7",
70
- "@types/rsvp": "^4.0.6",
71
- "@typescript-eslint/eslint-plugin": "^6.9.1",
72
- "@typescript-eslint/parser": "^6.9.1<% } %>",
66
+ "@types/ember__template": "^4.0.5",
67
+ "@types/ember__test": "^4.0.5",
68
+ "@types/ember__utils": "^4.0.6",
69
+ "@types/qunit": "^2.19.9",
70
+ "@types/rsvp": "^4.0.8",
71
+ "@typescript-eslint/eslint-plugin": "^6.15.0",
72
+ "@typescript-eslint/parser": "^6.15.0<% } %>",
73
73
  "broccoli-asset-rev": "^3.0.0",
74
74
  "concurrently": "^8.2.2",
75
- "ember-auto-import": "^2.6.3",
75
+ "ember-auto-import": "^2.7.1",
76
76
  "ember-cli": "~<%= emberCLIVersion %>",
77
77
  "ember-cli-app-version": "^6.0.1",
78
78
  "ember-cli-babel": "^8.2.0",
@@ -86,27 +86,27 @@
86
86
  "ember-fetch": "^8.1.2",
87
87
  "ember-load-initializers": "^2.1.2",
88
88
  "ember-modifier": "^4.1.0",
89
- "ember-page-title": "^8.0.0",
90
- "ember-qunit": "^8.0.1",
89
+ "ember-page-title": "^8.1.0",
90
+ "ember-qunit": "^8.0.2",
91
91
  "ember-resolver": "^11.0.1",
92
- "ember-source": "~5.5.0-beta.1",
93
- "ember-template-lint": "^5.11.2<% if (welcome) { %>",
92
+ "ember-source": "~5.6.0-beta.2",
93
+ "ember-template-lint": "^5.13.0<% if (welcome) { %>",
94
94
  "ember-welcome-page": "^7.0.2<% } %>",
95
- "eslint": "^8.52.0",
96
- "eslint-config-prettier": "^9.0.0",
97
- "eslint-plugin-ember": "^11.11.1",
98
- "eslint-plugin-n": "^16.2.0",
99
- "eslint-plugin-prettier": "^5.0.1",
95
+ "eslint": "^8.56.0",
96
+ "eslint-config-prettier": "^9.1.0",
97
+ "eslint-plugin-ember": "^11.12.0",
98
+ "eslint-plugin-n": "^16.5.0",
99
+ "eslint-plugin-prettier": "^5.1.0",
100
100
  "eslint-plugin-qunit": "^8.0.1",
101
101
  "loader.js": "^4.7.0",
102
- "prettier": "^3.0.3",
102
+ "prettier": "^3.1.1",
103
103
  "qunit": "^2.20.0",
104
104
  "qunit-dom": "^2.0.0",
105
105
  "stylelint": "^15.11.0",
106
106
  "stylelint-config-standard": "^34.0.0",
107
- "stylelint-prettier": "^4.0.2",
107
+ "stylelint-prettier": "^4.1.0",
108
108
  "tracked-built-ins": "^3.3.0<% if (typescript) { %>",
109
- "typescript": "^5.2.2<% } %>",
109
+ "typescript": "^5.3.3<% } %>",
110
110
  "webpack": "^5.89.0"
111
111
  },
112
112
  "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": "5.5.0-beta.1-beta-5c8004b8da"
6
+ "version": "5.6.0-beta.0-beta-076f3f38ad"
7
7
  },
8
8
  "files": {
9
9
  "lib/broccoli/default-packager.js": {
@@ -1,16 +1,12 @@
1
1
  'use strict';
2
2
 
3
3
  const Command = require('../models/command');
4
- const util = require('util');
5
4
  const SilentError = require('silent-error');
6
5
  const PortFinder = require('portfinder');
7
6
  const Win = require('../utilities/windows-admin');
8
7
  const EOL = require('os').EOL;
9
8
 
10
- PortFinder.basePort = 7020;
11
-
12
- let getPort = util.promisify(PortFinder.getPort);
13
- let defaultPort = process.env.PORT || 4200;
9
+ const DEFAULT_PORT = 4200;
14
10
 
15
11
  module.exports = Command.extend({
16
12
  name: 'serve',
@@ -21,9 +17,11 @@ module.exports = Command.extend({
21
17
  {
22
18
  name: 'port',
23
19
  type: Number,
24
- default: defaultPort,
20
+ default: process.env.PORT || DEFAULT_PORT,
25
21
  aliases: ['p'],
26
- description: `To use a port different than ${defaultPort}. Pass 0 to automatically pick an available port.`,
22
+ description: `Overrides $PORT (currently ${
23
+ process.env.PORT || 'blank'
24
+ }). If the port 0 or the default port 4200 is passed, ember will use any available port starting from 4200.`,
27
25
  },
28
26
  { name: 'host', type: String, aliases: ['H'], description: 'Listens on all interfaces by default' },
29
27
  { name: 'proxy', type: String, aliases: ['pr', 'pxy'] },
@@ -93,7 +91,7 @@ module.exports = Command.extend({
93
91
  async run(commandOptions) {
94
92
  commandOptions.liveReloadHost = commandOptions.liveReloadHost || commandOptions.host;
95
93
 
96
- let wrappedCommandOptions = await this._checkExpressPort(commandOptions);
94
+ let wrappedCommandOptions = await this._checkOrGetPort(commandOptions);
97
95
  if (wrappedCommandOptions.proxy) {
98
96
  if (!/^(http:|https:)/.test(wrappedCommandOptions.proxy)) {
99
97
  let message = `You need to include a protocol with the proxy URL.${EOL}Try --proxy http://${wrappedCommandOptions.proxy}`;
@@ -106,22 +104,22 @@ module.exports = Command.extend({
106
104
  await this.runTask('Serve', commandOptions);
107
105
  },
108
106
 
109
- async _checkExpressPort(commandOptions) {
110
- let portOptions = { port: commandOptions.port, host: commandOptions.host };
111
- if (commandOptions.port !== 0) {
107
+ async _checkOrGetPort(commandOptions) {
108
+ let portOptions = { port: commandOptions.port || DEFAULT_PORT, host: commandOptions.host };
109
+ if (commandOptions.port !== 0 && commandOptions.port !== DEFAULT_PORT) {
110
+ // if a port was set, only check for that port
112
111
  portOptions.stopPort = commandOptions.port;
113
112
  }
114
113
  try {
115
- let foundPort = await getPort(portOptions);
116
- commandOptions.port = foundPort;
114
+ commandOptions.port = await PortFinder.getPortPromise(portOptions);
117
115
  commandOptions.liveReloadPort = commandOptions.liveReloadPort || commandOptions.port;
118
116
  return commandOptions;
119
117
  } catch (err) {
120
118
  let message;
121
- if (commandOptions.port === 0) {
122
- message = `No open port found above ${commandOptions.port}`;
119
+ if (portOptions.port === DEFAULT_PORT) {
120
+ message = `No open port found above ${portOptions.port}`;
123
121
  } else if (commandOptions.port < 1024) {
124
- message = `Port ${commandOptions.port} is already in use or you do not have permissions to use this port.`;
122
+ message = `Port ${commandOptions.port} is already in use or you do not have permission to use this port.`;
125
123
  } else {
126
124
  message = `Port ${commandOptions.port} is already in use.`;
127
125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-cli",
3
- "version": "5.5.0-beta.1",
3
+ "version": "5.6.0-beta.0",
4
4
  "description": "Command line tool for developing ambitious ember.js apps",
5
5
  "keywords": [
6
6
  "app",