Skip to content

Latest commit

 

History

History
242 lines (149 loc) · 13.6 KB

CHANGELOG.md

File metadata and controls

242 lines (149 loc) · 13.6 KB

Release history

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

Guiding Principles
  • Changelogs are for humans, not machines.
  • There should be an entry for every single version.
  • The same types of changes should be grouped.
  • Versions and sections should be linkable.
  • The latest version comes first.
  • The release date of each versions is displayed.
  • Mention whether you follow Semantic Versioning.
Types of changes

Changelog entries are classified using the following labels (from keep-a-changelog):

  • Added for new features.
  • Changed for changes in existing functionality.
  • Deprecated for soon-to-be removed features.
  • Removed for now removed features.
  • Fixed for any bug fixes.
  • Security in case of vulnerabilities.

4.0.7 (2026-08-24)

Fixed

  • Fixed terminal globstars in parenthesized patterns (#142, e279bd7).

4.0.6 (2026-08-24)

Fixed

  • scan() now scans the full pattern when tokens are requested, instead of merging the remaining path segments into the final token (#62, 5f5819d).
  • scan() now returns complete pattern parts, including leading and trailing empty segments, and handles nested and escaped parentheses correctly (#58, f201165).

4.0.5 (2026-07-02)

Fixed

  • Preserved every branch when safely rewriting repeated extglobs (#182, 6289307).
  • Honored the windows option when matching basenames (#183, ab8bc4d).

4.0.4 (2026-03-23)

Security

  • Prevented regular expression denial of service (ReDoS) from crafted repeated or nested extglob quantifiers by safely rewriting or treating risky patterns as literals. The new maxExtglobRecursion option defaults to 0; positive numeric values allow limited nesting, while false disables the safeguard (CVE-2026-33671, 5eceecd).
  • Prevented inherited object properties from being interpreted as POSIX character classes (CVE-2026-33672, 4516eb5).

4.0.3 (2025-07-15)

Fixed

  • Avoided an exception when a glob pattern contains constructor (#144, a9e2dd2).

4.0.2 (2024-03-27)

Changed

  • Moved Windows platform detection to the shared utilities (f7751de).
  • Updated development dependencies (d958901).

4.0.1 (2024-02-07)

Breaking changes

  • Raised the minimum supported Node.js version from 10 to 12 (6ce95f5).

4.0.0 (2024-02-07)

Breaking changes

  • On supported Node.js versions, 4.0.0 does not remove any public matcher API or change matching semantics. Its compatibility change is the removal of Picomatch's Node.js version check for regular expression lookbehinds. Runtimes without native lookbehind support, which are outside the supported Node.js range, now use the standard toRegex() behavior: a non-matching fallback by default and the native RegExp error when debug: true (#129, 907d706).

Fixed

  • Preserved complete text values when parse() combines adjacent text tokens (#100, #125, #126, 563f534). Thanks to @connor4312.

Changed

  • Removed the Node.js os dependency from the main entry point to support browser environments (#124, b0ff9b1). Thanks to @gwsbhqt.
  • Added sideEffects: false to package.json (#128, 8f18eb6). Thanks to @frandiox.
  • Restored all properties from the core matcher, including the undocumented picomatch.constants, on the package's main export (335eac6).

3.0.2 (2026-03-23)

Fixed

  • Avoided an exception when a glob pattern contains constructor (#144, 8c08b94).

Security

  • Backported the extglob-quantifier ReDoS fix from 4.0.4. Risky repeated extglobs are now safely rewritten or treated as literals by default; positive numeric maxExtglobRecursion values allow limited nesting, while false disables the safeguard (CVE-2026-33671, 05c0743).
  • Prevented inherited object properties from being interpreted as POSIX character classes (CVE-2026-33672, 0bdde35).

3.0.1 (2023-10-29)

Breaking changes

  • Raised the minimum supported Node.js version from 8.6 to 10 (5214db4).

3.0.0 (2023-10-28)

Breaking changes

  • Windows path-separator handling in the core and static APIs is now controlled by the windows option instead of automatic platform detection. Calls without an options object use POSIX behavior; pass windows: true when backslashes should be treated as path separators. The main picomatch() entry point applies platform detection only when an options object is provided (#73, 49d10c4).
  • The undocumented picomatch.constants property is no longer copied to the package's main export (7e120bb). It is restored in 4.0.0 (335eac6).
  • The v3 matchBase() implementation did not forward Windows mode to its platform-independent basename helper. As a result, backslash-separated inputs did not match by basename, even with windows: true. This is fixed in 4.0.5 (#183, ab8bc4d).

Added

  • Added the dependency-free picomatch/posix entry point for browser and other non-Node.js environments. It uses POSIX path semantics unless windows: true is passed (7e120bb).

Changed

  • Removed the Node.js path dependency and automatic process.platform detection from the core matcher, and documented the existing windows option (#73).

2.3.2 (2026-03-23)

Fixed

  • Avoided an exception when a glob pattern contains constructor (#144, 3f4f10e).

Security

  • Backported the extglob-quantifier ReDoS fix from 4.0.4. Risky repeated extglobs are now safely rewritten or treated as literals by default; positive numeric maxExtglobRecursion values allow limited nesting, while false disables the safeguard (CVE-2026-33671, eec17ae).
  • Prevented inherited object properties from being interpreted as POSIX character classes (CVE-2026-33672, fc1f6b6).

2.3.1 (2022-01-02)

Fixed

  • Fixes bug when a pattern containing an expression after the closing parenthesis (/!(*.d).{ts,tsx}) was incorrectly converted to regexp (9f241ef).

Changed

2.3.0 (2021-05-21)

Fixed

  • Fixes bug where file names with two dots were not being matched consistently with negation extglobs containing a star (56083ef)

2.2.3 (2021-04-10)

Fixed

  • Do not skip pattern seperator for square brackets (fb08a30).
  • Set negatedExtGlob also if it does not span the whole pattern (032e3f5).

2.2.2 (2020-03-21)

Fixed

  • Correctly handle parts of the pattern after parentheses in the scan method (e15b920).

2.2.1 (2020-01-04)

  • Fixes #49, so that braces with no sets or ranges are now propertly treated as literals.

2.2.0 (2020-01-04)

  • Disable fastpaths mode for the parse method (5b8d33f)
  • Add tokens, slashes, and parts to the object returned by picomatch.scan().

2.1.0 (2019-10-31)

2.0.7 (2019-05-14)

2.0.4 (2019-04-10)

Fixed

2.0.0 (2019-04-10)

Added

  • Adds support for options.onIgnore. See the readme for details
  • Adds support for options.onResult. See the readme for details

Breaking changes

  • The unixify option was renamed to windows
  • caching and all related options and methods have been removed

1.0.0 (2018-11-05)

  • adds .onMatch option
  • improvements to .scan method
  • numerous improvements and optimizations for matching and parsing
  • better windows path handling

0.1.0 - 2017-04-13

First release.