Repository navigation
Releases
Releases · yone1130/version-js
Version 1.4.0
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
Version 1.3.0
Version
Update Details
Features
- Refactored the
Versionclass to accept a named options object instead of positional constructor arguments, making version creation clearer and easier to extend. - Replaced public mutable fields with private class fields and read-only getters for
major,minor,patch,level,revision, andhash. - Added support for prerelease levels, optional revision numbers, and optional build hashes in
toString()output, such as1.3.0-beta.1and1.3.0-beta.1+hash. - Changed
VersionLevelenum values from numeric members to explicit string values, improving serialized output and readability.
Documentation
- Updated the README to use the Version.js name consistently and reflect the current package, CDN path, constructor style, and version output format.
- Added
README_JP.mdwith Japanese installation, usage, development, and license documentation. - Added cross-links between the English and Japanese README files.
- Updated documented development commands from npm to pnpm.
Chore
- Repository URL Standardization: Corrected and standardized GitHub repository links to
yone1130/version-jsacross package metadata and source headers. - Issue Tracker Metadata: Updated the package
bugsmetadata to point to the correct GitHub Issues URL. - pnpm Migration: Replaced
package-lock.jsonwithpnpm-lock.yamland added thepackageManagerfield forpnpm@11.1.3. - Package Metadata Update: Renamed the package to
@yoneyo/versionand prepared the package version for the 1.3.0 release. - Dependency Cleanup: Moved TypeScript from runtime dependencies to development dependencies and upgraded it to
^6.0.3.
What's Changed
- chore: Standardize GitHub repository links by @yone1130 in #19
- release: Version 1.3.0 by @yone1130 in #20
Full Changelog: v1.2.0...v1.3.0
Version 1.2.0
Version
Update Details
Features
- Add toString formatting and prerelease levels.
Documentation
- Update README usage examples for Version.
- Clarify version management library description.
Chore
- Clarify .gitignore section comments for npm dependencies and distribution outputs.
- Improve package metadata for development release.
- Update copyright header comments for all source files.
- Refine TypeScript compiler configuration.
- Prepare lockfile for 1.2.0 development.
What's Changed
- chore(git): Clarify .gitignore section comments for npm dependencies and distribution outputs by @yone1130 in #2
- docs(readme): Update README usage examples for Version 1.2.0 by @yone1130 in #4
- docs(readme): Clarify version management library description by @yone1130 in #6
- chore(npm): Improve package metadata for development release by @yone1130 in #8
- chore: Update copyright header comments for all source files by @yone1130 in #10
- chore(tsc): Refine TypeScript compiler configuration by @yone1130 in #12
- feat(Version): Add toString formatting and prerelease levels by @yone1130 in #14
- chore(npm): Prepare lockfile for 1.2.0 development by @yone1130 in #16
- release: Version 1.2.0 by @yone1130 in #17
Full Changelog: v1.1.0...v1.2.0
Version 1.1.0
Version
Update Details
Refactors
- Replace static levels with VersionLevel enum.
Documentation
- Change project's overview (description) text.
Full Changelog: v1.0.0...v1.1.0