Skip to main content

Released: glob-parent - v7.0.0

· 5 min read
Blaine Bublitz
Gulp lead maintainer

As part of the gulp v6 development effort, we released a new major version of our glob-parent library on November 16th, 2026. This library is used everywhere in the npm ecosystem and gets downloaded 400 million times WEEKLY. Even if you do not use gulp directly, this package is somewhere in your dependency tree (ESLint, perhaps?).

You can find the full v7.0.0 release notes in the CHANGELOG, but we wanted to highlight here the goals and challenges behind this release.

Sponsorship crisis​

Over the past 5 years, our project funding has dwindled from $2000/month to only $200/month as all corporate sponsorship has stopped. This is not even enough funding for normal triage and maintenance activities, let alone the massive development effort it takes to release new major versions.

We’ve always saved up donations between big development pushes, but we WILL NOT have enough funding to reach gulp v6. The gulp organization will be completely out of money by April 2027, which leaves us about $15,000 short of completing the necessary work! If we don’t receive this funding, the team will need to cease the work to find income somewhere else.

If you are one of those 400 million weekly downloads of this package, ask your employer to keep your dependency tree maintained by donating to the gulp organization on GitHub Sponsors or OpenCollective. Most of the time, your employer can pull the funds from a marketing budget because we display organization sponsors on our homepage. You could even message your boss something like:

The tool we use for our build process, gulp, is raising funds to keep the project maintained. They have a sponsorship tier for companies that allows them to be displayed on their homepage which receives a ton of traffic. Can we sponsor them to support this dependency we rely on heavily?

Why a glob parent?​

The name mostly gives it away, but this library extracts the parent directory from a glob string. So when you specify /foo/bar/baz/**/*.js, glob-parent will extract the /foo/bar/baz portion of the filepath. As such, tools can determine that all files produced by that glob will be rooted in /foo/bar/baz and can use it for things like stripping the parent path to produce mirrored directory structure at a relative path. Whenever you have seen mirroring of src directory structures to a dist directory in a project, it is the result of our glob-parent package.

Correctness vs performance​

Globs can be quite complex, especially once you introduce extglobs and brace expansion. When first conceived, glob-parent had significant limitations due to the original author’s choice of performance over correctness. These limitations, combined with bugs in the is-glob library, have led to a deluge of issues submitted against glob-parent that were never previously fixed.

In the past few years, Node.js implemented their own globbing functions in its standard library and adopted minimatch as an internal dependency. This has resulted in the differences (and bugs) between is-glob and minimatch becoming more apparent.

In v7.0.0, we decided to standardize around Node's decision and leverage minimatch to precisely determine the parent of a glob. We hope that standardization here will allow us to upstream this critical ecosystem component into Node core at some point in the future.

Users that upgrade should note that this may cause a hit to performance on more complex globs, but we did not notice a significant difference in our test suite. Even if it does, extracting a glob parent is NOT the bottleneck in whatever you are building.

Opting for correctness also means that some glob parents may be detected slightly differently. For example, parentheses in a glob without an extglob prefix are no longer detected as a glob because they aren’t actually a glob!

Old is new again​

This was a ground-up rewrite of the glob–parent library, while keeping most of the tests intact. However, glob-parent originally replaced glob2base in gulp which was implemented almost exactly the same. I think it is pretty neat to see this come full circle, where we settle on correctness and eliminate many subtle bugs.

Trust your maintainers​

Almost immediately after release, some asshole with npm audit and an LLM claimed that we introduced a vulnerability via minimatch v10.2.6. He (nor his crappy bot) didn’t even read the linked vulnerability, which says only programs that use optimizationLevel 2 or greater were at risk of denial of service. Not only is this the exact version that Node ships to EVERYONE, we also specifically set optimizationLevel to 0 for performance purposes and are not at risk.

Be better. Teams that trust and invest in the maintainers of these load-bearing projects will be much better off than teams that just blindly rely on security tooling because the maintainers are the only ones that account for these types of deliberate, delicate decisions.