Skip to content

Conversation

@Coly010
Copy link
Contributor

@Coly010 Coly010 commented Jan 6, 2026

For 0.x versions, shift semver bump types down to follow the common
convention where breaking changes bump minor, and new features bump patch:

  • major -> minor
  • premajor -> preminor
  • minor -> patch
  • preminor -> prepatch
  • patch -> patch (unchanged)

This ensures that nx release with a breaking change on a 0.x package
(e.g., 0.1.0) bumps to 0.2.0 instead of 1.0.0.

Fixes NXC-3638

@Coly010 Coly010 requested a review from a team as a code owner January 6, 2026 14:05
@Coly010 Coly010 requested a review from FrozenPandaz January 6, 2026 14:05
@Coly010 Coly010 self-assigned this Jan 6, 2026
@vercel
Copy link

vercel bot commented Jan 6, 2026

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

Project Deployment Review Updated (UTC)
nx-dev Ready Ready Preview Jan 7, 2026 4:28pm

@netlify
Copy link

netlify bot commented Jan 6, 2026

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit a21dbc3
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/695e8803233ae3000810ec47
😎 Deploy Preview https://deploy-preview-34031--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
Copy link
Contributor

nx-cloud bot commented Jan 6, 2026

View your CI Pipeline Execution ↗ for commit a21dbc3

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ✅ Succeeded 9m 10s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 2m 46s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 11s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 3s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-01-07 20:36:09 UTC

nx-cloud[bot]

This comment was marked as outdated.

For 0.x versions, shift semver bump types down to follow the common
convention where breaking changes bump minor, and new features bump patch:

- major -> minor
- premajor -> preminor
- minor -> patch
- preminor -> prepatch
- patch -> patch (unchanged)

This ensures that `nx release` with a breaking change on a 0.x package
(e.g., 0.1.0) bumps to 0.2.0 instead of 1.0.0.

Fixes NXC-3638
nx-cloud[bot]

This comment was marked as outdated.

Add a new configuration option `adjustSemverBumpsForZeroMajorVersion` that controls
whether semver bumps are adjusted for 0.x versions. When enabled:
- 'major' bumps become 'minor' bumps for 0.x versions
- 'minor' bumps become 'patch' bumps for 0.x versions
- 'premajor' becomes 'preminor' for 0.x versions
- 'preminor' becomes 'prepatch' for 0.x versions

This option defaults to `false` to maintain backward compatibility with the
existing behavior. A TODO comment marks this for switching to `true` by default
in v23.
nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

Copy link
Contributor

@nx-cloud nx-cloud bot left a comment

Choose a reason for hiding this comment

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

Important

A new CI pipeline execution was requested that may update the conclusion below...

Nx Cloud has identified a possible root cause for your failed CI:

Our PR changes only affect release/semver functionality but the failure occurs in Gradle e2e tests due to external service unavailability. The foojay Java toolchain provisioning service returned "503 Service Temporarily Unavailable" errors, preventing Gradle from downloading Java 21 required for the tests. This external infrastructure failure is unrelated to our code changes and requires waiting for the service to recover.

No code changes were suggested for this issue.

If the issue was transient, you can trigger a rerun:

Rerun CI

Nx Cloud View detailed reasoning on Nx Cloud ↗


🎓 Learn more about Self-Healing CI on nx.dev

@Coly010 Coly010 requested a review from JamesHenry January 8, 2026 09:45
@Coly010 Coly010 merged commit 2cdaffc into master Jan 8, 2026
21 of 22 checks passed
@Coly010 Coly010 deleted the release/special-case-pre-0 branch January 8, 2026 10:23
@github-actions
Copy link
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 Jan 14, 2026
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.

4 participants