Repository: ember-cli/ember-cli (js)

Issue:
v6.1 release
When bumping to v6.1 of ember-source, we should also bump @glimmer/component to 2.0.0

See https://github.com/emberjs/ember.js/pull/20751#issuecomment-2444501608

Pull request:
[ENHANCEMENT] Update `@glimmer/component` to v2 in blueprints
Closes #10540.

Patch:
diff --git a/blueprints/app/files/package.json b/blueprints/app/files/package.json
index 838705f0c..d23e7cb77 100644
--- a/blueprints/app/files/package.json
+++ b/blueprints/app/files/package.json
@@ -45,7 +45,7 @@
     "@embroider/core": "^3.4.20",
     "@embroider/webpack": "^4.0.9<% } %>",
     "@eslint/js": "^9.17.0",
-    "@glimmer/component": "^1.1.2",
+    "@glimmer/component": "^2.0.0",
     "@glimmer/tracking": "^1.1.2<% if (typescript) { %>",
     "@glint/environment-ember-loose": "^1.5.0",
     "@glint/environment-ember-template-imports": "^1.5.0",


Test patch:
diff --git a/tests/fixtures/addon/defaults/package.json b/tests/fixtures/addon/defaults/package.json
index 525010b55..1156ab7e2 100644
--- a/tests/fixtures/addon/defaults/package.json
+++ b/tests/fixtures/addon/defaults/package.json
@@ -40,7 +40,7 @@
     "@ember/test-helpers": "^4.0.4",
     "@embroider/test-setup": "^4.0.0",
     "@eslint/js": "^9.17.0",
-    "@glimmer/component": "^1.1.2",
+    "@glimmer/component": "^2.0.0",
     "@glimmer/tracking": "^1.1.2",
     "broccoli-asset-rev": "^3.0.0",
     "concurrently": "^9.1.0",
diff --git a/tests/fixtures/addon/pnpm/package.json b/tests/fixtures/addon/pnpm/package.json
index 4579a8229..04efd9c3a 100644
--- a/tests/fixtures/addon/pnpm/package.json
+++ b/tests/fixtures/addon/pnpm/package.json
@@ -40,7 +40,7 @@
     "@ember/test-helpers": "^4.0.4",
     "@embroider/test-setup": "^4.0.0",
     "@eslint/js": "^9.17.0",
-    "@glimmer/component": "^1.1.2",
+    "@glimmer/component": "^2.0.0",
     "@glimmer/tracking": "^1.1.2",
     "broccoli-asset-rev": "^3.0.0",
     "concurrently": "^9.1.0",
diff --git a/tests/fixtures/addon/typescript/package.json b/tests/fixtures/addon/typescript/package.json
index 39023ea8b..c7bd1373d 100644
--- a/tests/fixtures/addon/typescript/package.json
+++ b/tests/fixtures/addon/typescript/package.json
@@ -56,7 +56,7 @@
     "@ember/test-helpers": "^4.0.4",
     "@embroider/test-setup": "^4.0.0",
     "@eslint/js": "^9.17.0",
-    "@glimmer/component": "^1.1.2",
+    "@glimmer/component": "^2.0.0",
     "@glimmer/tracking": "^1.1.2",
     "@glint/environment-ember-loose": "^1.5.0",
     "@glint/environment-ember-template-imports": "^1.5.0",
diff --git a/tests/fixtures/addon/yarn/package.json b/tests/fixtures/addon/yarn/package.json
index 052f3e1de..797fc044f 100644
--- a/tests/fixtures/addon/yarn/package.json
+++ b/tests/fixtures/addon/yarn/package.json
@@ -40,7 +40,7 @@
     "@ember/test-helpers": "^4.0.4",
     "@embroider/test-setup": "^4.0.0",
     "@eslint/js": "^9.17.0",
-    "@glimmer/component": "^1.1.2",
+    "@glimmer/component": "^2.0.0",
     "@glimmer/tracking": "^1.1.2",
     "broccoli-asset-rev": "^3.0.0",
     "concurrently": "^9.1.0",
diff --git a/tests/fixtures/app/defaults/package.json b/tests/fixtures/app/defaults/package.json
index a1323b6d6..ee03e97b6 100644
--- a/tests/fixtures/app/defaults/package.json
+++ b/tests/fixtures/app/defaults/package.json
@@ -31,7 +31,7 @@
     "@ember/optional-features": "^2.2.0",
     "@ember/test-helpers": "^4.0.4",
     "@eslint/js": "^9.17.0",
