Release 3.0.0
Breaking changes
BaseError.toJSON()
was renamed toBaseError.serialize()
BaseError.fromJSON()
was renamed toBaseError.parse()
- When serializing/parsing a value that is not an error instance or an error plain object, it is now automatically converted to one
Features
- Added the
shallow
option to serialize/parse shallowly - Added the
loose
option to prevent converting the argument to an error instance or an error plain object if it is not one