Minor Changes
-
0674fb3: Unify object-key introspection on a single
StandardObjectKeysV1surface across API and message
contracts. Core now shipsStandardObjectKeysV1(a local copy of the proposed@standard-schema/spec
object-keys extension, exposed atschema["~standard"].objectKeys.input()/output()), replacing the
oldObjectKeysCarrier/getObjectKeys()interface.@toad-contracts/messagesdrops
MessageTypeCarrier/getMessageType()and routes on the same surface:RoutableMessageSchemais now
StandardSchemaV1 & StandardObjectKeysV1. The valibot and zod adapters each expose a single
withObjectKeys()(zod gains it; both dropwithMessageType()) that satisfies both path-param schemas
and message schemas, so every adapter implements one introspection surface instead of two.Breaking:
ObjectKeysCarrier,MessageTypeCarrier,getObjectKeys,getMessageType, and
withMessageTypeare removed;withObjectKeysnow attaches~standard.objectKeysrather than a
top-levelgetObjectKeys.
Patch Changes
- Updated dependencies [0674fb3]
- @toad-contracts/core@0.4.0