[ Bug Fixes ]
- Expressing return types for Type::Params as strings now works as
documented.
[ Documentation ]
- Use Perl's new
try
feature instead of Try::Tiny in SYNOPSIS for
Error::TypeTiny.
[ Test Suite ]
- Improved tests for the
ArgsObject
type constraint which is optionally
exported by Type::Params.
- Improved tests for the
goto_next
feature of Type::Params.
[ Other ]
- Added: Error::TypeTiny::WrongNumberOfParameters now has a
target
attribute indicating what thing you provided the wrong number of
parameters for.
- Added: There's now a
Type::Tiny::check_parameter_count_for_parameterized_type utility
function intended to be used for parameterizable types to throw an error
when parameterized with the wrong number of parameters.
- Parameterizable types defined by Types::Standard, Types::Common::String,
Types::Common::Numeric, and Type::Params will throw an
Error::TypeTiny::WrongNumberOfParameters exception if parameterized with
the wrong number of parameters.
- Passing unknown options to Type::Params functions will now result in
warnings.