Skip to content

Version 1.3.0

Choose a tag to compare

@yone1130 yone1130 released this 21 May 12:19
· 7 commits to main since this release
a5938eb

Version

Update Details

Features

  • Refactored the Version class 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, and hash.
  • Added support for prerelease levels, optional revision numbers, and optional build hashes in toString() output, such as 1.3.0-beta.1 and 1.3.0-beta.1+hash.
  • Changed VersionLevel enum 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.md with 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-js across package metadata and source headers.
  • Issue Tracker Metadata: Updated the package bugs metadata to point to the correct GitHub Issues URL.
  • pnpm Migration: Replaced package-lock.json with pnpm-lock.yaml and added the packageManager field for pnpm@11.1.3.
  • Package Metadata Update: Renamed the package to @yoneyo/version and 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

Full Changelog: v1.2.0...v1.3.0