Skip to content

fix: keep the Node.js floor at >=22.15.0 and set the dev floor to 22.22.0 - #122

Merged
Shinrai merged 1 commit into
nextfrom
fix/node-floor
Nov 7, 2026
Merged

Shinrai merged 1 commit into
nextfrom
fix/node-floor

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

engines stays >=22.15.0 (slothlet 3.22). The vitest 5 toolchain's 22.22.0 goes in devEngines and the CI/publish minimum, which were 22.15.0 and 22.12.0.

@cldmv/slothlet 3.22 sets the runtime floor; the vitest 5 toolchain needs 22.22, so it goes in devEngines and the CI minimum.
@cldmv-bot cldmv-bot Bot added ! fix → next v4 flow: fix contributor PR targeting the next integration branch type: ci Changes to CI workflows, actions, or build pipelines type: config Changes to repository or project configuration files type: dependencies Relates to dependency updates, version bumps, or package management type: documentation Relates to docs, README updates, guides, or inline code comments labels Nov 5, 2026
@Shinrai Shinrai changed the title fix: set the Node.js floor to >=22.15.0 and the dev floor to 22.22.0 fix: keep the Node.js floor at >=22.15.0 and set the dev floor to 22.22.0 Nov 5, 2026
@Shinrai
Shinrai merged commit b5de269 into next Nov 7, 2026
30 checks passed
@cldmv-bot
cldmv-bot Bot deleted the fix/node-floor branch November 7, 2026 05:10
cldmv-bot Bot added a commit that referenced this pull request Nov 8, 2026
# `@cldmv/git-embedded` v1.2.0 Changelog

**Release Date**: November 2026
**Release Type**: Minor
**Branch**: `release/1.2.0`

---

## Overview

Version 1.2.0 gives the package a real build. The CLI moved from a hand-written `bin/git-embedded.mjs` to `src/bin/git-embedded.mjs`, and tsup now builds all of `src/` into `dist/`, file by file. The published package ships `dist/` instead of `bin/` and `src/`, and the `git-embedded` command points at `dist/bin/git-embedded.mjs`. The CLI's commands, hooks and messages behave the same.

It also refreshes the dependencies, clearing every `npm audit` finding, passes slothlet's `base` option so a current slothlet doesn't print a deprecation warning, and separates the package's runtime Node.js floor from the development one: `engines.node` stays `>=22.15.0`, and the test toolchain's `>=22.22.0` moves to `devEngines` and the CI minimum.

---

## ✨ Features

### The CLI and API are built from `src/` with tsup ([#125](#125))

`build` was a placeholder `echo` that only existed so the CI coverage jobs had something to run. It is now `tsup`, configured in `tsup.config.mjs` with `bundle: false`: every `src/**/*.mjs` file is minified into the same path under `dist/` (with `keepNames`, and `node:` specifiers kept), so slothlet still discovers the `dist/api/` tree file by file. `prepack` runs the build, so `npm pack` and `npm publish` always ship a fresh `dist/`, and `build:ci` now runs lint, the format check and the build.

- `package.json` `files` lists `dist`, `hooks`, `messages`, `docs`, `README.md` and `LICENSE`; `bin` and `src` are gone.
- `bin` points at `./dist/bin/git-embedded.mjs`, and `npm start` runs `src/bin/git-embedded.mjs` from a checkout.
- The CLI finds its package root by walking up to the nearest `package.json`, so the same file works from `src/bin/` and `dist/bin/`, and the Windows elevation helper resolves its child script relative to the built module.
- `tests/bin-cli.test.vitest.mjs` covers the CLI entry point, and the bundle-size workflow measures `dist/**`.

Resolves [#31](#31).

## 🐛 Bug Fixes

### Runtime and development Node.js floors ([#122](#122))

`engines.node` stays `>=22.15.0`, which is what the package and `@cldmv/slothlet` 3.22 need at runtime. The vitest 5 toolchain needs 22.22.0, so that floor is now declared in `devEngines` (`onFail: "error"`), and the CI and publish minimum Node versions, which were 22.15.0 and 22.12.0, follow it. The README states both.

### No deprecation warning from slothlet 3.24 ([#128](#128))

slothlet 3.24 warns when a project passes the `dir` option, which was renamed to `base` in 3.9, so with a current slothlet every CLI run printed a `V3_CONFIG_DEPRECATED` warning. The CLI now passes `base`, and a test runs the CLI and checks that no deprecation warning reaches stderr.

## 🔧 Dependencies

### Runtime dependencies

- **`@cldmv/slothlet` `^3.7.0` → `^3.24.0`**, resolving 3.22.0 → 3.24.0, because the CLI now passes the `base` option ([#128](#128)).
- **`@cldmv/wisp` 1.0.6 → 1.0.9** in the lockfile, inside the existing `^1.0.1` range ([#128](#128)).

### Development dependencies

- **`tsup` 9.0.0** (new, with `esbuild` 0.28.2) and **`typescript` 6.0.3** (new, tsup's peer dependency) for the build ([#125](#125)).
- **`prettier` 3.9.9 → 3.9.10** ([#106](#106)).
- **Lockfile refresh within the existing ranges** ([#128](#128)), replacing seven Dependabot PRs: `vitest` and `@vitest/coverage-v8` 5.0.3 → 5.1.0, `vite` 8.3.2 → 8.3.6, `eslint` 10.12.0 → 10.14.0, `@cldmv/fix-headers` 2.2.0 → 2.2.6 and `nanoid` 3.3.19 → 3.3.20, among others.
- **`overrides` for `katex` (`>=0.19.1 <1.0.0`) and `minimatch` (`^11.0.3`)**, the fleet fix for advisories in the `eslint` / `@eslint/markdown` chain ([#128](#128)). `npm audit` reports 0 vulnerabilities.

## 📚 Documentation

- **NEW:** [docs/changelog/v1/v1.2.0.md](./v1.2.0.md): this changelog.
- README What's New promoted to v1.2.0.

---

## Upgrade notes

- `@cldmv/slothlet` now needs `^3.24.0`; its `engines.node` is `>=22.15.0`, the same as this package.
- No breaking changes for anyone running the `git-embedded` command: installing the package still puts it on `PATH`, and its commands and hooks are unchanged.
- Code that imported files from the package's `src/` or `bin/` directly will no longer find them; the same modules are under `dist/`. The package has no `exports` map, so these were never a supported entry point.
- Contributors need Node.js 22.22 or later, and a checkout must run `npm run build` before `npm pack` or a local install from the folder uses `dist/` (`prepack` does this automatically).



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

- @Shinrai

</details>

---

<!-- coverage-start -->

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

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

*Avg: **100.0%** · `7b9d767` · 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

! fix → next v4 flow: fix contributor PR targeting the next integration branch type: ci Changes to CI workflows, actions, or build pipelines type: config Changes to repository or project configuration files type: dependencies Relates to dependency updates, version bumps, or package management type: documentation Relates to docs, README updates, guides, or inline code comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant