Releases: Hilzu/node-shim
Releases · Hilzu/node-shim
v0.2.1
v0.2.0
- Enhancements to install command:
- 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
- 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
- Adds a new
install
command that can be used to install new versions of programs. See Readme andnode-shim install --help
for usage details
Bug fixing and newer compiler
- Fix an issue in semver resolution 2c0335b
- Update to OCaml version 4.06.0
- Enhance readme
Linux build!
- 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
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
- 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
- Fallback to global program if no version set in
- Replace node-shim with shimmed executable using
execv
instead of leaving it open after starting the shimmed program
First working version
- 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 nopackage.json
is found