mkver
    Preparing search index...

    Changelog

    This module follows semver.

    The MAJOR or API version is incremented for

    • 💔 Non-backwards-compatible API changes

    The MINOR or UPDATE version is incremented for

    • ✨ Backwards-compatible features

    The PATCH version is incremented for

    • 🐞 Backwards-compatible bug fixes
    • 📦 Minor packaging changes
    • ✨ Added --version and -v CLI flags to display version number
    • ✨ Enhanced git error handling with user-friendly, actionable error messages for common failure scenarios:
      • git not available
      • Running outside a git repository
      • Running in a git repository with no commits
    • 📦 Added comprehensive test coverage for git prerequisite failure modes and CLI flags
    • 📦 Support for GIT environment variable to override git command (useful for testing)
    • 🐞 Fix #49, which required semver to be added as a proper dependency, and the path to mkver to be fixed. Thanks, Rob van der Leek!
    • 📦 Update GitHub Actions to publish via OIDC
    • ✨ Add ESLint configuration for JavaScript and TypeScript linting
    • 📦 Fix cross-platform TypeScript compilation in tests using npx
    • 📦 Update GitHub Actions workflows to use numeric Node.js versions
    • 💔 Drop Node.js v18 and v21 support

    • ✨ Add .cjs file extension support for explicit CommonJS output

    • 📦 add Node.js v22, v23, and v24 support

    • 📦 Switch CI workflow from yarn to npm

    • 🐞 Enhance error handling for file creation and TypeScript compilation in tests

    • 🐞 Fix Windows test compatibility issues (reverted ESM migration due to test breakage)

    • 🐞 Remove console.log with headSha metadata
    • 🐞 Fix mkver shebang
    • 💔 Drop support for obsolete versions of Node.js

    • ✨ Support non-CLI programmatic mkver calls. Include typings.

    • 📦 Merge code from bin/mkver.js into mkver.ts

    • 📦 Replace sync calls with async calls

    • 📦 Added eslint.

    • 📦 Added prettier and import reordering.

    • 📦 Upgrade all dev dependencies.

    • 📦 Upgrade all dev dependencies.

    • 📦 Remove unused internal map function

    • ✨ If the version is parseable by semver, mkver will export versionMajor, versionMinor, versionPatch, and versionPrerelease fields. Examples are now in the README.

    • 📦 Improved test coverage with several different version flavors (including prerelease suffixes)

    • 📦 Upgrade all dev dependencies.

    • 💔/📦 Dropped Node 12 and added Node 18 to the CI matrix (12 is EOL)

    • 📦 Upgrade all dev dependencies
    • 📦 Add default exports (so import v from "./Versions" works, if you want namespaced access).
    • 📦 Upgrade all dev dependencies
    • ✨ Support ECMAScript module formats (.mjs)
    • 📦 Upgrade all dev dependencies
    • 📦 Upgrade all dev dependencies (including TypeScript 4.1)
    • 📦 Upgrade all dev dependencies
    • 📦 Upgrade all dev dependencies
    • 📦 Version.js and Version.ts both use semicolons now
    • 📦 version.ts has test coverage
    • 📦 Upgrade all dev dependencies
    • 📦 Prettier 2.0.0 diffs
    • 📦 Upgrade all dev dependencies, migrate mocha opts
    • 📦 Upgrade all dev dependencies
    • ✨ Support arbitrarily deep subpackages (if running on node 10.13+)
    • 📦 Add better integration tests (by spawning the binfile)
    • 📦 prettier .js
    • 📦 Upgrade all dev dependencies
    • ✨ Remove runtime dependency on fs-extra
    • 📦 Upgrade all dev dependencies
    • 📦 Support for mkver --help
    • 📦 Upgrade all dev dependencies
    • 📦 Add node 11 to the build matrix
    • ✨ The release suffix is now the YYYYMMDDhhmmss for better human readability. The base64 of the minute unixtime was, uh, "clever," but I kept wanting to know when the build was, and I don't (yet) think in b64.
    • 📦 Upgrade all dev deps, including TS 3.0.3.
    • ✨ release values use the git commit date rather than the SHA, so the same version will have monotonically increasing releases for subsequent commits.
    • 📦 Publish on linux to chmod bin/mkver
    • 📦 Whitespace between comment and exports
    • 🎉 First release