JavaScript
31.3K subscribers
1.2K photos
10 videos
33 files
870 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

πŸ“œ TC39's Hemanth.HM has begun keeping a list of ES2023 code examples like he did for ES2022, ES2021, and ES2020.

πŸ“œ Promise.withResolvers progressed to stage 2 at the latest TC39 meeting.

πŸ“œ The folks at Meta / Facebook have written about the efficiency gains made in Messenger Desktop by moving from Electron to React Native.

πŸ“œ One downside to platforms like Cloudflare Workers using V8 isolates has been a lack of support for opening TCP sockets – quite an impediement if you want to talk to a RDBMS over TCP or something. Fear no more, Cloudflare Workers has introduced a connect() API for creating TCP sockets from Workers functions.
πŸ‘2
RELEASES

Node.js 20.2

Rome 12.1
The formatter/linter gains stage 3 decorator support.

Ember.js 5.0
App framework.

Jasmine 5.0
Testing framework.

Gatsby 5.10
Static site generator built on top of Node.js using React and GraphQL
πŸ”₯7
CODE & TOOLS

πŸ”©VanJS: A 1.2KB Reactive UI Framework Without JSX

A new entrant to an increasingly crowded space, VanJS is particularly light and elegant, and its author has put some serious effort into documenting it and offering tools to convert your HTML to its custom format. It’s short for vanilla JavaScript, by the way.. GitHub repo.

TAO XIN


πŸ”© Starry Night: GitHub-Like Syntax Highlighting

Apparently, GitHub’s own syntax highlighting approach isn’t open source, but this takes a similar approach and is. It’s admittedly quite 'heavy' (due to using a WASM build of the Oniguruma regex engine) but that’s the price of quality.

TITUS WORMER


πŸ”© eslint-plugin-check-file: Rules for Consistent Filename and Folder Names

Allows you to enforce a consistent naming pattern for file and directory names in projects.

HUAN
❀4
CHALLENGE #17
❀6πŸ‘4
What is the output?
Anonymous Quiz
46%
3, 3
13%
Error
40%
3, Error
❀10πŸ‘2
πŸ”₯js2flowchart.js

A visualization library to convert JavaScript code into attractive SVG flowcharts. Luckily, there’s a live online version if you want to play without having to install anything.

BOHDAN LIASHENKO
πŸ”₯10
CHALLENGE #18
πŸ‘1
What is the output?
Anonymous Quiz
38%
undefined
28%
number
34%
string
πŸ‘12πŸ€”8
CHALLENGE #19
πŸ”₯11❀1πŸ‘1
What is the output?
Anonymous Quiz
10%
43
39%
85
32%
NaN
18%
[object Object]
❀12πŸ‘1
CHALLENGE #20
πŸ‘1
πŸ€”14❀8πŸ‘5
All explanations πŸ‘‰ here
πŸ‘12🀣7
CHALLENGE #21
πŸ‘1
What is the output?
Anonymous Quiz
41%
true
51%
false
8%
Error
πŸ‘22πŸ‘Ž3
CHALLENGE #22
πŸ‘1
What is the output?
Anonymous Quiz
8%
β€œ1”
21%
0
28%
2
40%
NaN
4%
1
πŸ‘12
πŸ—ž Issue 7 / 24.05.2023


πŸ“„ The State of Node.js Performance in 2023

Nearform’s Rafael Gonzaga reflects on the recent release of Node 20 and puts it through its paces against v18.16 and v16.20 with a few different benchmark suites running on a pretty typical EC2 instance. He goes into a lot of depth that’s worth checking out, but if you haven’t got time: β€œNode 20 is faster.” 😁

RAFAEL GONZAGA


πŸ“„ Bun v0.6.0: Upping Its Node.js Compatibility Game

A β€˜biggest release yet’ of the popular alternative JS runtime adds a built-in bundler and minifier, standalone executable generation, and more enhancements to its Node.js compatibility (something Bun boasts as a feature as a β€˜drop-in replacement’, as opposed to Deno where it’s more of a late addition).

JARRED SUMNER

©️NODE.JS WEEKLY
πŸ”₯5
️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