Skip to content

Changelog ​

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased ​

Added ​

  • Linting with oxlint and dead-code checks with fallow, both run in CI
  • Documentation site with guides and an API reference, at https://simmo.github.io/niobe/
  • Agent guide (AGENTS.md) and Claude Code hooks that format, lint and check the changelog

Changed ​

  • Formatting uses oxfmt instead of Prettier
  • The README is now a short introduction; the API reference moved to the documentation site
  • Releases are published from GitHub Actions with npm trusted publishing and staged publishing, so each version has a provenance attestation and is approved on npm before it goes live
  • Development, CI and releases use Node 24 (.nvmrc)
  • The library is type-checked without Node or browser types, so it stays usable in any JavaScript runtime
  • Development dependencies updated, including TypeScript 6, Vitest 5 and release-it 21, and GitHub Actions moved to their latest versions

2.0.0 - 2025-06-14 ​

Breaking ​

  • Renames toParts to msToParts
  • Renames MICROSECONDS_IN_A_MILLISECOND to MICROSECONDS_IN_MILLISECOND
  • Renames MILLISECONDS_IN_A_SECOND to MILLISECONDS_IN_SECOND
  • Renames NANOSECONDS_IN_A_MICROSECOND to NANOSECONDS_IN_MICROSECOND

Added ​

  • msToClock function to convert milliseconds to a clock string
  • clockToMs function to convert a clock string to milliseconds
  • partsToMs function to convert an object with time unit properties to milliseconds
  • Parts interface to represent the parts of a duration
  • TimeUnit type to represent the time unit strings used in the parseDuration function

Fixed ​

  • Incorrect/missing documentation
  • Floating point conversion error

1.2.0 - 2025-06-10 ​

Added ​

  • Code coverage check
  • Microseconds and nanoseconds support

1.1.2 - 2025-05-06 ​

Changed ​

  • Workflow adjustments

Fixed ​

  • Missing package files path

1.1.1 - 2025-05-05 ​

Added ​

  • Contributing guide
  • Security policy
  • PR + issue templates

Changed ​

  • README adjustments

Fixed ​

1.1.0 - 2025-05-05 ​

Added ​

  • weeks unit converter
  • WEEK and DAYS_IN_WEEK constants
  • weeks to toParts function output

Changed ​

  • Updated dev dependencies
  • Output modules in distribution

Fixes ​

  • README typos
  • Clean up
  • Changelog URLs

1.0.0 - 2025-05-05 ​

Changed ​

  • Update readme

0.0.2 - 2025-05-05 ​

Fixed ​

  • Update incorrect documentation
  • Update README

0.0.1 - 2025-05-04 ​

Added ​

  • Initial setup
  • Constants for time units
  • Unit converter functions for days, hours, minutes, seconds and milliseconds
  • toParts function to convert milliseconds to an object with properties for each time unit
  • parseDuration function to parse a duration string into milliseconds