file-selector
file-selector copied to clipboard
feat: convert package to pure ESM
What kind of change does this PR introduce?
- [ ] Bug Fix
- [x] Feature
- [ ] Refactoring
- [ ] Style
- [ ] Build
- [ ] Chore
- [ ] Documentation
- [ ] CI
Did you add tests for your changes?
- [x] Yes, my code is well tested
- [ ] Not relevant
If relevant, did you update the documentation?
- [x] Yes, I've updated the documentation
- [ ] Not relevant
Summary This converts the package into pure ESM. This means that the code is no longer distributed as anything than standard JavaScript, avoiding dual packaging hazard in the process.
This also benefits modern bundlers such as Vite, which can do more extensive optimizations on pure packages.
Does this PR introduce a breaking change? Yes, this raises the minimum required version of Node.js to version 14. Since Node.js 12 is EOL this should not be an issue. This also drop support for all module systems beside ECMAScript.
@rolandjitsu any particular reason the PR was closed?
Sorry, that was unintentional. The intent was to close the dependapot ones. Re-opening.
@rolandjitsu I think I will split out this PR into a couple of smaller more reviewable ones. It's also been a while since this PR was created, so I'd like to re-evaluate the choices made here.
Marking this as a draft to get back to it later when the other work has landed.