Plus Microsoft's new V8 inspection tool, ES2023 code examples, reimplementing chess in JS, and how to get the benefits of TypeScript without writing your code in it. |
Bun's New Bundler: 220x Faster than webpack? — Bun is one of the newest JavaScript runtimes (built atop the JavaScriptCore engine) and focuses on speed while aiming to be a drop-in replacement for Node.js. This week’s v0.6.0 release is the ‘biggest release yet’ with standalone executable generation and more, but its new JavaScript bundler and minifier may attract most of the attention and this post digs into why. Jarred Sumner |
🤔 If you'd prefer to read what a third party thinks, Shane O'Sullivan gave the new bundler a spin and shared his thoughts. There's also some discussion on Hacker News. It's early days and while esbuild may be fast enough for most right now, it's fantastic to see any progress in bundling. |
Deopt Explorer: A VS Code Extension to Inspect V8 Trace Log Info — A thorough introduction to MS's new tool for performing analysis of the V8 engine’s internals, including CPU profile data, how inline caches operate, deoptimizations, how functions were run (interpreted or compiled) and more. There’s a lot going on. Ron Buckton (Microsoft) |
Supercharge Your Websites and Applications with Cloudflare — Get ready for supercharged speed and reliability with Cloudflare's suite of performance tools. With ultra-fast CDN, smart traffic routing, media optimization, and more, Cloudflare has everything you need to ensure your site or app runs at peak performance. Cloudflare |
jQuery 3.7.0 Released — JavaScript Weekly is 638 issues old, or almost 13 years once you take away weeks off, so jQuery was a big deal in our early days. We hold a lot of nostalgia for it, and it remains widely used even if no-one is writing about it anymore 😆 v3.7 folds the Sizzle selector engine into the core, adds some unitless CSS properties, gains a new uniqueSort method, and “major changes” are still promised in future. jQuery lives on! Timmy Willison (jQuery Foundation) |
⚡️ IN BRIEF: TC39's Hemanth.HM has begun keeping a list of ES2023 code examples like he did for ES2022, ES2021, and ES2020. 🤔 The New Stack has a story about Meta supporting the OpenJS Foundation – but who wrote the article is what we found more interesting.. The folks at Meta / Facebook have written about the efficiency gains made in Messenger Desktop by moving from Electron to React Native. One downside to platforms like Cloudflare Workers using V8 isolates has been a lack of support for opening TCP sockets – quite an impediement if you want to talk to a RDBMS over TCP or something. Fear no more, Cloudflare Workers has introduced a connect() API for creating TCP sockets from Workers functions. Promise.withResolvers progressed to stage 2 at the latest TC39 meeting. |
RELEASES: Node.js 20.2 Rome 12.1 ↳ The formatter/linter gains stage 3 decorator support. Ember.js 5.0 – App framework. Jasmine 5.0 – Testing framework. Gatsby 5.10 |
TypeScript's own JS Projects Utilizing TypeScript page has more info on the different levels of strictness you can follow from mere inference on regular JS code through to full on TypeScript with strict enabled. |
Your Jest Tests Might Be Wrong — Is your Jest test suite failing you? You might not be using the testing framework’s full potential, especially when it comes to preventing state leakage between tests. Jamie Magee |
A Guide to Visual Regression Testing with Playwright — The Playwright browser control library can form the basis of an end-to-end testing mechanism all written in JavaScript, and comparing the visual output of tests can help show where things are going wrong. Dima Ivashchuk (Lost Pixel) |
..and if React is your thing, the latest issue of React Status is for you. |
Starry Night: GitHub-Like Syntax Highlighting — Apparently, GitHub’s own syntax highlighting approach isn’t open source, but this takes a similar approach and is. It’s admittedly quite 'heavy' (due to using a WASM build of the Oniguruma regex engine) but that’s the price of quality. Titus Wormer |
headless-qr: A Simple, Modern QR Code Library — A slimmer adaptation of an older project without the extra code that isn’t necessary today. Turning the binary into an image is your job, or use something like QRCode.js if you want a canvas-rendered QR code out of the box. Rich Harris |
Transformers.js 2.0 – Run Hugging Face transformers directly in browser. PrimeReact 9.4 – Extensive UI component library. The Lounge 4.4 – Cross-platform, self-hosted web IRC client. Faast.js 8.0 – Serverless batch computing made simple. |
Find JavaScript Jobs with Hired — Hired makes job hunting easy-instead of chasing recruiters, companies approach you with salary details up front. Create a free profile now. Hired |
🧑💻 Got a job listing to share? Here's how. |
|
js2flowchart.js — A visualization library to convert JavaScript code into attractive SVG flowcharts. Luckily, there’s a live online version if you want to play without having to install anything. Bohdan Liashenko | |