JavaScript
32K subscribers
1.04K photos
10 videos
33 files
722 links
A resourceful newsletter featuring the latest and most important news, articles, books and updates in the world of #javascript πŸš€ Don't miss our Quizzes!

Let's chat: @nairihar
Download Telegram
️IN BRIEF

πŸ“œ It's not just Bun and Deno trying to offer more Node.js support, but Cloudflare Workers now has support for three more Node APIs too: node:path, the Streams API, and StringDecoder.

πŸ“œ The folks at ReversingLabs wrote about how their researchers found some 'RATs' hiding in the npm attic – specifically, the TurkoRat 'infostealer.'

πŸ“œ Fusion is a promising looking Node.js-based static site generator sent in by a Node Weekly reader. We'll cover it properly when it hits 1.0.
πŸ‘1
ARTICLES & TUTORIALS

πŸ“„ A Guide to Visual Regression Testing with Playwright

The Playwright browser control library can form the basis of an end-to-end testing mechanism all written in JavaScript, and comparing the visual output of tests can show where things are going wrong.

DIMA IVASHCHUK (LOST PIXEL)


πŸ“„ Benchmarking a 'Compiled' Node vs Bun App

The latest release of Bun (also above) has the ability to compile apps into a single executable (something Node 20 added too, though the author uses Vercel’s pkg instead). This isn’t a particularly insightful benchmark, but does provide a data point.

DECODE


πŸ“„ Server-Sent Events with Node

Server-Sent Events (SSE) enable a web server to send real-time updates to the client but without the two-way connection overhead of WebSockets.

ENDPTS TEAM
πŸ‘5
RELEASES / UPDATES

Mongoose 7.2
MongoDB object modelling library.

Nodejs SQL Parser 4.7
Parse SQL into syntax trees.

Eta (Ξ·) 2.2
Embedded JS template engine.

Ts.ED 7.29
TypeScript framework on top of Express.

zip-it-and-ship-it 9.6
Prepare Node Lambda functions for deployment.

AdminJS 7.0.4
Admin panel for Node-based apps.

rimraf 5.0.1
rm -rf util for Node.

node-sass 9.0
Still deprecated, but adds Node.js 20 support.

Axios Cache Interceptor 1.1
πŸ‘1
CODE & TOOLS

πŸ”©Better SQLite3 8.4: Fast and Simple SQLite3 Library

With good docs too. Supports a lot of SQLite specific functionality, has a synchronous API that boasts better concurrency than an async one (?) and worker thread support. v8.4 updates it to SQLite v3.42.0 standard.

JOSHUA WISE


πŸ”© ts-sql-query: Type-Safe SQL Query Builder

Want to build dynamic SQL queries in a type-safe way with TypeScript verifying queries? This is for you. Supports numerous SQL-based database systems and isn’t an ORM itself. (Comes from a direct recommendation from a reader who uses it.)

JUAN LUIS PAZ ROJAS


πŸ”© HyperExpress 6.7: High Performance Server Powered by uWebSockets.js

Aims to be a simple yet performant HTTP and WebSocket Server.

KARTIK
❀6πŸ‘2
CHALLENGE #23
πŸ‘7πŸ”₯6🀣2
🀣13πŸ‘1
πŸ”₯3❀2
πŸ—ž Issue 8 / 26.05.2023


πŸ“„ DeviceScript: TypeScript for Tiny Thingamabobs

DeviceScript is a new Microsoft effort to take the TypeScript experience to low-resource microcontroller-based devices. It’s compiled to a custom VM bytecode which can run in such constrained environments. (A bit like Go’s TinyGo.) It’s aimed at VS Code users but there’s a CLI option too.

MICROSOFT


πŸ“„ Deno 1.34: Now deno compile Supports npm Packages

Deno isn’t Node, but it increasingly likes to wear a Node-shaped costume. This release focuses on npm and Node compatibility and Deno’s compile command (for turning projects into single binary executables) now supports npm packages too which opens up a lot of use cases.

THE DENO TEAM


©️JS WEEKLY
πŸ‘5
ARTICLES & TUTORIALS

πŸ“ƒ Demystifying Tupper's Formula

Tupper’s self-referential formula is a formula that, when plotted, can represent itself. Confused? Luckily Eli shows us how simple the concept is and how to use JavaScript to render your own.

ELI BENDERSKY


πŸ“„ An Introduction to Web Components

A practical and straightforward introduction to using the custom element API now supported in all major browsers to create a basic tabbed panel.

MOHAMED RASVI


🎬 Why React is Here to Stay

A rebuttal of sorts to Adam Elmore’s video from two weeks ago: 🎬 I’m Done with React.

JOSCHA NESKE
πŸ‘3πŸ”₯3❀1
CHALLENGE #24
What is the output?
Anonymous Quiz
11%
0, 1
51%
1, 2
12%
0
25%
0, 3
πŸ‘9πŸ€”5
CHALLENGE #25
πŸ€”9❀5
Real-World
Next.js (2022)



Learn how to use Next.js for building web apps without compromising performance, user experience, and developer happinessKey FeaturesDevelop scalable web applications using Next.js.

Michele Riva
πŸ‘8
πŸ—“οΈ On this day 14 years ago: Node.js was created!

Have you been a part of the Node.js community for awhile? πŸ’š
❀19
CHALLENGE #26
What is the output?
Anonymous Quiz
65%
true
19%
false
16%
Error
πŸ€”10🀣8