I have created a PR (#26) that showcases these proposed changes.
Proposed Changes
- Node Support:
- Dropping support for Node.js versions that have been End-of-Life (EOL) for an extended period would be beneficial. While this is a critical topic, it would simplify our CI Pipeline and enable the use of modern syntax and tooling.
- Focusing on supported Node versions would allow us to adopt and promote more modern features, moving the community forward.
- Packages needing support for older Node versions could still transpile the code independently.
- Alternative: Since this package does not rely on Node.js internals or specific dependencies, we could reduce the number of Node versions tested in CI. Officially, the package would be tested on key Node.js versions (e.g., v18 and above), with compatibility for older versions likely but not guaranteed.
New Features & Enhancements
Maintainability Improvements
I have created a PR (#26) that showcases these proposed changes.
Proposed Changes
New Features & Enhancements
ESM Support
index.cjs) from an ESM entry point (index.mjs), as demonstrated in PR Express TC Meeting - 2016-07-27 expressjs/discussions#26.Built-in TypeScript Types
@types/content-type.@types/content-typepackage.Maintainability Improvements
Updated CI Pipeline
nvmwith theactions/setup-nodeaction for better performance, leveraging its built-in caching for Node.js versions.Native Testing with
node:testmochaandnycwith Node.js’ native test runner andc8for code coverage.ESLint Update
Code Formatting