Skip to content

feat(release)!: switch defaults for fixed release group tag pattern, preserve matching dependency ranges and strictPreid#32878

Merged
Coly010 merged 2 commits into
masterfrom
release/for-22
Oct 6, 2025
Merged

feat(release)!: switch defaults for fixed release group tag pattern, preserve matching dependency ranges and strictPreid#32878
Coly010 merged 2 commits into
masterfrom
release/for-22

Conversation

@Coly010

@Coly010 Coly010 commented Sep 29, 2025

Copy link
Copy Markdown
Contributor

Behaviour changes introduced:

  • preserveMatchingDependencyRanges set to true by default
  • releaseTagPatternStrictPreid set to true by default
  • releaseTagPattern for fixed release groups set to {releaseGroupName}-v{version}

BREAKING CHANGE

@Coly010 Coly010 requested review from a team as code owners September 29, 2025 13:18
@Coly010 Coly010 self-assigned this Sep 29, 2025
@Coly010 Coly010 requested a review from AgentEnder September 29, 2025 13:18
@vercel

vercel Bot commented Sep 29, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Oct 6, 2025 3:17pm

@nx-cloud

nx-cloud Bot commented Sep 29, 2025

Copy link
Copy Markdown
Contributor

View your CI Pipeline Execution ↗ for commit 2882c44

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ✅ Succeeded 9m 3s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 2m 14s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 3s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 3s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗
nx documentation ✅ Succeeded 1m 18s View ↗

☁️ Nx Cloud last updated this comment at 2025-10-06 14:58:53 UTC

nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

@netlify

netlify Bot commented Sep 30, 2025

Copy link
Copy Markdown

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit 2882c44
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/68e3d59778c0e00008b1bb34
😎 Deploy Preview https://deploy-preview-32878--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

@nx-cloud nx-cloud Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nx Cloud is proposing a fix for your failed CI:

We've updated the e2e tests to reflect the new default behaviors introduced in this breaking change. The tests now correctly expect: (1) fixed release group tags to use the pattern {releaseGroupName}-v{version}, (2) strict preid matching by default when resolving git tags, and (3) no CHANGELOG.md files in publish tarballs since they're not created by the npm-package generator. These changes ensure the test suite accurately validates the updated release configuration defaults.

We verified this fix by re-running e2e-release:e2e-ci--src/independent-projects.test.ts.

