Turbo-charged incremental bundling au Rust

0 Comments

#​612 — October 28, 2022

Read on the Web

Together with 

JavaScript Weekly

Turbopack: A Rust-Based ‘Successor’ to Webpack — With over 3 billion downloads, webpack is currently the undisputed champion of the bundlers (though Vite has been rapidly advancing upon it). Vercel found it too slow so has funded work on Turbopack, powered by Rust (a synonym for ‘faster’ in some circles nowadays.. 😏) It’s a project to keep an eye on (especially if you’re a Next.js user) and boasts significant performance boosts over webpack and even Vite, but there are some limitations to take into account:

It’s arguable if it’s a “successor” to webpack, as Turbopack can’t do much of what Webpack can yet, and while they share a creator, webpack is an active project with maintainers of its own.
It’s very connected to React and Next.js 13 (also released this week – more on that next) – Vue and Svelte support is to follow.
The similarly Rust-powered SWC is used to transpile JS/TS.
Vite’s Evan You 🐦 casts some doubt on the perf difference claims. He also has 🐦 a thread with his thoughts on Turbopack generally.
In short, unless you are living on the Next.js edge, stick with webpack or Vite for now.

Koppers and Palmer (Vercel)

Implement JavaScript Developer Solutions for Every Project — Get dependency-free, fast, flexible, true JavaScript components that enable you to build basic websites, full enterprise applications, Excel-like spreadsheet tools, and reports for your organization. Empower your JavaScript developers today.

GrapeCity sponsor

Node 18 Becomes Active LTS with v18.12.0 — Formerly a ‘current’ release getting all the newest features, version 18 is now the active ‘Long Term Support’ release and will remain so until October 2023. Its codename is Hydrogen – quite fitting as the most abundant element in the universe.

Ruy Adorno and Rafael Gonzaga

If you’re using an older LTS version and are wondering what Node 18 has to offer, Marian Villa presents 11 Features in Node.js 18 you need to try, including the fetch API, –watch, and the native Node test runner.

IN BRIEF:

The SQLite project now has official WASM/JS documentation relating to SQLite’s presence in WebAssembly and browser contexts. sql.js has long been the go-to project in this space, but things are heating up.

CodePen is a perfect place to play with Preact (the smaller alternative to React) – and Chris Coyier explains how.

Christian Heilmann reminds us that JSON.stringify can create nicely formatted, filtered, multi-line output strings.

Next.js 13 Unveiled at Next.js ConfNext.js Conf 22 took place earlier this week and as well as Turborepo (above), Vercel unveiled the latest version of the site framework that has become ‘inextricably linked’ to React. It gains:

Support for an app/ directory to improve routing, layouts, and Server Components support – can coexist with existing approaches.
A new image component with on-demand optimization and the ability to display images without layout shift.
A brand new font system.

Vercel

“Next.js is the framework for the web the way k8s is the framework for infrastructure”Kelsey Hightower at Next.js Conf.

JetBrains JavaScript Day 2022: An Event You Won’t Want to Miss — Join JetBrains JavaScript Day 2022 to catch up on the latest trends and connect with other like-minded professionals.

JetBrains sponsor

RELEASES:

Babel 7.20.0
↳ The popular transpiler now supports TypeScript 4.9 and Deno as a compilation target.

Handsontable 12.2 – Popular spreadsheet-y data grid.

Deno 1.27 – JS server-side runtime that isn’t Node. (Or Bun.)

Qwik 0.12 – HTML-first framework.

📒 Articles & Tutorials

Which Serverless Edge Platform Has the Fastest Git Deployments? — The team behind Deno have tested some popular serverless edge computing providers (including their own Deno Deploy) to see which has the fastest git deployment time. As always with benchmarks, read the results with a cynical eye and repeat for yourself.

Andy Jiang (Deno)

How We Improved React Loading Times by 70% with Next.js — By replacing Create React App with Next.js, business planning platform Causal significantly improved their user experience by reducing load times. How? Well, just a little SSR can get you a long way.

Causal Engineers

How to Build a Blog with Fresh and Deno — In other Deno news, if you’ve felt like giving Deno a go for something but been unsure as to what, how about spinning up a simple blog atop the Fresh Web framework? Then deploy it really quickly to Deno Deploy 😉

Andy Jiang (Deno)

The Fastest Way to Learn JavaScript / TypeScript — With 2M+ downloads world-wide, Quokka.js is the #1 tool for exploring and testing JavaScript/TypeScript without leaving your editor.

Wallaby.js sponsor

How to Write Your First Unit Test in JavaScript — If you’re a prolific tester, scroll on. If not, this is a very light primer.

Chip Verek

▶  A Next.js Crash Course — There are a lot of such videos, but this is a well recorded and up to date one so it might help you get the lay of the Next.js land (which seems to be all the rage this week in particular) if you’re just starting out with it. (2 hours 30 minutes)

Anson Foong

Detect a System Theme Preference Change from JS — window.matchMedia and addEventListener to the rescue.

David Walsh

Advancements in Angular 14.2’s Router

Andrew Scott

Using Cloudinary’s Image APIs from Alpine.js

Raymond Camden

🛠 Code & Tools

npoint: Simple JSON Storage Bins with Schema Validation — You can use this as a lightweight backend as you prototype an app/site or play with a new library. You can even let other people make changes to the data, if you wish.

Alex Zirbel

Satori: Convert HTML and CSS to SVG — React and JSX are the preferred route in to this, but it’ll work without those. It powers Vercel’s new ‘social card’ image generation feature.

Vercel

Don’t DIY Your Notifications: Send SMS, Email, and Push with One Call

Courier.com sponsor

Downshift 7.0: Primitives to Build Accessible React Components — You get hooks that provide the stateful logic needed to create autocomplete, combo-box and ‘select’ dropdown components which you can then lean on for WAI-ARIA compliant goodness.

PayPal

🎉  Canvas Confetti: An On-Demand Confetti Shower — Ready to let off some fireworks in your browser? Do it in style with confetti. Plenty of demos to check out. GitHub repo.

Kiril Vatev

NPKILL 0.9
↳ Lists node_modules directories and lets you clean them up.

Wild Wild Path 3.3
↳ Object property paths with wildcards and regexps.

capture-website 3.2
↳ Capture screenshots of websites with Puppeteer.

Mongoose 6.7
↳ MongoDB object modeling library for Node.js.

💻 Jobs

Become a Senior JS/TS Developer for a Leading Rich Text Editor — Take the next step in your career and help us migrate CKEditor 5 to TypeScript. Develop the software used by millions of users 🌎

CKEditor

Software Engineer — Join our “kick ass” team. Our software team operates from 17 countries and we’re always looking for more exceptional engineers.

Stickermule

Find JavaScript Jobs with Hired — Create a profile on Hired to connect with hiring managers at growing startups and Fortune 500 companies. It’s free for job-seekers.

Hired

Software Engineer (Security) — Join our “kick ass” team. Our software team operates from 17 countries and we’re looking for more exceptional engineers to join our Security team.

Sticker Mule

👻 And just in time for Halloween..

Creepyface: Makes Images of Faces ‘Follow’ the Pointer — This is an effect we’ve seen mostly on ‘about us’ pages where faces of team members follow your pointer around. If you want to recreate that, here you go.. and in a timely Halloween edition too. (React user? There’s a component for that.)

Alejandro Tardín