Repository: ember-cli/ember-cli
Pull request #10633 (2025-02-03 09:05:39)

[BUGFIX release] Update all EmberData deps to stable
It seems the automation script can't handle the new `@ember-data/*` packages yet, so they weren't converted to stable versions before the release.

This would result it a mix of stable and beta deps in the generated package.json file when the `--typescript` flag is used.

Edit: It seems the issue is EmberData is no longer guaranteed to create a new stable release from the beta release we use in the blueprints, before ember-cli releases. As a result, the beta versions aren't switched to a stable version since the `latest-version` package doesn't "downgrade" a minor version: `~5.4.0-beta.12` wouldn't go back to the `~5.3.*` stable since that would violate the semver version.

The ember-data package would have the same problem, but the semver version is overruled and replaced by the `stable` npm tag in that flow. 

ef4: This looks good, we just need to resolve conflicts.

Patch:
diff --git a/blueprints/app/files/package.json b/blueprints/app/files/package.json
index 3acf3131d..9e9aa7324 100644
--- a/blueprints/app/files/package.json
+++ b/blueprints/app/files/package.json
@@ -29,16 +29,16 @@
     "@babel/core": "^7.26.7<% if (!typescript) { %>",
     "@babel/eslint-parser": "^7.26.5",
     "@babel/plugin-proposal-decorators": "^7.25.9<% } %><% if (typescript) { %>",
-    "@ember-data/adapter": "~5.4.0-beta.14",
-    "@ember-data/graph": "~5.4.0-beta.14",
-    "@ember-data/json-api": "~5.4.0-beta.14",
-    "@ember-data/legacy-compat": "~5.4.0-beta.14",
-    "@ember-data/model": "~5.4.0-beta.14",
-    "@ember-data/request": "~5.4.0-beta.14",
-    "@ember-data/request-utils": "~5.4.0-beta.14",
-    "@ember-data/serializer": "~5.4.0-beta.14",
-    "@ember-data/store": "~5.4.0-beta.14",
-    "@ember-data/tracking": "~5.4.0-beta.14<% } %>",
+    "@ember-data/adapter": "~5.3.10",
+    "@ember-data/graph": "~5.3.10",
+    "@ember-data/json-api": "~5.3.10",
+    "@ember-data/legacy-compat": "~5.3.10",
+    "@ember-data/model": "~5.3.10",
+    "@ember-data/request": "~5.3.10",
+    "@ember-data/request-utils": "~5.3.10",
+    "@ember-data/serializer": "~5.3.10",
+    "@ember-data/store": "~5.3.10",
+    "@ember-data/tracking": "~5.3.10<% } %>",
     "@ember/optional-features": "^2.2.0",
     "@ember/test-helpers": "^4.0.5<% if (embroider) { %>",
     "@embroider/compat": "^3.8.0",
@@ -54,7 +54,7 @@
     "@types/eslint__js": "^8.42.3",
     "@types/qunit": "^2.19.12",
     "@types/rsvp": "^4.0.9",
-    "@warp-drive/core-types": "~5.4.0-beta.14<% } %>",
+    "@warp-drive/core-types": "~0.0.1<% } %>",
     "broccoli-asset-rev": "^3.0.0",
     "concurrently": "^9.1.2",
     "ember-auto-import": "^2.10.0",


