π12π€7β€1
What is the output?
Anonymous Quiz
73%
Hello, Alice! Hello, Bob!
8%
Hello, Alice!
5%
Hello, Bob!
14%
TypeError: person1.greet is not a function
π13β€1
π Issue 21 / 11.07.2023
π Node v20.4.0 Introduces Mock Timers
The latest release of Node includes a new MockTimers API that can make any tests involving time-dependent functionality more reliable and deterministic by mocking `setTimeout, setInterval, node:timers`, and more.
RAFAEL GONZAGA
π Testing the Dark Scenarios of Your Node App
An interesting look at some examples of easily overlooked but nonetheless important tests to have in your app or package. What happens when a service times out, code is mutating things it shouldnβt, or you have zombie processes milling around? These are some of the βdark scenariosβ you can easily be prepared for.
YONI GOLDBERG AND RAZ LUVATON
π TypeScript and ECMAScript Modules in Node.js
An official docs page focusing on the use of ESM with Node.js in TypeScript projects. Weβve linked to this before, but itβs a handy document that continues to be updated.
MICROSOFT
Β©οΈNODE.JS WEEKLY
π Node v20.4.0 Introduces Mock Timers
The latest release of Node includes a new MockTimers API that can make any tests involving time-dependent functionality more reliable and deterministic by mocking `setTimeout, setInterval, node:timers`, and more.
RAFAEL GONZAGA
π Testing the Dark Scenarios of Your Node App
An interesting look at some examples of easily overlooked but nonetheless important tests to have in your app or package. What happens when a service times out, code is mutating things it shouldnβt, or you have zombie processes milling around? These are some of the βdark scenariosβ you can easily be prepared for.
YONI GOLDBERG AND RAZ LUVATON
π TypeScript and ECMAScript Modules in Node.js
An official docs page focusing on the use of ESM with Node.js in TypeScript projects. Weβve linked to this before, but itβs a handy document that continues to be updated.
MICROSOFT
Β©οΈNODE.JS WEEKLY
π₯8
π© APIs and SDKs
π§² threads-api: Unofficial Client API for Meta's Threads
A way to use Metaβs Twitter-a-like from Node? This seems like the sort of thing that wonβt work in a month or two, but who knows.. many Instagram libraries have done very well despite a lack of official support.
JUNHO YEO
π§²π΅ Spotify Unveils a TypeScript SDK for its Web API
Now this is officially supported. The popular music streaming service has long had a Web API for getting information about songs, managing playlists, controlling playback, etc. and now thereβs an officially supported TypeScript SDK for it. This post includes some handy examples.
JO FRANCHETTI (SPOTIFY)
π§² threads-api: Unofficial Client API for Meta's Threads
A way to use Metaβs Twitter-a-like from Node? This seems like the sort of thing that wonβt work in a month or two, but who knows.. many Instagram libraries have done very well despite a lack of official support.
JUNHO YEO
π§²π΅ Spotify Unveils a TypeScript SDK for its Web API
Now this is officially supported. The popular music streaming service has long had a Web API for getting information about songs, managing playlists, controlling playback, etc. and now thereβs an officially supported TypeScript SDK for it. This post includes some handy examples.
JO FRANCHETTI (SPOTIFY)
π7β€3
What is the output?
Anonymous Quiz
44%
"Toyota Camry 2021"
16%
"undefined undefined"
26%
"Toyota Camry"
14%
TypeError: myCar.getInfo is not a function
π9π€4β€3π₯2
π₯16π10β€1
π Issue 22 / 14.07.2023
π Driver.js: Create On-Page Tours, Highlights, and Contextual Help
A no-dependency, vanilla JavaScript library for putting together page tours and contextual help systems. The project is a few years old but has just been entirely rewritten and gained numerous enhancements, plus a huge lick of paint. There are lots of examples to check out.
KAMRAN AHMED
π Component Party: A Rosetta Stone of UI Library Code Examples
A comparison of different frameworks (like React, Vue, Svelte, Angular, Ember, etc.) by way of simple code snippets covering various tasks.
MATHIEU SCHIMMERLING
Β©οΈJS WEEKLY
π Driver.js: Create On-Page Tours, Highlights, and Contextual Help
A no-dependency, vanilla JavaScript library for putting together page tours and contextual help systems. The project is a few years old but has just been entirely rewritten and gained numerous enhancements, plus a huge lick of paint. There are lots of examples to check out.
KAMRAN AHMED
π Component Party: A Rosetta Stone of UI Library Code Examples
A comparison of different frameworks (like React, Vue, Svelte, Angular, Ember, etc.) by way of simple code snippets covering various tasks.
MATHIEU SCHIMMERLING
Β©οΈJS WEEKLY
β€9π2
π RELEASES
Ember 5.1
The ambitious JS framework that'll never give up takes a big step into the TypeScript world with stable TypeScript support and types-a-plenty.
p5.js 1.7
Processing-inspired JavaScript library for creative coding. v1.7 introduces WebGL 2 and frame buffer support.
Prisma 5.0
A popular ORM for Node.js and TypeScript. 5.0 boasts significant performance improvements.
typescript-eslint 6.0
β‘οΈ IN BRIEF
The optional chaining assignment proposal advanced to stage 1 at TC39 this week. (Explanatory slidedeck.)
The folks at Sandworm have shared a look at the state of the npm registry including lots of trivia, history, and stats on how many packages there are, as well as the most commonly used keywords in packages.
Google shares a case study on performance of scroll-driven animations using its new browser based API versus 'classical JavaScript techniques.' Unsurprisingly it's much faster running away from the main thread, and the spec remains in draft for now.
npm will now check the linked source commit and repo when you view a package's provenance information on npmjs.com and warn you when said provenance cannot be established.
GitHub is rolling out a beta of passwordless, passkey based authentication on GitHubβ€com.
Ember 5.1
The ambitious JS framework that'll never give up takes a big step into the TypeScript world with stable TypeScript support and types-a-plenty.
p5.js 1.7
Processing-inspired JavaScript library for creative coding. v1.7 introduces WebGL 2 and frame buffer support.
Prisma 5.0
A popular ORM for Node.js and TypeScript. 5.0 boasts significant performance improvements.
typescript-eslint 6.0
β‘οΈ IN BRIEF
obj?.prop = value;
The optional chaining assignment proposal advanced to stage 1 at TC39 this week. (Explanatory slidedeck.)
The folks at Sandworm have shared a look at the state of the npm registry including lots of trivia, history, and stats on how many packages there are, as well as the most commonly used keywords in packages.
Google shares a case study on performance of scroll-driven animations using its new browser based API versus 'classical JavaScript techniques.' Unsurprisingly it's much faster running away from the main thread, and the spec remains in draft for now.
npm will now check the linked source commit and repo when you view a package's provenance information on npmjs.com and warn you when said provenance cannot be established.
GitHub is rolling out a beta of passwordless, passkey based authentication on GitHubβ€com.
π₯7π4
What is the output?
Anonymous Quiz
51%
Start End Done!
24%
Start Done! End
13%
Start End
11%
Done! Start End
π5β€4π€2π₯1