Hey Everyone! This week saw the release of Fastify v4.3.0, pino v8.3.0 (and v8.3.1), and a security release of Undici v5.8.0 for a few important security bugs. Go update!
I love receiving messages that show the impact that technologies I developed had across the globe. This last one was no exception:
If you like Adventures in Nodeland and would like to support my Open Source activities, consider sponsoring me on GitHub: https://github.com/sponsors/mcollina/
-
sonic-boom v3.1.0 adds support for a fsync option to automatically flush to disk after every write. This is needed if you log to systemd and want your logs not to be buffered.
-
pino v8.3.0 ensures that if process.stdout is passed as a destination, that object is used and it’s not automatically converted to sonic-boom. v8.3.1 fixes a regression introduced in v8.3.0 when running pino within worker threads, such as inside vitest.
-
pino-socket v5.1.0 adds a backoff strategy before a reconnection and a queue to avoid losing packets. Check it out!
I made a mistake while preparing the CVE details page for the July Security release and I typed v16.20.0 instead of v16.16.0. We are working to rectify that in the registries:
After reading the contributing guidelines, in my opinion this is the best place I found to raise this issue. I understand this may not be correct though, sorry in advance for the inconvenience. What is the problem this feature will solve…
|
|
Undici v5.8.0 fixes a few security vulnerabilities. Update!
|
|
Undici v5.8.0 fixes a few security vulnerabilities. Update!
|
How to use Fastify hooks? They are one of the most powerful features of Fastify. Read more on this article from Simon:
|
4 min read Often we’ll find we need to set the same response headers for multiple routes in an API, but we don’t want to duplicate the setting of those headers in every route handler. Hooks are a core feature of Fastify that we can use to help us solve this problem.
|
|
4 min read Often we’ll find we need to set the same response headers for multiple routes in an API, but we don’t want to duplicate the setting of those headers in every route handler. Hooks are a core feature of Fastify that we can use to help us solve this problem.
|
In the last few years, Paolo Insogna and myself worked to make sure Node.js was robust against Slowloris attacks. Finally in Node v18 we are finally safe:
Web applications are becoming an ever more important part of our lives, and we rely on them for all aspects of our daily interactions, no matter if we use them for need or for fun. All these applications must be able to continuously serve or exchange critical data.
|
I love asking candidates about Promises and how they work. This article will prepare you well for those kind of questions.
|