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

Data Science Weekly - Issue 581

Thursday, January 9, 2025

Curated news, articles and jobs related to Data Science, AI, & Machine Learning ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

💻 Issue 444 - Check Out My New CV as a Full Stack .NET Developer!

Thursday, January 9, 2025

This week's Awesome .NET Weekly Read this email on the Web The Awesome .NET Weekly Issue » 444 Release Date Jan 09, 2025 Your weekly report of the most popular .NET news, articles and projects

💎 Issue 451 - Useful things you can do with Rails console

Thursday, January 9, 2025

This week's Awesome Ruby Newsletter Read this email on the Web The Awesome Ruby Newsletter Issue » 451 Release Date Jan 09, 2025 Your weekly report of the most popular Ruby news, articles and

💻 Issue 451 - The best way to iterate over a large array without blocking the main thread

Thursday, January 9, 2025

This week's Awesome JavaScript Weekly Read this email on the Web The Awesome JavaScript Weekly Issue » 451 Release Date Jan 09, 2025 Your weekly report of the most popular JavaScript news, articles

📱 Issue 445 - 🚀 Your Go-To List of 25 Swift Tools and Libraries for Any Project

Thursday, January 9, 2025

This week's Awesome iOS Weekly Read this email on the Web The Awesome iOS Weekly Issue » 445 Release Date Jan 09, 2025 Your weekly report of the most popular iOS news, articles and projects Popular

💻 Issue 369 - 17 Tips from a Senior React Developer

Thursday, January 9, 2025

This week's Awesome React Weekly Read this email on the Web The Awesome React Weekly Issue » 369 Release Date Jan 09, 2025 Your weekly report of the most popular React news, articles and projects

💻 Issue 451 - Mastering Express.js: A Deep Dive

Thursday, January 9, 2025

This week's Awesome Node.js Weekly Read this email on the Web The Awesome Node.js Weekly Issue » 451 Release Date Jan 09, 2025 Your weekly report of the most popular Node.js news, articles and

📱 Issue 448 - The Swift Runtime: Your Silent Partner

Thursday, January 9, 2025

This week's Awesome Swift Weekly Read this email on the Web The Awesome Swift Weekly Issue » 448 Release Date Jan 09, 2025 Your weekly report of the most popular Swift news, articles and projects

💻 Issue 446 - Great things about Rust that aren't just performance

Thursday, January 9, 2025

This week's Awesome Rust Weekly Read this email on the Web The Awesome Rust Weekly Issue » 446 Release Date Jan 09, 2025 Your weekly report of the most popular Rust news, articles and projects

JSK Daily for Jan 9, 2025

Thursday, January 9, 2025

JSK Daily for Jan 9, 2025 View this email in your browser A community curated daily e-mail of JavaScript news Advanced Query Building Techniques in Angular: Queries with Different Connectors The Query