Highlights of this release:
--watch mode where files are watched for changes (think nodemon)
.readlines() of FileHandles
util.parseArgs() supports default values for options.
The new watch mode is used as follows:
node --watch index.js
node --watch-path=./src --watch-path=./tests index.js
Node.js reruns the entry point module whenever the watched files change.
--watch-path: “This option is only supported on macOS and Windows.”
- First-class support for import assertions.
- Better defaults for interoperation with ESM on Node.js.
Rollup’s website explains how to migrate to Rollup 3
Lerna reborn – what’s new in v6?
Highlights of the new release:
- Performance improvements due to caching by default
- Remote caching and distributed task execution
- Defining task pipelines
lerna add-caching guides you through setting up caching and task pipelines.
- pnpm support
- Visual Studio Code extension for Lerna workspaces
lerna repair automatically fixes Lerna configurations.
- Built-in support for Prettier
- Improved performance
- Better support for Apple’s M1 processor and OpenBSD
nvm install-latest-npm now works with the upcoming npm 9.
What is pnpm and is it really so fast and space-efficient?
Quoting the blog post: “In this post, I’d like to talk about what sets pnpm apart from other package managers – and why we need package managers at all.”