Changes for version 1.003_004 - 2018-06-12

  • Bug Fixes
    • Load modules with `use` instead of `require` in 00-begin.t. Fixes RT#124067. Andreas J König++ Slaven Rezić++ <https://rt.cpan.org/Ticket/Display.html?id=124067>

Changes for version 1.003_003 - 2018-06-10

  • Added: Bool (Types::Standard) is stricter, no longer allowing blessed objects that overload stringification because that's weird.
  • Added: Bool now allows coercion from Any.

Changes for version 1.003_002 - 2018-05-28

  • Added: Types::Common::Numeric now has NumRange and IntRange types.
  • Added: Types::Common::String now has a StrLength type.

Changes for version 1.003_001 - 2018-05-22

  • Test Suite
    • Tests for coercions to CycleTuple from Types::Standard with non-inlineable type constraints.
  • Other
    • Don't use Type::Tiny::XS's implementation of Bool in Types::Standard unless Type::Tiny::XS >= 0.014.
    • Looser definition of FileHandle in Types::Standard. Fixes RT#121762. <https://rt.cpan.org/Ticket/Display.html?id=121762>

Changes for version 1.003_000 - 2018-05-20

  • Bug Fixes
    • Compatibility with constants and with CV-in-stash optimisation. Fixes RT#123408. <https://rt.cpan.org/Ticket/Display.html?id=123408>
  • Documentation
    • Add a new CONTRIBUTING.pod file.
    • Document Type::Library's :coercion export tag. Diab Jerius++
    • Fix typo. Philippe Bruhat++
    • Improvements to Type::Params documentation.
  • Test Suite
    • Skip t/30-integration/Moose/native-attribute-traits.t on older Moose because Test::Moose is broken.
  • Packaging
    • Ref::Util::XS 0.100 should be recommended, not 0.200 (which doesn't exist yet). Fixes RT#121981. <https://rt.cpan.org/Ticket/Display.html?id=121981>
  • Other
    • Added: Allow Type::Coercion's add_type_coercion to accept a Type::Coercion object, which was already documented as working. Diab Jerius++
    • Added: Type::Params compile_named now supports bless/class/constructor options.
    • Added: Type::Params now exports a compile_named_oo function which returns a parameters object.
    • Added: Type::Params now supports parameter defaults.
    • Don't use Type::Tiny::XS's implementation of PositiveInt in Types::Common::Numeric unless Type::Tiny::XS >= 0.013.

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
squeeze the most out of your CPU
coerce and validate arguments to functions and methods
Type::Tiny policies
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
half-completed overloaded operation
utility functions to make defining and using type constraints a little easier
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
internals for the Types::Standard ArrayRef type constraint
internals for the Types::Standard CycleTuple type constraint
internals for the Types::Standard Dict type constraint
internals for the Types::Standard HashRef type constraint
internals for the Types::Standard Map type constraint
internals for the Types::Standard ScalarRef type constraint
internals for the Types::Standard Tuple type constraint
type constraints used internally by Type::Tiny