-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Add support for Node 16 #2886
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’m surprised tests are passing. We probably need to bump the target output to truly drop node 16 come September https://nodejs.org/gl/blog/announcements/nodejs16-eol
Our docs state that we support lts and current node. The engines field should reflect what versions we support not what versions happen to work. |
Well Node 16 is an LTS release: https://nodejs.dev/en/about/releases/. And in any case, we could easily change the language on https://github.com/markedjs/marked#compatibility to cover Node 16. It's pretty frustrating that this package works on Node 16 without issue and I'm being banned from running it there anyway. I don't quite understand the reasoning behind that or what the benefit is. And it seems like a lot of other people are frustrated too: #2767 (comment) |
The reasoning is that none of us on the markedjs team want to debug issues on older versions of node. We have limited free time and would like to focus that time on versions of node we use. If you would like to join the team and help maintain older versions you are welcome to. We do appreciate the work you have done on marked 😁👍. You can still use it. There are many well documented ways to get around the engines version. You can use |
Sure, if there are any issues that arise on the oldest version of Node, but not more recent versions, I don't mind being responsible for those |
Sounds easy enough - once 16.x added to CI then the issues will present themselves if a PR causes 16.x to regress 👍 |
Can this PR solve the problem mentioned in #2767 (comment)? |
@UziTech Can you help check this please? |
## [5.1.2](v5.1.1...v5.1.2) (2023-07-25) ### Bug Fixes * Add support for Node 16 ([#2886](#2886)) ([e465ce4](e465ce4))
thank you!! |
Marked version:
master
Markdown flavor: n/a
Description
Node 16 is still supported until September and there's no code in
marked
that doesn't work on Node 16, so it's unnecessarily aggressive to disallow it.Expectation
Should be able to run marked on Node 16
Result
engines
field gets in the way prior to this PRContributor
Committer
In most cases, this should be a different person than the contributor.