-    "@glimmer/component": "^1.1.2",
+    "@glimmer/component": "^2.0.0",
     "@glimmer/tracking": "^1.1.2",
     "broccoli-asset-rev": "^3.0.0",
     "concurrently": "^9.1.0",
diff --git a/tests/fixtures/app/embroider-no-welcome/package.json b/tests/fixtures/app/embroider-no-welcome/package.json
index 4cf98ff6b..fefb7db4d 100644
--- a/tests/fixtures/app/embroider-no-welcome/package.json
+++ b/tests/fixtures/app/embroider-no-welcome/package.json
@@ -34,7 +34,7 @@
     "@embroider/core": "^3.4.20",
     "@embroider/webpack": "^4.0.9",
     "@eslint/js": "^9.17.0",
-    "@glimmer/component": "^1.1.2",
+    "@glimmer/component": "^2.0.0",
     "@glimmer/tracking": "^1.1.2",
     "broccoli-asset-rev": "^3.0.0",
     "concurrently": "^9.1.0",
diff --git a/tests/fixtures/app/embroider-pnpm/package.json b/tests/fixtures/app/embroider-pnpm/package.json
index a74704087..d73cf9939 100644
--- a/tests/fixtures/app/embroider-pnpm/package.json
+++ b/tests/fixtures/app/embroider-pnpm/package.json
@@ -34,7 +34,7 @@
     "@embroider/core": "^3.4.20",
     "@embroider/webpack": "^4.0.9",
     "@eslint/js": "^9.17.0",
-    "@glimmer/component": "^1.1.2",
+    "@glimmer/component": "^2.0.0",
     "@glimmer/tracking": "^1.1.2",
     "broccoli-asset-rev": "^3.0.0",
     "concurrently": "^9.1.0",
diff --git a/tests/fixtures/app/embroider-yarn/package.json b/tests/fixtures/app/embroider-yarn/package.json
index 5d87214b3..ab62c2061 100644
--- a/tests/fixtures/app/embroider-yarn/package.json
+++ b/tests/fixtures/app/embroider-yarn/package.json
@@ -34,7 +34,7 @@
     "@embroider/core": "^3.4.20",
     "@embroider/webpack": "^4.0.9",
     "@eslint/js": "^9.17.0",
-    "@glimmer/component": "^1.1.2",
+    "@glimmer/component": "^2.0.0",
     "@glimmer/tracking": "^1.1.2",
     "broccoli-asset-rev": "^3.0.0",
     "concurrently": "^9.1.0",
diff --git a/tests/fixtures/app/embroider/package.json b/tests/fixtures/app/embroider/package.json
index 6978dd3b3..b94ef80f0 100644
--- a/tests/fixtures/app/embroider/package.json
+++ b/tests/fixtures/app/embroider/package.json
@@ -34,7 +34,7 @@
     "@embroider/core": "^3.4.20",
     "@embroider/webpack": "^4.0.9",
     "@eslint/js": "^9.17.0",
-    "@glimmer/component": "^1.1.2",
+    "@glimmer/component": "^2.0.0",
     "@glimmer/tracking": "^1.1.2",
     "broccoli-asset-rev": "^3.0.0",
     "concurrently": "^9.1.0",
diff --git a/tests/fixtures/app/nested-project/actual-project/package.json b/tests/fixtures/app/nested-project/actual-project/package.json
index 8888a4738..b487ae107 100644
--- a/tests/fixtures/app/nested-project/actual-project/package.json
+++ b/tests/fixtures/app/nested-project/actual-project/package.json
@@ -29,7 +29,7 @@
     "@babel/plugin-proposal-decorators": "^7.20.13",
     "@ember/optional-features": "^2.0.0",
     "@ember/test-helpers": "^2.2.5",
-    "@glimmer/component": "^1.0.4",
+    "@glimmer/component": "^2.0.0",
     "@glimmer/tracking": "^1.0.4",
     "broccoli-asset-rev": "^3.0.0",
     "concurrently": "^7.4.0",
