Skip to content

Latest commit

 

History

History
5 lines (4 loc) · 571 Bytes

byteslice-result-0-5.md

File metadata and controls

5 lines (4 loc) · 571 Bytes
@cipherstash/stack minor

Upgrade @byteslice/result to 0.5.0. Its FailureOption no longer accepts a bare { type } shape — a failure must be an Error or carry an error: Error. EncryptionError now includes a required error: Error holding the originating error, and all failures are built through the new toEncryptionError(type, error, code?) factory (which coerces any caught value to a real Error). The existing type / message / code fields are unchanged, so code that reads result.failure.type / .message / .code keeps working.