Zeptomatch is a tiny glob matcher for JavaScript, designed to match patterns like `*`, `?`, character classes, brace alternations, and numeric or string ranges against file or path strings. It can also compile one or more globs into standalone regular expressions, and supports partial matching (useful during filesystem traversal) with memoization and path separator normalization.
Project status
- The source appears actively maintained, with a most recent update (v2.1.0 on 2025-10-19) and prior updates in 2025 (v2.0.2 on 2025-06-14, v2.0.1 on 2025-03-05).
- The apparent update cadence is moderate, roughly every 3 to 4 months in 2025 (Mar to Jun, then Jun to Oct).
AI summary generated Today
Recent updates
v2.1.0
7 months agov2.1.0 is a major internal rewrite of Zeptomatch that replaces the previous glob-to-RegExp conversion pipeline with a new AST-based pipeline compiled by a new dependency, graphmatch. It also introduces an options parameter to enable partial, segment-level matching and extends zeptomatch.compile to support compiling multiple globs.
BreakingFeaturesv2.0.2
11 months agoRelease v2.0.2 contains no publisher-provided release notes. The only code changes visible in the diff are a small update to the glob grammar and a new test covering path separator normalization between forward slashes and backslashes.
v2.0.1
3/5/2025Release v2.0.1 was published on 2025-03-05, but no release notes were provided by the publisher. As a result, there is no documented information about new features, bug fixes, breaking changes, security updates, or dependency changes in this release.
v2.0.0
3/25/2024Version 2.0.0 removes the built-in `zeptomatch.escape` utility from the main package. The README is updated to point users to a standalone `zeptomatch-escape` package instead, and the corresponding tests are deleted.
v1.2.2
11/28/2023Release v1.2.2 contains no published release notes. The code changes are limited to the glob grammar fast-path logic and a version bump.
Breakingv1.2.1
11/28/2023v1.2.1 contains a small change to the glob matching logic in src/index.ts. The only functional modification is an added guard for empty glob input, and the package version is bumped from 1.2.0 to 1.2.1.
Breakingv1.2.0
11/27/2023Release v1.2.0 is a small update that adds a new utility function, `zeptomatch.escape`, and documents it in the README. The provided release notes are missing (none were supplied), so this change is effectively not described in the release metadata.
Featuresv1.1.4
11/27/2023v1.1.4 makes a small change to the glob-to-regex conversion logic by adding fast-path handling for a few common double-star patterns. The release notes section is empty, so behavioral changes in matching logic and dependency updates are not documented.
Breakingv1.1.3
7/30/2023v1.1.3 includes a dependency upgrade to grammex and corresponding internal code adjustments in the parser setup. Release notes were not provided, so the behavioral and API adjustments seen in the diff are not documented.
v1.1.2
7/25/2023Release v1.1.2 was published on 2023-07-25, but no release notes were provided by the publisher. As a result, there is no stated information about new features, breaking changes, bug fixes, security updates, or dependency changes in this release.