Test patch:
diff --git a/tests/fixtures/app/typescript-embroider/package.json b/tests/fixtures/app/typescript-embroider/package.json
index 51f58ee15..3787202e1 100644
--- a/tests/fixtures/app/typescript-embroider/package.json
+++ b/tests/fixtures/app/typescript-embroider/package.json
@@ -27,16 +27,16 @@
   },
   "devDependencies": {
     "@babel/core": "^7.26.7",
-    "@ember-data/adapter": "~5.4.0-beta.14",
-    "@ember-data/graph": "~5.4.0-beta.14",
-    "@ember-data/json-api": "~5.4.0-beta.14",
-    "@ember-data/legacy-compat": "~5.4.0-beta.14",
-    "@ember-data/model": "~5.4.0-beta.14",
-    "@ember-data/request": "~5.4.0-beta.14",
-    "@ember-data/request-utils": "~5.4.0-beta.14",
-    "@ember-data/serializer": "~5.4.0-beta.14",
-    "@ember-data/store": "~5.4.0-beta.14",
-    "@ember-data/tracking": "~5.4.0-beta.14",
+    "@ember-data/adapter": "~5.3.10",
+    "@ember-data/graph": "~5.3.10",
+    "@ember-data/json-api": "~5.3.10",
+    "@ember-data/legacy-compat": "~5.3.10",
+    "@ember-data/model": "~5.3.10",
+    "@ember-data/request": "~5.3.10",
+    "@ember-data/request-utils": "~5.3.10",
+    "@ember-data/serializer": "~5.3.10",
+    "@ember-data/store": "~5.3.10",
+    "@ember-data/tracking": "~5.3.10",
     "@ember/optional-features": "^2.2.0",
     "@ember/test-helpers": "^4.0.5",
     "@embroider/compat": "^3.8.0",
@@ -52,7 +52,7 @@
     "@types/eslint__js": "^8.42.3",
     "@types/qunit": "^2.19.12",
     "@types/rsvp": "^4.0.9",
-    "@warp-drive/core-types": "~5.4.0-beta.14",
+    "@warp-drive/core-types": "~0.0.1",
     "broccoli-asset-rev": "^3.0.0",
     "concurrently": "^9.1.2",
     "ember-auto-import": "^2.10.0",
diff --git a/tests/fixtures/app/typescript/package.json b/tests/fixtures/app/typescript/package.json
index 11909a4c8..57b3b0567 100644
--- a/tests/fixtures/app/typescript/package.json
+++ b/tests/fixtures/app/typescript/package.json
@@ -27,16 +27,16 @@
   },
   "devDependencies": {
     "@babel/core": "^7.26.7",
-    "@ember-data/adapter": "~5.4.0-beta.14",
-    "@ember-data/graph": "~5.4.0-beta.14",
-    "@ember-data/json-api": "~5.4.0-beta.14",
-    "@ember-data/legacy-compat": "~5.4.0-beta.14",
-    "@ember-data/model": "~5.4.0-beta.14",
-    "@ember-data/request": "~5.4.0-beta.14",
-    "@ember-data/request-utils": "~5.4.0-beta.14",
-    "@ember-data/serializer": "~5.4.0-beta.14",
-    "@ember-data/store": "~5.4.0-beta.14",
-    "@ember-data/tracking": "~5.4.0-beta.14",
+    "@ember-data/adapter": "~5.3.10",
+    "@ember-data/graph": "~5.3.10",
+    "@ember-data/json-api": "~5.3.10",
+    "@ember-data/legacy-compat": "~5.3.10",
+    "@ember-data/model": "~5.3.10",
+    "@ember-data/request": "~5.3.10",
+    "@ember-data/request-utils": "~5.3.10",
+    "@ember-data/serializer": "~5.3.10",
+    "@ember-data/store": "~5.3.10",
+    "@ember-data/tracking": "~5.3.10",
     "@ember/optional-features": "^2.2.0",
     "@ember/test-helpers": "^4.0.5",
     "@eslint/js": "^9.19.0",
@@ -49,7 +49,7 @@
     "@types/eslint__js": "^8.42.3",
     "@types/qunit": "^2.19.12",
     "@types/rsvp": "^4.0.9",
-    "@warp-drive/core-types": "~5.4.0-beta.14",
+    "@warp-drive/core-types": "~0.0.1",
     "broccoli-asset-rev": "^3.0.0",
     "concurrently": "^9.1.2",
     "ember-auto-import": "^2.10.0",