Npm 2023 retrospective; Prettier 3.2; Rspack 0.5; Bun v1.0.23; library for immutable updaes; Bun

npm in review: a 2023 retrospective on growth, security, and quirky facts

socket.dev github.com/Planeshifter @SocketSecurity@fosstodon.org

“It’s a new year! So let’s look back at how npm, the most popular package manager in the world, fared in 2023. We will look at some of the major trends in the ecosystem and investigate what the data reveal about how npm grew over the past year.”

“We’ll also take a deeper dive into some of the malware and spam issues npm faced over the course of the year, and answer questions you didn’t knew you wanted to know the answers to (such as which package has the longest name or is biggest in size).”

Prettier 3.2: Support JSONC and Angular’s ICU expression

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

Highlights:
  • CLI performance improvements (as figured out by Fabio Spampinato) are slated for version 4.0.
  • Support for `.jsonc` files (JSON with comments and optional trailing commas)
  • Angular: Support formatting for Angular ICU expression
  • JavaScript:
    • Avoid introducing linebreaks in template interpolations
    • Preserve empty lines in multi-line method chains
    • Fix inconsistencies for optional chaining
    • Fix comments in if
  • TypeScript: Improve conditional type alias layout
  • Ember/Handlebars: Preserve path literal segments
  • GraphQL: Improve GraphQL union types formatting

Rspack 0.5: module federation and more

www.rspack.dev github.com/web-infra-dev

Most important new feature: module federation. Details are described in another blog post.

Bun v1.0.23: importing & embedding SQLite databases and more

bun.sh github.com/oven-sh

Highlights:
  • Importing SQLite databases:
    
    import db from './my.db' with {type: "sqlite"};
    
    const {id} = db
      .query("SELECT id FROM users LIMIT 1")
      .get();
    
    console.log(id); // 1
    
    You can also embed such a database in a single-file executable built by Bun.
  • Support for resource management (a stage 3 ECMAScript proposal)
  • Support for import.meta.dirname and import.meta.filename

Mutative: efficient immutable updates, faster than Immer

github.com github.com/unadlib github.com/exuanbo

Same basic API as Immer.

Bun Shell: Bun’s built-in library for cross-platform shell scripting

bun.sh github.com/oven-sh

“The Bun Shell is a new experimental embedded language and interpreter in Bun that allows you to run cross-platform shell scripts in JavaScript & TypeScript.”

import { $ } from "bun";

// to stdout:
await $`ls *.js`;

// to string:
const text = await $`ls *.js`.text();

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

Older messages

JavaScript’s birthday; TC39 FAQ; ESLint v8.55.0; Bun v1.0.15; Socket CLI v0.9.0; Turborepo 1.11

Tuesday, December 12, 2023

Dear readers! We are taking our end-of-the-year break and will be back on 23 January 2024. Be well and see you soon! Axel and Jowe 28 years ago (1995-12-04): “Netscape and Sun announce JavaScript, the

Prettier in Rust; Prettier performance improvements; Node v21.3.0; TC39 meeting November; esbuild...

Tuesday, December 5, 2023

Biome formatter wins the Prettier challenge (USD 22500) biomejs.dev @ematipico@fosstodon.org @biomejs@fosstodon.org Prettier challenge – “write a Prettier-compliant pretty printer in Rust”: USD 22500:

“State of JavaScript 2023” survey; QuickJS-ng v0.1.0; esbuild 0.19.7; show package version downloads

Tuesday, November 28, 2023

The “State of JavaScript 2023” survey is open stateofjs.com @sachagreif@hachyderm.io Quoting the frequently asked questions: When will the results be released? The survey will run from November 22 to

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

Tuesday, November 21, 2023

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

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

You Might Also Like

Kotlin Weekly #406

Sunday, May 12, 2024

ISSUE #406 12th of May 2024 Hello Kotliners! The KotlinConf is around the corner, will you be attending? Feel free to reach out if you want to meet for a coffee or to share your projects with us. We

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