- 5c30879: Add
daysUntilEOLproperty andtoJSON()method to NodeVersion
- 15bd7e2: Added
eolDateproperty toNodeVersioninterface to provide the specific End-of-Life date for a major version.
- 131c4a3: Added security enhancements: DoS prevention via input length limit and robust 'v' prefix stripping.
- 9716723: - feat: Add
toString()method toNodeVersionobject for better DX.- perf: Optimize version comparison by pre-calculating numeric segments.
- fix: Properly handle 'v' prefix (case-insensitive) and non-numeric segments in version strings.
- 7d02149: test: verify OIDC publishing with fixed workflow config
- e09df4a: test: verify npm trusted publishing with OIDC
-
- ESM Only: The package is now pure ESM. CommonJS support has been dropped.
- Enhanced Version Comparison: Added
isAtLeast,is,isAbove,isBelow, andisAtMostmethods. - LTS Support: Added
isLTSandltsNameto identify Long Term Support releases. - EOL Support: Added
isEOLto check if the current Node.js version has reached End-of-Life. - Improved Types: Added exported
NodeVersioninterface for better TypeScript integration. - Direct Export: Added a
versionconstant as a default-like export for easier access.
- Modernized build system using
tsdown. - Integrated
changesetsfor automated releases. - Switched to
biomefor unified linting and formatting. - Updated
tsconfigto modern standards.