Skip to content

Commit 30deff3

Browse files
Copilotcallicles
andauthored
Restrict @types/node to 20.x in dependabot for templates (#3505)
Prevent dependabot from proposing major version updates for `@types/node` beyond 20.x to maintain Node.js 20 LTS compatibility. ## Changes - Added ignore rule in templates npm ecosystem to block `@types/node` major version updates - Minor and patch updates within 20.x remain allowed (e.g., 20.12.0 → 20.15.0) ```yaml # TypeScript templates (any package.json in templates/) - package-ecosystem: "npm" directories: - "/templates/**" # ... ignore: # Keep @types/node at 20.x.x for backward compatibility # Node.js 20 is LTS and we want to ensure compatibility - dependency-name: "@types/node" update-types: ["version-update:semver-major"] ``` This prevents updates like 20.x.x → 21.x.x while allowing 20.12.0 → 20.15.0. <!-- START COPILOT CODING AGENT TIPS --> --- 💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more [Copilot coding agent tips](https://gh.io/copilot-coding-agent-tips) in the docs. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Config-only change affecting Dependabot update policy; no application code or runtime behavior is modified. > > **Overview** > Dependabot is updated to **ignore major-version updates** for `@types/node` in the templates `npm` ecosystem, effectively keeping it pinned to the Node 20 type definitions for backward compatibility. > > No runtime/build logic changes; this only adjusts automated dependency update behavior. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 3fdcae3. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: callicles <4429209+callicles@users.noreply.github.com>
1 parent dfe200d commit 30deff3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ updates:
3131
patterns:
3232
- "@514labs/moose-cli"
3333
- "@514labs/moose-lib"
34+
ignore:
35+
# Keep @types/node at 20.x.x for backward compatibility
36+
# Node.js 20 is LTS and we want to ensure compatibility
37+
- dependency-name: "@types/node"
38+
update-types: ["version-update:semver-major"]
3439

3540
# Python templates (any requirements.txt in templates/)
3641
- package-ecosystem: "pip"

0 commit comments

Comments
 (0)