ember-cli 4.0.0 → 4.1.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.
Files changed (114) hide show
  1. package/.github/workflows/ci.yml +4 -4
  2. package/CHANGELOG.md +42 -2
  3. package/blueprints/addon/additional-dev-dependencies.json +1 -1
  4. package/blueprints/addon/files/.github/workflows/ci.yml +0 -1
  5. package/blueprints/addon/files/.travis.yml +0 -1
  6. package/blueprints/addon/files/addon-config/ember-try.js +0 -13
  7. package/blueprints/app/files/config/environment.js +1 -1
  8. package/blueprints/app/files/package.json +6 -6
  9. package/docs/build/data.json +3 -3
  10. package/lib/models/host-info-cache.js +3 -5
  11. package/lib/models/per-bundle-addon-cache/index.js +2 -3
  12. package/lib/tasks/npm-task.js +1 -1
  13. package/lib/utilities/get-lang-arg.js +45 -45
  14. package/package.json +25 -25
  15. package/tests/helpers/mock-project.js +1 -1
  16. package/.github/ISSUE_TEMPLATE.md +0 -12
  17. package/.github/dependabot.yml +0 -15
  18. package/.github/workflows/coverage.yml +0 -31
  19. package/docs/analytics.md +0 -44
  20. package/docs/architecture.md +0 -316
  21. package/docs/assets/architecture/Ember-CLI architecture.png +0 -0
  22. package/docs/assets/architecture/Ember-CLI architecture.xml +0 -1
  23. package/docs/assets/architecture/README.md +0 -5
  24. package/docs/brocfile-transition.md +0 -46
  25. package/docs/build/api.js +0 -44
  26. package/docs/build/assets/css/external-small.png +0 -0
  27. package/docs/build/assets/css/logo.png +0 -0
  28. package/docs/build/assets/css/main.css +0 -555
  29. package/docs/build/assets/favicon.ico +0 -0
  30. package/docs/build/assets/img/spinner.gif +0 -0
  31. package/docs/build/assets/index.html +0 -10
  32. package/docs/build/assets/js/api-filter.js +0 -56
  33. package/docs/build/assets/js/api-list.js +0 -255
  34. package/docs/build/assets/js/api-search.js +0 -98
  35. package/docs/build/assets/js/apidocs.js +0 -376
  36. package/docs/build/assets/js/yui-prettify.js +0 -17
  37. package/docs/build/assets/vendor/prettify/CHANGES.html +0 -130
  38. package/docs/build/assets/vendor/prettify/COPYING +0 -202
  39. package/docs/build/assets/vendor/prettify/README.html +0 -203
  40. package/docs/build/assets/vendor/prettify/prettify-min.css +0 -1
  41. package/docs/build/assets/vendor/prettify/prettify-min.js +0 -1
  42. package/docs/build/classes/Addon.html +0 -4318
  43. package/docs/build/classes/AmdTransformAddon.html +0 -202
  44. package/docs/build/classes/Blueprint.html +0 -4796
  45. package/docs/build/classes/Builder.html +0 -611
  46. package/docs/build/classes/CLI.html +0 -810
  47. package/docs/build/classes/Command.html +0 -1655
  48. package/docs/build/classes/DefaultPackager.html +0 -202
  49. package/docs/build/classes/EmberAddon.html +0 -2207
  50. package/docs/build/classes/EmberApp.html +0 -2225
  51. package/docs/build/classes/HardwareInfo.html +0 -620
  52. package/docs/build/classes/HistorySupportAddon.html +0 -203
  53. package/docs/build/classes/Instrumentation.html +0 -695
  54. package/docs/build/classes/NodeModulesList.html +0 -460
  55. package/docs/build/classes/NpmTask.html +0 -333
  56. package/docs/build/classes/PackageInfo.html +0 -1390
  57. package/docs/build/classes/PackageInfoCache.html +0 -963
  58. package/docs/build/classes/PerBundleAddonCache {.html +0 -1010
  59. package/docs/build/classes/Project.html +0 -2083
  60. package/docs/build/classes/ServeFilesAddon.html +0 -260
  61. package/docs/build/classes/TestsServerAddon.html +0 -203
  62. package/docs/build/classes/WatcherAddon.html +0 -204
  63. package/docs/build/classes/WindowsSymlinkChecker.html +0 -1505
  64. package/docs/build/files/lib_broccoli_default-packager.js.html +0 -1426
  65. package/docs/build/files/lib_broccoli_ember-addon.js.html +0 -159
  66. package/docs/build/files/lib_broccoli_ember-app.js.html +0 -1913
  67. package/docs/build/files/lib_cli_cli.js.html +0 -417
  68. package/docs/build/files/lib_models_addon-info.js.html +0 -112
  69. package/docs/build/files/lib_models_addon.js.html +0 -1866
  70. package/docs/build/files/lib_models_blueprint.js.html +0 -1678
  71. package/docs/build/files/lib_models_builder.js.html +0 -417
  72. package/docs/build/files/lib_models_command.js.html +0 -804
  73. package/docs/build/files/lib_models_hardware-info.js.html +0 -479
  74. package/docs/build/files/lib_models_host-info-cache.js.html +0 -428
  75. package/docs/build/files/lib_models_installation-checker.js.html +0 -181
  76. package/docs/build/files/lib_models_instantiate-addons.js.html +0 -191
  77. package/docs/build/files/lib_models_instrumentation.js.html +0 -433
  78. package/docs/build/files/lib_models_package-info-cache_index.js.html +0 -793
  79. package/docs/build/files/lib_models_package-info-cache_node-modules-list.js.html +0 -208
  80. package/docs/build/files/lib_models_package-info-cache_package-info.js.html +0 -661
  81. package/docs/build/files/lib_models_per-bundle-addon-cache_addon-proxy.js.html +0 -252
  82. package/docs/build/files/lib_models_per-bundle-addon-cache_index.js.html +0 -485
  83. package/docs/build/files/lib_models_per-bundle-addon-cache_target-instance.js.html +0 -108
  84. package/docs/build/files/lib_models_project.js.html +0 -913
  85. package/docs/build/files/lib_models_task.js.html +0 -117
  86. package/docs/build/files/lib_tasks_build-watch.js.html +0 -157
  87. package/docs/build/files/lib_tasks_npm-task.js.html +0 -463
  88. package/docs/build/files/lib_tasks_serve.js.html +0 -207
  89. package/docs/build/files/lib_tasks_server_middleware_broccoli-serve-files_index.js.html +0 -127
  90. package/docs/build/files/lib_tasks_server_middleware_broccoli-watcher_index.js.html +0 -158
  91. package/docs/build/files/lib_tasks_server_middleware_history-support_index.js.html +0 -181
  92. package/docs/build/files/lib_tasks_server_middleware_tests-server_index.js.html +0 -171
  93. package/docs/build/files/lib_tasks_test-server.js.html +0 -167
  94. package/docs/build/files/lib_tasks_transforms_amd_index.js.html +0 -143
  95. package/docs/build/files/lib_utilities_ember-app-utils.js.html +0 -292
  96. package/docs/build/files/lib_utilities_insert-into-file.js.html +0 -219
  97. package/docs/build/files/lib_utilities_is-lazy-engine.js.html +0 -125
  98. package/docs/build/files/lib_utilities_is-yarn-project.js.html +0 -120
  99. package/docs/build/files/lib_utilities_valid-project-name.js.html +0 -142
  100. package/docs/build/files/lib_utilities_will-interrupt-process.js.html +0 -290
  101. package/docs/build/files/lib_utilities_windows-admin.js.html +0 -230
  102. package/docs/build/index.html +0 -125
  103. package/docs/build/modules/ember-cli.html +0 -152
  104. package/docs/build/modules/is-lazy-engine.html +0 -106
  105. package/docs/build-concurrency.md +0 -15
  106. package/docs/build-pipeline-debugging.md +0 -33
  107. package/docs/code-coverage.md +0 -14
  108. package/docs/error-propagation.md +0 -136
  109. package/docs/experiments.md +0 -53
  110. package/docs/node-support.md +0 -43
  111. package/docs/perf-guide.md +0 -250
  112. package/docs/project_version_preprocessor.js +0 -8
  113. package/docs/sourcemaps.md +0 -60
  114. package/docs/yuidoc.json +0 -13
@@ -21,7 +21,7 @@ jobs:
21
21
 
22
22
  steps:
23
23
  - uses: actions/checkout@v2
24
- - uses: actions/setup-node@v2.1.5
24
+ - uses: actions/setup-node@v2.5.0
25
25
  with:
26
26
  node-version: 12.x
27
27
  cache: 'yarn'
@@ -39,7 +39,7 @@ jobs:
39
39
 
40
40
  steps:
41
41
  - uses: actions/checkout@v2
42
- - uses: actions/setup-node@v2.1.5
42
+ - uses: actions/setup-node@v2.5.0
43
43
  with:
44
44
  node-version: 12.x
45
45
  cache: 'yarn'
@@ -61,7 +61,7 @@ jobs:
61
61
 
62
62
  steps:
63
63
  - uses: actions/checkout@v2
64
- - uses: actions/setup-node@v2.1.5
64
+ - uses: actions/setup-node@v2.5.0
65
65
  with:
66
66
  node-version: ${{ matrix.node-version }}
67
67
  cache: 'yarn'
@@ -86,7 +86,7 @@ jobs:
86
86
 
87
87
  steps:
88
88
  - uses: actions/checkout@v2
89
- - uses: actions/setup-node@v2.1.5
89
+ - uses: actions/setup-node@v2.5.0
90
90
  with:
91
91
  node-version: 12.x
92
92
  cache: 'yarn'
package/CHANGELOG.md CHANGED
@@ -1,5 +1,47 @@
1
1
  # ember-cli Changelog
2
2
 
3
+ ## v4.1.1
4
+
5
+ #### Blueprint Changes
6
+
7
+ - [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v4.1.0...v4.1.1)
8
+ - [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v4.1.0...v4.1.1)
9
+
10
+ #### Changelog
11
+
12
+ - [#9737](https://github.com/ember-cli/ember-cli/pull/9737) Remove jQuery integration scenario from ember-try [@NullVoxPopuli](https://github.com/NullVoxPopuli)
13
+ - [#9739](https://github.com/ember-cli/ember-cli/pull/9739) Change blueprint to generate apps using 'history' location [@kategengler](https://github.com/kategengler)
14
+ - [#9762](https://github.com/ember-cli/ember-cli/pull/9762) Update @embroider/* packages to 1.0.0. [@rwjblue](https://github.com/rwjblue)
15
+
16
+ Thank you to all who took the time to contribute!
17
+
18
+ ## v4.1.0
19
+
20
+ #### Blueprint Changes
21
+
22
+ - [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v4.0.1...v4.1.0)
23
+ - [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v4.0.1...v4.1.0)
24
+
25
+ #### Changelog
26
+
27
+ - [#9700](https://github.com/ember-cli/ember-cli/pull/9700) [Chore] Update .npmignore to ignore .github and docs folders [@SergeAstapov](https://github.com/SergeAstapov)
28
+ - [#9729](https://github.com/ember-cli/ember-cli/pull/9729) is-language-code@^3.1.0 [@kellyselden](https://github.com/kellyselden)
29
+
30
+ Thank you to all who took the time to contribute!
31
+
32
+ ## v4.0.1
33
+
34
+ #### Blueprint Changes
35
+
36
+ - [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v4.0.0...v4.0.1)
37
+ - [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v4.0.0...v4.0.1)
38
+
39
+ #### Changelog
40
+
41
+ - [#9675](https://github.com/ember-cli/ember-cli/pull/9675) Fix using `pnpm` install inadvertently [@balinterdi](https://github.com/balinterdi)
42
+
43
+ Thank you to all who took the time to contribute!
44
+
3
45
  ## v4.0.0
4
46
 
5
47
  #### Blueprint Changes
@@ -12,13 +54,11 @@
12
54
  - [#9679](https://github.com/ember-cli/ember-cli/pull/9679) Bump ember-page-title from v6.2.2 to v7.0.0 [@raido](https://github.com/raido)
13
55
  - [#9694](https://github.com/ember-cli/ember-cli/pull/9694) test in node 16 LTS [@kellyselden](https://github.com/kellyselden)
14
56
  - [#9696](https://github.com/ember-cli/ember-cli/pull/9696) commands/init: Fix `--yarn` usage [@Turbo87](https://github.com/Turbo87)
15
-
16
57
  - [#9659](https://github.com/ember-cli/ember-cli/pull/9659) Ensure `ember-classic` ember-try scenario uses Ember 3.x [@rwjblue](https://github.com/rwjblue)
17
58
  - [#9661](https://github.com/ember-cli/ember-cli/pull/9661) Set default CI config blueprints to run all builds [@elwayman02](https://github.com/elwayman02)
18
59
  - [#9666](https://github.com/ember-cli/ember-cli/pull/9666) Remove IE11 comments from `config/target.js` in app blueprint [@bertdeblock](https://github.com/bertdeblock)
19
60
  - [#9667](https://github.com/ember-cli/ember-cli/pull/9667) Update eslint-plugin-qunit to v7 in blueprint [@bmish](https://github.com/bmish)
20
61
  - [#9670](https://github.com/ember-cli/ember-cli/pull/9670) Don't emit an error when the `lint:fix` script fails post blueprint generation [@bertdeblock](https://github.com/bertdeblock)
21
-
22
62
  - [#9574](https://github.com/ember-cli/ember-cli/pull/9574) Update link to Discord in README.md [@MelSumner](https://github.com/MelSumner)
23
63
  - [#9613](https://github.com/ember-cli/ember-cli/pull/9613) Fix test that started failing with v2.17.0 of qunit [@kategengler](https://github.com/kategengler)
24
64
  - [#9579](https://github.com/ember-cli/ember-cli/pull/9579) Add `--ci-provider` option to `ember new` and `ember addon` [@snewcomer](https://github.com/snewcomer)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "devDependencies": {
3
- "@embroider/test-setup": "^0.48.1",
3
+ "@embroider/test-setup": "^1.0.0",
4
4
  "ember-disable-prototype-extensions": "^1.1.3",
5
5
  "ember-try": "^2.0.0",
6
6
  "ember-source-channel-url": "^3.0.0"
@@ -60,7 +60,6 @@ jobs:
60
60
  - ember-beta
61
61
  - ember-canary
62
62
  - ember-classic
63
- - ember-default-with-jquery
64
63
  - embroider-safe
65
64
  - embroider-optimized
66
65
 
@@ -56,7 +56,6 @@ jobs:
56
56
  - env: EMBER_TRY_SCENARIO=ember-release
57
57
  - env: EMBER_TRY_SCENARIO=ember-beta
58
58
  - env: EMBER_TRY_SCENARIO=ember-canary
59
- - env: EMBER_TRY_SCENARIO=ember-default-with-jquery
60
59
  - env: EMBER_TRY_SCENARIO=ember-classic
61
60
  - env: EMBER_TRY_SCENARIO=embroider-safe
62
61
  - env: EMBER_TRY_SCENARIO=embroider-optimized
@@ -47,19 +47,6 @@ module.exports = async function () {
47
47
  },
48
48
  },
49
49
  },
50
- {
51
- name: 'ember-default-with-jquery',
52
- env: {
53
- EMBER_OPTIONAL_FEATURES: JSON.stringify({
54
- 'jquery-integration': true,
55
- }),
56
- },
57
- npm: {
58
- devDependencies: {
59
- '@ember/jquery': '^1.1.0',
60
- },
61
- },
62
- },
63
50
  {
64
51
  name: 'ember-classic',
65
52
  env: {
@@ -5,7 +5,7 @@ module.exports = function (environment) {
5
5
  modulePrefix: '<%= modulePrefix %>',
6
6
  environment,
7
7
  rootURL: '/',
8
- locationType: 'auto',
8
+ locationType: 'history',
9
9
  EmberENV: {
10
10
  FEATURES: {
11
11
  // Here you can enable experimental features on an ember canary build
@@ -25,9 +25,9 @@
25
25
  "devDependencies": {
26
26
  "@ember/optional-features": "^2.0.0",
27
27
  "@ember/test-helpers": "^2.6.0<% if (embroider) { %>",
28
- "@embroider/compat": "^0.48.1",
29
- "@embroider/core": "^0.48.1",
30
- "@embroider/webpack": "^0.48.1<% } %>",
28
+ "@embroider/compat": "^1.0.0",
29
+ "@embroider/core": "^1.0.0",
30
+ "@embroider/webpack": "^1.0.0<% } %>",
31
31
  "@glimmer/component": "^1.0.4",
32
32
  "@glimmer/tracking": "^1.0.4",
33
33
  "babel-eslint": "^10.1.0",
@@ -35,20 +35,20 @@
35
35
  "ember-auto-import": "^2.2.4",
36
36
  "ember-cli": "~<%= emberCLIVersion %>",
37
37
  "ember-cli-app-version": "^5.0.0",
38
- "ember-cli-babel": "^7.26.8",
38
+ "ember-cli-babel": "^7.26.11",
39
39
  "ember-cli-dependency-checker": "^3.2.0",
40
40
  "ember-cli-htmlbars": "^6.0.1",
41
41
  "ember-cli-inject-live-reload": "^2.1.0",
42
42
  "ember-cli-sri": "^2.1.1",
43
43
  "ember-cli-terser": "^4.0.2",
44
- "ember-data": "~4.0.2",
44
+ "ember-data": "~4.1.0",
45
45
  "ember-export-application-global": "^2.0.1",
46
46
  "ember-fetch": "^8.1.1",
47
47
  "ember-load-initializers": "^2.1.2",
48
48
  "ember-page-title": "^7.0.0",
49
49
  "ember-qunit": "^5.1.5",
50
50
  "ember-resolver": "^8.0.3",
51
- "ember-source": "~4.0.1",
51
+ "ember-source": "~4.1.0",
52
52
  "ember-template-lint": "^3.15.0<% if (welcome) { %>",
53
53
  "ember-welcome-page": "^6.0.0<% } %>",
54
54
  "eslint": "^7.32.0",
@@ -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.0.0-release-b4cbb1029f"
6
+ "version": "4.1.1-release-1841d84da1"
7
7
  },
8
8
  "files": {
9
9
  "lib/broccoli/default-packager.js": {
@@ -2378,7 +2378,7 @@
2378
2378
  },
2379
2379
  {
2380
2380
  "file": "lib/models/per-bundle-addon-cache/index.js",
2381
- "line": 248,
2381
+ "line": 247,
2382
2382
  "description": "Called from PackageInfo.getAddonInstance(), return an instance of the requested\naddon or a Proxy, based on the type of addon and its bundle host.",
2383
2383
  "itemtype": "method",
2384
2384
  "name": "getAddonInstance",
@@ -5651,7 +5651,7 @@
5651
5651
  },
5652
5652
  {
5653
5653
  "file": "lib/models/host-info-cache.js",
5654
- "line": 272,
5654
+ "line": 270,
5655
5655
  "description": "This returns the LCA host for a given engine; we use the associated package info\nto compute this (see `getHostAddonInfo` above); this finds the lowest common ancestor\nthat is considered a host amongst _all_ engines by the same name in the project. This\nfunction is intended to replace the original behavior in `ember-engines`.\n\nFor more info, see the original implementation here:\n\nhttps://github.com/ember-engines/ember-engines/blob/master/packages/ember-engines/lib/utils/find-lca-host.js",
5656
5656
  "itemtype": "method",
5657
5657
  "name": "findLCAHost",
@@ -242,11 +242,9 @@ class HostInfoCache {
242
242
  path.push(currentPackageInfo);
243
243
 
244
244
  queue.push(
245
- ...[
246
- ...inRepoAddons,
247
- ...Object.values(dependencyPackages),
248
- ...Object.values(devDependencyPackages),
249
- ].map((pkgInfo) => ({ pkgInfo, path: [...path] }))
245
+ ...[...inRepoAddons, ...Object.values(dependencyPackages), ...Object.values(devDependencyPackages)].map(
246
+ (pkgInfo) => ({ pkgInfo, path: [...path] })
247
+ )
250
248
  );
251
249
  }
252
250
  }
@@ -234,9 +234,8 @@ class PerBundleAddonCache {
234
234
  return bundleHost;
235
235
  }
236
236
 
237
- let { hostPackageInfo, hostAndAncestorBundledPackageInfos } = this.project.hostInfoCache.getHostAddonInfo(
238
- bundleHost
239
- );
237
+ let { hostPackageInfo, hostAndAncestorBundledPackageInfos } =
238
+ this.project.hostInfoCache.getHostAddonInfo(bundleHost);
240
239
 
241
240
  if (!hostAndAncestorBundledPackageInfos.has(addonPkgInfo)) {
242
241
  return bundleHost;
@@ -187,7 +187,7 @@ class NpmTask extends Task {
187
187
  logger.info('yarn.lock not found');
188
188
  }
189
189
 
190
- if (this.hasPNPMLock()) {
190
+ if (await this.hasPNPMLock()) {
191
191
  logger.info('pnpm-lock.yaml found -> trying pnpm');
192
192
  try {
193
193
  let result = await this.checkPNPM();
@@ -1,6 +1,6 @@
1
- /*
1
+ /*
2
2
 
3
- This utility processes the argument passed with the `lang` option
3
+ This utility processes the argument passed with the `lang` option
4
4
  in ember-cli, i.e. `ember (new||init||addon) app-name --lang=langArg`
5
5
 
6
6
  Execution Context (usage, input, output, error handling, etc.):
@@ -35,11 +35,11 @@ Warning Messages (if necessary):
35
35
 
36
36
  'use strict';
37
37
 
38
- const getLangCodeInfo = require('is-language-code');
38
+ const { isLangCode } = require('is-language-code');
39
39
 
40
40
  // Primary language code validation function (boolean)
41
41
  function isValidLangCode(langArg) {
42
- return getLangCodeInfo(langArg).res;
42
+ return isLangCode(langArg).res;
43
43
  }
44
44
 
45
45
  // Generates the result to pass back to `init`
@@ -48,29 +48,29 @@ function getResult(langArg) {
48
48
  }
49
49
 
50
50
  /*
51
- Misuse case: attempt to set application programming language via `lang`
51
+ Misuse case: attempt to set application programming language via `lang`
52
52
  AND
53
53
  Edge case: valid language code AND a common programming language abbreviation
54
54
  -------------------------------------------------------------------------------
55
- It is possible that a user might mis-interpret the type of `language` that is
56
- specified by the `--lang` flag. One notable potential `misuse case` is one in
57
- which the user thinks `--lang` specifies the application's programming
58
- language. For example, the user might call `ember new my-app --lang=typescript`
59
- expecting to achieve an effect similar to the one provided by the
55
+ It is possible that a user might mis-interpret the type of `language` that is
56
+ specified by the `--lang` flag. One notable potential `misuse case` is one in
57
+ which the user thinks `--lang` specifies the application's programming
58
+ language. For example, the user might call `ember new my-app --lang=typescript`
59
+ expecting to achieve an effect similar to the one provided by the
60
60
  `ember-cli-typescript` addon.
61
61
 
62
- This misuse case is handled by checking the input `langArg` against an Array
63
- containing notable programming language-related values: language names
64
- (e.g. `JavaScript`), abbreviations (e.g. `js`), file extensions (e.g. `.js`),
65
- or versions (e.g. `ES6`), etc. Specifically, if `langArg` is found within this
66
- reference list, a WARNING message that describes correct `--lang` usage will
67
- be emitted. The `lang` attribute will not be assigned in `index.html`, and the
62
+ This misuse case is handled by checking the input `langArg` against an Array
63
+ containing notable programming language-related values: language names
64
+ (e.g. `JavaScript`), abbreviations (e.g. `js`), file extensions (e.g. `.js`),
65
+ or versions (e.g. `ES6`), etc. Specifically, if `langArg` is found within this
66
+ reference list, a WARNING message that describes correct `--lang` usage will
67
+ be emitted. The `lang` attribute will not be assigned in `index.html`, and the
68
68
  user will be notified with a corresponding STATUS message.
69
69
 
70
70
  There are several edge cases (marked) where `langArg` is both a commonly-used
71
- abbreviation for a programming language AND a valid language code. The behavior
72
- for these cases is to assume the user has used `--lang` correctly and set the
73
- `lang` attribute to the valid code in `index.html`. To cover for potential
71
+ abbreviation for a programming language AND a valid language code. The behavior
72
+ for these cases is to assume the user has used `--lang` correctly and set the
73
+ `lang` attribute to the valid code in `index.html`. To cover for potential
74
74
  misuage, several helpful messages will also be emitted:
75
75
  - `ts` is a valid language code AND a common programming language abbreviation
76
76
  - the `lang` attribute will be set to `ts` in the application
@@ -141,44 +141,44 @@ function isValidCodeAndProg(langArg) {
141
141
  return isValidLangCode(langArg) && isProgLang(langArg);
142
142
  }
143
143
 
144
- /*
144
+ /*
145
145
  Misuse case: `--lang` called without `langArg` (NB: parser bug workaround)
146
146
  -------------------------------------------------------------------------------
147
- This is a workaround for handling an existing bug in the ember-cli parser
148
- where the `--lang` option is specified in the command without a corresponding
149
- value for `langArg`.
147
+ This is a workaround for handling an existing bug in the ember-cli parser
148
+ where the `--lang` option is specified in the command without a corresponding
149
+ value for `langArg`.
150
150
 
151
- As examples, the parser behavior would likely affect the following usages:
151
+ As examples, the parser behavior would likely affect the following usages:
152
152
  1. `ember new app-name --lang --skip-npm
153
153
  2. `ember new app-name --lang`
154
154
 
155
- In this context, the unintended parser behavior is that `langArg` will be
156
- assingned to the String that immediately follows `--lang` in the command. If
157
- `--lang` is the last explicitly defined part of the command (as in the second
158
- example above), the first of any any `hidden` options pushed onto the command
159
- after the initial parse (e.g. `--disable-analytics`, `--no-watcher`) will be
160
- used when assigning `langArg`.
155
+ In this context, the unintended parser behavior is that `langArg` will be
156
+ assingned to the String that immediately follows `--lang` in the command. If
157
+ `--lang` is the last explicitly defined part of the command (as in the second
158
+ example above), the first of any any `hidden` options pushed onto the command
159
+ after the initial parse (e.g. `--disable-analytics`, `--no-watcher`) will be
160
+ used when assigning `langArg`.
161
161
 
162
162
  In the above examples, `langArg` would likely be assigned as follows:
163
163
  1. `ember new app-name --lang --skip-npm => `langArg='--skip-npm'`
164
164
  2. `ember new app-name --lang` => `langArg='--disable-analytics'`
165
165
 
166
- The workaround impelemented herein is to check whether or not the value of
167
- `langArg` starts with a hyphen. The rationale for this approach is based on
166
+ The workaround impelemented herein is to check whether or not the value of
167
+ `langArg` starts with a hyphen. The rationale for this approach is based on
168
168
  the following underlying assumptions:
169
169
  - ALL CLI options start with (at least one) hyphen
170
170
  - NO valid language codes start with a hyphen
171
171
 
172
- If the leading hyphen is detected, the current behavior is to assume `--lang`
173
- was declared without a corresponding specification. A WARNING message that
174
- describes correct `--lang` usage will be emitted. The `lang` attribute will not
175
- be assigned in `index.html`, and the user will be notified with a corresponding
172
+ If the leading hyphen is detected, the current behavior is to assume `--lang`
173
+ was declared without a corresponding specification. A WARNING message that
174
+ describes correct `--lang` usage will be emitted. The `lang` attribute will not
175
+ be assigned in `index.html`, and the user will be notified with a corresponding
176
176
  STATUS message. Execution will not be halted.
177
177
 
178
- Other complications related to this parser behavior are considered out-of-scope
179
- and not handled here. In the first example above, this workaround would ensure
180
- that `lang` is not assigned to `--skip-npm`, but it would not guarantee that
181
- `--skip-npm` is correctly processed as a command option. That is, `npm` may or
178
+ Other complications related to this parser behavior are considered out-of-scope
179
+ and not handled here. In the first example above, this workaround would ensure
180
+ that `lang` is not assigned to `--skip-npm`, but it would not guarantee that
181
+ `--skip-npm` is correctly processed as a command option. That is, `npm` may or
182
182
  may not get skipped during execution.
183
183
  */
184
184
 
@@ -194,12 +194,12 @@ const MSG_HEAD = `An issue with the \`--lang\` flag returned the following messa
194
194
 
195
195
  // Message context from language code validation (valid: null, invalid: reason)
196
196
  function getLangCodeMsg(langArg) {
197
- return getLangCodeInfo(langArg).message;
197
+ return isLangCode(langArg).message;
198
198
  }
199
199
 
200
200
  // Edge case: valid language code AND a common programming language abbreviation
201
201
  function getValidAndProgMsg(langArg) {
202
- return `The \`--lang\` flag has been used with argument \`${langArg}\`,
202
+ return `The \`--lang\` flag has been used with argument \`${langArg}\`,
203
203
  which is BOTH a valid language code AND an abbreviation for a programming language.
204
204
  ${getProgLangMsg(langArg)}`;
205
205
  }
@@ -218,15 +218,15 @@ function getCliMsg() {
218
218
 
219
219
  // 3. `STATUS` message: report if `lang` will be set in `index.html`
220
220
  function getStatusMsg(langArg, willSet) {
221
- return `The human language of the application will ${willSet ? `be set to ${langArg}` : `NOT be set`} in
221
+ return `The human language of the application will ${willSet ? `be set to ${langArg}` : `NOT be set`} in
222
222
  the \`<html>\` element's \`lang\` attribute in \`index.html\`.`;
223
223
  }
224
224
 
225
225
  // 4. `HELP` message: template for all `--lang`-related warnings emitted
226
- const MSG_HELP = `If this was not your intention, you may edit the \`<html>\` element's
226
+ const MSG_HELP = `If this was not your intention, you may edit the \`<html>\` element's
227
227
  \`lang\` attribute in \`index.html\` manually after the process is complete.
228
228
  Information about using the \`--lang\` flag:
229
- The \`--lang\` flag sets the base human language of an app or test app:
229
+ The \`--lang\` flag sets the base human language of an app or test app:
230
230
  - \`app/index.html\` (app)
231
231
  - \`tests/dummy/app/index.html\` (addon test app)
232
232
  If used, the lang option must specfify a valid language code.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-cli",
3
- "version": "4.0.0",
3
+ "version": "4.1.1",
4
4
  "description": "Command line tool for developing ambitious ember.js apps",
5
5
  "keywords": [
6
6
  "app",
@@ -37,13 +37,13 @@
37
37
  "test:slow": "node --unhandled-rejections=strict tests/runner slow"
38
38
  },
39
39
  "dependencies": {
40
- "@babel/core": "^7.13.8",
40
+ "@babel/core": "^7.16.0",
41
41
  "@babel/plugin-transform-modules-amd": "^7.12.1",
42
42
  "amd-name-resolver": "^1.3.1",
43
43
  "babel-plugin-module-resolver": "^4.1.0",
44
44
  "bower-config": "^1.4.3",
45
45
  "bower-endpoint-parser": "0.2.2",
46
- "broccoli": "^3.5.1",
46
+ "broccoli": "^3.5.2",
47
47
  "broccoli-amd-funnel": "^2.0.1",
48
48
  "broccoli-babel-transpiler": "^7.8.0",
49
49
  "broccoli-builder": "^0.18.14",
@@ -51,17 +51,17 @@
51
51
  "broccoli-config-loader": "^1.0.1",
52
52
  "broccoli-config-replace": "^1.1.2",
53
53
  "broccoli-debug": "^0.6.5",
54
- "broccoli-funnel": "^3.0.5",
54
+ "broccoli-funnel": "^3.0.8",
55
55
  "broccoli-funnel-reducer": "^1.0.0",
56
56
  "broccoli-merge-trees": "^3.0.2",
57
57
  "broccoli-middleware": "^2.1.1",
58
58
  "broccoli-slow-trees": "^3.1.0",
59
- "broccoli-source": "^3.0.0",
59
+ "broccoli-source": "^3.0.1",
60
60
  "broccoli-stew": "^3.0.0",
61
61
  "calculate-cache-key-for-tree": "^2.0.0",
62
62
  "capture-exit": "^2.0.0",
63
63
  "chalk": "^4.1.0",
64
- "ci-info": "^2.0.0",
64
+ "ci-info": "^3.3.0",
65
65
  "clean-base-url": "^1.0.0",
66
66
  "compression": "^1.7.4",
67
67
  "configstore": "^5.0.1",
@@ -76,10 +76,10 @@
76
76
  "ember-cli-string-utils": "^1.1.0",
77
77
  "ember-source-channel-url": "^3.0.0",
78
78
  "ensure-posix-path": "^1.1.1",
79
- "execa": "^5.0.0",
79
+ "execa": "^5.1.1",
80
80
  "exit": "^0.1.2",
81
81
  "express": "^4.17.1",
82
- "filesize": "^6.1.0",
82
+ "filesize": "^8.0.6",
83
83
  "find-up": "^5.0.0",
84
84
  "find-yarn-workspace-root": "^2.0.0",
85
85
  "fixturify-project": "^2.1.1",
@@ -87,16 +87,16 @@
87
87
  "fs-tree-diff": "^2.0.1",
88
88
  "get-caller-file": "^2.0.5",
89
89
  "git-repo-info": "^2.1.1",
90
- "glob": "^7.1.6",
90
+ "glob": "^7.2.0",
91
91
  "heimdalljs": "^0.2.6",
92
- "heimdalljs-fs-monitor": "^1.1.0",
92
+ "heimdalljs-fs-monitor": "^1.1.1",
93
93
  "heimdalljs-graph": "^1.0.0",
94
94
  "heimdalljs-logger": "^0.1.10",
95
95
  "http-proxy": "^1.18.1",
96
- "inflection": "^1.12.0",
96
+ "inflection": "^1.13.1",
97
97
  "is-git-url": "^1.0.0",
98
- "is-language-code": "^2.0.0",
99
- "isbinaryfile": "^4.0.6",
98
+ "is-language-code": "^3.1.0",
99
+ "isbinaryfile": "^4.0.8",
100
100
  "js-yaml": "^3.14.0",
101
101
  "json-stable-stringify": "^1.0.1",
102
102
  "leek": "0.0.24",
@@ -106,7 +106,7 @@
106
106
  "minimatch": "^3.0.4",
107
107
  "morgan": "^1.10.0",
108
108
  "nopt": "^3.0.6",
109
- "npm-package-arg": "^8.1.1",
109
+ "npm-package-arg": "^8.1.5",
110
110
  "p-defer": "^3.0.0",
111
111
  "portfinder": "^1.0.28",
112
112
  "promise-map-series": "^0.3.0",
@@ -114,7 +114,7 @@
114
114
  "quick-temp": "^0.1.8",
115
115
  "resolve": "^1.20.0",
116
116
  "resolve-package-path": "^3.1.0",
117
- "sane": "^4.1.0",
117
+ "sane": "^5.0.1",
118
118
  "semver": "^7.3.4",
119
119
  "silent-error": "^1.1.1",
120
120
  "sort-package-json": "^1.49.0",
@@ -131,33 +131,33 @@
131
131
  },
132
132
  "devDependencies": {
133
133
  "@ember/edition-utils": "^1.2.0",
134
- "@octokit/rest": "^18.0.15",
134
+ "@octokit/rest": "^18.12.0",
135
135
  "broccoli-plugin": "^4.0.3",
136
136
  "broccoli-test-helper": "^2.0.0",
137
137
  "chai": "^4.3.4",
138
138
  "chai-as-promised": "^7.1.1",
139
139
  "chai-files": "^1.4.0",
140
+ "chai-jest-snapshot": "^2.0.0",
140
141
  "ember-cli-blueprint-test-helpers": "^0.19.2",
141
142
  "ember-cli-internal-test-helpers": "^0.9.1",
142
143
  "eslint": "^7.11.0",
143
144
  "eslint-config-prettier": "^7.2.0",
144
- "eslint-plugin-chai-expect": "^2.2.0",
145
- "eslint-plugin-mocha": "^8.1.0",
145
+ "eslint-plugin-chai-expect": "^3.0.0",
146
+ "eslint-plugin-mocha": "^9.0.0",
146
147
  "eslint-plugin-node": "^11.1.0",
147
148
  "eslint-plugin-prettier": "^3.3.1",
148
149
  "fixturify": "^2.1.0",
149
- "is-language-code": "^2.0.0",
150
- "jsdom": "^16.4.0",
150
+ "jsdom": "^19.0.0",
151
151
  "latest-version": "^5.1.0",
152
152
  "mocha": "^8.3.2",
153
- "nock": "^13.0.5",
153
+ "nock": "^13.2.1",
154
154
  "nyc": "^15.1.0",
155
- "prettier": "2.2.1",
156
- "release-it": "^14.4.1",
155
+ "prettier": "2.5.1",
156
+ "release-it": "^14.11.6",
157
157
  "rimraf": "^3.0.2",
158
158
  "strip-ansi": "^6.0.0",
159
- "supertest": "^6.1.3",
160
- "testdouble": "^3.16.1",
159
+ "supertest": "^6.1.6",
160
+ "testdouble": "^3.16.3",
161
161
  "tmp": "^0.2.1",
162
162
  "websocket": "^1.0.32",
163
163
  "which": "2.0.2",
@@ -41,7 +41,7 @@ class MockProject extends Project {
41
41
  return (
42
42
  this._config || {
43
43
  baseURL: '/',
44
- locationType: 'auto',
44
+ locationType: 'history',
45
45
  }
46
46
  );
47
47
  }
@@ -1,12 +0,0 @@
1
- Thank you for taking the time to open an issue!
2
-
3
- For bug reports please include the following section in your issue details.
4
- If you include instructions on how to reproduce the bug or a failing test case
5
- it will make it easier for us to track down the issue you're having.
6
-
7
- ---
8
-
9
- Output from `ember version --verbose && npm --version && yarn --version`:
10
- ```
11
- [Replace this line with the output.]
12
- ```
@@ -1,15 +0,0 @@
1
- version: 2
2
- updates:
3
- - package-ecosystem: npm
4
- directory: "/"
5
- schedule:
6
- interval: monthly
7
- time: "03:00"
8
- open-pull-requests-limit: 10
9
- versioning-strategy: increase
10
- - package-ecosystem: github-actions
11
- directory: "/"
12
- schedule:
13
- interval: monthly
14
- time: "03:00"
15
- open-pull-requests-limit: 10
@@ -1,31 +0,0 @@
1
- name: Code Coverage
2
-
3
- on:
4
- push:
5
- branches:
6
- - master
7
-
8
- jobs:
9
- coverage:
10
- runs-on: ubuntu-latest
11
-
12
- steps:
13
- - uses: actions/checkout@v1
14
- - uses: actions/setup-node@v2.1.5
15
- with:
16
- node-version: 12.x
17
-
18
- - run: yarn install --frozen-lockfile --non-interactive
19
-
20
- - name: Test && Report to Code Climate
21
- uses: paambaati/codeclimate-action@v2.7.5
22
- env:
23
- CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
24
- with:
25
- coverageCommand: yarn test:cover
26
- coverageLocations: "coverage/lcov.info:lcov"
27
-
28
- - name: Coveralls
29
- uses: coverallsapp/github-action@master
30
- with:
31
- github-token: ${{ secrets.GITHUB_TOKEN }}