Skip to content

fix(deps): refresh the lockfile and switch to slothlet's base option - #128

Merged
Shinrai merged 2 commits into
nextfrom
deps/dependency-updates
Nov 8, 2026
Merged

Shinrai merged 2 commits into
nextfrom
deps/dependency-updates

Conversation

@cldmv-bot

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

Copy link
Copy Markdown
Contributor

One PR for all the open Dependabot updates. npm update within the existing ranges, plus the fleet katex / minimatch overrides for the eslint chain, so npm audit is at 0. Replaces #109, #111, #113, #116, #118, #120 and #127.

slothlet 3.24 warns on the dir option, so the CLI and test setup now pass base, the range is ^3.24.0, and a test checks the CLI starts without a deprecation warning.

npm update within the existing ranges, plus the fleet overrides for the
eslint/@eslint/markdown chain. npm audit reports 0 vulnerabilities.

- vite 8.3.2 -> 8.3.6
- vitest 5.0.3 -> 5.1.0
- @vitest/coverage-v8 5.0.3 -> 5.1.0
- eslint 10.12.0 -> 10.14.0
- katex 0.16.47 -> 0.19.1
- minimatch 10.2.6 -> 11.0.5
- nanoid 3.3.19 -> 3.3.20

Replaces #109, #111, #113, #116, #118, #120 and #121.
@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 8, 2026
slothlet 3.24 warns on dir (renamed to base in 3.9), so after the
lockfile refresh every CLI run printed a V3_CONFIG_DEPRECATED warning.
The CLI and test setup now pass base, the dependency range is ^3.24.0,
and a test checks the CLI starts without a deprecation warning.
@cldmv-bot cldmv-bot Bot added area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure labels Nov 8, 2026
@cldmv-bot cldmv-bot Bot changed the title deps: refresh the lockfile and override katex and minimatch fix: pass slothlet's base option instead of the deprecated dir Nov 8, 2026
@cldmv-bot

cldmv-bot Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

Auto-normalized PR title: rewrote PR title to match the highest-priority commit type (fix).

  • Before: deps: refresh the lockfile and override katex and minimatch
  • After: fix: pass slothlet's base option instead of the deprecated dir

If this isn't what you want, edit the title — the normalizer won't re-fire as long as the title stays conventional.

@Shinrai Shinrai changed the title fix: pass slothlet's base option instead of the deprecated dir fix(deps): refresh the lockfile and switch to slothlet's base option Nov 8, 2026
Shinrai added a commit that referenced this pull request Nov 8, 2026
@Shinrai
Shinrai merged commit 971c1d7 into next Nov 8, 2026
28 checks passed
@cldmv-bot
cldmv-bot Bot deleted the deps/dependency-updates branch November 8, 2026 22:04
Shinrai added a commit that referenced this pull request Nov 8, 2026
## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
_No new features_

### 🐛 Bug Fixes
_No bug fixes_

### 📦 Dependencies
_No dependency updates_

### 🔧 Other Changes
- docs: add #128 to the v1.2.0 changelog (#126) (0345aed)
- docs: v1.2.0 changelog and What's New (#126) (aa51f7c)



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

- @Shinrai

</details>
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

area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure ! 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