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

Changes for version 1.001_014 - 2017-05-19

  • Include trailing line break at the end of stringified version of some exceptions. Peter Valdemar Mørch++

Changes for version 1.001_013 - 2017-05-18

  • Bug Fixes
    • Fixed crazy amount of UTF-8 warnings from Type::Params on Perl 5.6.x and Perl 5.8.x. André Walker++ <https://github.com/tobyink/p5-type-tiny/pull/16>
    • StrMatch changes in previous release broke the ability to check type equality between two parameterized StrMatch types under some circumstances. Changed how the hash key for stashing regexp references gets built — is now closer to the old way. This doesn't revert the change in 1.001_012 where regexp checks can be inlined better, but only applies to those regexp references that can't easily be inlined.

Changes for version 1.001_012 - 2017-05-17

  • BACK COMPAT
    • RegexpRef now accepts blessed objects if $object->isa('Regexp') returns true.
  • Other
    • StrMatch will use Regexp::Util (if available) to inline regular expressions more sensibly.

Changes for version 1.001_011 - 2017-05-17

  • Bug Fixes
    • Type constraints like Tuple[Int] shouldn't report they have a coercion if Int doesn't have a coercion.
  • Other
    • Added: Types::Standard now has a CycleTuple type.

Changes for version 1.001_010 - 2017-05-16

  • Test Suite
    • t/00-begin.t will now work around ANDK's apparently broken XS testing environment.

Changes for version 1.001_009 - 2017-05-13

  • Rewrite some benchmarking scripts to use Benchmark::Featureset::ParamCheck.
  • Use Ref::Util::XS (if it's installed) to speed up certain type checks.

Changes for version 1.001_008 - 2017-05-10

  • Bug Fixes
    • Type::Params should make sure Type::Utils is loaded before calling english_list().
  • Documentation
    • Rearrange the examples directory in the distribution.
  • Other
    • Added: Named parameter validation benchmarking script.
    • Added: Reduce scope of local $SIG{__DIE__} in Type::Registry. Graham Knop++

Changes for version 1.001_007 - 2017-05-04

  • Documentation
    • Comparison of Type::Params with new(ish) CPAN module Params::ValidationCompiler.
    • Show example of how to set defaults for parameters with Type::Params.
  • Other
    • Added: Type::Params' `multisig` function now sets a variable `${^TYPE_PARAMS_MULTISIG}` to indicate which signature succeeded.
    • Optimization of Type::Params positional parameter checking for simple cases with no slurpy parameter and no coercions.
    • Optimizations for Tuple and StrMatch type constraints from Types::Standard.

Changes for version 1.001_006 - 2017-04-30

  • Allow Type::Tiny's `constraint` parameter to be a string of Perl code.
  • Localize $SIG{__DIE__} in Type::Registry. Fixes RT#100780. <https://rt.cpan.org/Ticket/Display.html?id=100780>

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