Skip to content

fix(v2): enforce method contracts - #229

Open
benbrandt wants to merge 1 commit into
mainfrom
fix/v2-method-contracts
Open

fix(v2): enforce method contracts#229
benbrandt wants to merge 1 commit into
mainfrom
fix/v2-method-contracts

Conversation

@benbrandt

Copy link
Copy Markdown
Member

Summary

  • restrict custom v2 APIs to underscore-prefixed extension methods
  • add method-safe, direction-safe v2 batch descriptors
  • validate every built-in direct and batch response before returning it
  • keep local void handlers encoded as an empty object while rejecting peer null results

The existing experimental v2 entrypoint and protocol lane remain unchanged.

Testing

  • npm run build
  • npm run lint -- --no-cache
  • npm run format:check
  • npm run docs:ts:verify
  • npm test (840 tests)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant