Repository navigation
Version.js
Update Details
Features
- Adds
Version.fromString()to createVersioninstances 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(), andequals()utilities for comparing version instances by major, minor, patch, release level, and revision. - Introduces release level ordering for
stable,rc,beta,alpha, anddevcomparisons. - Caches generated version strings in
toString()to avoid rebuilding the same string repeatedly.
Chore
- Updates the package version from
1.3.0to1.4.0. - Corrects the author name and updates the package entry point from
./src/index.jsto./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.1to1.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