Thanks for contributing to OnceOnly TypeScript SDK.
This repository contains the TypeScript/JavaScript SDK for OnceOnly API. Please keep changes focused on:
- SDK correctness and API compatibility
- strong typing and predictable runtime behavior
- tests, examples, and docs aligned with code
- Node.js 20+
- npm
npm installBuild artifacts:
npm run buildBuild consistency check:
npm run checkRun tests:
npm testRelease consistency checks:
npm run release:check- Keep public API stable unless change is intentional and documented.
- Preserve parity with backend endpoint contracts.
- Keep TypeScript strictness intact; avoid loosening types without strong reason.
- Prefer small, explicit transformations over hidden magic.
- Update examples/docs when public behavior changes.
- Tests added or updated for behavior changes.
-
npm testpasses locally. -
README.mdupdated for user-visible API changes. -
CHANGELOG.mdupdated for user-visible changes. - No unrelated refactors bundled into the same PR.
- Use focused commits with clear titles.
- Keep one logical change per commit when possible.
When opening an issue, include:
- SDK version
- Node.js version
- minimal reproducible snippet
- expected vs actual behavior
- backend response/status (if available)
For security-sensitive reports, contact: support@onceonly.tech.