Skip to content

Latest commit

 

History

History
62 lines (36 loc) · 1.72 KB

File metadata and controls

62 lines (36 loc) · 1.72 KB

node-version

4.3.0

Minor Changes

  • 5c30879: Add daysUntilEOL property and toJSON() method to NodeVersion

4.2.0

Minor Changes

  • 15bd7e2: Added eolDate property to NodeVersion interface to provide the specific End-of-Life date for a major version.

Patch Changes

  • 131c4a3: Added security enhancements: DoS prevention via input length limit and robust 'v' prefix stripping.

4.1.0

Minor Changes

  • 9716723: - feat: Add toString() method to NodeVersion object 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.

4.0.2

Patch Changes

  • 7d02149: test: verify OIDC publishing with fixed workflow config

4.0.1

Patch Changes

  • e09df4a: test: verify npm trusted publishing with OIDC

4.0.0

Major Changes

  • v4.0.0

    Breaking Changes

    • ESM Only: The package is now pure ESM. CommonJS support has been dropped.

    New Features

    • Enhanced Version Comparison: Added isAtLeast, is, isAbove, isBelow, and isAtMost methods.
    • LTS Support: Added isLTS and ltsName to identify Long Term Support releases.
    • EOL Support: Added isEOL to check if the current Node.js version has reached End-of-Life.
    • Improved Types: Added exported NodeVersion interface for better TypeScript integration.
    • Direct Export: Added a version constant as a default-like export for easier access.

    Tooling & Infrastructure

    • Modernized build system using tsdown.
    • Integrated changesets for automated releases.
    • Switched to biome for unified linting and formatting.
    • Updated tsconfig to modern standards.