Vite 5.0; Prettier 3.1; Node v21.2.0; Bun v1.0.12; explicit resource management; JS strings in V8

Vite 5.0: Rollup 4, API cleanups and more

vitejs.dev @vite@webtoo.ls

“Vite is now using Rollup 4, which already represents a big boost in build performance. And there are also new options to improve your dev server performance profile.”

“Vite 5 focuses on cleaning up the API (removing deprecated features) and streamlines several features closing long-standing issues, for example switching define to use proper AST replacements instead of regexes. We also continue to take steps to future-proof Vite (Node.js 18+ is now required, and the CommonJS Node API has been deprecated).”

Prettier 3.1: New experimental ternaries formatting and Angular control flow syntax

prettier.io github.com/sosukesuzuki github.com/prettier

“This release adds indentation back to nested ternaries along with a new --experimental-ternaries flag to try a more novel "curious ternary" format that scales better to deeply nested conditionals.” A separate blog post provides more information on --experimental-ternaries.

“We have also added support for the control flow syntax in Angular v17. For details on the syntax, please read the official Angular release post.”

Node v21.2.0 (current)

nodejs.org @targos@fosstodon.org @nodejs@social.lfx.dev

Highlights:
  • Better stack traces for module node:fs/promises
  • ESM modules: import.meta.dirname and import.meta.filename
  • navigator.language and navigator.languages
  • navigator.platform
  • Date supported by mock APIs
  • CLI flag --test-timeout

Bun v1.0.12

bun.sh github.com/Electroid github.com/oven-sh

Highlights:
  • bun -e <code> evaluates a CLI argument
  • bun --env-file <path> overrides the env file that is loaded by default
  • server.url: URL object with location of local HTP server
  • import.meta.env for accessing environment variables
  • expect.unreachable() fails if code is reachable
  • Improved CLI help output
  • Macros now support builtin modules
  • mock.module() now supports default exports and re-exports

Explicit resource management: Exploring JavaScript’s and TypeScript’s new feature

iliazeus.github.io @iliazeus@lor.sh

“One of my favorite new features of JavaScript and TypeScript is explicit resource management. It brings new syntax, using foobar = ..., that enables RAII [resource acquisition is initialization, a feature of C++, Rust, and other programming languages], reducing boilerplate when managing the lifecycle of various resources.”

Exploring V8’s strings: implementation and optimizations

iliazeus.github.io @iliazeus@lor.sh

“In this article, I will focus on V8’s implementation of [JavaScript] strings. I will demonstrate various string optimizations by beating C++ in a totally 100% legit benchmark. Finally, I will demonstrate the ways in which these implementation details might actually perform worse, and how to deal with that.”

This email was sent to you. You can unsubscribe from this list here or update your preferences.

Older messages

Pacquet package manager; WebGPU; test automation; NodeConf EU 2023 videos

Tuesday, November 14, 2023

pacquet: experimental Node.js package manager written in Rust [rewrite of pnpm] github.com github.com/pnpm Quoting the pnpm team: “Our Rust rewrite of pnpm is close to being ready for experimental

Bun 1.0.9; Deno 1.38; service workers server WinterJS; deprecation of ESLint formatting rules; Test2

Tuesday, November 7, 2023

Bun v1.0.9 bun.sh github.com/Jarred-Sumner github.com/Electroid github.com/colinhacks github.com/oven-sh “Bun is a fast, all-in-one toolkit for running, building, testing, and debugging JavaScript and

CodiumAI; Yarn 4.0; Node v21.1.0; test assertion styles; dependency divergence; performance-compare

Tuesday, October 31, 2023

CodiumAI | Generating meaningful tests for busy devs codium.ai Sponsor Redefining software development: Meet CodiumAI. Bypass the tedium of unit testing. Our VS Code & JetBrains extensions

Oxc tool chain; Node.js 21; Biome v1.3.0; Biome toolchain; ESLint v8.52.0; Compiling JS to Wasm

Tuesday, October 24, 2023

Oxc: suite of high-performance tools for JavaScript and TypeScript written in Rust github.com Included tools: AST and parser, linter, resolver, minifier, formatter, transpiler, ezno type checker Node.

Task group for source maps; Parcel v2.10.0; ESLint flat config

Tuesday, October 24, 2023

Ecma TC39 “ECMAScript” initiates a new task group to standardize source maps www.ecma-international.org github.com/jkup @littledan@hachyderm.io @TC39@fosstodon.org “The group's plan is to identify

You Might Also Like

The CPU That Will Never Die 💾

Saturday, May 11, 2024

A tribute to the Z80, an iconic processor. Here's a version for your browser. Hunting for the end of the long tail • May 11, 2024 Hey all, Ernie here with a guest piece by a longtime friend of the

🧑🏻‍💻 Generative AI is Supercharging Scams — It's Time to Bring Back the Beige PC

Saturday, May 11, 2024

Also: The Tech I Used to Run 100 Miles This Month, and More! How-To Geek Logo May 11, 2024 📩 Get expert reviews, the hottest deals, how-to's, breaking news, and more delivered directly to your

Daily Coding Problem: Problem #1438 [Medium]

Saturday, May 11, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Square. You are given a histogram consisting of rectangles of different heights. These

Charted | How People Get Around in America, Europe, and Asia 🚶‍♂️

Saturday, May 11, 2024

Examining how people get around on a daily basis using cars, public transit, and walking or biking, and the regional differences in usage. View Online | Subscribe Presented by Voronoi: The App Where

⚙️ How AI is Revolutionizing Sales Coaching

Saturday, May 11, 2024

Selling with the help of AI ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Weekend Reading — Stack over you

Saturday, May 11, 2024

This week we remove gatekeepers from our CI, break a Guinness world record, redesign review ratings, understand the meaning behind “job requirements”, and level up. 😎 Labnotes (by Assaf Arkin) Weekend

Why Apple’s ‘Crush’ ad is so misguided

Saturday, May 11, 2024

Plus: How AI deepfakes took over the Met Gala View this email online in your browser By Cody Corrall Saturday, May 11, 2024 Image Credits: Apple Welcome to Week in Review: TechCrunch's newsletter

🐍 New Python tutorials on Real Python

Saturday, May 11, 2024

Hey there, There's always something going on over at realpython.com as far as Python tutorials go. Here's what you may have missed this past week: Python News: What's New From April 2024 In

CensysGPT: AI-Powered Threat Hunting Tool for Cybersecurity Pros

Saturday, May 11, 2024

THN Daily Updates Newsletter cover Enterprise Transformation to AI and the Metaverse ($59.99 Value) FREE for a Limited Time Strategies for the Technology Revolution Download Now Sponsored LATEST NEWS

📧 Building Resilient Cloud Applications With .NET

Saturday, May 11, 2024

​ Building Resilient Cloud Applications With .NET Read on: m​y website / Read time: 7 minutes BROUGHT TO YOU BY ​ Build API Applications Visually ​ Build API applications visually using Postman Flows.