Skip to content

deps: pin typescript to 6; TypeScript 7's JavaScript declaration emit isn't complete yet - #173

Merged
Shinrai merged 1 commit into
nextfrom
deps/typescript-6
Nov 1, 2026
Merged

Shinrai merged 1 commit into
nextfrom
deps/typescript-6

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

🚀 What's Changed

💥 Breaking Changes

No breaking changes

✨ Features

No new features

🐛 Bug Fixes

No bug fixes

📦 Dependencies

  • deps: pin typescript to 6; TypeScript 7's JavaScript declaration emit isn't complete yet (e603e2e)

🔧 Other Changes

No other changes

👥 Contributors

@cldmv-bot cldmv-bot Bot added ! deps → next v4 flow: deps contributor PR targeting the next integration branch type: dependencies Relates to dependency updates, version bumps, or package management labels Nov 1, 2026
@Shinrai
Shinrai merged commit 9e6cdbd into next Nov 1, 2026
31 checks passed
@cldmv-bot
cldmv-bot Bot deleted the deps/typescript-6 branch November 1, 2026 23:43
cldmv-bot Bot added a commit that referenced this pull request Nov 2, 2026
…ady…

# `@cldmv/fix-headers` v2.2.5 Changelog

**Release Date**: November 2026
**Release Type**: Patch
**Branch**: `release/2.2.5`

---

## Overview

Version 2.2.5 removes the development check added in v2.2.4 and raises the Node.js floor to 22.22.0. Header handling, the `fixHeaders` API and the CLI behave exactly as in v2.2.4.

The development check only ever ran in a source checkout, never in the installed package, so removing it changes nothing for consumers. The Node.js floor is a real requirement change: `engines.node` is now `>=22.22.0` (was `>=22.13.0`), so installs on Node.js 22.13 through 22.21 get an `EBADENGINE` warning, or fail under `engine-strict`.

---

## 🐛 Bug Fixes

### Development check removed ([#170](#170))

v2.2.4 made `src/index.mjs` load a root `devcheck.mjs` that stopped a source checkout run without `--conditions=fix-headers-dev`. That check is gone, along with its test and the tsup `external` entry that kept it out of the bundles. The `fix-headers-dev` export condition already chooses the tree: with it, `@cldmv/fix-headers` resolves to `src/`; without it, to the built `dist/`. Both are valid ways to run a checkout, and the repository's npm scripts and Vitest config pass the condition.

The published `dist/index.mjs`, `dist/index.cjs` and `bin/fix-headers.mjs` no longer reference `../devcheck.mjs` at all; before, they tried to load it and skipped it when it was missing. The entry files stay `src/index.mjs` and its CommonJS sibling `src/index.cjs`, and the package's exports are unchanged.

## 💥 Breaking Changes

### Node.js 22.22.0 or later ([#170](#170))

`engines.node` is `>=22.22.0` (was `>=22.13.0`). The development toolchain no longer runs on earlier 22.x releases (tsup 9 needs 22.18 or later), so those versions can't be tested any more. The CI matrix floor, the README requirements and the message `require("@cldmv/fix-headers")` prints on a Node.js without `require(esm)` all say 22.22.0 now. The library code itself didn't change for this; it's a change to what is supported and tested.

## 🔧 CI & tooling

- The CI and publish workflows' `min_node_version` default is 22.22.0 ([#170](#170)).

## 📚 Documentation

- **NEW:** [docs/changelog/v2/v2.2.5.md](./v2.2.5.md): this changelog.
- README: the requirements list the 22.22.0 floor ([#170](#170)).
- README What's New promoted to v2.2.5.

## 🔧 Dependencies

- `ignore` range `^7.0.5` → `^7.0.14`; the lockfile already resolved 7.0.14, so the installed version is the same ([#172](#172)).
- Development only: `tsup` 8.5.1 → 9.0.0 (which brings `cac` 7, `chokidar` 5, `readdirp` 5 and `tinyexec` 1) and `globals` 17.13.0 → 17.14.0 ([#172](#172)).
- Development only: `typescript` stays on 6.0.3. [#172](#172) moved it to 7, and [#173](#173) pinned it back to `^6.0.3` because TypeScript 7's declaration emit for JavaScript sources isn't complete yet.
- The `katex` and `minimatch` npm overrides from v2.2.4 are unchanged; both are development-only.

---

## Upgrade notes

- **Node.js 22.22.0 or later is required** (was 22.13.0). Upgrade Node.js before upgrading the package.
- No change to the `fixHeaders` API, the CLI or the output it writes. Upgrading from v2.2.4 produces no diff in your files.
- In a fix-headers source checkout, nothing stops a run without `--conditions=fix-headers-dev` any more; it just uses `dist/`, so build first or pass the condition. The npm scripts already pass it.



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

- @Shinrai

</details>

---

<!-- coverage-start -->

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

| Metric | Coverage |
|--------|----------|
| Statements | 99.9% |
| Branches   | 98.8% |
| Functions  | 100.0% |
| Lines      | 99.9% |

*Avg: **99.6%** · `a70f12c` · 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

! deps → next v4 flow: deps contributor PR targeting the next integration branch 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