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
toPartstomsToParts - Renames
MICROSECONDS_IN_A_MILLISECONDtoMICROSECONDS_IN_MILLISECOND - Renames
MILLISECONDS_IN_A_SECONDtoMILLISECONDS_IN_SECOND - Renames
NANOSECONDS_IN_A_MICROSECONDtoNANOSECONDS_IN_MICROSECOND
Added
msToClockfunction to convert milliseconds to a clock stringclockToMsfunction to convert a clock string to millisecondspartsToMsfunction to convert an object with time unit properties to millisecondsPartsinterface to represent the parts of a durationTimeUnittype to represent the time unit strings used in theparseDurationfunction
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
parseDurationstrict mode example (#3, thanks @spyros-uk)
1.1.0 - 2025-05-05
Added
weeksunit converterWEEKandDAYS_IN_WEEKconstantsweekstotoPartsfunction 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,secondsandmilliseconds toPartsfunction to convert milliseconds to an object with properties for each time unitparseDurationfunction to parse a duration string into milliseconds