Skip to content

Releases

Version 1.4.0

Choose a tag to compare

@yone1130 yone1130 released this 24 May 13:13
d05a04b

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

Version 1.3.0

Choose a tag to compare

@yone1130 yone1130 released this 21 May 12:19
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

Version 1.2.0

Choose a tag to compare

@yone1130 yone1130 released this 14 May 12:38
f2ed7a1

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

Choose a tag to compare

@yone1130 yone1130 released this 21 Jan 11:41

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

Version 1.0.0

Choose a tag to compare

@yone1130 yone1130 released this 19 Mar 13:53

Version

Initial release.

Full Changelog: https://github.com/yone1130/version/commits/v1.0.0