Supporting TypeScript nodenext resolution and other adventures in Nodeland - Issue #86
Hi Folks, we had a flurry of releases last week. Platformatic v0.8.0 includes some exciting features. The Fastify community also started a complete rewrite of all the typings to support the new TypeScript nodenext
resolution.
Node.js Backend Master Class
Next week, I will do a Node.js Backend Masterclass, teaching how to structure Node.js applications (link on the image).
Live Coding Videos
You can watch me in real time on my twitch channel at https://www.twitch.tv/matteocollina, or on youtube at:
I live code on Monday and Thursday at 17:30 CET, 8:30 PST, and all other possible timezones.
Releases
- Platformatic v0.8.0 ships
@fastify/autoload
integration, many-to-many support, multiple schemas andLIKE
support. - fastify-sandbox v0.11.0 remove automatic encapsulation of the sandboxed plugin.
- @fastify/reply-from v8.3.1 fix cache source with different destination, adds support for typescript nodenext resolution.
- @fastify/schedule v4.0.0 updates to toad-scheduler v2.0.0.
- @fastify/point-of-view v7.2.0 allows custom Content-Type header for Nunjucks.
- light-my-request v5.7.0 removed the check on the content-type before parsing
.json()
. - undici v5.13.0 improves fetch() compatibility.
Update to TypeScript Nodenext resolution algorithm
The Fastify community is refactoring all its type definitions to be compatible with the new TypeScript nodenext
resolution algorithm. You can find the whole discussion at https://github.com/fastify/fastify/issues/4349.
Here is the list of modules that have been updated so far:
- @fastify/accept-serializer v5.2.0
- @fastify/accepts v4.1.0
- @fastify/autoload v5.6.0
- @fastify/schedule v4.1.0
- @fastify/oauth2 v7.0.0
- @fastify/helmet v10.1.0
- @fastify/point-of-view v7.3.0
- @fastify/zipkin v3.2.0
- @fastify/static v6.5.1
- @fastify/compress v6.2.0
- @fastify/swagger v8.2.0
- @fastify/swagger-ui v1.3.0
Articles
- The truth about package-lock.json.
- Top-level promise handling in Node.js ES modules.
- AWS Lambda adds support for Node.js 18 - this is massive news, this means a lot of people can start using native
fetch()
in Node.js. - Wix Multithreaded Node.js to Cut Kubernetes Pod Costs.
- The future of Objection.js - unfortunately, a popular Open Source project could not survive the demands of the community (I talk about my solution in my talk Build a community, not a Framework).