Skip to content

chore: release#632

Open
toiroakr-release-bot[bot] wants to merge 1 commit into
mainfrom
changeset-release/main
Open

chore: release#632
toiroakr-release-bot[bot] wants to merge 1 commit into
mainfrom
changeset-release/main

Conversation

@toiroakr-release-bot

@toiroakr-release-bot toiroakr-release-bot Bot commented Jul 16, 2026

Copy link
Copy Markdown

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

politty@0.11.5

Patch Changes

  • 3835069: Add Node.js on-disk compile cache (V8 code cache) support for faster warm starts.

    • runMain now enables the compile cache automatically (Node.js >= 22.8.0; silent no-op otherwise), so dynamically imported modules such as lazy() subcommands skip recompilation. Note this is on by default: CLIs built with politty start writing cache files to ${XDG_CACHE_HOME:-$HOME/.cache}/<command name>/node-compile-cache (the same XDG convention as the shell-completion workers) on end users' machines. NODE_COMPILE_CACHE always takes precedence; opt out or override via the new MainOptions.compileCache option (false | custom directory).
    • New dependency-free politty/compile-cache subpath exporting enableCompileCache, for the bin-shim pattern that caches the whole CLI graph (ESM static imports are compiled before any code runs, so full coverage requires enabling the cache in a minimal shim that loads the real entry with a dynamic import). See "Faster Startup (Compile Cache)" in docs/recipes.md.
    • New politty generate-shim CLI command (and generateCompileCacheShim export) that generates one bin shim per bin entry as part of a postbuild/prepack script. Output paths default to the package's bin paths and program names to the bin names; --entry is repeatable for multi-bin packages (paired in declaration order, or with --out paths of the same count) and can be omitted when a conventional built module (./cli.js, ./index.js, ...) sits next to the shim. Refuses to overwrite files it did not generate, and the generated shim starts the CLI without the cache when politty is not resolvable at runtime (e.g. fully bundled CLIs) instead of failing.
  • 56fdde5: Fix .d.ts generation broken by the TypeScript 7 upgrade. TypeScript 7 (tsgo) has no JS compiler API, so rolldown-plugin-dts's default tsc-based DTS generation crashed the build (and the Release workflow). tsdown now generates declarations with the tsgo binary from @typescript/native-preview; the emitted declarations are equivalent to the previous tsc output.

Code Metrics Report

main (3e969c5) #632 (97a29b3) +/-
Coverage 92.1% 92.1% 0.0%
Test Execution Time 17s 14s -3s
Details
  |                     | main (3e969c5) | #632 (97a29b3) | +/-  |
  |---------------------|----------------|----------------|------|
  | Coverage            |          92.1% |          92.1% | 0.0% |
  |   Files             |             75 |             75 |    0 |
  |   Lines             |           7923 |           7923 |    0 |
  |   Covered           |           7304 |           7304 |    0 |
+ | Test Execution Time |            17s |            14s |  -3s |

Reported by octocov

@pkg-pr-new

pkg-pr-new Bot commented Jul 16, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/politty@e4bbf6f

commit: e4bbf6f

@toiroakr-release-bot
toiroakr-release-bot Bot force-pushed the changeset-release/main branch 8 times, most recently from 90a3512 to 11013b9 Compare July 20, 2026 04:16
@toiroakr-release-bot
toiroakr-release-bot Bot force-pushed the changeset-release/main branch from 11013b9 to e4bbf6f Compare July 20, 2026 04:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants