fix: scope minimatch overrides to their major version

The previous overrides `minimatch@<3.1.4: '>=3.1.4'` and
`minimatch@>=9.0.0 <9.0.7: '>=9.0.7'` were unbounded on the upper end
and resolved to minimatch@10.x, which breaks consumers built against
v3's CJS export shape (e.g. @verdaccio/utils fails with
`Cannot read properties of undefined (reading 'makeRe')`).
This commit is contained in:
Zoltan Kochan
2026-04-22 00:50:58 +02:00
parent e5281992a9
commit 63150183a2
3 changed files with 24 additions and 22 deletions

34
pnpm-lock.yaml generated
View File

@@ -800,10 +800,8 @@ overrides:
lodash@<=4.17.23: '>=4.18.0'
lodash@>=4.0.0 <=4.17.22: '>=4.17.23'
lodash@>=4.0.0 <=4.17.23: '>=4.18.0'
minimatch@<3.1.3: '>=3.1.3'
minimatch@<3.1.4: '>=3.1.4'
minimatch@>=9.0.0 <9.0.6: '>=9.0.6'
minimatch@>=9.0.0 <9.0.7: '>=9.0.7'
minimatch@<3.1.4: ^3.1.4
minimatch@>=9.0.0 <9.0.7: ^9.0.7
nopt@5: npm:@pnpm/nopt@^0.2.1
on-headers@<1.1.0: '>=1.1.0'
path-to-regexp@<0.1.12: ^0.1.12
@@ -13949,6 +13947,10 @@ packages:
resolution: {integrity: sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==}
engines: {node: '>=10'}
minimatch@9.0.9:
resolution: {integrity: sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==}
engines: {node: '>=16 || 14 >=14.17'}
minimist-options@4.1.0:
resolution: {integrity: sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==}
engines: {node: '>= 6'}
@@ -16849,7 +16851,7 @@ snapshots:
ignore: 5.3.2
import-fresh: 3.3.1
js-yaml: '@zkochan/js-yaml@0.0.11'
minimatch: 10.2.4
minimatch: 3.1.5
strip-json-comments: 3.1.1
transitivePeerDependencies:
- supports-color
@@ -16878,7 +16880,7 @@ snapshots:
dependencies:
'@humanwhocodes/object-schema': 2.0.3
debug: 4.4.3
minimatch: 10.2.4
minimatch: 3.1.5
transitivePeerDependencies:
- supports-color
@@ -18908,7 +18910,7 @@ snapshots:
debug: 4.4.3
globby: 11.1.0
is-glob: 4.0.3
minimatch: 10.2.4
minimatch: 9.0.9
semver: 7.7.4
ts-api-utils: 1.4.3(typescript@5.5.4)
optionalDependencies:
@@ -18948,7 +18950,7 @@ snapshots:
'@verdaccio/utils': 6.0.0-6-next.23
debug: 4.3.4
lodash: 4.18.1
minimatch: 10.2.4
minimatch: 3.1.5
yaml: 2.8.3
yup: 0.32.11
transitivePeerDependencies:
@@ -19007,7 +19009,7 @@ snapshots:
dependencies:
'@verdaccio/core': 6.0.0-6-next.55
lodash: 4.18.1
minimatch: 10.2.4
minimatch: 3.1.5
semver: 7.7.4
'@yao-pkg/pkg-fetch@3.5.9(encoding@0.1.13)':
@@ -19035,7 +19037,7 @@ snapshots:
globby: 11.1.0
into-stream: 6.0.0
is-core-module: 2.9.0
minimatch: 10.2.4
minimatch: 9.0.9
minimist: 1.2.8
multistream: 4.1.0
prebuild-install: 7.1.1
@@ -20667,7 +20669,7 @@ snapshots:
json-stable-stringify-without-jsonify: 1.0.1
levn: 0.4.1
lodash.merge: 4.6.2
minimatch: 10.2.4
minimatch: 3.1.5
natural-compare: 1.4.0
optionator: 0.9.4
strip-ansi: 6.0.1
@@ -21163,7 +21165,7 @@ snapshots:
dependencies:
foreground-child: 3.3.1
jackspeak: 3.4.3
minimatch: 10.2.4
minimatch: 9.0.9
minipass: 7.1.3
package-json-from-dist: 1.0.1
path-scurry: 1.11.1
@@ -21178,7 +21180,7 @@ snapshots:
dependencies:
inflight: 1.0.6
inherits: 2.0.4
minimatch: 10.2.4
minimatch: 3.1.5
once: 1.4.0
path-is-absolute: 1.0.1
@@ -21187,7 +21189,7 @@ snapshots:
fs.realpath: 1.0.0
inflight: 1.0.6
inherits: 2.0.4
minimatch: 10.2.4
minimatch: 3.1.5
once: 1.4.0
path-is-absolute: 1.0.1
@@ -22523,6 +22525,10 @@ snapshots:
dependencies:
brace-expansion: 2.1.0
minimatch@9.0.9:
dependencies:
brace-expansion: 2.1.0
minimist-options@4.1.0:
dependencies:
arrify: 1.0.1

View File

@@ -380,10 +380,8 @@ overrides:
lodash@<=4.17.23: '>=4.18.0'
lodash@>=4.0.0 <=4.17.22: '>=4.17.23'
lodash@>=4.0.0 <=4.17.23: '>=4.18.0'
minimatch@<3.1.3: '>=3.1.3'
minimatch@<3.1.4: '>=3.1.4'
minimatch@>=9.0.0 <9.0.6: '>=9.0.6'
minimatch@>=9.0.0 <9.0.7: '>=9.0.7'
minimatch@<3.1.4: ^3.1.4
minimatch@>=9.0.0 <9.0.7: ^9.0.7
nopt@5: npm:@pnpm/nopt@^0.2.1
on-headers@<1.1.0: '>=1.1.0'
path-to-regexp@<0.1.12: ^0.1.12

View File

@@ -205,10 +205,8 @@
"lodash@<=4.17.23": ">=4.18.0",
"lodash@>=4.0.0 <=4.17.22": ">=4.17.23",
"lodash@>=4.0.0 <=4.17.23": ">=4.18.0",
"minimatch@<3.1.3": ">=3.1.3",
"minimatch@<3.1.4": ">=3.1.4",
"minimatch@>=9.0.0 <9.0.6": ">=9.0.6",
"minimatch@>=9.0.0 <9.0.7": ">=9.0.7",
"minimatch@<3.1.4": "^3.1.4",
"minimatch@>=9.0.0 <9.0.7": "^9.0.7",
"nopt@5": "npm:@pnpm/nopt@^0.2.1",
"on-headers@<1.1.0": ">=1.1.0",
"path-to-regexp@<0.1.12": "^0.1.12",