JavaScript
32K subscribers
1.04K photos
10 videos
33 files
717 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
✌️ An SSR Performance Showdown

Fastify’s Matteo Collina set out to find the current state of server-side rendering performance across today’s most popular libraries. The first attempt faced negative feedback due to implementation issues, but the showdown has been improved and re-run.

Matteo Collina
Please open Telegram to view this post
VIEW IN TELEGRAM
1❀4πŸ‘3πŸ”₯1
CHALLENGE

const obj = Object.freeze({
a: [1, 2, 3],
b: {
c: 4
}
});

obj.a.push(4);
obj.b.c = 5;

console.log(obj.a);
console.log(obj.b.c);
πŸ‘6❀4πŸ”₯2🀩1
2🀣14πŸ‘9πŸ”₯6❀3πŸ€”2
🌲 Express.js 5.0 Released; Sort Of

After a long period of seeming to merely be on life support, work on Express picked up significantly earlier this year with a big plan to push β€˜Express forward.’ The first fruit of this process is now beginning to appear with v5.0. Node 18 is now the minimum support version, there are error handling improvements, improvements to the project’s tooling, the introduction of a Threat Model, and updates to many of its dependencies.

Wesley Todd
Please open Telegram to view this post
VIEW IN TELEGRAM
1❀11πŸ‘6πŸ”₯1🀩1
CHALLENGE

async function process() {
console.log('Start');
await new Promise(resolve => setTimeout(resolve, 0));
console.log('Middle');
return 'Done';
}

process().then(result => console.log(result));
console.log('End');
πŸ‘13πŸ€”7πŸ”₯1
πŸ‘16πŸ€”15❀7πŸ”₯2
πŸŽ‰ Happy Programmers' Day

256th day of this year
Please open Telegram to view this post
VIEW IN TELEGRAM
2πŸ‘42❀27🀣14πŸ”₯10πŸ€”5
CHALLENGE

function* gen() {
yield* [1, 2, 3].map(x => x * 2);
}

const iterator = gen();
console.log(iterator.next().value);
console.log(iterator.next().value);
console.log(iterator.next().value);
console.log(iterator.next().value);
πŸ‘5
❀10πŸ‘7πŸ”₯2🀣2
πŸ‘ Jimp 1.6: Image Processing in Node without Native Dependencies

Most image libraries, such as the powerful Sharp, lean on external libraries to do the heavy lifting, but Jimp can handle BMPs, GIFs, JPEGs, PNGs, and TIFFs on its own for blurring, color adjustments, resizing, rotation, etc. GitHub repo.

jimp Contributors
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ”₯10πŸ‘6❀1🀩1
CHALLENGE

console.log(MyClass);
class MyClass {
constructor() {
this.value = 42;
}
}
❀2πŸ‘1
πŸ‘13πŸ”₯3❀2
πŸ‘€ Experimental TypeScript support via strip types

Node.js introduces the --experimental-strip-types flag for initial TypeScript support. This feature strips type annotations from .ts files, allowing them to run without transforming TypeScript-specific syntax. Current limitations include:

- Supports only inline type annotations, not features like enums or namespaces.

- Requires explicit file extensions in import and require statements.

- Enforces the use of the type keyword for type imports to avoid runtime errors.

- Disabled for TypeScript in node_modules by default.

Rafael Gonzaga
Please open Telegram to view this post
VIEW IN TELEGRAM
2πŸ‘6πŸ”₯4❀2🀩1
CHALLENGE

async function foo() {
console.log('Start');
await Promise.resolve().then(() => {
console.log('Inside Promise');
});
console.log('End');
}

foo();
console.log('Outside');
πŸ‘8πŸ€”5❀3πŸ”₯3
πŸ“Œ The Web's Clipboard, and How It Stores Data of Different Types

An interesting exploration of how things currently work with copy and pasting on the web, how different data types are treated, and what the Web Custom Formats proposal is putting forward.

Alex Harri JΓ³nsson
Please open Telegram to view this post
VIEW IN TELEGRAM
2πŸ‘12❀4πŸ”₯2🀩1
real-nextjs-scalable-performance.pdf
8.9 MB
πŸ“Œ Real-World Next.js

Build scalable, high-performance, and modern web applications using Next.js, the React framework for production

Michele Riva
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ”₯7❀4πŸ‘3
πŸ‘€ ESLint v9.10.0 released

We just pushed ESLint v9.10.0, which is a minor release upgrade of ESLint. This release adds some new features and fixes several bugs found in the previous release.

- Types now included

eslint
Please open Telegram to view this post
VIEW IN TELEGRAM
2πŸ‘11πŸ”₯3❀1
nodejs_web_development_fifth_edition.pdf
7.1 MB
πŸ“Œ Node.js Web Development Fifth Edition

Server-side web development made easy with Node 14 using practical examples

David Herron
Please open Telegram to view this post
VIEW IN TELEGRAM
2πŸ‘8❀4πŸ”₯3
✌️ The State of ES5 on the Web

Some of the earlier JavaScript build tools focused on allowing developers to write modern JavaScript code that could still run on the browsers of the time by compiling code down to ES5. Time has moved on, but have the tools or popular libraries? Philip investigates, and shares some recommendations.

Philip Walton
Please open Telegram to view this post
VIEW IN TELEGRAM
4πŸ‘8❀1πŸ”₯1