In this article
Resolve the matcher through glob’s actual parent and test useful discovery plus bounded failure; upgrading a vulnerable leaf alone can break its caller.
Qwen Code v0.27.4, released on November 15 at 07:04:40 UTC, includes a joint modern glob/minimatch migration. Updating the matcher alone could break its old parent’s internal contract and make ordinary file discovery return nothing. The release therefore couples security-oriented expansion limits with application compatibility, including worker cancellation and real parent consumers rather than relying only on matching type declarations.
A simple file match is a necessary control
Create a synthetic tree with ordinary TypeScript files and compare the exact expected result of a simple glob before testing difficult patterns. The PR reports that a matcher-only upgrade could make this ordinary case empty. A security regression that only asserts refusal of excessive expansion would miss that loss of useful functionality. Run sync, async and stream consumers the application actually uses, retaining deterministic file identities and ordering assumptions.
Resolve the version through the real consumer
Inspect minimatch as loaded by glob, not merely Core’s direct dependency. A nested copy can survive an updated top-level floor. The release changes modern consumers together to glob 14.0.6 and minimatch 11.0.8 while leaving legacy parent chains as separate work. Record the installed path used by command discovery, archive helpers or TypeScript tooling. Seeing one fixed matcher somewhere in node_modules does not establish that every actual parent calls it.
Fast patterns cannot prove timeout enforcement
Keep expansion-budget tests and deterministic worker deadline tests separate. A formerly slow pattern may finish quickly in the new matcher, causing a timeout test to stop exercising its intended boundary. The implementation preserves cancellation coverage using controlled worker behavior. Use an owned idle barrier to trigger the deadline, then release or terminate the worker and confirm cleanup. This verifies the guard independently of one package version’s incidental computational cost.
Traversal semantics remain part of acceptance
Include escaping, ignores, dotfiles, symlinks and workspace containment using harmless fixtures. The joint upgrade crosses modern matching majors, so compatible ordinary output matters alongside advisory removal. The maintainers do not claim audit zero or local validation on every operating system. A useful adoption report combines installed parent identity, expected discovery, bounded expansion and cancellation evidence, then records native-platform checks separately rather than treating a successful macOS build as universal behavior.
Sources
Related reading
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.