Skip to content

chore(renovate): declare Node 22.22.1 constraint#103

Merged
nvignola merged 1 commit into
mainfrom
nvignola/renovate-node-engine-constraint
May 13, 2026
Merged

chore(renovate): declare Node 22.22.1 constraint#103
nvignola merged 1 commit into
mainfrom
nvignola/renovate-node-engine-constraint

Conversation

@nvignola
Copy link
Copy Markdown
Contributor

@nvignola nvignola commented May 12, 2026

Summary

Adds a constraints.node declaration to renovate.json so Renovate knows this project's Node baseline and can filter or flag incompatible dependency updates before review.

Motivation

In #102, Renovate proposed lint-staged@17, which raises the required Node version to >=22.22.1. With engine-strict=true in .npmrc, anyone following the previously documented Node baseline would have hit npm ci failures after merge. Renovate had no way to detect this because the project didn't declare its own Node constraint.

Why renovate.json and not package.json engines

This is a published library. Adding engines.node to package.json would propagate the constraint to every consumer of @doist/interaction-trace, who may run older Node versions. The Renovate constraints field is bot-only — it never ships to npm.

Test plan

  • Merge and confirm next Renovate run on this repo respects the constraint (no PRs proposed for deps requiring Node > 22.22.1)
  • Verify no behavioral change to existing scheduled updates

🤖 Generated with Claude Code

Without a declared Node constraint, Renovate cannot detect when a
dependency update raises the project's required Node version. Setting
constraints.node lets Renovate filter or flag incompatible updates
before they reach review (e.g. lint-staged v17's bump to >=22.22.1
in #102).

This lives in renovate.json rather than package.json's engines field
to avoid leaking a development-only constraint to consumers of the
published library.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@nvignola nvignola requested a review from a team as a code owner May 12, 2026 13:12
@nvignola nvignola requested review from nats12 and removed request for a team May 12, 2026 13:12
@nvignola nvignola added the 🙋 Ask PR PR must be reviewed before merging label May 12, 2026
Copy link
Copy Markdown
Member

@doistbot doistbot left a comment

Choose a reason for hiding this comment

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

This PR nicely updates the Renovate configuration to declare a Node 22.22.1 constraint, helping prevent the bot from suggesting incompatible dependency updates without affecting downstream library consumers. It is a helpful addition for maintaining build stability and avoiding unexpected install failures. However, there is a discrepancy between this new constraint and the baseline versions currently documented in the project's README and .node-version files that may need alignment to fully ensure consistent contributor environments.

Share FeedbackReview Logs

Comment thread renovate.json
"updateNotScheduled": false,
"reviewers": ["team:frontend-product"],
"constraints": {
"node": "22.22.1"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[P2] This sets Renovate’s Node baseline to 22.22.1, but the repo still declares a different baseline elsewhere (README.md says >=22.18.0, and .node-version is only 22.22). With engine-strict=true, Renovate can now accept dependency updates that will fail for contributors following the documented setup. Align this constraint with the project’s actual supported Node version, or update the repo’s baseline docs/version file in the same change.

Copy link
Copy Markdown

@nats12 nats12 left a comment

Choose a reason for hiding this comment

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

Agree with doistbot's comment re: aligning .node-version and/or docs. Otherwise LGTM 🚀

@nvignola
Copy link
Copy Markdown
Contributor Author

Agree with doistbot's comment re: aligning .node-version and/or docs. Otherwise LGTM 🚀

Indeed. It was done in the PR #102.
I thought I branched out of it but nope. Sorry about that.

@nvignola nvignola merged commit ce9a130 into main May 13, 2026
4 checks passed
@nvignola nvignola deleted the nvignola/renovate-node-engine-constraint branch May 13, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🙋 Ask PR PR must be reviewed before merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants