Skip to content

v0.3.1

Latest

Choose a tag to compare

@rizukirr rizukirr released this 13 Jul 11:32
2fefcda

Summary

v0.3.1 makes show --date a first-class way to look up prayer times for any single day or an inclusive span of days, with full support across the table, JSON, and headless output modes. It also fixes a show --next rollover bug that could report a slightly wrong time after the last prayer of the day, alongside packaging and repository-hygiene improvements.

What changes

show --date now supports single dates and inclusive ranges

The --date option has been reworked from the ground up. Instead of a single lookup, you can now request prayer times for one day or an inclusive span of days, and every output mode understands ranges:

  • Table renders a range as one row per day, printing only the prayer columns you have enabled in your config.
  • JSON (--json) emits an array of per-day objects for ranges, and a single object for a single date.
  • Headless (--headless) emits one date= block per day, keeping the machine-readable key=value format.

New usage:

muslimtify show --date 2022-01-01                     # one day
muslimtify show --date 2022-01-01 --json              # one day as JSON
muslimtify show --date 2022-01-01 2022-01-07          # inclusive range
muslimtify show --date 2022-01-01 2022-01-07 --headless

--json and --headless may appear before or after the dates. Input dates are validated up front, so malformed or out-of-order ranges are rejected with a clear error instead of producing garbage output.

Fixes

  • show --next rollover after the last prayer of the day. When every enabled prayer for today has already passed, --next correctly rolls over to tomorrow's first prayer. Previously it reused today's clock time as a stand-in, which could be off by up to a minute due to day-to-day drift. The wrapped prayer's time is now recomputed for the next day's date, and the countdown is derived from that exact time. The fix is shared across the table, JSON, and headless --next renderers and is covered by new CLI tests.
  • show --date help text rewritten for clarity: the usage line, option descriptions, notes, and examples now accurately reflect single-date and range behavior.

Maintenance and packaging

  • Bundled adhan.mp3 is now shipped inside the Fedora and Windows packages.
  • CI: action-gh-release bumped to v3.0.1 (Node 24).
  • AUR source checksums refreshed.
  • Repository hygiene: auto-assign workflow for new issues and pull requests (#36), a more detailed pull request template (#37), and an updated AI usage policy.

Changelog

  • feat(show): single-date and inclusive date-range support for --date across table, JSON, and headless output (#35)
  • fix(show): --next shows tomorrow's exact recomputed time after the day's last prayer (#35)
  • feat: auto-assign issues and PRs (#36)
  • chore: more detailed PR template (#37)
  • chore: bump version to v0.3.1 (#38)

Full Changelog: v0.3.0...v0.3.1