Suggested Fix changes
diff --git a/e2e/release/src/independent-projects.test.ts b/e2e/release/src/independent-projects.test.ts
index 0e43b666b2..ac0d72bc58 100644
--- a/e2e/release/src/independent-projects.test.ts
+++ b/e2e/release/src/independent-projects.test.ts
@@ -390,7 +390,7 @@ describe('nx release - independent projects', () => {
           Tagging the current commit in git with the following command:
           git tag --annotate {project-name}@999.9.9-version-git-operations-test.3 --message {project-name}@999.9.9-version-git-operations-test.3
           Tagging the current commit in git with the following command:
-          git tag --annotate fixed-v999.9.9-version-git-operations-test.3 --message v999.9.9-version-git-operations-test.3
+          git tag --annotate fixed-v999.9.9-version-git-operations-test.3 --message fixed-v999.9.9-version-git-operations-test.3
 
         `);
 
@@ -664,7 +664,6 @@ describe('nx release - independent projects', () => {
                   📦  @proj/{project-name}@X.X.X-dry-run
                   === Tarball Contents ===
 
-                  XXXB CHANGELOG.md
                   XXB  index.js
                   XXXB package.json
                   XXB  project.json
@@ -676,7 +675,7 @@ describe('nx release - independent projects', () => {
                   unpacked size: XXXB
                   shasum:        {SHASUM}
                   integrity: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-                  total files:   4
+                  total files:   3
 
                   Would publish to http://localhost:4873 with tag "latest", but [dry-run] was set
 
@@ -713,7 +712,6 @@ describe('nx release - independent projects', () => {
                   📦  @proj/{project-name}@X.X.X-dry-run
                   === Tarball Contents ===
 
-                  XXXB CHANGELOG.md
                   XXB  index.js
                   XXXB package.json
                   XXB  project.json
@@ -725,7 +723,7 @@ describe('nx release - independent projects', () => {
                   unpacked size: XXXB
                   shasum:        {SHASUM}
                   integrity: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-                  total files:   4
+                  total files:   3
 
                   Would publish to http://localhost:4873 with tag "latest", but [dry-run] was set
 
@@ -750,7 +748,6 @@ describe('nx release - independent projects', () => {
                   📦  @proj/{project-name}@X.X.X-dry-run
                   === Tarball Contents ===
 
-                  XXXB CHANGELOG.md
                   XXB  index.js
                   XXXB package.json
                   XXB  project.json
@@ -762,7 +759,7 @@ describe('nx release - independent projects', () => {
                   unpacked size: XXXB
                   shasum:        {SHASUM}
                   integrity: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-                  total files:   4
+                  total files:   3
 
                   Would publish to http://localhost:4873 with tag "latest", but [dry-run] was set
 
@@ -795,7 +792,6 @@ describe('nx release - independent projects', () => {
                   📦  @proj/{project-name}@X.X.X-dry-run
                   === Tarball Contents ===
 
-                  XXXB CHANGELOG.md
                   XXB  index.js
                   XXXB package.json
                   XXB  project.json
@@ -807,7 +803,7 @@ describe('nx release - independent projects', () => {
                   unpacked size: XXXB
                   shasum:        {SHASUM}
                   integrity: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-                  total files:   4
+                  total files:   3
 
                   Would publish to http://localhost:4873 with tag "latest", but [dry-run] was set
 
@@ -817,7 +813,6 @@ describe('nx release - independent projects', () => {
                   📦  @proj/{project-name}@X.X.X-dry-run
                   === Tarball Contents ===
 
-                  XXXB CHANGELOG.md
                   XXB  index.js
                   XXXB package.json
                   XXB  project.json
@@ -829,7 +824,7 @@ describe('nx release - independent projects', () => {
                   unpacked size: XXXB
                   shasum:        {SHASUM}
                   integrity: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-                  total files:   4
+                  total files:   3
 
                   Would publish to http://localhost:4873 with tag "latest", but [dry-run] was set
 
@@ -859,7 +854,6 @@ describe('nx release - independent projects', () => {
                   📦  @proj/{project-name}@X.X.X-dry-run
                   === Tarball Contents ===
 
-                  XXXB CHANGELOG.md
                   XXB  index.js
                   XXXB package.json
                   XXB  project.json
@@ -871,7 +865,7 @@ describe('nx release - independent projects', () => {
                   unpacked size: XXXB
                   shasum:        {SHASUM}
                   integrity: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-                  total files:   4
+                  total files:   3
 
                   Would publish to http://localhost:4873 with tag "latest", but [dry-run] was set
 
diff --git a/e2e/release/src/release-tag-pattern.test.ts b/e2e/release/src/release-tag-pattern.test.ts
index 16c458a833..a7544ac0f0 100644
--- a/e2e/release/src/release-tag-pattern.test.ts
+++ b/e2e/release/src/release-tag-pattern.test.ts
@@ -61,6 +61,7 @@ describe('nx release releaseTagPattern', () => {
     updateJson<NxJsonConfiguration>('nx.json', (nxJson) => {
       nxJson.release = {
         releaseTagPattern: 'v{version}',
+        releaseTagPatternStrictPreid: false,
         version: {
           conventionalCommits: true,
         },
diff --git a/e2e/release/src/source-tag-selection.test.ts b/e2e/release/src/source-tag-selection.test.ts
index 2734cbd9df..ccde286eb3 100644
--- a/e2e/release/src/source-tag-selection.test.ts
+++ b/e2e/release/src/source-tag-selection.test.ts
@@ -71,7 +71,7 @@ describe('nx release source tag selection', () => {
     });
 
     describe('when no preid is specified', () => {
-      it('uses the latest tag as source', async () => {
+      it('uses the latest stable tag as source', async () => {
         await runCommandAsync(`git tag -a v1.0.0 -m "v1.0.0"`);
         await runCommandAsync(`git tag -a v2.0.0-beta.1 -m "v2.0.0-beta.1"`);
         await runCommandAsync(`git tag -a v2.0.0 -m "v2.0.0"`);
@@ -82,13 +82,13 @@ describe('nx release source tag selection', () => {
             silenceError: true,
           })
         ).toContain(
-          `Resolved the current version as 3.0.0-beta.1 from git tag "v3.0.0-beta.1"`
+          `Resolved the current version as 2.0.0 from git tag "v2.0.0"`
         );
       });
     });
 
     describe('when a preid is specified', () => {
-      it('uses the latest tag as source', async () => {
+      it('uses the latest stable tag as source', async () => {
         await runCommandAsync(`git tag -a v1.0.0 -m "v1.0.0"`);
         await runCommandAsync(`git tag -a v2.0.0-beta.1 -m "v2.0.0-beta.1"`);
         await runCommandAsync(`git tag -a v2.0.0 -m "v2.0.0"`);
@@ -99,7 +99,7 @@ describe('nx release source tag selection', () => {
             silenceError: true,
           })
         ).toContain(
-          `Resolved the current version as 3.0.0-beta.1 from git tag "v3.0.0-beta.1"`
+          `Resolved the current version as 2.0.0 from git tag "v2.0.0"`
         );
       });
     });
diff --git a/packages/angular-rspack-compiler/package.json b/packages/angular-rspack-compiler/package.json
index 164423cb75..ae02aad3a1 100644
--- a/packages/angular-rspack-compiler/package.json
+++ b/packages/angular-rspack-compiler/package.json
@@ -1,7 +1,7 @@
 {
   "name": "@nx/angular-rspack-compiler",
   "private": false,
-  "version": "0.0.1",
+  "version": "22.0.0",
   "publishConfig": {
     "access": "public"
   },
diff --git a/packages/angular-rspack/package.json b/packages/angular-rspack/package.json
index bd24ec75b0..fc933a089e 100644
--- a/packages/angular-rspack/package.json
+++ b/packages/angular-rspack/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@nx/angular-rspack",
-  "version": "0.0.1",
+  "version": "22.0.0",
   "private": false,
   "publishConfig": {
     "access": "public"
@@ -49,8 +49,8 @@
     "@ampproject/remapping": "2.3.0",
     "@babel/core": "7.28.3",
     "@discoveryjs/json-ext": "0.6.3",
-    "@nx/angular-rspack-compiler": "workspace:*",
-    "@nx/devkit": "workspace:*",
+    "@nx/angular-rspack-compiler": "22.0.0",
+    "@nx/devkit": "22.0.0",
     "ansi-colors": "4.1.3",
     "autoprefixer": "10.4.21",
     "deepmerge": "^4.3.1",

Apply fix via Nx Cloud  Reject fix via Nx Cloud

Nx CloudApply fix locally ↗  Nx CloudView interactive diff ↗


⚙️ An Nx Cloud workspace admin can disable these reviews in workspace settings.

…preserve matching dependency ranges and strictPreid
@Coly010 Coly010 merged commit 975c4c3 into master Oct 6, 2025
19 checks passed
@Coly010 Coly010 deleted the release/for-22 branch October 6, 2025 15:20
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants