Commit 30deff3
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
| |||
0 commit comments