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

Overcoming Perfectionism: How to Break Free from the Enemy of Progress

Wednesday, November 27, 2024

Discover how perfectionism hinders progress and learn practical strategies to overcome the fear of imperfection, boost productivity, and achieve your goals without getting stuck in the pursuit of

🖤 Laravel Black Friday Deals!

Wednesday, November 27, 2024

The biggest deals of the year Laravel Black Friday Deals View in browser Laravel News Editor Note: We are sending this outside the regular Sunday newsletter schedule because some of these specials end

BetterDev #271 - Memory: The Forgotten History and Why did Windows 95 setup use three operating systems?

Wednesday, November 27, 2024

Better Dev #271 Nov 26, 2024 Hi all, Welcome to thanksgiving issue of BetterDev. Hope everyone had a safe and warm thanksgiving. It's getting so cold these days. If you are in warzone such as

Mapped | Unemployment Rate By U.S. State in 2024 💼

Tuesday, November 26, 2024

As of October 2024, DC and Nevada tied for the highest unemployment rate in the US at 5.7%. Which states saw the lowest rates? View Online | Subscribe | Download Our App FINAL CHANCE - ENDS TONIGHT!

🔊 7 DIY Tips for Soundproofing a Room — Why I Switched to Xfce for Linux Mint

Tuesday, November 26, 2024

Also: Home Theater Sound Terms Explained, and More! How-To Geek Logo November 26, 2024 Did You Know The shiny layer of a CD doesn't contain the data; the plastic polycarbonate layer does. The shiny

JSK Daily for Nov 26, 2024

Tuesday, November 26, 2024

JSK Daily for Nov 26, 2024 View this email in your browser A community curated daily e-mail of JavaScript news JavaScript Certification Black Friday Offer – Up to 54% Off! Certificates.dev, the trusted

NumPy, Loop Targets, Vector Animation, and More

Tuesday, November 26, 2024

NumPy Practical Examples: Useful Techniques #657 – NOVEMBER 26, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo NumPy Practical Examples: Useful Techniques In this tutorial, you'll learn how to

Your Games Quarterly newsletter has arrived

Tuesday, November 26, 2024

What's new for games in Google Play and Android Email not displaying correctly? View it online November 2024 The First Developer Preview of Android 16 The First Developer Preview of Android 16

Daily Coding Problem: Problem #1620 [Hard]

Tuesday, November 26, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Dropbox. Sudoku is a puzzle where you're given a partially-filled 9 by 9 grid with

Final Hours: Help Save "The Art of Data" From Falling Short 🙏

Tuesday, November 26, 2024

Will Visual Capitalist end up revealing the secrets behind data storytelling? There are 12 hours left to change the fate of "The Art of Data". View Online | Subscribe | Download Our App Help