ember-cli 6.0.0-beta.0 → 6.0.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,15 @@
1
1
  # ember-cli Changelog
2
2
 
3
- ## v6.0.0-beta.0
3
+ ## v6.0.0
4
4
 
5
5
  #### Blueprint Changes
6
6
 
7
- - [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v5.12.0...v6.0.0-beta.0)
8
- - [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v5.12.0...v6.0.0-beta.0)
7
+ - [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v5.12.0...v6.0.0)
8
+ - [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v5.12.0...v6.0.0)
9
9
 
10
10
  #### Changelog
11
11
 
12
+ - [#10559](https://github.com/ember-cli/ember-cli/pull/10559) [ENHANCEMENT] Make deprecations throw when the `until` for `ember-cli` has passed [@kategengler](https://github.com/kategengler)
12
13
  - [#10453](https://github.com/ember-cli/ember-cli/pull/10453) [ENHANCEMENT] Allow specifying no CI provider [@deanylev](https://github.com/deanylev)
13
14
  - [#10505](https://github.com/ember-cli/ember-cli/pull/10505) use our fork of remove-types with config: false [@mansona](https://github.com/mansona)
14
15
  - [#10506](https://github.com/ember-cli/ember-cli/pull/10506) [ENHANCEMENT] Use the official types in the blueprints [@Windvis](https://github.com/Windvis)
@@ -26,38 +26,38 @@
26
26
  "test:ember": "ember test"
27
27
  },
28
28
  "devDependencies": {
29
- "@babel/core": "^7.25.2<% if (!typescript) { %>",
30
- "@babel/eslint-parser": "^7.25.1",
31
- "@babel/plugin-proposal-decorators": "^7.24.7<% } %><% if (typescript) { %>",
32
- "@ember-data/adapter": "~5.4.0-beta.11",
33
- "@ember-data/graph": "~5.4.0-beta.11",
34
- "@ember-data/json-api": "~5.4.0-beta.11",
35
- "@ember-data/legacy-compat": "~5.4.0-beta.11",
36
- "@ember-data/model": "~5.4.0-beta.11",
37
- "@ember-data/request": "~5.4.0-beta.11",
38
- "@ember-data/request-utils": "~5.4.0-beta.11",
39
- "@ember-data/serializer": "~5.4.0-beta.11",
40
- "@ember-data/store": "~5.4.0-beta.11",
41
- "@ember-data/tracking": "~5.4.0-beta.11<% } %>",
42
- "@ember/optional-features": "^2.1.0",
29
+ "@babel/core": "^7.26.0<% if (!typescript) { %>",
30
+ "@babel/eslint-parser": "^7.25.9",
31
+ "@babel/plugin-proposal-decorators": "^7.25.9<% } %><% if (typescript) { %>",
32
+ "@ember-data/adapter": "~5.4.0-beta.12",
33
+ "@ember-data/graph": "~5.4.0-beta.12",
34
+ "@ember-data/json-api": "~5.4.0-beta.12",
35
+ "@ember-data/legacy-compat": "~5.4.0-beta.12",
36
+ "@ember-data/model": "~5.4.0-beta.12",
37
+ "@ember-data/request": "~5.4.0-beta.12",
38
+ "@ember-data/request-utils": "~5.4.0-beta.12",
39
+ "@ember-data/serializer": "~5.4.0-beta.12",
40
+ "@ember-data/store": "~5.4.0-beta.12",
41
+ "@ember-data/tracking": "~5.4.0-beta.12<% } %>",
42
+ "@ember/optional-features": "^2.2.0",
43
43
  "@ember/string": "^4.0.0",
44
44
  "@ember/test-helpers": "^3.3.1<% if (embroider) { %>",
45
- "@embroider/compat": "^3.6.1",
46
- "@embroider/core": "^3.4.16",
47
- "@embroider/webpack": "^4.0.5<% } %>",
45
+ "@embroider/compat": "^3.7.0",
46
+ "@embroider/core": "^3.4.19",
47
+ "@embroider/webpack": "^4.0.8<% } %>",
48
48
  "@glimmer/component": "^1.1.2",
49
49
  "@glimmer/tracking": "^1.1.2<% if (typescript) { %>",
50
- "@glint/environment-ember-loose": "^1.4.0",
51
- "@glint/template": "^1.4.0",
50
+ "@glint/environment-ember-loose": "^1.5.0",
51
+ "@glint/template": "^1.5.0",
52
52
  "@tsconfig/ember": "^3.0.8",
53
- "@types/qunit": "^2.19.10",
53
+ "@types/qunit": "^2.19.12",
54
54
  "@types/rsvp": "^4.0.9",
55
55
  "@typescript-eslint/eslint-plugin": "^7.18.0",
56
56
  "@typescript-eslint/parser": "^7.18.0",
57
- "@warp-drive/core-types": "~0.0.0-beta.11<% } %>",
57
+ "@warp-drive/core-types": "~0.0.0-beta.12<% } %>",
58
58
  "broccoli-asset-rev": "^3.0.0",
59
59
  "concurrently": "^8.2.2",
60
- "ember-auto-import": "^2.8.1",
60
+ "ember-auto-import": "^2.10.0",
61
61
  "ember-cli": "~<%= emberCLIVersion %>",
62
62
  "ember-cli-app-version": "^7.0.0",
63
63
  "ember-cli-babel": "^8.2.0",
@@ -67,32 +67,32 @@
67
67
  "ember-cli-inject-live-reload": "^2.1.0<% if (!embroider) { %>",
68
68
  "ember-cli-sri": "^2.1.1",
69
69
  "ember-cli-terser": "^4.0.2<% } %>",
70
- "ember-data": "~5.4.0-beta.11",
70
+ "ember-data": "~5.3.9",
71
71
  "ember-fetch": "^8.1.2",
72
72
  "ember-load-initializers": "^2.1.2",
73
73
  "ember-modifier": "^4.2.0",
74
74
  "ember-page-title": "^8.2.3",
75
- "ember-qunit": "^8.1.0",
75
+ "ember-qunit": "^8.1.1",
76
76
  "ember-resolver": "^12.0.1",
77
- "ember-source": "~6.0.0-beta.1",
77
+ "ember-source": "~6.0.0",
78
78
  "ember-template-lint": "^6.0.0<% if (welcome) { %>",
79
79
  "ember-welcome-page": "^7.0.2<% } %>",
80
80
  "eslint": "^8.57.1",
81
81
  "eslint-config-prettier": "^9.1.0",
82
- "eslint-plugin-ember": "^12.2.1",
82
+ "eslint-plugin-ember": "^12.3.1",
83
83
  "eslint-plugin-n": "^16.6.2",
84
84
  "eslint-plugin-prettier": "^5.2.1",
85
85
  "eslint-plugin-qunit": "^8.1.2",
86
86
  "loader.js": "^4.7.0",
87
87
  "prettier": "^3.3.3",
88
88
  "qunit": "^2.22.0",
89
- "qunit-dom": "^3.2.1",
89
+ "qunit-dom": "^3.3.0",
90
90
  "stylelint": "^15.11.0",
91
91
  "stylelint-config-standard": "^34.0.0",
92
92
  "stylelint-prettier": "^4.1.0",
93
93
  "tracked-built-ins": "^3.3.0<% if (typescript) { %>",
94
- "typescript": "^5.6.2<% } %>",
95
- "webpack": "^5.95.0"
94
+ "typescript": "^5.6.3<% } %>",
95
+ "webpack": "^5.96.1"
96
96
  },
97
97
  "engines": {
98
98
  "node": ">= 18"
@@ -9,7 +9,7 @@ const p = require('ember-cli-preprocess-registry/preprocessors');
9
9
  const chalk = require('chalk');
10
10
  const resolve = require('resolve');
11
11
 
12
- const { assert, deprecate } = require('../debug');
12
+ const { assert, deprecate, DEPRECATIONS } = require('../debug');
13
13
  const Project = require('../models/project');
14
14
 
15
15
  const concat = require('broccoli-concat');
@@ -226,15 +226,7 @@ class EmberApp {
226
226
  deprecate(
227
227
  'Using the `outputPaths` build option is deprecated, as output paths will no longer be predetermined under Embroider.',
228
228
  typeof options.outputPaths === 'undefined',
229
- {
230
- for: 'ember-cli',
231
- id: 'ember-cli.outputPaths-build-option',
232
- since: {
233
- available: '5.3.0',
234
- enabled: '5.3.0',
235
- },
236
- until: '6.0.0',
237
- }
229
+ DEPRECATIONS.DEPRECATE_OUTPUT_PATHS.options
238
230
  );
239
231
 
240
232
  let resolvePathFor = (defaultPath, specified) => {
@@ -9,7 +9,7 @@ const normalizeBlueprint = require('../utilities/normalize-blueprint-option');
9
9
  const mergeBlueprintOptions = require('../utilities/merge-blueprint-options');
10
10
  const { isPnpmProject, isYarnProject } = require('../utilities/package-managers');
11
11
  const getLangArg = require('../../lib/utilities/get-lang-arg');
12
- const { deprecate } = require('../debug');
12
+ const { deprecate, DEPRECATIONS } = require('../debug');
13
13
 
14
14
  module.exports = Command.extend({
15
15
  name: 'init',
@@ -126,16 +126,7 @@ module.exports = Command.extend({
126
126
  deprecate(
127
127
  'Support for generating a Travis CI config file is deprecated.\nYou can keep using Travis CI, or you could also consider switching to GitHub Actions instead.',
128
128
  false,
129
- {
130
- for: 'ember-cli',
131
- id: 'travis-ci-support',
132
- since: {
133
- available: '5.5.0',
134
- enabled: '5.5.0',
135
- },
136
- until: '6.0.0',
137
- url: 'https://deprecations.emberjs.com/id/travis-ci-support',
138
- }
129
+ DEPRECATIONS.DEPRECATE_TRAVIS_CI_SUPPORT.options
139
130
  );
140
131
  }
141
132
 
@@ -3,6 +3,7 @@
3
3
  const chalk = require('chalk');
4
4
  const semver = require('semver');
5
5
  const assert = require('./assert');
6
+ const emberCLIVersion = require('../../package').version;
6
7
 
7
8
  /**
8
9
  * Display a deprecation message.
@@ -71,6 +72,12 @@ function deprecate(description, condition, options) {
71
72
  return;
72
73
  }
73
74
 
75
+ if (options.for === 'ember-cli' && isDeprecationRemoved(options.until)) {
76
+ throw new Error(
77
+ `The API deprecated by ${options.id} was removed in ember-cli ${options.until}. The message was: ${description}. Please see ${options.url} for more details.`
78
+ );
79
+ }
80
+
74
81
  let message = formatMessage(description, options);
75
82
 
76
83
  warn(message);
@@ -117,4 +124,12 @@ function warn(message) {
117
124
  console.warn(chalk.yellow(message));
118
125
  }
119
126
 
127
+ function isDeprecationRemoved(until) {
128
+ const currentEmberCLIVersion = parseFloat(process.env.OVERRIDE_DEPRECATION_VERSION ?? emberCLIVersion);
129
+
130
+ let significantUntil = until.replace(/(\.0+)/g, '');
131
+ return currentEmberCLIVersion >= parseFloat(significantUntil);
132
+ }
133
+
120
134
  module.exports = deprecate;
135
+ module.exports._isDeprecationRemoved = isDeprecationRemoved;
@@ -0,0 +1,34 @@
1
+ 'use strict';
2
+
3
+ const { _isDeprecationRemoved } = require('./deprecate');
4
+
5
+ function deprecation(options) {
6
+ return {
7
+ options,
8
+ isRemoved: _isDeprecationRemoved(options.until),
9
+ };
10
+ }
11
+
12
+ const DEPRECATIONS = {
13
+ DEPRECATE_OUTPUT_PATHS: deprecation({
14
+ for: 'ember-cli',
15
+ id: 'ember-cli.outputPaths-build-option',
16
+ since: {
17
+ available: '5.3.0',
18
+ enabled: '5.3.0',
19
+ },
20
+ until: '6.0.0',
21
+ }),
22
+ DEPRECATE_TRAVIS_CI_SUPPORT: deprecation({
23
+ for: 'ember-cli',
24
+ id: 'travis-ci-support',
25
+ since: {
26
+ available: '5.5.0',
27
+ enabled: '5.5.0',
28
+ },
29
+ until: '6.0.0',
30
+ url: 'https://deprecations.emberjs.com/id/travis-ci-support',
31
+ }),
32
+ };
33
+
34
+ module.exports = DEPRECATIONS;
@@ -3,4 +3,5 @@
3
3
  module.exports = {
4
4
  assert: require('./assert'),
5
5
  deprecate: require('./deprecate'),
6
+ DEPRECATIONS: require('./deprecations'),
6
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-cli",
3
- "version": "6.0.0-beta.0",
3
+ "version": "6.0.0",
4
4
  "description": "Command line tool for developing ambitious ember.js apps",
5
5
  "keywords": [
6
6
  "app",