Repository navigation
ci: cancel superseded CI runs outside the release branch - #213
Merged
Merged
Conversation
Adopt the CLDMV/.github v4.46.0 concurrency block: only the release base branch keeps a unique per-run group, so superseded runs on next, hotfixes and feature branches cancel. Resolves #210
Shinrai
approved these changes
Nov 27, 2026
This was referenced Nov 27, 2026
cldmv-bot Bot
added a commit
that referenced
this pull request
Nov 27, 2026
# `@cldmv/fix-headers` v2.6.0 Changelog
**Release Date**: November 2026
**Release Type**: Minor
**Branch**: `release/2.6.0`
---
## Overview
A declaration `tsc` emitted without a header now takes its source file's header dates and author, found through the tsconfig the declarations were built with. `src/index.cjs` is now the generic CLDMV CommonJS shim, and this package's own TypeScript declarations are generated at build and pack time instead of being committed. `require("@cldmv/fix-headers")` still returns the `fixHeaders` function, and the only new option is `tsconfig`.
---
## ✨ Features
### Headerless declarations take their source's header (#214)
`tsc` copies a source's header into its declaration only when no `import` lines follow the header; otherwise it drops it. Those declarations were stamped as new files on every build, with the build time as `@Last modified time`. fix-headers now finds the declaration's source through the tsconfig the declarations were built with: the declaration's path inside `declarationDir` (else `outDir`), under `rootDir` (else the tsconfig's folder), with the first matching source extension, following `extends`. The declaration's header then takes `@Date`, `@Author`, `@Last modified by` and `@Last modified time` from the source's header, so rebuilding the declarations no longer changes them. `@Filename` and `@Project` still name the declaration that ships, such as `types/src/x.d.mts`.
The tsconfig is the new `tsconfig` option (CLI `--tsconfig <path>`), relative to `cwd`, defaulting to `.configs/tsconfig.json` and then `tsconfig.json`. A default that is missing or can't be read is ignored. With no tsconfig, no source, a source without a header, or `rewriteDeclarationCopies: false`, the declaration is stamped like any new file, as before.
Fixes [#214](#214).
### Generic CommonJS shim ([#212](#212))
`src/index.cjs`, copied verbatim to `dist/index.cjs`, is the drop-in shim from the CLDMV package-layout convention instead of a hand-written `.default` unwrap. It returns the single distinct value the ESM entry exports, or the module object when there is more than one. fix-headers exports one function (`fixHeaders`, which is also the default export), so `require()` returns that function as before.
Fixes [#209](#209).
## 🔧 CI & tooling
### Declarations are generated, not committed ([#215](#215))
`types/` is gitignored. `npm run types:build` runs `tsc` and then stamps headers on its output with the package's own CLI, so each declaration names the file it ships as. `build:ci` and `prepack` both run it, so a published package always carries freshly built declarations. The package's `types` entry points at the generated `types/src/index.d.mts`; the hand-written `types/index.d.mts` re-export and the leftover `types/devcheck.d.mts` are gone. The repo's fix-headers config no longer sets `rewriteDeclarationCopies: false`.
Fixes [#211](#211).
### Superseded CI runs cancel outside the release branch ([#213](#213))
`ci.yml` takes the CLDMV/.github v4.46.0 concurrency block: only the release base branch keeps a unique group per run, so a newer push cancels the older run on `next`, `hotfixes` and feature branches.
Fixes [#210](#210).
## 📚 Documentation
- **NEW:** [docs/changelog/v2/v2.6.0.md](https://github.com/CLDMV/fix-headers/blob/v2.6.0/docs/changelog/v2/v2.6.0.md): this changelog.
- README: the `tsconfig` option and `--tsconfig` flag, and the rule for declarations `tsc` emitted without a header (#214).
- README What's New promoted to v2.6.0.
## 🔧 Dependencies
_No dependency updates._
---
## Upgrade notes
- `require()` and `import` return what they did in 2.5.1. The one new option is `tsconfig` (`--tsconfig`); without it, fix-headers looks for `.configs/tsconfig.json` and then `tsconfig.json`.
- TypeScript consumers resolve the declarations through `exports` as before; only the file's path inside the package changed, from `types/index.d.mts` to `types/src/index.d.mts`.
<details>
<summary>👥 Contributors</summary>
- @Shinrai
</details>
---
<!-- coverage-start -->

| Metric | Coverage |
|--------|----------|
| Statements | 99.9% |
| Branches | 98.9% |
| Functions | 100.0% |
| Lines | 99.9% |
*Avg: **99.6%** · `a76b236` · Node lts/**
<!-- coverage-end -->
<!-- co-authors -->
Co-authored-by: Shinrai <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ci.yml takes the v4.46.0 concurrency block: only the release base branch keeps a per-run group, so superseded runs on next, hotfixes and feature branches cancel.
Resolves #210