Skip to content

Releases: Hilzu/node-shim

v0.2.1

20 Feb 13:22
Compare
Choose a tag to compare
  • If first found package.json doesn't have engines set traverse upwards looking for the next one a2a4e23

v0.2.0

30 Oct 11:36
Compare
Choose a tag to compare
  • Enhancements to install command:
    • Download latest stable version when no version given 2b2209a
    • Resolve given version using semver.io to the latest compatible version 1bf8500
  • Better semver support eb0f23b
    • Support using x instead of leaving a number out
    • When leaving numbers out the version is now correctly resolved to latest corresponding to given version like 8.10
    • Support using empty string or * as a wildcard version
  • Fix installing npm 9fcc30e

v0.1.0: Better support for semver ranges

15 Sep 08:01
Compare
Choose a tag to compare
  • Better support for semver features:
    • >=8.9.0 - Support major ranges
    • ^10 - Support version that are missing minor and/or patch versions
    • >= 10.0 - Support versions that have extra whitespace
    • = 10.10.0 - Support exact versions defined with equals sign
  • Use a version that is actually valid according to semver 😅
  • Build with OCaml 4.07.0 and Dune

v0.0.6: Install command

19 Feb 11:51
Compare
Choose a tag to compare
Pre-release
  • Adds a new install command that can be used to install new versions of programs. See Readme and node-shim install --help for usage details

Bug fixing and newer compiler

09 Dec 11:18
Compare
Choose a tag to compare
Pre-release
  • Fix an issue in semver resolution 2c0335b
  • Update to OCaml version 4.06.0
  • Enhance readme

Linux build!

01 Nov 20:13
Compare
Choose a tag to compare
Linux build! Pre-release
Pre-release
  • Official Linux support and release
  • Don't leave bash processes running when spawning programs
  • When installing read location from INSTALL_PATH env var or default to ~/bin

Introducing semver range support

16 Oct 08:42
Compare
Choose a tag to compare
Pre-release

node-shim is now good enough that I've been able to replace nvm with it in my daily work. Please give it a spin!

New features:

  • Support for tilde and caret semver ranges
  • Override shim root folder with NODE_SHIM_ROOT env var
  • Inherit resolved program version in sub-programs
  • Override version resolution with NODE_SHIM_$PROGRAM_VERSION env var

Small enhancements

10 Oct 19:55
Compare
Choose a tag to compare
Small enhancements Pre-release
Pre-release
  • Add possibility to enable debug logging by setting the NODE_SHIM_DEBUG environment variable to true
  • Don't require all programs to have an version in the engines field
    • Fallback to global program if no version set in package.json
  • Replace node-shim with shimmed executable using execv instead of leaving it open after starting the shimmed program

First working version

28 Sep 14:54
Compare
Choose a tag to compare
First working version Pre-release
Pre-release
  • Find node, npm and yarn versions from package.json. The file is searched by traversing the directory hierarchy up.
  • Fallback to global version in /usr/local/bin if no package.json is found