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

๐Ÿ“œ 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๐Ÿ‘3
What is the output?
Anonymous Quiz
47%
3, 3
13%
Error
40%
3, Error
โค9๐Ÿ‘1
๐Ÿ”ฅ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
What is the output?
Anonymous Quiz
37%
undefined
28%
number
34%
string
๐Ÿ‘11๐Ÿค”7
CHALLENGE #19
๐Ÿ”ฅ11โค1
What is the output?
Anonymous Quiz
10%
43
40%
85
31%
NaN
18%
[object Object]
โค12
๐Ÿ”ฅ6๐Ÿคฉ2
CHALLENGE #20
๐Ÿค”14โค8๐Ÿ‘4
All explanations ๐Ÿ‘‰ here
๐Ÿ‘12๐Ÿคฃ7
CHALLENGE #21
What is the output?
Anonymous Quiz
41%
true
52%
false
8%
Error
๐Ÿ‘21๐Ÿ‘Ž3
CHALLENGE #22
What is the output?
Anonymous Quiz
7%
โ€œ1โ€
21%
0
28%
2
41%
NaN
3%
1
๐Ÿ‘11
๐Ÿ—ž 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