Skip to content

chore(deps): update dependency wcmatch to v12 - #63

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/wcmatch-12.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/wcmatch-12.x

Conversation

@renovate

@renovate renovate Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
wcmatch ==10.2.1 → ==12.0.4 age confidence

Release Notes

facelessuser/wcmatch (wcmatch)

v12.0.4

Compare Source

12.0.4

  • FIX: Include bracex 3.2.4 for minor bug fix.
  • FIX: Avoid returning nonexistent directories for literal . and .. prefixes when root_dir is missing or
    is not a directory.

v12.0.3

Compare Source

12.0.3

  • FIX: Fix GLOBTILDE not expanding ~ in an exclusion pattern when MINUSNEGATE is enabled, e.g. -~/*.py.

v12.0.2

Compare Source

12.0.2

  • FIX: Require bracex 3.2.3 for a minor slash handling fix.
  • FIX: Fix the implicit ** added by MATCHBASE (or by pathlib's match) being stacked on top of a pattern
    that already starts with ** or ***. globmatch and match would match dot files and directories without
    DOTGLOB, e.g. ** with MATCHBASE matched a/.hidden/file, and match('**/x') matched a/.hidden/x, which is
    not what glob and rglob return. In glob, *** with MATCHBASE and GLOBSTARLONG stopped traversing
    symlinks as *** was treated as a plain name pattern.
  • FIX: When MATCHBASE or pathlib's match and rglob add an implicit **, and GLOBSTARLONG and FOLLOW
    are enabled, the implicit ** acts as ***. As with any consecutive globstars, when it collapses with a ** that
    starts the pattern, the result must still traverse symlinks, e.g. rglob('**/a.txt') traverses symlinks, just like
    rglob('***/a.txt'), and glob('**') with MATCHBASE does too. glob also no longer treats a pattern
    with a slash, like **/**, as having no slash just because its consecutive globstars collapse to one, which
    disagreed with globmatch.
  • FIX: Fix globmatch with REALPATH rejecting a path that glob returns when a directory symlink can be
    matched by a non-globstar component, e.g. **/*/**/*.css matching assets/linked/app.css where linked is a
    symlink. The matcher now considers other ways of splitting the path between the **s and the rest of the pattern,
    rather than only the first one the regular expression picks.

v12.0.1

Compare Source

