Commit graph

27 commits

Author SHA1 Message Date
Aric Camarata
a0643e0b86 chore: bump to v1.0.4 2026-06-13 11:52:42 -04:00
Aric Camarata
ab908e6eba build: use prepack hook so npm pack/publish reliably emit index.d.mts 2026-06-13 10:11:20 -04:00
Aric Camarata
903fa34896 chore: bump to v1.0.3 2026-06-10 16:50:42 -04:00
Aric Camarata
3b90105caf chore: update hijri-core to 1.0.3 2026-06-10 16:50:02 -04:00
Aric Camarata
c6e9a49d19 fix: convert the displayed calendar date in toHijri for hijri-core's UTC-day contract
moment.fn.toHijri now passes new Date(Date.UTC(this.year(), this.month(), this.date()))
to hijri-core instead of the raw instant (this.toDate()). This converts the calendar
date the moment instance displays, respecting utc() mode, rather than the underlying
millisecond value — eliminating wrong-Hijri-day results around UTC-midnight for hosts
east or west of UTC.

Lock-step with hijri-core fix/utc-day-boundary (commit 3419378). fromHijri path
was already correct; its comment updated for clarity.
2026-06-10 16:35:48 -04:00
Aric Camarata
1e3044c859 ci: fix coverage corepack order, eslint parser devDeps, pack-check d.mts
- Add @typescript-eslint/parser and @typescript-eslint/eslint-plugin to devDependencies
- Fix eslint.config.mjs: add files pattern and parserOptions.project for typed linting
- Fix prettier formatting in src/index.ts and src/types.ts
- Add coverage/ to .gitignore and untrack committed coverage artifacts
- postbuild cp already handles dist/index.d.mts (verified)
2026-05-31 08:48:36 -04:00
Aric Camarata
b1fba5f68d chore: bump to v1.0.2 2026-05-30 19:19:21 -04:00
Aric Camarata
94d8b8f8c2 chore: P1 polish and documentation updates 2026-05-30 18:40:33 -04:00
Aric Camarata
b96b21a861 docs: add TypeDoc API generation (typedoc@0.28.19 + typedoc-plugin-markdown@4.11.0)
Add typedoc and typedoc-plugin-markdown as devDependencies. Add typedoc.json config
targeting src/index.ts with markdown output to .github/wiki/api. Add docs script to
package.json. Generate initial API reference pages.

Part of T-E8-03 — TypeDoc automation for all 12 JS/TS packages.
2026-05-30 16:41:59 -04:00
Aric Camarata
50b6665035 chore: adopt shared config packages (tsconfig, eslint, prettier) 2026-05-30 15:11:48 -04:00
Aric Camarata
60f2ac366a ci: corepack before setup-node, scope prettier to src/, emit d.mts 2026-05-29 20:05:42 -04:00
Aric Camarata
62c247b942 chore: E6 polish wiki content + ADR-015 CI updates (P1) 2026-05-29 07:15:49 -04:00
Aric Camarata
1ffea38e1c chore: untrack AGENTS.md (AI working memory, not source code) 2026-05-29 06:36:41 -04:00
Aric Camarata
308e5e2c48 chore: bump to v1.0.1
- Flatten exports map to ADR-015 standard
- Add coverage script (c8)
- Migrate CI to corepack enable
2026-05-28 13:55:02 -04:00
Aric Camarata
baf7fc616b chore(config): add AGENTS.md for dual-harness parity 2026-05-25 15:51:10 -04:00
Aric Camarata
04f7e43f3d chore: align repository structure with portfolio documentation standards 2026-05-15 15:27:08 -04:00
Aric Camarata
6b89778c6a Add GitHub Sponsors funding config 2026-03-28 18:18:50 -04:00
Aric Camarata
d1373ece1c style: fix prettier table formatting in wiki 2026-03-08 17:30:56 -04:00
Aric Camarata
efc9e60dd9 docs: add Architecture section to README 2026-03-08 17:10:47 -04:00
Aric Camarata
c6f5bc7211 ci: let pnpm/action-setup read version from packageManager field 2026-03-08 16:52:34 -04:00
Aric Camarata
e64150b337 docs: add Compatibility and Acknowledgments sections to README 2026-03-08 16:46:31 -04:00
Aric Camarata
4fba2ec221 ci: pin pnpm to version 10 in all CI jobs
Also enable sourcemap: true in tsup config
2026-03-08 16:37:44 -04:00
Aric Camarata
7d7e723555 refactor: code quality improvements across the board 2026-03-08 11:37:55 -04:00
Aric Camarata
a846d93fe9 chore: add forceConsistentCasingInFileNames to tsconfig 2026-02-25 15:25:36 -05:00
Aric Camarata
a872c5b5ed chore: CR/QA polish for v1.0.0 release
Fix documentation style (no em dashes). Update hijri-core devDep
from file: path to ^1.0.0. Add wiki-sync workflow permissions.
Correct UAQ range to 1318-1500 AH / 1900-2076 CE throughout.
2026-02-25 15:12:10 -05:00
Aric Camarata
60690bd8c9 chore: clear .npmrc to remove pnpm-only key that warns on npm publish 2026-02-25 15:09:08 -05:00
Aric Camarata
295dbf8680 feat: initial release of moment-hijri-plus v1.0.0
Moment.js plugin adding Hijri calendar support via hijri-core. Adds
toHijri(), fromHijri(), hijriYear/Month/Day(), isValidHijri(), and
formatHijri() to all Moment instances via fn prototype and module
augmentation. Format token escaping wraps substituted values in
moment bracket syntax [...] to prevent re-interpretation. UTC-midnight
date shift corrected by using getUTC* components + moment([y, m, d])
construction. 14 ESM + 8 CJS tests passing. Dual CJS/ESM build.
2026-02-25 14:15:18 -05:00