ember-cli 6.3.1 → 6.4.0-beta.1
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 +30 -0
- package/blueprints/addon/additional-package.json +1 -1
- package/blueprints/addon/files/{addon-config → config}/ember-try.js +2 -3
- package/blueprints/addon/files/npmignore +0 -7
- package/blueprints/addon/index.js +0 -2
- package/blueprints/app/files/.prettierignore +0 -3
- package/blueprints/app/files/.stylelintignore +0 -3
- package/blueprints/app/files/gitignore +0 -7
- package/blueprints/app/files/package.json +2 -2
- package/lib/models/blueprint.js +15 -5
- package/lib/tasks/server/middleware/proxy-server/index.js +5 -1
- package/package.json +7 -7
- package/tests/helpers/assert-version-lock.js +0 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# ember-cli Changelog
|
|
2
2
|
|
|
3
|
+
## v6.4.0-beta.1
|
|
4
|
+
|
|
5
|
+
#### Blueprint Changes
|
|
6
|
+
|
|
7
|
+
- [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v6.4.0-beta.0...v6.4.0-beta.1)
|
|
8
|
+
- [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v6.4.0-beta.0...v6.4.0-beta.1)
|
|
9
|
+
|
|
10
|
+
#### Changelog
|
|
11
|
+
|
|
12
|
+
- [#10685](https://github.com/ember-cli/ember-cli/pull/10685) Add configuration to ember-cli-build to opt new projects out of the deprecated behavior of the Store class extending EmberObject [@kategengler](https://github.com/kategengler)
|
|
13
|
+
|
|
14
|
+
Thank you to all who took the time to contribute!
|
|
15
|
+
|
|
16
|
+
## v6.4.0-beta.0
|
|
17
|
+
|
|
18
|
+
#### Blueprint Changes
|
|
19
|
+
|
|
20
|
+
- [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v6.3.0...v6.4.0-beta.0)
|
|
21
|
+
- [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v6.3.0...v6.4.0-beta.0)
|
|
22
|
+
|
|
23
|
+
#### Changelog
|
|
24
|
+
|
|
25
|
+
- [#10598](https://github.com/ember-cli/ember-cli/pull/10598) [INTERNAL] Remove "locked versions for pre-v1.0.0 packages" tests [@bertdeblock](https://github.com/bertdeblock)
|
|
26
|
+
- [#10620](https://github.com/ember-cli/ember-cli/pull/10620) [BUGFIX] Handle errors gracefully when proxy target is down [@dwickern](https://github.com/dwickern)
|
|
27
|
+
- [#10641](https://github.com/ember-cli/ember-cli/pull/10641) [Bugfix] Fix missing lint dependency for typescript projects [@NullVoxPopuli](https://github.com/NullVoxPopuli)
|
|
28
|
+
- [#10659](https://github.com/ember-cli/ember-cli/pull/10659) [BUGFIX] Improve de-typing `.gts` files [@bertdeblock](https://github.com/bertdeblock)
|
|
29
|
+
- [#10661](https://github.com/ember-cli/ember-cli/pull/10661) [ENHANCEMENT] Update `ember-try` to v4 in blueprints [@bertdeblock](https://github.com/bertdeblock)
|
|
30
|
+
|
|
31
|
+
Thank you to all who took the time to contribute!
|
|
32
|
+
|
|
3
33
|
## v6.3.1
|
|
4
34
|
|
|
5
35
|
#### Blueprint Changes
|
|
@@ -5,9 +5,8 @@ const { embroiderSafe, embroiderOptimized } = require('@embroider/test-setup');
|
|
|
5
5
|
|
|
6
6
|
module.exports = async function () {
|
|
7
7
|
return {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<% } %>scenarios: [
|
|
8
|
+
packageManager: '<%= packageManager %>',
|
|
9
|
+
scenarios: [
|
|
11
10
|
{
|
|
12
11
|
name: 'ember-lts-5.8',
|
|
13
12
|
npm: {
|
|
@@ -71,14 +71,14 @@
|
|
|
71
71
|
"ember-cli-inject-live-reload": "^2.1.0<% if (!embroider) { %>",
|
|
72
72
|
"ember-cli-sri": "^2.1.1",
|
|
73
73
|
"ember-cli-terser": "^4.0.2<% } %><% if (emberData) { %>",
|
|
74
|
-
"ember-data": "~5.
|
|
74
|
+
"ember-data": "~5.4.0-beta.18<% } %>",
|
|
75
75
|
"ember-fetch": "^8.1.2",
|
|
76
76
|
"ember-load-initializers": "^3.0.1",
|
|
77
77
|
"ember-modifier": "^4.2.0",
|
|
78
78
|
"ember-page-title": "^9.0.1",
|
|
79
79
|
"ember-qunit": "^9.0.1",
|
|
80
80
|
"ember-resolver": "^13.1.0",
|
|
81
|
-
"ember-source": "~6.
|
|
81
|
+
"ember-source": "~6.4.0-beta.1",
|
|
82
82
|
"ember-template-imports": "^4.3.0",
|
|
83
83
|
"ember-template-lint": "^6.1.0<% if (welcome) { %>",
|
|
84
84
|
"ember-welcome-page": "^7.0.2<% } %>",
|
package/lib/models/blueprint.js
CHANGED
|
@@ -540,14 +540,18 @@ let Blueprint = CoreObject.extend({
|
|
|
540
540
|
const { Preprocessor } = require('content-tag');
|
|
541
541
|
const preprocessor = new Preprocessor();
|
|
542
542
|
// Strip template tags
|
|
543
|
-
const
|
|
544
|
-
const
|
|
543
|
+
const replacementClassMember = (i) => `template = __TEMPLATE_TAG_${i}__;`;
|
|
544
|
+
const replacementExpression = (i) => `__TEMPLATE_TAG_${i}__`;
|
|
545
545
|
const templateTagMatches = preprocessor.parse(code);
|
|
546
546
|
let strippedCode = code;
|
|
547
547
|
for (let i = 0; i < templateTagMatches.length; i++) {
|
|
548
548
|
const match = templateTagMatches[i];
|
|
549
549
|
const templateTag = substringBytes(code, match.range.start, match.range.end);
|
|
550
|
-
|
|
550
|
+
if (match.type === 'class-member') {
|
|
551
|
+
strippedCode = strippedCode.replace(templateTag, replacementClassMember(i));
|
|
552
|
+
} else {
|
|
553
|
+
strippedCode = strippedCode.replace(templateTag, replacementExpression(i));
|
|
554
|
+
}
|
|
551
555
|
}
|
|
552
556
|
|
|
553
557
|
// Remove types
|
|
@@ -558,8 +562,14 @@ let Blueprint = CoreObject.extend({
|
|
|
558
562
|
for (let i = 0; i < templateTagMatches.length; i++) {
|
|
559
563
|
const match = templateTagMatches[i];
|
|
560
564
|
const templateTag = substringBytes(code, match.range.start, match.range.end);
|
|
561
|
-
|
|
562
|
-
|
|
565
|
+
if (match.type === 'class-member') {
|
|
566
|
+
transformedWithTemplateTag = transformedWithTemplateTag.replace(replacementClassMember(i), templateTag);
|
|
567
|
+
} else {
|
|
568
|
+
// babel-remove-types uses prettier under the hood, and adds trailing `;` where allowed,
|
|
569
|
+
// so we need to take that into account when restoring the template tags:
|
|
570
|
+
transformedWithTemplateTag = transformedWithTemplateTag.replace(`${replacementExpression(i)};`, templateTag);
|
|
571
|
+
transformedWithTemplateTag = transformedWithTemplateTag.replace(replacementExpression(i), templateTag);
|
|
572
|
+
}
|
|
563
573
|
}
|
|
564
574
|
|
|
565
575
|
return transformedWithTemplateTag;
|
|
@@ -26,9 +26,13 @@ class ProxyServerAddon {
|
|
|
26
26
|
timeout: options.proxyInTimeout,
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
proxy.on('error', (e) => {
|
|
29
|
+
proxy.on('error', (e, req, res) => {
|
|
30
30
|
options.ui.writeLine(`Error proxying to ${options.proxy}`);
|
|
31
31
|
options.ui.writeError(e);
|
|
32
|
+
if (typeof res.status === 'function') {
|
|
33
|
+
res.status(502);
|
|
34
|
+
res.end();
|
|
35
|
+
}
|
|
32
36
|
});
|
|
33
37
|
|
|
34
38
|
const morgan = require('morgan');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-cli",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0-beta.1",
|
|
4
4
|
"description": "Command line tool for developing ambitious ember.js apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"test:slow": "node --unhandled-rejections=strict tests/runner slow"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@pnpm/find-workspace-dir": "^
|
|
41
|
+
"@pnpm/find-workspace-dir": "^1000.1.0",
|
|
42
42
|
"babel-remove-types": "^1.0.1",
|
|
43
43
|
"broccoli": "^3.5.2",
|
|
44
44
|
"broccoli-concat": "^4.2.5",
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
"chalk": "^4.1.2",
|
|
58
58
|
"ci-info": "^4.0.0",
|
|
59
59
|
"clean-base-url": "^1.0.0",
|
|
60
|
-
"compression": "^1.
|
|
60
|
+
"compression": "^1.8.0",
|
|
61
61
|
"configstore": "^5.0.1",
|
|
62
62
|
"console-ui": "^3.1.2",
|
|
63
|
-
"content-tag": "^3.1.
|
|
63
|
+
"content-tag": "^3.1.1",
|
|
64
64
|
"core-object": "^3.1.5",
|
|
65
65
|
"dag-map": "^2.0.2",
|
|
66
66
|
"diff": "^7.0.0",
|
|
@@ -104,11 +104,11 @@
|
|
|
104
104
|
"promise-map-series": "^0.3.0",
|
|
105
105
|
"promise.hash.helper": "^1.0.8",
|
|
106
106
|
"quick-temp": "^0.1.8",
|
|
107
|
-
"resolve": "^1.22.
|
|
107
|
+
"resolve": "^1.22.10",
|
|
108
108
|
"resolve-package-path": "^4.0.3",
|
|
109
109
|
"safe-stable-stringify": "^2.4.3",
|
|
110
110
|
"sane": "^5.0.1",
|
|
111
|
-
"semver": "^7.7.
|
|
111
|
+
"semver": "^7.7.1",
|
|
112
112
|
"silent-error": "^1.1.1",
|
|
113
113
|
"sort-package-json": "^2.12.0",
|
|
114
114
|
"symlink-or-copy": "^1.3.1",
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"fixturify": "^3.0.0",
|
|
141
141
|
"jsdom": "^21.1.1",
|
|
142
142
|
"latest-version": "^5.1.0",
|
|
143
|
-
"mocha": "^11.0
|
|
143
|
+
"mocha": "^11.1.0",
|
|
144
144
|
"nock": "^13.5.5",
|
|
145
145
|
"nyc": "^15.1.0",
|
|
146
146
|
"prettier": "2.8.7",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
// eslint-disable-next-line n/no-unpublished-require
|
|
4
|
-
const { expect } = require('chai');
|
|
5
|
-
const semver = require('semver');
|
|
6
|
-
|
|
7
|
-
module.exports = function assertVersionLock(_deps) {
|
|
8
|
-
let deps = _deps || {};
|
|
9
|
-
|
|
10
|
-
Object.keys(deps).forEach(function (name) {
|
|
11
|
-
if (name !== 'ember-cli' && semver.valid(deps[name]) && semver.gtr('1.0.0', deps[name])) {
|
|
12
|
-
// only valid if the version is fixed
|
|
13
|
-
expect(semver.valid(deps[name]), `"${name}" has a valid version`).to.be.ok;
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
};
|