Changes for version 2.004000 - 2023-04-05

  • Documentation
    • Document that the `BoolLike` type is unstable.
    • Minor pod changes to Types::Standard.
  • Packaging
    • Summarized the change log for versions prior to Type::Tiny 2.000000. If you need more information, see the Changes file included with Type::Tiny 2.002001. <https://metacpan.org/release/TOBYINK/Type-Tiny-2.002001/source/Changes>

Changes for version 2.003_000 - 2023-04-02

  • Documentation
    • Add SYNOPSIS for Type::Tiny::Class.
    • Add SYNOPSIS for Type::Tiny::Duck.
    • Add SYNOPSIS for Type::Tiny::Enum.
    • Add SYNOPSIS for Type::Tiny::Intersection.
    • Add SYNOPSIS for Type::Tiny::Role.
    • Add SYNOPSIS for Type::Tiny::Union.
    • Add documentation and tests for the combination of the `goto_next` and `multiple` options when used with `signature_for`.
    • Add example of `signature_for` applying a signature to multiple functions at once.
    • Document changes to `make_immutable` in Type::Library v2.x. <https://github.com/tobyink/p5-type-tiny/issues/129>
  • Other
    • Added: Type::Tiny now has an `exception_class` attribute, allowing a type to throw exceptions using a custom class. These classes should usually be a subclass of Error::TypeTiny::Assertion. <https://github.com/tobyink/p5-type-tiny/issues/133>
    • Added: Type::Tiny::Bitfield class. <https://github.com/tobyink/p5-type-tiny/issues/131>
    • Added: Types::TypeTiny::BoolLike type constraint. <https://github.com/tobyink/p5-type-tiny/issues/137>

Documentation

an overview of Type::Tiny
alphabetical list of all type constraints bundled with Type::Tiny
advanced information on coercions
contributing to Type::Tiny development.
how to install Type::Tiny
defining your own type libraries
Type::Tiny in non-object-oriented code
squeeze the most out of your CPU
advanced information on Type::Params
Type::Tiny policies
use of Type::Tiny with Class::Tiny
how to use Type::Tiny with Mite
basic use of Type::Tiny with Moo
advanced use of Type::Tiny with Moo
alternative use of Type::Tiny with Moo
how to use Type::Tiny with Moose
how to use Type::Tiny with Mouse
using Type::Tiny with Class::InsideOut, Params::Check, and Object::Accessor.
Type::Tiny for test suites

Modules

exceptions for Type::Tiny and friends
exception when a value fails a type constraint
exception for Eval::TypeTiny
exception for Type::Params
utility to evaluate a string of Perl code in a clean environment
alternative API for Eval::TypeTiny
improved type constraint exceptions in Reply
useful functions for testing the efficacy of type constraints
a set of coercions to a particular target type constraint
a set of coercions borrowed from Moose
a set of coercions to a union type constraint
tiny, yet Moo(se)-compatible type libraries
sub signature validation using Type::Tiny type constraints and coercions
parse type constraint strings
a glorified hashref for looking up type constraints
tie a variable to a type constraint
tiny, yet Moo(se)-compatible type constraint
bitfield/bitflag type constraints
type constraints based on the "isa" method
shared behavour for Type::Tiny::Class, etc
type constraints based on the "can" method
string enum type constraints
intersection type constraints
type constraints based on the "DOES" method
union type constraints
half-defined type constraint
half-completed overloaded operation
utility functions to make defining and using type constraints a little easier
the one stop shop
drop-in replacement for MooseX::Types::Common::Numeric
drop-in replacement for MooseX::Types::Common::String
bundled set of built-in types for Type::Tiny
type constraints used internally by Type::Tiny

Provides

in lib/Devel/TypeTiny/Perl58Compat.pm
in lib/Type/Params/Alternatives.pm
in lib/Type/Params/Parameter.pm
in lib/Type/Params/Signature.pm
in lib/Type/Parser.pm
in lib/Type/Parser.pm
in lib/Type/Parser.pm
in lib/Type/Tie.pm
in lib/Type/Tie.pm
in lib/Type/Tie.pm
in lib/Type/Tie.pm
in lib/Types/Standard/ArrayRef.pm
in lib/Types/Standard/CycleTuple.pm
in lib/Types/Standard/Dict.pm
in lib/Types/Standard/HashRef.pm
in lib/Types/Standard/Map.pm
in lib/Types/Standard/ScalarRef.pm
in lib/Types/Standard/StrMatch.pm
in lib/Types/Standard/Tied.pm
in lib/Types/Standard/Tuple.pm