ES module autodetection coming to Node
#508 — October 31, 2023
Node v21.1 (Current) Released with ESM Detection Feature — “The new flag –experimental-detect-module can be used to automatically run ES modules when their syntax can be detected. … We hope to make detection enabled by default in a future version.”
Michaël Zasso
Node v20 Becomes Active LTS Version with v20.9.0 — Codenamed ‘Iron’, v20.9.0 is the first v20 release in its new life as the active LTS version, a role v20 will keep until October 2024. Time to start considering those Node 18 to 20 migrations in production..
Richard Lau
Streamline API Development with Postman Workspaces — Postman workspaces give teams shared access to the API tools they need to solve problems together. They are the go-to place for development teams to collaborate and move quickly while staying on the same page.
Postman sponsor
Say Goodbye to Node’s Buffer — It’s time to move from Buffer to Uint8Array, says Sindre. Given his epic number of maintained libraries, he could probably migrate half of the ecosystem solo, but he sets out his case for other library maintainers to avoid the use of Buffer in favor of the more cross-runtime alternative of Uint8Array and explains how to make the move, including a package to help.
Sindre Sorhus
IN BRIEF:
🔐 GitHub is now scanning all public npm packages for leaked secrets. Note that if secrets are found, the provider associated with those secrets is notified, not the package maintainer.
🎨 There’s one week left to go in the Node.js mascot contest.
🥳 Node-powered static site generator Eleventy / 11ty is celebrating passing seven million lifetime downloads.
Daniel Ehrenberg of Bloomberg wrote about how Bloomberg invests in the Node.js ecosystem and encourages your companies to get involved, too.
You can now use npm modules in Netlify Functions.
If you missed all the Node.js v21 release excitement recently, AppSignal has a handy recap of what’s new in Node 21.
🗣 Is Express Still the ‘De-Facto’ Choice? — A Hacker News discussion about whether Express is still the ‘go-to’ choice for building Node-powered webapps. The statistics from every recent survey I’ve seen indicate yes, but there are plenty of viable alternatives to choose from.
Hacker News
The Basics of Using SQL Server from Node
Dianne Pena
An Introduction to Testing and Code Quality in Node
Samson Omojola
🛠 Code & Tools
resvg-js 2.6: A High-Performance SVG Renderer and Toolkit — Powered by Rust’s resvg on the backend, this works in both Node and the browser for converting SVG to PNG with a high level of SVG spec support. v2.6 claims to be ‘up to 115x faster’ for large SVG files, thanks to a new rendering algorithm.
Miscellaneous
Express Slow Down 2.0: Slow Down Repeated Requests — For when you don’t want Express to be quite so ‘express’. Use to slow repeated requests to public APIs and/or endpoints such as password resets.
Express Rate Limit
Accelerate Your API Development with Postman Collection — Browse 70+ free and customizable templates to jump-start your API design, documentation, development and testing workflows.
Postman sponsor
ImapFlow: Modern and Easy-to-Use IMAP Client Library — IMAP (Internet Message Access Protocol) is a popular protocol used by email clients to work with messages hosted on a remote mail server.
Postal Systems OÜ
Express TypeScript Skeleton: An Express.js App Template — It may be Halloween, but it’s not that type of skeleton. Instead it’s a template for creating a REST API on top of Express, TypeScript, ESLint, Prettier, and some other tools.
Borja Paz Rodríguez
crypto-hash 3.0: A Hashing Module Using the Native Crypto API in Node and Browser — Get the same hashing API in both environments. Uses the crypto module on Node and window.crypto in the browser.
Sindre Sorhus
📰 Classifieds
🚀 Open-Source Data Observability: Streamdal is a tail -f for your data with a UI and support for Node with our SDK.
📞 Calling all devs! Sentry Launch Week is coming. Tune in for new products, demos, and discussions with experts from the community. RSVP.
Mongoose 8.0 – Popular MongoDB object modeling library. There’s a 7.x to 8.0 migration guide to help you upgrade.
pnpm 8.10 – Now supports multiple architectures when installing dependencies.
node-gyp 10.0 – Node.js native addon build tool.
Axios 1.6 – Long standing, promise-based isomorphic HTTP client.
NodeBB 3.5 – Node.js based forum system.
Mikro ORM 5.9 – TypeScript ORM for Node.js.
eslint-formatter-pretty 6.0 – Pretty formatter for ESLint.
Opal 1.8 – Ruby to JavaScript transpiler.
NOTABLE QUOTABLE
“The art of debugging is figuring out what you really told your program to do rather than what you thought you told it to do.”
___
Andrew Singer