Skip to content

v0.4.0

Latest

Choose a tag to compare

@github-actions github-actions released this 05 Dec 17:55
· 4 commits to main since this release
f895e2f

What's new in 0.4.0

Pack smaller standalone executables without installing Rust. Thinpack now ships a link kit for each supported platform and engine. Plain thinpack pack selects the Node built-ins your app needs and links them locally with the bundled linker. After installation, packing works offline without Rust, Node.js, or a platform SDK. Keep the kit next to the Thinpack CLI if you move a manually extracted distribution; only the packed executable needs to be distributed to users on compatible systems.

  • Relative files read through new URL(..., import.meta.url) can now be included in the packed app.
  • Packed executables pass --warm-cache through to the app. Use thinpack warm-cache <packed-executable> to warm the cache explicitly.
  • QuickJS reports unsupported localized date formatting instead of silently returning English output for unsupported locales.
  • Packing streams executable output and avoids repeated module discovery and package manifest reads.

Upgrading from 0.3.x

  • Remove --rebuild and --source from packaging scripts. Use plain thinpack pack with the new distribution.
  • QuickJS is the default; macOS can also use JavaScriptCore. Thinpack does not ship a V8 engine.
  • Windows x64 keeps the previous archive filename for existing downloads and actions. The archive now contains the GNU/UCRT link kit; keep its files together when extracting it.

Install

curl -fsSL https://raw.githubusercontent.com/thinpack-js/thinpack.js/v0.4.0/scripts/install.sh | THINPACK_VERSION=v0.4.0 sh
thinpack pack hello.js -o hello

On macOS, set THINPACK_BACKEND=jsc on the installer to select JavaScriptCore. On Linux, set THINPACK_STATIC=1 to select musl. For manual downloads, verify the archive against SHA256SUMS.

Full changelog