Skip to content

v0.10.0

Compare
Choose a tag to compare
@mlms13 mlms13 released this 03 Mar 15:23

🚨 Breaking changes

  • All error-related types now live in Decode.ParseError. Specifically, this means that DecodeBase.failure is now Decode.ParseError.base, which is important if you're extending the base errors to create your own custom errors.
  • Using ParseError.ResultOf will return a module that conforms to MONAD instead of giving you a Monad submodule back. This is consistent with our shift toward structural typeclasses instead of named typeclasses. This is only a breaking change if you extend the underlying error type, and the tests have been updated if you're looking for an example.

📝 Documentation

  • README explains peer dependencies better
  • Nested array decoding is demonstrated in the tests
  • Haskell-style object decoding operates on the decoders, not the result

✔️ Code quality

  • Bump dependencies and allow compilation with BuckleScript 7.1
  • Internally, use structural typing for typeclasses rather than named modules