Welcome! This file keeps lightweight coordination notes for anyone (human or AI) hacking on connect-mongo.
- Follow
docs/PLANS.mdfor the prioritized maintenance backlog. - When picking up a task, append a short status note under the relevant section in
docs/PLANS.md(e.g.- [started YYYY-MM-DD] <task>), then remove or update it when you finish. - Build pipeline now uses
tsdownfor dual ESM/CJS bundles intodist/plustscfor typed transpilation (npm run buildandnpm run typecheck). Local sanity checks confirmnpm run build,npm run test:lint, andnpm run test:prettierpass (lint only warns on crypto key_size/iv_size/at_size camelCase). Fullnpm teststill needs a running MongoDB (e.g., docker compose up) until tests migrate to mongodb-memory-server.
- Run
npm ci && npm run build && npm testlocally before opening or updating a PR unless the change is docs-only. - Record any assumptions, surprises, or TODOs at the bottom of the touched file(s) in
// TODO(agent): ...comments or indocs/PLANS.md. - When working on a task, always follow PLAN, EDIT and REVIEW steps.
- When working on a task, always check if CHANGELOG.md or README.md need updates. If encounter breaking changes, add a note to CHANGELOG.md and also create separate migration docs if needed.
- Use
git commit --amendto tidy up your commits before pushing, and prefer small, focused PRs that address a single task. - Use context7 or web search to find relevant code snippets, tests, or docs that relate to the task at hand.
- Prefer concise commit messages referencing the plan item, e.g.
fix: stabilize clear() semantics (plan#2). - For complex changes, request a human review to ensure the change aligns with project goals and also ask for clarification on any ambiguous points in the plan.
Thanks for helping keep the project healthy!