Repository navigation
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