-
Notifications
You must be signed in to change notification settings - Fork 9
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
chore: build as cjs package #18
Conversation
Ooh, very happy to see this!! I'd love this PR (plus a release) in order to fix igorshubovych/markdownlint-cli#469 without needing to introduce an async code path. It looks like you've done the work already, but if you'd like a second pair of eyes or anything to get this done, I volunteer. Thank you! :) |
package.json
Outdated
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "smol-toml", | |||
"version": "1.1.4", | |||
"version": "1.1.5", |
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.
At the risk of being a pest, I think changing the primary export from ESM to CJS should be considered a breaking change (i.e., semver major increment vs. patch increment).
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 see why that'd be the case; but the change shouldn't have any effect on downstream users (the package remains compatible with ESM-style imports) so I'm unsure if a semver major is necessary here 🤔
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.
You're right! I hadn't realized existing uses would continue to work, sorry.
After double checking the change I don't think it changes the behavior of the library enough to warrant a semver major. It does allow for something new as a side effect (that I quite like, actually) and the possibility to import the library as |
v1.2.0 works great, thank you! |
No description provided.