Extract shared Node.js types into nodejs-data crate#1328
Merged
colincasey merged 5 commits intomainfrom Apr 7, 2026
Merged
Conversation
runesoerensen
approved these changes
Mar 20, 2026
4 tasks
schneems
reviewed
Mar 20, 2026
3cf1df5 to
462ab09
Compare
This was referenced Mar 27, 2026
a039af8 to
661e2d8
Compare
Malax
approved these changes
Apr 2, 2026
fbc651d to
5fad153
Compare
Contributor
Author
5fad153 to
0aac35d
Compare
This has been addressed now (see #1328 (comment))
Replace local `src/utils/vrs.rs` module with shared types from the `nodejs-data` crate. Renames `Requirement` to `Range` throughout and re-exports `NodejsArtifact`/`NodejsInventory` from the shared crate. Removes the `DefaultNodeRequirement` wrapper since `Range` now captures the original string in its Display impl.
0aac35d to
b40843b
Compare
This was referenced Apr 7, 2026
Merged
heroku-linguist Bot
added a commit
to heroku/cnb-builder-images
that referenced
this pull request
Apr 9, 2026
## heroku/nodejs ### Added - Warn when deploying with end-of-life Node.js versions. ([#1353](heroku/buildpacks-nodejs#1353)) ### Changed - Extracted shared Node.js version types into `nodejs-data` crate. ([#1328](heroku/buildpacks-nodejs#1328))
heroku-linguist Bot
added a commit
to heroku/cnb-builder-images
that referenced
this pull request
Apr 9, 2026
## heroku/nodejs ### Added - Warn when deploying with end-of-life Node.js versions. ([#1353](heroku/buildpacks-nodejs#1353)) ### Changed - Extracted shared Node.js version types into `nodejs-data` crate. ([#1328](heroku/buildpacks-nodejs#1328)) Co-authored-by: heroku-linguist[bot] <136119646+heroku-linguist[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
crates/nodejs-datawith sharedVersion,Range,NodejsArtifact, andNodejsInventorytypessrc/utils/vrs.rsto usenodejs-datanodejs-datatypesnode-semverdependency from both CNB and xtask (now transitive vianodejs-data)Requirement→Range)Test plan
cargo clippy --all-targets --locked -- --deny warningspassescargo testpassesmainlast updated snapshots so there is one snapshot change but only for version information)W-21451605