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

Changes for version 0.027_09 - 2013-09-20

  • Bug Fixes
    • Fix whitespace in error messages.
  • Test Suite
    • Skip leak.t on Perl 5.10.0.

Changes for version 0.027_08 - 2013-09-19

  • Bug Fixes
    • Fix typo in Type::Utils for coerce=>1 --> coercion=>1. Fixes RT#88798. Diab Jerius++ <https://rt.cpan.org/Ticket/Display.html?id=88798>
    • Fix typo in changelog for previous developer release.
    • Type::Exception::Assertion changes from 0.027_05 are now conditional upon Perl version; only take effect on Perl 5.8+; they just weren't working on Perl 5.6.
  • Test Suite
    • More changes to version numbers reported by 00-begin.t.
  • Other
    • Explicitly overload boolification (always true!) in Type::Exception.

Changes for version 0.027_07 - 2013-09-18

  • Bug Fixes
    • Fix missing version number in Type::Coercion::FromMoose
  • Test Suite
    • Changes to version numbers reported by 00-begin.t.
  • Other
    • Also ensure Mouse type constraints converted to Type::Tiny constraints retain their coercions.

Changes for version 0.027_06 - 2013-09-18

  • Documentation
    • Add a draft Stability Policy to Type::Tiny::Manual.
  • Other
    • Added: Override `validate_explain` in all the bundled subclasses of Type::Tiny.
    • Added: Type::Coercion::FromMoose
    • Added: Type::Tiny::Union now provides a `find_type_for` method which should be compatible with Moose's equivalent method.
    • Added: Type::Utils now provides an `english_list` function like Moose::Util does. This was useful internally for implementing `validate_explain` methods.
    • Loosen the rules for Type::Tiny and Type::Coercion name attributes; allow them to begin with one or two leading underscores.
    • Memoize Types::TypeTiny::to_TypeTiny.
    • Stop using base.pm.
    • Type::Tiny::Union's compiled checks no longer close over the type constraints which are in the union.
    • Types::TypeTiny::to_TypeTiny now uses Type::Coercion::FromMoose to ensure Moose type constraints converted to Type::Tiny constraints retain their coercions.

Changes for version 0.027_05 - 2013-09-15

  • Added: Provide a `validate_explain` method as part of Type::Tiny's public API.
  • Include a detailed explanation in the stringification of Type::Exception::Assertion.
  • Refactor the explanation generation mechanism.

Changes for version 0.027_04 - 2013-09-09

  • Test Suite
    • The file t/moose-coercion.t was checking a particular Moose warning message. In Moose 2.1100, this warning has been upgraded to an exception. For now, disable that particular check.

Changes for version 0.027_03 - 2013-09-09

  • Bug Fixes
    • Prevent Eval::TypeTiny from leaking stashes by recycling the sandbox.
  • Test Suite
    • Fix the ultra-finicky t/02-api.t to cope with changes to Moose::Meta::TypeConstraint API in Moose 2.1100.

Changes for version 0.027_02 - 2013-09-08

  • Bug Fixes
    • Restore Type::Tiny -> Moose -> Type::Tiny round-tripping broken in previous release.
  • Documentation
    • In Type::Tiny::Manual::Coercions, explain how to chain coercions. <http://purl.org/NET/cpan-uri/rt/ticket/88452>

Changes for version 0.027_01 - 2013-09-07

  • REGRESSIONS
    • Weakening various references to fix memory leaks led to breaking Type::Tiny -> Moose -> Type::Tiny round-tripping via Types::TypeTiny::to_TypeTiny. Test cases for this marked TODO.
  • Bug Fixes
    • Fixed some memory leaks. Still some work to do in this area.
  • Other
    • Added `coercibles` method to Type::Tiny. Diab Jerius++ <http://purl.org/NET/cpan-uri/rt/ticket/88452>

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
utility to evaluate a string of Perl code in a clean environment
a small exporter used internally by Type::Library and friends
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
exceptions for Type::Tiny and friends
exception when a value fails a type constraint
exception for Eval::TypeTiny
exception for Type::Params
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