You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Hidden to allow custom documenting of the negated `--no-apply-fixes` variant.
62
62
hidden: true,
63
63
},
64
+
majorUpdates: {
65
+
type: 'boolean',
66
+
default: true,
67
+
description:
68
+
'Allow major version updates. Use --no-major-updates to disable.',
69
+
// Hidden to allow custom documenting of the negated `--no-major-updates` variant.
70
+
hidden: true,
71
+
},
64
72
id: {
65
73
type: 'string',
66
74
default: [],
@@ -106,6 +114,12 @@ Available styles:
106
114
description:
107
115
'Set a minimum age requirement for suggested upgrade versions (e.g., 1h, 2d, 3w). A higher age requirement reduces the risk of upgrading to malicious versions. For example, setting the value to 1 week (1w) gives ecosystem maintainers one week to remove potentially malicious versions.',
108
116
},
117
+
showAffectedDirectDependencies: {
118
+
type: 'boolean',
119
+
default: false,
120
+
description:
121
+
'List the direct dependencies responsible for introducing transitive vulnerabilities and list the updates required to resolve the vulnerabilities',
122
+
},
109
123
}
110
124
111
125
consthiddenFlags: MeowFlags={
@@ -197,6 +211,13 @@ async function run(
197
211
...config.flags['applyFixes'],
198
212
hidden: false,
199
213
}asMeowFlag,
214
+
// Explicitly document the negated --no-major-updates variant.
215
+
noMajorUpdates: {
216
+
...config.flags['majorUpdates'],
217
+
description:
218
+
'Do not suggest or apply fixes that require major version updates of direct or transitive dependencies',
219
+
hidden: false,
220
+
}asMeowFlag,
200
221
})}
201
222
202
223
Environment Variables (for CI/PR mode)
@@ -228,12 +249,14 @@ async function run(
228
249
glob,
229
250
json,
230
251
limit,
252
+
majorUpdates,
231
253
markdown,
232
254
maxSatisfying,
233
255
minimumReleaseAge,
234
256
outputFile,
235
257
prCheck,
236
258
rangeStyle,
259
+
showAffectedDirectDependencies,
237
260
// We patched in this feature with `npx custompatch meow` at
--minimum-release-age Set a minimum age requirement for suggested upgrade versions (e.g., 1h, 2d, 3w). A higher age requirement reduces the risk of upgrading to malicious versions. For example, setting the value to 1 week (1w) gives ecosystem maintainers one week to remove potentially malicious versions.
184
184
--no-apply-fixes Compute fixes only, do not apply them. Logs what upgrades would be applied. If combined with --output-file, the output file will contain the upgrades that would be applied.
185
+
--no-major-updates Do not suggest or apply fixes that require major version updates of direct or transitive dependencies
185
186
--output-file Path to store upgrades as a JSON file at this path.
186
187
--range-style Define how dependency version ranges are updated in package.json (default 'preserve').
187
188
Available styles:
188
189
* pin - Use the exact version (e.g. 1.2.3)
189
190
* preserve - Retain the existing version range style as-is
191
+
--show-affected-direct-dependencies List the direct dependencies responsible for introducing transitive vulnerabilities and list the updates required to resolve the vulnerabilities
0 commit comments