@amqp-contract/contract@2.1.0
Minor Changes
-
a8628d5: Upgrade
unthrown(and@unthrown/vitest) to2.0.0.unthrown 2.0 is additive relative to 1.x — it adds an
AsyncResultvalue namespace (AsyncResult.fromPromise/.all/ …), aflatTapErrcombinator, and anisResultguard. None of amqp-contract's public API changed: theResult/AsyncResulttypes you receive from the client and worker keep the same shape (2.0's types are a superset of 1.x's), andOk/Err/fromPromise/matchTags/TaggedError/.isOk()/.match()are unchanged.No code changes are required to adopt this. If you import
unthrowndirectly alongside amqp-contract, bump your own dependency to^2.0.0so a single copy is shared.