Skip to content

fix(release): align VersionDataEntry dependency types with VersionActions to allow null values#35932

Open
Tusharkhadde wants to merge 1 commit into
nrwl:masterfrom
Tusharkhadde:fix/release-versiondata-null-types
Open

fix(release): align VersionDataEntry dependency types with VersionActions to allow null values#35932
Tusharkhadde wants to merge 1 commit into
nrwl:masterfrom
Tusharkhadde:fix/release-versiondata-null-types

Conversation

@Tusharkhadde

Copy link
Copy Markdown

Fixes #35913

Current Behavior

VersionDataEntry.dependentProjects defines dependencyCollection and
rawVersionSpec as string, while VersionActions.readCurrentVersionOfDependency
returns string | null for both fields.

This schema mismatch can cause runtime validation failures when a custom
VersionActions implementation returns null for either property.

Expected Behavior

VersionDataEntry should align with the VersionActions contract, allowing
both dependencyCollection and rawVersionSpec to be string | null.

Changes

  • Updated packages/nx/src/command-line/release/utils/shared.ts
    • Changed dependencyCollection from string to string | null
    • Changed rawVersionSpec from string to string | null

This ensures consistency between VersionDataEntry and the VersionActions
API, preventing schema validation mismatches at runtime.

Closes #35913

@Tusharkhadde Tusharkhadde requested a review from a team as a code owner June 10, 2026 05:27
@netlify

netlify Bot commented Jun 10, 2026

Copy link
Copy Markdown

👷 Deploy request for nx-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit a80ec28

@netlify

netlify Bot commented Jun 10, 2026

Copy link
Copy Markdown

👷 Deploy request for nx-dev pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit a80ec28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VersionActions API does not match VersionDataEntry

1 participant