-
Notifications
You must be signed in to change notification settings - Fork 3.5k
BREAKING: remove cjs build & update min node to 20 #3687
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
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.
How was the performance here?
Curious if there is any difference between node versions.
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.
cjs was always slightly slower than esm. Not by much though.
styfle
left a comment
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.
Thanks!
|
I think this is ready to go, but I am going to wait to merge this for a month so we can bundle any other breaking changes together. |
# [16.0.0](v15.0.12...v16.0.0) (2025-06-27) ### Bug Fixes * remove cjs build & update min node to 20 ([#3687](#3687)) ([0a35d8f](0a35d8f)) ### BREAKING CHANGES * - minify ./lib/marked.esm.js and ./lib/marked.umd.js - remove ./marked.min.js use ./lib/marked.umd.js instead - remove ./lib/marked.cjs - update minimum supported node version to 20 to support require('marked.esm.js'). see nodejs.org/docs/latest-v20.x/api/modules.html#loading-ecmascript-modules-using-require
Description
BREAKING CHANGES
./lib/marked.esm.jsand./lib/marked.umd.js./marked.min.jsuse./lib/marked.umd.jsinstead./lib/marked.cjsrequire('marked.esm.js'). see https://nodejs.org/docs/latest-v20.x/api/modules.html#loading-ecmascript-modules-using-requireContributor
Committer
In most cases, this should be a different person than the contributor.