Comments (11)
Independent from fastify, my use cases at work only use node 20.
from fastify.
Also, we will be committed to supporting v4 for quite some time. It will cover those on the old releases.
from fastify.
I do not oppose to support less version at the beginning of new major.
We often need about 2 - 3 years for new major release.
That's means v18
is not a good option to be part of next major because it will be un-maintained in most of the life-time (1/2 - 2/3) for v5
.
from fastify.
+1
Additional information on usage: https://nodedownloads.nodeland.dev/
from fastify.
Let's do it.
from fastify.
@Eomm @simoneb any opinions here?
from fastify.
TLDR: Drop it 👍🏼
It seems the Node.js 18 version is still in use, but Node.js 20 is gaining traction month by month, while v18 is being phased out. Therefore, I believe that by the Fastify v5 release, most users will have already upgraded to v20.
from fastify.
I don't know folks, there doesn't seem to be a right or wrong.
- first of all it depends on when v5 comes out. If it comes out at a time that v18 is still the Active LTS (this October), it's a long shot to decide to stop supporting it
- secondly it depends how much effort it is to keep supporting it. If it doesn't make any difference in terms of maintenance, I don't see a compelling reason to drop it
- even if the two points above suggest that dropping it is a sensible choice, let's still consider all the cloud vendors which are quite slow in migrating to newer versions of Node.js. If users are in production with any cloud providers which don't support 20, do we really want to prevent them from being able to upgrade to v5 for that reason?
I don't have full visibility around any of the points above: I don't know when v5 is due to be released, I don't know how much effort it is to support v18, and I don't know which cloud providers support which Node.js version, but they're the things I would consider when making a decision.
from fastify.
Node.js v18 is not Active LTS. It's maintenance LTS and will be out of support in April 2025.
The target for Fastify v5 is in mid-July. Node.js v20 is Active LTS.
secondly it depends how much effort it is to keep supporting it. If it doesn't make any difference in terms of maintenance, I don't see a compelling reason to drop it
There are many differences between Node.js v18 and v20, and I expect this to grow.
My main concern is the flakyness of Node.js v18 in CI. We could wait and make a last-minute decision based on the fact that the FinalizationRegistry bug is backported and released on v18.
(this causes flakyness both to Pino and Undici).
from fastify.
You're right about Node 18 being maintenance, my bad. Although the other two considerations still hold, 18 being maintenance is a fairly compelling reason to drop it, I agree.
from fastify.
Related Issues (20)
- `disableRequestLogging` should disable logs in default error handler HOT 6
- incorrect plugin identified for timeout HOT 1
- Backport webdav methods from next to current branch HOT 7
- OPTIONS HTTP method body processing HOT 3
- Dependency update for v5 HOT 1
- Merge main into next HOT 4
- Scoped FastifyRequest Customization via Generic Parameter in FastifyInstance HOT 1
- Flaky test on N|Solid 20 MacOS HOT 2
- Implement simple B-Tree for faster string comparisons HOT 6
- Throwing error in setErrorHandler after a JSON parse SyntaxError causes app to crash
- Where is the documentation for <Reply>.sendFile? HOT 2
- Switch to ajv/2020 for fastify 5 HOT 7
- Fastify v5 coordination HOT 6
- Does Validation-and-Serialization document's outdated?
- `disableErrorLogging` option HOT 1
- Request hangs if you `await reply.status` in an async handler. HOT 15
- querystring with property of type number fails HOT 7
- onError hook is called before errorHandler when error is thrown in onRequest hook HOT 6
- Approval Request for Future State Proposal HOT 18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastify.