glob-parent extracts the non-magic parent path from a glob string, returning the part of the path before the glob begins. It is useful when you need to determine the directory prefix for a pattern (for example, to build paths or decide where a glob applies), with options for handling Windows slashes.
Project status
- The upstream repository (gulpjs/glob-parent) shows an external update activity signal (last upstream push on 2024-07-26), but the most recent versioned updates in the provided history are from 2021 (v6.0.2, v6.0.1, v6.0.0).
- Apparent updates cadence is low, with three v6.x updates occurring between 2021-05-03 and 2021-09-29, and no further versioned updates shown since v6.0.2 (2021-09-29).
AI summary generated Today
Recent updates
v6.0.2
9/29/2021glob-parent v6.0.2 claims a performance improvement. The code changes focus on how glob-like patterns are detected and stripped from the input string, and the package also bumps a dependency version.
v6.0.1
7/20/2021glob-parent v6.0.1 ships a security-focused fix for a ReDoS vulnerability (CVE-2021-35065). The code changes replace the previous enclosure-detection regex logic and add performance regression tests to ensure processing remains fast for malicious inputs.
Securityv6.0.0
5/3/2021glob-parent v6.0.0 fixes glob-parent handling of escaped path separators and updates the project scaffold/tooling. The runtime change is in index.js where the internal regexes that detect enclosure/glob sections and escaped characters were adjusted, and the repo drops older Node support as part of a larger maintenance update.
Breaking