Skip to content

Releases

v0.1.2: New Logo

Choose a tag to compare

@github-actions github-actions released this 08 Nov 15:45
v0.1.2
c51b2b4

✨ What's New

  • New logo. The VS Code extension, the npm page and the GitHub README now show the new nodefit icon.

🐛 Fixes

  • The first line of nodefit doctor and nodefit check now reads nodefit doctor: <path> and nodefit check: <package>. It used a dash before.

📄 License

  • The VS Code extension is now AGPL-3.0-or-later, the same as the nodefit engine it bundles.

📦 Installation

npx @pypilot-dev/nodefit doctor

The VS Code extension is nodefit-vscode-0.1.2.vsix, attached below. In VS Code, run Extensions: Install from VSIX... and pick the file.

Full Changelog: v0.1.1...v0.1.2

v0.1.1: First Release

Choose a tag to compare

@github-actions github-actions released this 16 Oct 15:23
v0.1.1
3df1c40

✨ What's New

The first release of nodefit: it finds the Node.js version every dependency of a project supports, and catches native modules with no prebuilt binary before npm install falls back to node-gyp and fails with compiler errors.

It is PyPilot's approach, applied to Node: every package narrows the Node releases a project can run on (its engines.node range, and for a native module the releases it ships a prebuilt binary for on your platform). nodefit intersects them, recommends a release, and when nothing fits, names the two packages that clash.

$ npx @pypilot-dev/nodefit doctor
  supported Node   : none
    • sharp 0.35.5      20.9+, 21–26  prebuilt (per-platform packages) · engines >=20.9.0
    • node-sass 4.14.1  8–14  prebuilt (downloaded at install) · engines >=0.10.0

  [ERROR] No Node release fits every dependency
          node-sass 4.14.1 supports Node up to 14.21.3 (8–14) but sharp 0.35.5 needs at least Node 20.9.0 (20.9+, 21–26), so no single release satisfies both.
  [WARN ] node-sass 4.14.1 is deprecated
          npm says: "Node Sass is no longer supported. Please use `sass` or `sass-embedded` instead."

🔍 What it checks

  • Every Node release, from nodejs.org, with each release's native ABI, N-API level and end-of-life date (a snapshot ships with the package for offline use)
  • What is installed: npm, bun, pnpm and yarn (classic and berry) lockfiles, or package.json resolved the way npm would
  • Native modules, however they ship binaries: per-platform packages (sharp, esbuild, @swc/core), binaries in the tarball (prebuildify), downloads at install (prebuild-install, node-pre-gyp, node-sass), and packages that always compile
  • This machine: the node on PATH, installed version managers (nvm, nvm-windows, fnm, volta, mise, asdf, n) and the project's pins (.nvmrc, .node-version, .tool-versions, mise.toml, volta, engines, devEngines)
  • Deprecated dependencies, with npm's message, which usually names the replacement

💻 Command line

  • nodefit doctor: the full report; --json, --prod, --offline
  • nodefit check sharp, nodefit check better-sqlite3@^11: one package against your Node
  • nodefit pin: writes the recommended Node to the pin file the project already uses, else .nvmrc
  • nodefit lsp: the language server, for Zed and other LSP editors
  • Runs on Node 18 and later, with no dependencies of its own

🧩 VS Code extension

  • Diagnostics on the package.json entries that don't fit, with hovers and quick fixes
  • A status bar item showing the Node release the project fits
  • Notifications for new problems, with buttons to pin or switch Node, and the report one click away
  • nodefit-vscode-0.1.1.vsix is attached below

🛠 Built to be trusted

  • Published from GitHub Actions with npm provenance
  • Tested on Linux, Windows and macOS, on Node 18–24, and in a real VS Code

📦 Installation

Via npx (nothing to install):

npx @pypilot-dev/nodefit doctor

Via npm (installs the nodefit command):

npm install -g @pypilot-dev/nodefit

Via VS Code: install nodefit-vscode-0.1.1.vsix from the assets below (Extensions → ⋯ → Install from VSIX…)

Full Changelog: https://github.com/pypilot-dev/nodefit/commits/v0.1.1