diff --git a/tests/fixtures/app/npm/package.json b/tests/fixtures/app/npm/package.json
index 4aaf3236d..ac19c2540 100644
--- a/tests/fixtures/app/npm/package.json
+++ b/tests/fixtures/app/npm/package.json
@@ -31,7 +31,7 @@
     "@ember/optional-features": "^2.2.0",
     "@ember/test-helpers": "^4.0.4",
     "@eslint/js": "^9.17.0",
-    "@glimmer/component": "^1.1.2",
+    "@glimmer/component": "^2.0.0",
     "@glimmer/tracking": "^1.1.2",
     "broccoli-asset-rev": "^3.0.0",
     "concurrently": "^9.1.0",
diff --git a/tests/fixtures/app/pnpm/package.json b/tests/fixtures/app/pnpm/package.json
index c4d8a0cf0..ebaf418b1 100644
--- a/tests/fixtures/app/pnpm/package.json
+++ b/tests/fixtures/app/pnpm/package.json
@@ -31,7 +31,7 @@
     "@ember/optional-features": "^2.2.0",
     "@ember/test-helpers": "^4.0.4",
     "@eslint/js": "^9.17.0",
-    "@glimmer/component": "^1.1.2",
+    "@glimmer/component": "^2.0.0",
     "@glimmer/tracking": "^1.1.2",
     "broccoli-asset-rev": "^3.0.0",
     "concurrently": "^9.1.0",
diff --git a/tests/fixtures/app/typescript-embroider/package.json b/tests/fixtures/app/typescript-embroider/package.json
index 4a3cc0e69..bf4a3157e 100644
--- a/tests/fixtures/app/typescript-embroider/package.json
+++ b/tests/fixtures/app/typescript-embroider/package.json
@@ -43,7 +43,7 @@
     "@embroider/core": "^3.4.20",
     "@embroider/webpack": "^4.0.9",
     "@eslint/js": "^9.17.0",
-    "@glimmer/component": "^1.1.2",
+    "@glimmer/component": "^2.0.0",
     "@glimmer/tracking": "^1.1.2",
     "@glint/environment-ember-loose": "^1.5.0",
     "@glint/environment-ember-template-imports": "^1.5.0",
diff --git a/tests/fixtures/app/typescript/package.json b/tests/fixtures/app/typescript/package.json
index 592f1d498..1e5e79aa5 100644
--- a/tests/fixtures/app/typescript/package.json
+++ b/tests/fixtures/app/typescript/package.json
@@ -40,7 +40,7 @@
     "@ember/optional-features": "^2.2.0",
     "@ember/test-helpers": "^4.0.4",
     "@eslint/js": "^9.17.0",
-    "@glimmer/component": "^1.1.2",
+    "@glimmer/component": "^2.0.0",
     "@glimmer/tracking": "^1.1.2",
     "@glint/environment-ember-loose": "^1.5.0",
     "@glint/environment-ember-template-imports": "^1.5.0",
diff --git a/tests/fixtures/app/with-blueprint-override-lint-fail/package.json b/tests/fixtures/app/with-blueprint-override-lint-fail/package.json
index 02e618cf7..a69524ccd 100644
--- a/tests/fixtures/app/with-blueprint-override-lint-fail/package.json
+++ b/tests/fixtures/app/with-blueprint-override-lint-fail/package.json
@@ -29,7 +29,7 @@
     "@babel/plugin-proposal-decorators": "^7.20.13",
     "@ember/optional-features": "^2.0.0",
     "@ember/test-helpers": "^2.2.0",
-    "@glimmer/component": "^1.0.3",
+    "@glimmer/component": "^2.0.0",
     "@glimmer/tracking": "^1.0.3",
     "broccoli-asset-rev": "^3.0.0",
     "concurrently": "^7.4.0",
diff --git a/tests/fixtures/app/yarn/package.json b/tests/fixtures/app/yarn/package.json
index 0239cd6ce..97b161f43 100644
--- a/tests/fixtures/app/yarn/package.json
+++ b/tests/fixtures/app/yarn/package.json
@@ -31,7 +31,7 @@
     "@ember/optional-features": "^2.2.0",
     "@ember/test-helpers": "^4.0.4",
     "@eslint/js": "^9.17.0",
-    "@glimmer/component": "^1.1.2",
+    "@glimmer/component": "^2.0.0",
     "@glimmer/tracking": "^1.1.2",
     "broccoli-asset-rev": "^3.0.0",
     "concurrently": "^9.1.0",