The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 0.030 - 2013-10-18

  • Documentation
    • Updated NEWS file.
  • Test Suite
    • Skip leak.t on Perl < 5.10.1. Type-Tiny does have some memory leaks in particular older versions of Perl: 5.8.8 and 5.10.0 are known to be problematic, but 5.8.9 seems fine. Ultimately it would be nice to get these fixed, but in the mean time skipping the test case makes the distribution easier to install.

Changes for version 0.029_04 - 2013-10-17

  • Bug Fixes
    • Fix inlining of type checks in Moo which was broken around about version 0.027_09.
    • Fix validate_explain error messages in Type::Tiny::Union. Fixes RT#89279. Brendan Byrd++ <https://rt.cpan.org/Ticket/Display.html?id=89279>
  • Other
    • $Type::Tiny::DD can be set numerically. Fixes RT#89251. Tim Bunce++ <https://rt.cpan.org/Ticket/Display.html?id=89251>
    • Improve error messages under Moo. Fixes RT#89234. Graham Knop++ <https://rt.cpan.org/Ticket/Display.html?id=89234>

Changes for version 0.029_03 - 2013-10-17

  • Bug Fixes
    • Fix segfault on Perl 5.8.1 to 5.8.3. (And possibly some other 5.8.x Perls.) Caused by the combination of eval and goto. Dagfinn Ilmari Mannsåker++ Graham Knop++ Peter Rabbitson++
    • Older versions of Scalar::Util::looks_like_number return true for undef; work around them.

Changes for version 0.029_02 - 2013-10-11

  • BACK COMPAT
    • Renamed the Type::Exception modules to Error::TypeTiny. Fixes RT#89280. Brendan Byrd++ <https://rt.cpan.org/Ticket/Display.html?id=89280>
  • Documentation
    • Fix typos in documentation of Error::TypeTiny package variables.
  • Other
    • $Type::Tiny::DD package variable can now be used for a pluggable data dumper coderef. Fixes RT#89251. Tim Bunce++ <https://rt.cpan.org/Ticket/Display.html?id=89251>
    • Type::Tiny::Enum type constraints are now subtypes of Types::Standard::Str; not Types::Standard::Defined. David Golden++
    • Types::Standard::Item is now a subtype of not Types::Standard::Any. David Golden++

Changes for version 0.029_01 - 2013-09-26

  • Replace Exporter::TypeTiny with Exporter::Tiny (an external dependency).

Documentation

an overview of Type::Tiny
adding coercions to type constraints
how to build a type library with Type::Tiny, Type::Library and Type::Utils
coerce and validate arguments to functions and methods
how to use Type::Tiny and Type::Library with Moo
how to use Type::Tiny and Type::Library with Moose
how to use Type::Tiny and Type::Library with Mouse
how to use Type::Tiny and Type::Library with other OO frameworks

Modules

shims to allow Type::Tiny to run on Perl 5.6.x
shims to allow Type::Tiny to run on Perl 5.8.x
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
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
Params::Validate-like parameter validation using Type::Tiny type constraints and coercions
parse type constraint strings
a glorified hashref for looking up type constraints
tiny, yet Moo(se)-compatible type constraint
type constraints based on the "isa" method
type constraints based on the "can" method
string enum type constraints
intersection type constraints
type constraints based on the "DOES" method
union type constraints
utility functions to make defining and using type constraints a little easier
bundled set of built-in types for Type::Tiny
type constraints used internally by Type::Tiny

Provides

in lib/Exporter/TypeTiny.pm