Use the node version specified in .nvmrc
We specify node version 10.22.0 so that CI will let us know if we break our minimum node version with any later changes, even if there are future updates to the 10.x release line.
In other words, this ensures that the minimum version in package.json is always tested by CI, as well as the latest 10.x version.
For example, if a new feature is added in 10.23 and we use it, we want CI to fail so that we know to update the minimum in
package.json.
Co-authored-by: Nathan Nichols <natenichols@cox.net>
- Using older versions of node can result in this error:
TypeError: buf.writeBigUInt64BE is not a function
- nvm can automatically use the version specified in .nvmrc. Use node
version 12 because it is currently recommended for most users
Many unit tests fail under node 12. It is possible that some of these
are caused by issues in node that will be fixed in the future.
This also removes the dependency on 'assert-diff' since it is not
necessary. It can easily be re-added in the future, if needed.