Baoyuantop commented on code in PR #3364:
URL: https://github.com/apache/apisix-dashboard/pull/3364#discussion_r3031139330
##########
package.json:
##########
@@ -108,7 +108,10 @@
"diff": ">=8.0.3",
"@swc/core": "1.10.0",
"flatted": ">=3.4.2",
- "undici": ">=6.24.0"
+ "undici": ">=6.24.0",
+ "path-to-regexp": ">=8.4.0",
+ "brace-expansion": ">=5.0.5",
+ "picomatch": ">=4.0.4"
Review Comment:
Good catch! You're right — a blanket `>=4.0.4` override would force
picomatch 4.x on chokidar 3.x consumers (anymatch/readdirp) that originally
depended on picomatch 2.x, which could introduce compatibility issues since
picomatch 4.x is a major version bump.
I've updated the approach to use **targeted overrides**:
- `"anymatch>picomatch": "2.3.2"` — pins chokidar's anymatch dependency to
the patched 2.x version
- `"readdirp>picomatch": "2.3.2"` — same for chokidar's readdirp dependency
- `"picomatch": ">=4.0.4"` — upgrades all other consumers (tinyglobby, vite,
unplugin, fdir) that already use picomatch 4.x
Verified via `pnpm why picomatch`:
- chokidar path → picomatch **2.3.2** ✅
- all other paths → picomatch **4.0.4** ✅
Build and lint both pass.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]