A snapshot of what’s new in Node
June 18, 2024
Node v22.3.0 (Current) Released — One of those releases where lots of tiny things have occurred, but little of broad significance, except… for snapshot testing! Snapshot tests serialize arbitrary values into string values to be compared against a set of pre-built known ‘good’ values (stored as a ‘snapshot’ representing a desired state). Rafael Gonzaga |
Researchers Uncover npm Registry Vulnerability to Cache Poisoning — The basic idea is that specific versions of target packages can be targeted to appear as if they are no longer available for brief periods of time. This isn’t a huge vulnerability, but still an important one that GitHub is fixing. Sarah Gooding (Socket) |
WorkOS: Modern Identity Platform for B2B SaaS — Start selling to enterprise customers with just a few lines of code. WorkOS provides flexible, easy-to-use APIs to integrate SSO, SCIM, and RBAC in minutes. It’s used by some of the hottest startups in the world including Perplexity, Vercel, & Webflow. WorkOS |
|
📄 How to Create WebVTT Files for Videos in Node (with AssemblyAI) – The Web Video Text Tracks Format (WebVTT) is a common standard for subtitles/closed captioning. AssemblyAI’s platform does the hard work here. Niels Swimberghe 📄 UUIDv7 Implemented in 20 Languages – Surprisingly short and sweet. Anton Zhiyanov 📄 Writing Your First Visual Regression Check in Playwright Nočnica Mellifera 📄 Capturing Garbage Collection Traces in Node Apps CoderOasis 📄 Using JSON Schema When Calling Google Gemini Raymond Camden |
🛠 Code & Tools |
super-regex: Timeout Long Running Regular Expressions — Many regular expression implementations suffer from so-called ReDoS vulnerabilities, where certain regexes can cause an excessively long evaluation time. Sindre Sorhus |
💡 |