Contributing
Thank you for considering a contribution! Here’s everything you need.
Development setup
Section titled “Development setup”-
Fork GourangaDasSamrat/date-wiz on GitHub.
-
Clone your fork and install dependencies:
Terminal window git clone https://github.com/<your-username>/date-wiz.gitcd date-wiznpm install -
Verify everything is green:
Terminal window npm test && npm run build
Workflow
Section titled “Workflow”npm test # run 107 testsnpm test -- --watch # watch modenpm run build # compile ESM + CJS + typesnpm test -- --coverage # view coverage reportCommit convention
Section titled “Commit convention”This project uses Conventional Commits:
feat(parse): support MM/DD/YYYY locale formatfix(relative): handle precision:3 with future datesdocs: update README token tablechore: rename post-build.js to post-build.mjsPull request checklist
Section titled “Pull request checklist”- Tests pass on Node 18, 20, and 22
- New public functions have tests with 100% coverage
-
README.mdupdated if the public API changed - No new runtime dependencies introduced
Reporting bugs
Section titled “Reporting bugs”Open a GitHub issue with:
date-wizversion and Node.js version- A minimal code snippet that reproduces the problem
- Expected output vs. actual output
For security vulnerabilities, email gouranga.samrat@gmail.com privately instead.