Skip to content

release: v2.0.4 - bump brace-expansion - #46

Merged
Shinrai merged 3 commits into
nextfrom
hotfixes
Oct 3, 2026
Merged

Shinrai merged 3 commits into
nextfrom
hotfixes

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

🚀 What's Changed

💥 Breaking Changes

No breaking changes

✨ Features

No new features

🐛 Bug Fixes

No bug fixes

📦 Dependencies

🔧 Other Changes

No other changes


coverage

Metric Coverage
Statements 79.7%
Branches 73.6%
Functions 71.1%
Lines 80.7%

Avg: 76.2% · 82fe5f1 · Node lts/*

dependabot Bot and others added 3 commits October 3, 2026 06:15
Bumps the npm_and_yarn group with 1 update in the / directory: [brace-expansion](https://github.com/juliangruber/brace-expansion).

Updates `brace-expansion` from 5.0.9 to 5.0.12
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](juliangruber/brace-expansion@v5.0.9...v5.0.12)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 5.0.12
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <[email protected]>
(cherry picked from commit 4955fd9)
@cldmv-bot cldmv-bot Bot added ! hotfix release → master v4 flow: persistent hotfixes → master release PR (carries an urgent patch release) release Marks a pull request as a pending release — merge to publish a new version semver: patch This release contains only backwards-compatible bug fixes type: dependencies Relates to dependency updates, version bumps, or package management labels Oct 3, 2026
@cldmv-bot

cldmv-bot Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author

🔒 Dependency Review

  • ✅ 0 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ✅ 0 package(s) with unknown licenses
  • ✅ 0 denied package(s)
  • ✅ 0 package(s) with OpenSSF Scorecard score < 3

Full job summary

@cldmv-bot

cldmv-bot Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author

📦 Bundle size unchanged

File Raw Δ Raw Gzipped Δ Gzipped
dist/hold-my-task.mjs 94.1 kB — 19.4 kB —
dist/utils.mjs 3.3 kB — 1.2 kB —
index.cjs 1.2 kB — 561 B —
index.mjs 2.4 kB — 937 B —
types/index.d.mts 1.7 kB — 564 B —
types/index.d.mts.map 834 B — 299 B —
Total 103.5 kB ±0 B 22.9 kB ±0 B

📊 Generated by bundle-size. Brotli sizes also measured but omitted from the table for brevity.

@Shinrai
Shinrai changed the base branch from master to next October 3, 2026 16:08
@Shinrai
Shinrai merged commit a7f8673 into next Oct 3, 2026
45 checks passed
cldmv-bot Bot added a commit that referenced this pull request Oct 3, 2026
# HoldMyTask v2.0.4 Changelog

**Release Date**: October 2026
**Release Type**: Patch

---

## Overview

v2.0.4 makes the CommonJS entry fail clearly on Node.js versions that cannot `require()` an ES module, picks up a fix for a medium-severity denial-of-service advisory in `brace-expansion` (a development-time dependency), and moves two development tools forward. Behavior on supported Node.js versions is unchanged.

---

## 🐛 Bug Fixes

### CommonJS entry requires the ESM entry directly and fails clearly on older Node.js ([#48](#48))

`index.cjs` is a thin wrapper that loads `index.mjs` through Node's synchronous `require(esm)`. It now calls `require("./index.mjs")` directly instead of going through `createRequire`, and checks `process.features.require_module` first. On a Node.js version without `require(esm)` (before 20.19 and 22.12), `require("@cldmv/holdmytask")` used to die with a bare `ERR_REQUIRE_ESM`; it now throws an error with the same code and a message that names the supported versions (`^20.19.0` or `>=22.12.0`) and suggests loading the package with `import()` instead. On Node.js versions that support `require(esm)` the module resolves exactly as before. The new `tests/cjs/entry.test.cjs` runs under `node --test` (through the new `test:cjs` script, also part of `npm test` and `npm run coverage`) and checks that `require()` and `import` return the same object and that the error appears when `require(esm)` is disabled.

---

## 🔒 Security & supply chain

### brace-expansion 5.0.9 → 5.0.12 ([#44](#44))

Fixes [GHSA-q2hr-2g5m-vwhr](GHSA-q2hr-2g5m-vwhr) (CVE-2026-102277, medium, CVSS 5.3): expanding `{a},b}`-shaped input took quadratic time in the number of literal `}` characters, so an untrusted pattern could block the event loop. `brace-expansion` is a development-only dependency, pulled in solely by `minimatch` in the lint and test toolchain, and the package has no runtime dependencies, so the shipped code never loaded it. The update clears the open Dependabot alert on the lockfile.

## 🔧 Dependencies

- `@eslint/css` 1.4.0 → 2.0.0 (development; [#43](#43)). The major release adds `meta.languages` to the CSS rules. `npm run lint` passes unchanged with the repo's `css/recommended` configuration.
- `prettier` 3.9.6 → 3.9.9 (development; [#41](#41)). Lockfile-only: the `^3.0.0` range in `package.json` already allowed it.

## 🔧 CI & tooling

- The header comments in the generated `types/*.d.mts` files and their source maps were refreshed to the shared file-header format. Only comments changed; no type declarations differ from v2.0.3.

---

## Upgrade notes

No breaking changes — drop-in for [v2.0.3](./v2.0.3.md). The only runtime-visible difference is the clearer error for `require()` on Node.js versions that already could not load the package.



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>

---

<!-- coverage-start -->

![coverage](https://img.shields.io/badge/coverage-76.2%25-green?style=for-the-badge&logo=vitest&logoColor=white)

| Metric | Coverage |
|--------|----------|
| Statements | 79.7% |
| Branches   | 73.6% |
| Functions  | 71.1% |
| Lines      | 80.7% |

*Avg: **76.2%** · `dc7821b` · Node lts/**

<!-- coverage-end -->

<!-- co-authors -->

Co-authored-by: Shinrai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

! hotfix release → master v4 flow: persistent hotfixes → master release PR (carries an urgent patch release) release Marks a pull request as a pending release — merge to publish a new version semver: patch This release contains only backwards-compatible bug fixes type: dependencies Relates to dependency updates, version bumps, or package management

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant