Changes for version 1.001_005 - 2017-04-19

  • Bug Fixes
    • 02-api.t should check version of Moose available. <https://github.com/tobyink/p5-type-tiny/pull/20>
    • 20-unit/Type-Utils/warnings.t should check version of Test::Warnings. Alexandr Ciornii++ <https://github.com/tobyink/p5-type-tiny/pull/21>
    • Fix minor typos in documentation for Types::Standard. Zoffix Znet++ <https://github.com/tobyink/p5-type-tiny/pull/30>
    • Fix variable name typo in documentation for Type::Params. Lucas Buchala++ <https://github.com/tobyink/p5-type-tiny/pull/37>
  • Documentation
    • Include projected release date for Type::Tiny 1.002000 in NEWS.
  • Test Suite
    • Bundle a test case for GH issue 14. <https://github.com/tobyink/p5-type-tiny/issues/14>
  • Other
    • Improved error location reporting for Moo Peter Valdemar Mørch++ <https://github.com/tobyink/p5-type-tiny/pull/35>
    • Updated: NumericCode now coerces from strings with whitespace in them, like MooseX::Types::Common::Numeric. Denis Ibaev++ <https://github.com/tobyink/p5-type-tiny/pull/22>

Changes for version 1.001_004 - 2017-02-06

  • Attempting ArrayRef[Int, Int] or similar now throws an exception. Fixes RT#105299. Thomas Sibley++ <https://rt.cpan.org/Ticket/Display.html?id=105299>

Changes for version 1.001_003 - 2017-02-02

  • Updated: Merge fixes from stable Type-Tiny 1.000006.

Changes for version 1.001_002 - 2014-10-25

  • Bug Fixes
    • Fix short-circuiting optimizations for parameterized HashRef, ArrayRef, ScalarRef, and Map type constraints. Fixes RT#99312. Marcel Timmerman++ <https://rt.cpan.org/Ticket/Display.html?id=99312>
    • Inlined version of Types::Standard::Int should check that the value is not a reference.
  • Test Suite
    • Fix annoying warning message in test suite with recent versions of Exporter::Tiny.
  • Other
    • Make equals/is_a_type_of/is_subtype_of/is_supertype_of in Type::Tiny::Union work more like Moose::Meta::TypeConstraint::Union.

Changes for version 1.001_001 - 2014-09-19

  • Lazy-load Text::Balanced in Type::Parser. (Many parses don't even need it.)
  • Lazy-load Type::Tiny::Union in Type::Params.
  • Updated: Prefer Sub::Util over Sub::Name. (The former is smaller.)

Changes for version 1.001_000 - 2014-09-07

  • Bug Fixes
    • Fix for Type::Registry::DWIM. Fixes RT#98458. Marcel Montes++ <https://rt.cpan.org/Ticket/Display.html?id=98458>
    • Fix issues with coercions and native attribute traits with some oldish versions of Moose on oldish versions of Perl. Fixes RT#98159. Peter Flanigan++ <https://rt.cpan.org/Ticket/Display.html?id=98159>
  • Documentation
    • Updated NEWS file.
    • Updated TODO file.
    • Updates to Type::Tiny::Manual::UsingWithMoose, Type::Tiny::Manual::UsingWithMoo, and Type::Tiny::Manual::UsingWithMouse.
  • Test Suite
    • Make some of the test case skip_all bits more ambitious; test older versions of Moose and Moo than we were testing before.
  • Other
    • Added: Type::Params now provides `compile_named` and `validate_named` functions which do the same thing as `compile` and `validate` but are better for named arguments.
    • Updated: If Sub::Name is unavailable, but the shiny new core Sub::Util is available, then use it instead.
    • Updated: Want Type::Tiny::XS 0.011.
    • `Type::Utils::dwim_type` now allows more control over fallback behaviours.

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 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