Repository navigation
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: juliangruber/brace-expansion
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.0.9
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: juliangruber/brace-expansion
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.0.12
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 10 commits
- 6 files changed
- 2 contributors
Commits on Aug 3, 2026
-
Bump uuid and @tapjs/processinfo (#120)
Bumps [uuid](https://github.com/uuidjs/uuid) and [@tapjs/processinfo](https://github.com/tapjs/processinfo). These dependencies needed to be updated together. Updates `uuid` from 8.3.2 to 14.0.1 - [Release notes](https://github.com/uuidjs/uuid/releases) - [Changelog](https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md) - [Commits](uuidjs/uuid@v8.3.2...v14.0.1) Updates `@tapjs/processinfo` from 3.1.9 to 3.1.12 - [Changelog](https://github.com/tapjs/processinfo/blob/main/changelog.md) - [Commits](tapjs/processinfo@v3.1.9...v3.1.12) --- updated-dependencies: - dependency-name: uuid dependency-version: 14.0.1 dependency-type: indirect - dependency-name: "@tapjs/processinfo" dependency-version: 3.1.12 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 1790143 - Browse repository at this point
Copy the full SHA 1790143View commit details
Commits on Aug 5, 2026
-
Bump ip-address from 10.2.0 to 10.4.0 (#152)
Bumps [ip-address](https://github.com/beaugunderson/ip-address) from 10.2.0 to 10.4.0. - [Release notes](https://github.com/beaugunderson/ip-address/releases) - [Commits](beaugunderson/ip-address@v10.2.0...v10.4.0) --- updated-dependencies: - dependency-name: ip-address dependency-version: 10.4.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for fd7a5e3 - Browse repository at this point
Copy the full SHA fd7a5e3View commit details
Commits on Aug 9, 2026
-
chore: ensure prettier formatting (#154)
* chore: apply prettier formatting `npm run format` was not clean on main: `src/index.ts` had three call and condition sites that exceed the configured print width, and `SECURITY.md` had a trailing blank line. No behaviour change - line wrapping and whitespace only. * ci: fail the build on unapplied formatting Nothing in CI ran prettier. The only script that touches it is `format`, which is `prettier --write .` - it rewrites files rather than checking them, and CI never invoked it either way, so formatting drift could land unnoticed. Add a `format:check` script (`prettier --check .`) and a `format` job that runs it. It runs once on ubuntu rather than across the full matrix, since formatting does not vary by platform or Node version. Also add `*.md` and `.prettierignore` to the pull_request paths filter. The filter gates the whole workflow, so a change touching only markdown skipped CI entirely - and markdown is formatted, so that was a blind spot for exactly the kind of drift this job is meant to catch.
Configuration menu - View commit details
-
Copy full SHA for 4e70465 - Browse repository at this point
Copy the full SHA 4e70465View commit details
Commits on Sep 14, 2026
-
* fix: make parseCommaParts iterative and avoid push.apply `parseCommaParts` recursed on the remainder of the string once per brace group, so a chain of groups nested inside a brace set exhausted the native stack at ~7,000 groups (~29KB of input): expand('{' + '{a},'.repeat(7000) + 'b}') // RangeError: Maximum call stack size exceeded This is the parsing-side counterpart to the `expand_` overflow fixed for CVE-2026-14257. That fix documented a constant-stack-depth guarantee, but only `expand_` was made iterative, so putting the same chain inside a brace group routed parsing through the recursion that was left in place. Neither `max` nor `maxLength` could bound it: the crash happens while parsing, before anything is expanded, and the payload produces one result per group, so output size grows linearly and is never the limiter. Rewrite the function as a loop that carries the partial part across chunks. Separately, `push.apply(target, items)` passes one argument per element, so a single large array overflows the stack with no recursion at all - this input reaches a recursion depth of exactly one: expand('{{x},' + 'a,'.repeat(125000) + 'b}') // RangeError: Maximum call stack size exceeded Append element by element via `pushAll` instead. The leading `if (!str) return ['']` guard is dropped: it is unreachable from the sole call site (`m.body` always contains a comma there), and the loop returns `['']` for the empty string on its own. Equivalence with the previous implementation was checked by differential testing against 5.0.9 - exhaustive over every string of `{`, `}`, `,` and `a` up to length 8, plus 300k random inputs with and without `max` / `maxLength` - 387,381 cases, zero mismatches. * review: trim commentsConfiguration menu - View commit details
-
Copy full SHA for 6735c94 - Browse repository at this point
Copy the full SHA 6735c94View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ade9de - Browse repository at this point
Copy the full SHA 1ade9deView commit details -
Configuration menu - View commit details
-
Copy full SHA for df7682f - Browse repository at this point
Copy the full SHA df7682fView commit details -
`expand_` recurses once per level of brace *nesting*, in two places: once per comma member of a set, and once when re-wrapping a set whose body parses to a single part (`x{{a,b}}y` -> `x{a}y x{b}y`). Deep nesting exhausted the native stack and crashed the process: expand('{'.repeat(3200) + 'a,b' + '}'.repeat(3200)) // RangeError: Maximum call stack size exceeded That is about 6KB of input - the cheapest stack-exhaustion payload known against this package, and roughly a tenth of minimatch's MAX_PATTERN_LENGTH. The comma-member shape crashes at ~15.6KB. The CVE-2026-14257 fix made the *tail* iterative - recursion on `m.post`, one level per chained group - so chained input was already safe. Nesting drives a different recursion that the tail fix never touched, which is why `'{a,b}'.repeat(n)` is fine while `'{'.repeat(n) + 'a,b' + '}'.repeat(n)` is not. Neither `max` nor `maxLength` could bound it: both crashes happen while recursing into sub-expansions, before the result set grows. The payloads expand to almost nothing - the single-set shape yields 2 results - so neither bound is ever the limiter. Thread a `maxDepth` bound (default `EXPANSION_MAX_DEPTH`, 1000) through `expand_`. Past the bound a group is treated as non-expanding and returned literally, which is how the parser already handles a group it cannot expand. Truncating rather than throwing keeps `expand` total, matching `max` and `maxLength`. The default sits far above any realistic nesting depth and roughly 3x below the depth at which the stack runs out. Verified equivalent to 5.0.9 for input below the bound by differential testing: exhaustive over every string of `{`, `}`, `,` and `a` up to length 8, plus 300k random inputs with and without `max` / `maxLength` - 387,381 cases, zero mismatches.Configuration menu - View commit details
-
Copy full SHA for 935d78f - Browse repository at this point
Copy the full SHA 935d78fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8247927 - Browse repository at this point
Copy the full SHA 8247927View commit details -
Bash keeps a quirk where a brace group followed by a comma set still expands (`{a},b}`). The parser implements it by rewriting the string and restarting the scan, absorbing one `}` per pass, so `n` trailing braces cost `n` full passes: expand('{a}' + '}'.repeat(128000) + ',z}') // 27.7 seconds, 2 results `ms/n^2` is flat and each doubling of `n` costs 4x - quadratic. There is a second multiplier: each rewrite replaces the group's closing `}` with the `escClose` sentinel, ~25 characters, so the working string grows by ~25 characters per pass. A 1KB input becomes 26KB, and that ~26x factor multiplies both the constant and peak memory. Neither `max` nor `maxLength` could bound it: the cost is in parsing, before the result set exists, and the payload yields two results at any size. Bound the number of times the scan may restart (`maxRewrites`, default `EXPANSION_MAX_REWRITES`, 1000). Past the bound the remaining string is treated as non-expanding and returned literally, consistent with `max` and `maxLength`, which truncate rather than throw. This bounds the number of passes, not the cost of each, so worst-case work is proportional to `bound x input length` rather than `n x input length`. Spending the whole budget on a 1MB input measures ~350ms, the same as before the change for that shape; the quadratic shape drops from 27.7s to ~50ms at n=128,000. Real `{a},b}` input needs a handful of passes - the existing 30-group regression test for GHSA-3jxr-9vmj-r5cp is far under the bound. Verified equivalent to the published release for input below the bound by differential testing: exhaustive over every string of `{`, `}`, `,` and `a` up to length 8, plus 300k random inputs with and without `max` / `maxLength` - 387,381 cases, zero mismatches.Configuration menu - View commit details
-
Copy full SHA for 33a5ef1 - Browse repository at this point
Copy the full SHA 33a5ef1View commit details -
1
Configuration menu - View commit details
-
Copy full SHA for f341015 - Browse repository at this point
Copy the full SHA f341015View commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v5.0.9...v5.0.12