github yone1130/version-js v1.4.0
Version 1.4.0

6 months ago

Version.js

Update Details

Features

  • Adds Version.fromString() to create Version instances from formatted version strings, including core version numbers, release levels, revisions, and build hashes.
  • Adds validation for numeric version components and rejects invalid or overly long version strings.
  • Adds compare(), isNewerThan(), isOlderThan(), and equals() utilities for comparing version instances by major, minor, patch, release level, and revision.
  • Introduces release level ordering for stable, rc, beta, alpha, and dev comparisons.
  • Caches generated version strings in toString() to avoid rebuilding the same string repeatedly.

Chore

  • Updates the package version from 1.3.0 to 1.4.0.
  • Corrects the author name and updates the package entry point from ./src/index.js to ./src/version.js.
  • Updates English and Japanese README examples to reference version-js@1.4.0.
  • Refreshes sample version values and expected output from 1.3.0-beta.1 to 1.4.0-beta.1.

What's Changed

  • chore(npm): Update package metadata for v1.4.0-dev by @yone1130 in #22
  • feat(Version): Add version parsing and comparison utilities by @yone1130 in #24
  • release: Version 1.4.0 by @yone1130 in #25

Full Changelog: v1.3.0...v1.4.0

Don't miss a new version-js release

NewReleases is sending notifications on new releases.