Fastify has 91% developer satisfaction and others Adventures in Nodeland - Issue #48
Hi Folks, here is another edition of Adventures in Nodeland packed with great news and new releases. The biggest news is that Fastify has 91% developer satisfaction according to the State of JS survey. I find this result quite impressive - thank all of you for the support! On the release front… I shipped Fastify v4.0.0-alpha.1 on Friday! As usual, let me know if you have any questions!
Fastify
Last Friday I merged the next branch of Fastify with the main branch, officially starting the v4 release cycle with v4.0.0-alpha.1. The pre-release is pretty low on release notes, plugin support and migration guides. However all breaking changes are there. We will cut a release candidate soon!
Last week we also shipped a new version of fastify-reply-from that adds support for custom querystring functions:
Fastify does not allow to redefine routes at runtime. This causes a challenge to use Fastify as the basis of any software that needs to do so when reacting on a configuration change. I have created a new library called @fastify/restartable that wraps Fastify and allow you to reload a fastify instance in the same process. Here is a simple example:
Mercurius
Mercurius Federation Gateway continues to improve. You should try the new release:
One of my teams at NearForm keep finding edge cases that are not handled by Mercurius gateway, in this case the support for value types in top-level resolvers. I have a good grip on how federation work and fixing its problems, so this time it was not an impossible bug.
Manuel fixed an important bug on top of the previous fixes to handle empty arrays or null references.
Pino
Pino v7.8.0 was released last week with a few fixes and a new feature: mixinMergeStrategy. Check it out
Check out v6.14.0 that adds the mixinMergeStrategy to the LTS line too:
News
One of the reason I build Open Source software is to improve the lives of the developers around the globe. Therefore I couldn’t have added the following article to my newsletter:
After a couple of months from the previous release of express v4, we can see more movement on express that is now progressing in the release of v5 with the first beta release!
Should you use REST? or maybe GraphQL? What is simpler and guarantee you the best time to market?
I often find myself in situations where I have to design a migration from a legacy system to a fresh, modern one.. Here is a detailed guide:
I find the trend of specifying the types in modules using JSDoc instead of writing them in TypeScript from the get-go quite fascinating. It combines great user experience for users while retaining the full flexibility of JavaScript when implementing things. Wdyt? Would you use them?
Do you like Markdown? I do! However quite a few startups are replacing it with their custom, post-markdown, proprietary format to be able to support more use cases. Check out this article from the smashing magazine.
I’m a huge proponent of the micro frontends approach… so I couldn’t link this article from Auth0 describing how they set it up!
How does twitter servers logs? What are the complexities involved? In the following article you would learn how hard logging at scale can be. Check it out: