Repository navigation
deps: override katex and minimatch to their patched versions - #67
Merged
Merged
Conversation
katex 0.19.1+ and minimatch 11.0.3+ clear the dev-only advisories that come in through eslint and @eslint/markdown; the same overrides fix-headers carries.
Shinrai
approved these changes
Nov 1, 2026
cldmv-bot Bot
added a commit
that referenced
this pull request
Nov 2, 2026
# `@cldmv/wisp` v1.0.9 Changelog **Release Date**: November 2026 **Release Type**: Patch **Branch**: `release/1.0.9` --- ## Overview This release renames the CommonJS entry's source file to match its published name and adds tests for caller resolution through it. JSON loading behaves exactly as in [v1.0.8](./v1.0.8.md): the only change in `src/` is the version range named in the `require()` error message, and the published `dist/index.cjs` differs only in that message, a comment explaining it and its file header. The supported Node.js range does not change. `engines.node` stays `>=16.0.0`, since wisp exists to load JSON on every Node.js version, and `dist/index.mjs` is still built for the Node.js 16 syntax level. --- ## 📦 Requirements ### Node.js support is unchanged; developing wisp needs 22.22.0 ([#65](#65), [#70](#70)) - `import` works on Node.js 16 and later, as before. `require()` needs Node.js `^20.19.0` or `>=22.13.0`, because the CommonJS entry loads the ES module build through synchronous `require(esm)`. 22.13 rather than 22.12 because Node.js 22.12 prints an ExperimentalWarning on `require(esm)`. - The CommonJS entry's `ERR_REQUIRE_ESM` message now reads `require() needs Node.js ^20.19.0 or >=22.13.0` and still points to `import()`. - Developing wisp needs Node.js 22.22.0 or newer, the floor of the build and test toolchain (Vitest 5, tsup 9). That floor is declared in the new `devEngines.runtime` field with `onFail: "error"`, which npm checks only for this project's own `npm install`, `npm ci` and `npm run`, never for consumers ([#70](#70)). - The CI test matrix starts at Node.js 22.22.0 instead of 22.12.0, matching `devEngines`. That is not wisp's support floor, and the workflow input descriptions now say the value must match `devEngines`, not `engines` ([#70](#70)). --- ## 📦 Packaging - **CommonJS entry renamed in source.** `src/cjs-shim.cjs` is now `src/index.cjs`, next to the ESM entry `src/index.mjs` it loads, so the source and the published `dist/index.cjs` share a name ([#65](#65), fixes [#63](#63)). The `wisp-dev` export condition's `require` target now points at `src/index.cjs`. Nothing changes for consumers of the published package. - **Caller resolution through the CommonJS entry is tested.** wisp resolves relative paths from the file that calls it by skipping `index.*` entry frames in `src/` and `dist/`. New tests load the package by name from a CommonJS fixture, once with the `wisp-dev` condition (`src/index.cjs`) and once without it (`dist/index.cjs`), and check that paths still resolve against the calling file ([#65](#65)). --- ## 🔒 Security & supply chain - The dev toolchain update moves Vite (via Vitest) from 8.3.2 to 8.3.5 and esbuild (via tsup) from 0.27.7 to 0.28.2, clearing the open Dependabot alerts ([#66](#66)). - `overrides` now force `katex` to `>=0.19.1 <1.0.0` (0.16.47 → 0.19.1) and `minimatch` to `^11.0.3` (10.2.6 → 11.0.3), the patched versions ([#67](#67)). Both are development-only transitive dependencies; the package still has no runtime dependencies. --- ## 🔧 CI & tooling - **The test setup passes the `wisp-dev` condition**: `resolve.conditions` and `ssr.resolve.conditions` in the Vitest configuration, and `--conditions=wisp-dev` on the `node --test` run in `test:cjs`, so loading the package by name in tests reaches `src/` ([#65](#65)). - **The failed-import retry test is gated on behaviour, not the Node.js major.** Node.js 22.22 retries a URL whose first import failed on its attributes, as 24 and later do, so the old `>= 24` check ran the cached-failure test on a Node.js that no longer caches. The suite now probes the behaviour once at startup ([#65](#65)). --- ## 📚 Documentation - The README's Requirements section states the `require()` range (`^20.19.0` or `>=22.13.0`) next to the Node.js 16 floor for `import` and notes that development needs Node.js 22.22.0 (`devEngines`), and the Contributing section explains how the `wisp-dev` condition switches a checkout between `dist/` and `src/` ([#65](#65), [#70](#70)). - **NEW:** [docs/changelog/v1/v1.0.9.md](./v1.0.9.md): this changelog. - README What's New promoted to v1.0.9. --- ## 🔧 Dependencies - **Runtime**: none, unchanged. - **tsup 9**: `tsup` 8.5.1 → 9.0.0 ([#66](#66)). - **Dev toolchain bumps** ([#66](#66), [#49](#49)): `vitest` and `@vitest/coverage-v8` 5.0.3 → 5.0.5, `@cldmv/vitest-runner` 1.5.3 → 1.5.6, `eslint` 10.12.0 → 10.14.0, `prettier` 3.9.9 → 3.9.10, `@eslint/css` 2.0.0 → 2.0.1, `@eslint/json` 2.1.0 → 2.1.1, `globals` 17.13.0 → 17.14.0, `@types/node` 26.6.4 → 26.6.6. - **CLDMV tooling** ([#66](#66)): `@cldmv/fix-headers` 2.2.0 → 2.2.4, `@cldmv/configs` 1.2.4 → 1.3.0, `@cldmv/jsonv` 1.1.3 → 1.1.5, `@cldmv/eslint-plugin-jsonv` 1.0.15 → 1.0.17, `@cldmv/prettier-plugin-jsonv` 1.1.3 → 1.1.4. - `typescript` stays on `^6.0.3`, and the generated `types/` are unchanged. - `overrides` for `katex` and `minimatch`, see Security & supply chain ([#67](#67)). --- ## Upgrade notes - Nothing to do for the Node.js version: `engines.node` is still `>=16.0.0`. Code that calls `require()` needs Node.js `^20.19.0` or `>=22.13.0`; on older versions load the package with `import()`. - No API changes: the exports, options and JSON loading behaviour are the same as v1.0.8. <details> <summary>👥 Contributors</summary> - @Shinrai </details> --- <!-- coverage-start -->  | Metric | Coverage | |--------|----------| | Statements | 100.0% | | Branches | 100.0% | | Functions | 100.0% | | Lines | 100.0% | *Avg: **100.0%** · `1aaf6cf` · 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.
🚀 What's Changed
💥 Breaking Changes
No breaking changes
✨ Features
No new features
🐛 Bug Fixes
No bug fixes
📦 Dependencies
🔧 Other Changes
No other changes
👥 Contributors