Skip to content

release: v1.0.9 - raise engines to the require(esm) floor ^20.19.0 ||… - #51

Merged
cldmv-bot[bot] merged 22 commits into
masterfrom
next
Nov 2, 2026
Merged

cldmv-bot[bot] merged 22 commits into
masterfrom
next

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

@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: 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, #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).
  • 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).

📦 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, fixes #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).

🔒 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).
  • 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). 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).
  • 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).

📚 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, #70).
  • NEW: docs/changelog/v1/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).
  • Dev toolchain bumps (#66, #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): @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).

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.
👥 Contributors

coverage

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

Avg: 100.0% · 1aaf6cf · Node lts/*

Co-authored-by: Shinrai [email protected]

dependabot Bot and others added 3 commits October 14, 2026 21:22
Bumps the prettier group with 1 update: [prettier](https://github.com/prettier/prettier).


Updates `prettier` from 3.9.9 to 3.9.10
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@3.9.9...3.9.10)

---
updated-dependencies:
- dependency-name: prettier
  dependency-version: 3.9.10
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: prettier
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps the prettier group with 1 update:
[prettier](https://github.com/prettier/prettier).

Updates `prettier` from 3.9.9 to 3.9.10
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/prettier/prettier/releases">prettier's
releases</a>.</em></p>
<blockquote>
<h2>3.9.10</h2>
<ul>
<li>Markdown: Update <code>micromark-extension-gfm-table</code> to fix
the table parse issue on performance (<a
href="https://redirect.github.com/prettier/prettier/pull/20266">#20266</a>
by <a href="https://github.com/fisker"><code>@​fisker</code></a>)</li>
</ul>
<p>🔗 <a
href="https://github.com/prettier/prettier/blob/3.9.10/CHANGELOG.md#3910">Changelog</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/prettier/prettier/blob/main/CHANGELOG.md">prettier's
changelog</a>.</em></p>
<blockquote>
<h1>3.9.10</h1>
<p><a
href="https://github.com/prettier/prettier/compare/3.9.9...3.9.10">diff</a></p>
<h4>Markdown: Update <code>micromark-extension-gfm-table</code> to fix
the table parse issue on performance (<a
href="https://redirect.github.com/prettier/prettier/pull/20266">#20266</a>
by <a href="https://github.com/fisker"><code>@​fisker</code></a>)</h4>
<p>See <a
href="https://github.com/micromark/micromark-extension-gfm-table/commit/4f43ead37b786bc531d924530d4ab4c714886267">https://github.com/micromark/micromark-extension-gfm-table/commit/4f43ead37b786bc531d924530d4ab4c714886267</a>
for details.</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/prettier/prettier/commit/1172b82c295c4f889fd787dc6c78c3e194ebf353"><code>1172b82</code></a>
Release 3.9.10</li>
<li><a
href="https://github.com/prettier/prettier/commit/d0142273aff2c76f8a69785d42ee2cedc4b0aaa3"><code>d014227</code></a>
Update <code>micromark-extension-gfm-table</code> to fix the table parse
issue on perfor...</li>
<li><a
href="https://github.com/prettier/prettier/commit/953b9084329dcd06ed1072a04b333f1e6e9371e8"><code>953b908</code></a>
Bump Prettier dependency to 3.9.9</li>
<li><a
href="https://github.com/prettier/prettier/commit/ad8a6bf4fa23c42fd114683fec43b28a11bd24af"><code>ad8a6bf</code></a>
Clean changelog_unreleased</li>
<li>See full diff in <a
href="https://github.com/prettier/prettier/compare/3.9.9...3.9.10">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=prettier&package-manager=npm_and_yarn&previous-version=3.9.9&new-version=3.9.10)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>
@cldmv-bot cldmv-bot Bot added ! release → master v4 flow: persistent next → master release PR (carries the next feature release) release Marks a pull request as a pending release — merge to publish a new version semver: patch This release contains only backwards-compatible bug fixes release: deps-only Release PR that only touches devDependencies, lockfiles and CI config — held, not released labels Oct 14, 2026
@cldmv-bot

cldmv-bot Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor Author

🔒 Dependency Review

  • ✅ 0 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ✅ 0 package(s) with unknown licenses
  • ✅ 0 denied package(s)
  • ✅ 0 package(s) with OpenSSF Scorecard score < 3

Full job summary

@cldmv-bot cldmv-bot Bot added the type: dependencies Relates to dependency updates, version bumps, or package management label Oct 14, 2026
@cldmv-bot

cldmv-bot Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor Author

⚠️ Bundle size increased

File Raw Δ Raw Gzipped Δ Gzipped
dist/index.cjs 2.0 kB +124 B (+6.6%) ⚠️ 1.0 kB +58 B
dist/index.mjs 3.5 kB — 1.6 kB —
Total 5.5 kB +124 B 2.6 kB +58 B

📊 Generated by bundle-size. Brotli sizes also measured but omitted from the table for brevity.

Shinrai and others added 6 commits November 1, 2026 12:08
The CommonJS entry now has the same name in src/ and dist/, next to the
ESM entry it loads. tsup copies src/index.cjs to dist/index.cjs and the
wisp-dev condition's require points at it. The published dist/index.cjs
differs from before only in its @filename header line.

Adds caller-resolution tests through the CJS entry: in-process from
src/index.cjs, and a fixture that requires the package by name, run with
--conditions=wisp-dev (src/index.cjs) and without it (dist/index.cjs).
Both resolve relative paths against the calling file.

Closes #63
The CJS entry loads the ESM build through require(esm), so anything below
Node 20.19 already failed on require(), and 22.12.x prints an
ExperimentalWarning for it. engines.node and the entry's guard message now
say ^20.19.0 || >=22.13.0. The tsup target moves from node16 to node20 to
match, and the CI/publish matrix floor moves from 22.12.0 to 22.13.0.

Tests run with the wisp-dev condition: vitest gets it through
resolve.conditions, ssr.resolve.conditions and test.nodeOptions, and the
node --test run in test:cjs passes --conditions=wisp-dev. The README
states the new floor and documents the condition for checkouts.

Closes #64
The dev toolchain (chokidar 6, tsup 9) needs Node 22.22, so nothing older can be tested. engines, the CJS guard message and the CI matrix floor move together.
Node.js 22.22 retries a URL whose first import failed on attributes, like 24+, so the version gate ran the cached-failure test on a Node that no longer caches.
All devDependencies moved to @latest, including tsup 8.5.1 -> 9.0.0 and the transitive vite, esbuild, brace-expansion, js-yaml, minimatch, picomatch, serialize-javascript and diff updates. typescript stays on 6.x because 7.x fails to parse src/lib/resolve-from-caller.mjs.

Covers Dependabot alerts #1-#30 (all but katex #24) and supersedes PRs #53, #55, #57, #58, #60, #62.
@cldmv-bot cldmv-bot Bot added area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure type: ci Changes to CI workflows, actions, or build pipelines type: config Changes to repository or project configuration files type: documentation Relates to docs, README updates, guides, or inline code comments labels Nov 1, 2026
@cldmv-bot cldmv-bot Bot changed the title release: v1.0.9 - Bump prettier from 3.9.9 to 3.9.10 in the prettier… release: v1.0.9 - raise engines to the require(esm) floor ^20.19.0 ||… Nov 1, 2026
@cldmv-bot cldmv-bot Bot added type: bug Something is broken or not behaving as expected and removed release: deps-only Release PR that only touches devDependencies, lockfiles and CI config — held, not released labels Nov 1, 2026
@cldmv-bot
cldmv-bot Bot merged commit 5277b9f into master Nov 2, 2026
42 checks passed
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 ! release → master v4 flow: persistent next → master release PR (carries the next feature release) release Marks a pull request as a pending release — merge to publish a new version semver: patch This release contains only backwards-compatible bug fixes type: bug Something is broken or not behaving as expected 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.

Rename the CJS entry source src/cjs-shim.cjs to src/index.cjs

1 participant