Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions js/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ The `/js` Bun workspace, published as `@moq/<package>`. Run recipes via `just js

# Conventions

- Only TypeScript callers are supported, so don't add runtime checks for misuse the types already rule out (extra or wrong-typed arguments, impossible variants). Validate only data that crosses a trust boundary: wire, JSON (zod schemas), and user input such as element attributes.
- Only browser performance counts; accept a small regression that shows only on node or bun.
- Give each entrypoint a `@module` block. Hide deprecated exports with `@internal` or drop them; never annotate "use X".
- `just js check` includes the build, since declaration emit catches errors `--noEmit` misses, and rejects importing a `@moq/*` package the manifest doesn't declare.
Expand Down