12.0.1

  • FIX: Require bracex 3.2.2 for bug fixes.
  • FIX: Fix a non-terminal globstar consuming the final filename when the following extended group can match
    nothing, e.g. **/?(a) matching b. This also affects the implicit globstar used by MATCHBASE and
    pathlib.match.
  • FIX: Fix globmatch with REALPATH rejecting a symlinked file when it is matched by a trailing **
    (e.g. ** or dir/**), disagreeing with glob and Bash, which both return such files.
  • FIX: Preserve directory symlink traversal when collapsing adjacent ** and *** components with
    GLOBSTARLONG, regardless of their order.

v12.0

Compare Source

12.0

  • BREAK: Various fixes to !(...) patterns to more closely align to Bash. 100% Bash behavior is impossible with
    regular expression, but behavior in many ways was improved, but there may be some surprising behavior changes.

    • FIX: Fix an EXTGLOB/EXTMATCH inverse group, !(...), inside another group ignoring the rest of its
      alternative and the text that follows the group, e.g. @(!(a)b) and @(x|!(a))b matched ab. They now follow
      the same rule as inverse groups that are not in a group. Inside +(...) and *(...) groups, the rest is the
      remainder of the alternative and the text after the loop. The rest of the alternative was ignored since 7.0.1,
      and the text after the group since 2.2.1.
    • FIX: Fix an EXTGLOB/EXTMATCH inverse group, !(...), inside another inverse group not ending where the
      text consumed by the outer group ends, e.g. !(!(a)|b) matched aa and !(a!(b)) matched aba. This also
      caused translate() with CAPTURE to match differently than without it for these patterns. This was a
      regression in 7.0.1.
    • FIX: An EXTGLOB/EXTMATCH inverse group, !(...), whose patterns can only match text up to some length,
      e.g. !(foo), !(a|bc), or !(?(a)b), now matches any other text, whatever follows it, as it does in Bash.
      For instance, !(foo)*.txt now matches foo.txt and foobar.txt, !(a)* matches a, and +(!(foo)) matches
      foo. Inverse groups with patterns that can match text of any length, e.g. !(*.js), still need to know what
      follows them and behave as before. Inverse groups inside other inverse groups follow the same rules, e.g.
      !(!(a)|b)* matches a and ab, !(!(a)*) matches nothing, and !(a!(b)*) no longer matches ab.
    • FIX: An EXTGLOB/EXTMATCH inverse group, !(...), whose patterns cannot match nothing can now match
      nothing whenever the rest of the pattern matches, as it does in Bash, even when its patterns can match text of
      any length. For instance, !(*.js)* and !(a*)* now match any name (following dot rules), where
      !(*.js)* rejected a.js and a.json.
  • BREAK: Match Bash logic such that @(*|.a).b can match .b in an extended pattern if the pattern contains an
    explicit leading . in one of the alternatives exists. In this scenario, * is allowed to match nothing before
    .b, but * won't physically match the ..

  • NEW: Generate tighter regular expressions with the same behavior.

  • FIX: A leading * can no longer match nothing so that a literal dot can match the leading dot of a file name,
    e.g. *.env no longer matches .env unless DOTGLOB/DOTMATCH is enabled. This agrees with Bash, Python's
    glob, and fnmatch, which already behaved this way. Use .*env to explicitly match hidden names.

  • FIX: Fix glob and iglob missing a file name without a directory part, e.g. a.txt, when dir_fd is file
    descriptor 0, which a directory can get when it is opened while standard input is closed.

  • FIX: Fix WcMatch returning a file after kill is called from a directory validation hook or its error
    handler.

  • FIX: Preserve bare drive roots such as D: in WcMatch on Windows, so searches use that drive's current
    directory instead of its root directory.

  • FIX: Fix a ? or bracket expression after a leading * matching the leading dot of a file name, e.g. *?a
    matching .a.

  • FIX: Fix a wildcard in an EXTGLOB/EXTMATCH group, such as ?(old-)@(*), matching the leading dot of a file
    name when the text before it, e.g. an optional group or the start of another group slot, matched nothing. Wildcards
    in later iterations of a repeated group, e.g. +(.?|*) and .a., are no longer wrongly restricted.

  • FIX: Fix an EXTGLOB/EXTMATCH @(...) or +(...) group that can match nothing, e.g. @(?(a)),
    +(*(a)) or @(a|?(b)), letting a literal dot after it match the leading dot of a file name, e.g.
    @(?(a)).hidden matching .hidden. Such a group must match something, so it can no longer be skipped to reach
    the dot, as in Bash, unless DOTGLOB/DOTMATCH is enabled or an alternative starts with a dot.

  • FIX: Fix a ? or bracket expression at the start of a repeated EXTGLOB group matching a path separator in
    globmatch and related functions, e.g. +(?) matching a/b. This was a regression in 11.0.1.

  • FIX: Fix an EXTGLOB/EXTMATCH group that is simplified to a different group type, e.g. @(+(b)) or
    @(!(b)), losing its meaning when it is then reduced into its parent group. Repeats and negations were dropped,
    e.g. @(a|@(!(b))) matched b and not c, and !(@(+(a))) matched aa. This was a regression in 11.0.

  • FIX: Preserve byte file names when globbing with dir_fd, including names requiring surrogate escaping.

  • FIX: Use the same case-insensitive matching for literal and wildcard path components in glob and iglob,
    including Unicode case equivalences.

  • FIX: Preserve a terminal directory separator after GLOBSTAR patterns in globmatch, globfilter, and
    translated patterns. Patterns such as **/ and dir/**/ no longer match regular files.

  • FIX: Require the literal prefix of recursive glob and iglob patterns such as file/** to name a directory.

  • FIX: Count duplicate exclusion expansions toward the shared pattern limit in compiled matchers and translation.

  • FIX: Treat an empty root_dir ('' or b'') as the current directory in glob and iglob, including when
    the directory is selected with dir_fd.

  • FIX: Fix glob and iglob returning synthetic . and .. matches with SCANDOTDIR when a directory
    cannot be opened for scanning.

  • FIX: Require bracex 3.2.1 which contains a number of brace related bug fixes.

v11.2

Compare Source

11.2

  • NEW: Drop support for Python 3.10.
  • FIX: Require bracex 3.2 for various bug fixes.
  • FIX: Filter filename iterables without evaluating their "truthiness", allowing collections such as numpy
    arrays (@​Lushiyao5).
  • FIX: Improve performance when multiple * are used for file name matching. Performance is only improved in
    cases where variable length EXTGLOB patterns would not interfere with matching. Issue found by (@​gistrec).
  • FIX: Apply one pattern limit to includes and exclusions when scanning with glob and iglob, and preserve
    unlimited expansion across multiple patterns with negative limits.
  • FIX: Use the documented default limit of 1000 patterns in WcMatch instead of 32.
  • FIX: Preserve unlimited pattern expansion with exclusions in compiled matchers and translation, and enforce
    finite limits when exclusions consume the entire pattern budget.
  • FIX: Fix an invalid regular expression error when an EXTGLOB/EXTMATCH inverse group, !(...), is followed
    by an extended group that contains another extended group, e.g. !(a)@(b|*(c)).
  • FIX: Fix an EXTGLOB/EXTMATCH star group, *(...), being matched as literal text when it directly follows
    another *, e.g. a**(b).
  • FIX: Fix glob and iglob returning the same path twice when two patterns find it and case is ignored, e.g.
    ['A*', '*b'] with IGNORECASE and a file named Ab. Files that only differ by case are no longer treated as
    duplicates when the file system is case sensitive.
  • FIX: According to Bash, a file name that starts with an extended group should never match . or ...
  • FIX: Preserve leading-dot restrictions for wildcards after extended groups that can match an empty string,
    such as ?(a)*, and avoid returning . and .. from these directory scans.
  • FIX: Fix rglob treating a pattern that starts with ** or *** as if it started with *, e.g. **/a.txt
    with GLOBSTAR missed a.txt in the searched folder and returned a.txt from inside a symlinked folder.

v11.1

Compare Source

11.1

  • NEW: Add support for Python 3.15.
  • FIX: Fix WindowsPath subclass construction on Python 3.12+ (#​238).
  • FIX: Fix symlink prefixes for multiple GLOBSTAR captures (#​239).

v11.0.1

Compare Source

11.0.1

  • DOCS: Provide information in documentation that discloses information about what should or should not be
    expected from Wildcard Match in regards to security, and provide general information to allow users to make good
    decisions.
  • FIX: Fix an issue where in some cases dot handling was not correct within an extended glob pattern when
    EXTGLOB/EXTMATCH was enabled.

v11.0

Compare Source

11.0

  • NEW: Reduce/combine nested EXTGLOB/EXTMATCH regular expression patterns when possible to reduce deeply
    nested patterns.
  • NEW: Added ZSH style numerical ranges (<0-9>) via new NUMRANGE flag.
  • BREAK: Previously, translation would have a capture group for every extended glob pattern when
    EXTGLOB/EXTMATCH was enabled. Due to the new feature added that reduces extended glob group nesting, groups no
    longer appear exactly as specified. Moving forward, capturing groups are not included by default. If you need the
    old behavior, it can be enabled in a translate() call via the CAPTURE flag. This flag will cause extended glob
    reduction to be turned off and for capturing groups to be enabled.
  • FIX: Avoid reparsing sequences that have already been deemed not valid.
  • FIX: Halt EXTGLOB/EXTMATCH parsing once an unclosed extended glob pattern is encountered.
  • FIX: Fix case where an empty string would not match a pattern targeting an empty string.
  • FIX: Ensure that consecutive stars are collapsed into a single regular expression pattern.
  • FIX: Fix parsing SPLIT not accounting for POSIX character class.

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/wcmatch-12.x branch 2 times, most recently from a77bab1 to aa736db Compare November 20, 2026 13:58
@renovate
renovate Bot force-pushed the renovate/wcmatch-12.x branch from aa736db to 8e3fcc1 Compare November 20, 2026 13:59

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants