This project adheres to Semantic Versioning.
v0.4.3 - 2025-06-26
- Make displaying the selected Node.js version in shell prompt faster in
contrib/set-prompt.sh
- After the first use,
chnode NODE_VERSIONchanges the installation directory of the selected Node.js version in$PATHin place. This preventschnodefrom adding the installation directory to the beginning ofPATHwhen changing Node.js versions.
v0.4.2 - 2022-10-07
- Fix not attempting to populate the
CHNODE_NODESshell array variable when theCHNODE_NODES_DIRcontains just dotfiles.
- Readme: more details about how to install Node.js versions
- Readme: instruct configuring the prefix path for
npm
v0.4.1 - 2022-05-29
- Change parsing of the
.node-versionfile in thechnode_autofunction to be more forgiving (allow missing trailing newline, allow Windows style line endings, trim the leadingvcharacter if followed by a digit). Issue #5 by John Gee (@shadowspawn).
v0.4.0 - 2021-05-03
- Introduce the
CHNODE_AUTO_VERSION_FILENAMEshell variable to change the name the files used in detecting automatic version switching. The default value of the variable is.node-version.
- Fix ignoring a
.node-versionfile containing just a newline. Document file format specification in the readme.
v0.3.1 - 2019-11-10
- Ensure using external utility for
lswhen checking the non-emptiness ofCHNODE_NODES_DIR(avoid calling function or alias forls).
v0.3.0 - 2019-08-28
- Add support for automatic Node.js version switching by detecting
.node-versionfile and switching to the version specified in the file automatically. Implemented as an optional add-on by sourcingauto.shand installing a hook into shell. Pull Request #2 by James Buckley (@donquxiote).
v0.2.0 - 2018-10-07
- Add
chnode -Rto reload chnode, allowing detecting new and removed Node.js versions inCHNODE_NODES_DIR.
- Breaking: rename
chnode resettochnode -r. Rationale: disallow word commands in order to avoid clashes with Node.js versions, selectable withchnode NODE_VERSION. - Code refactor.
v0.1.0 - 2018-09-30
- First release.