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

Changes for version 1.006000 - 2019-11-12

  • Documentation
    • Links to Type::Tiny on GitHub/Travis/AppVeyor/Coveralls in Type::Tiny pod.
    • Minor correction to POD header for Type::Params Jonas B Nielsen++ <https://github.com/tobyink/p5-type-tiny/pull/43>
    • Types::Standard documentation fix. Lucas Buchala++ <https://github.com/tobyink/p5-type-tiny/pull/48>
  • Test Suite
    • Improve test coverage.
  • Packaging
    • Bump minimum required version of Exporter::Tiny to 1.000000.
    • Type::Tiny::XS 0.016 is recommended.
  • Other
    • Added: Type::Library now supports `of` and `where` options when importing type constraints.
    • Added: Type::Params multisig function now supports custom error messages. Benct Philip Jonsson++ <https://github.com/tobyink/p5-type-tiny/pull/44>
    • Added: Type::Params named_to_list feature. <https://rt.cpan.org/Ticket/Display.html?id=128337>
    • Added: Type::Params signatures with slurpy hashrefs now allow true hashrefs to be passed to them.
    • Added: Type::Tiny::Enum now has a `unique_values` method. <https://rt.cpan.org/Ticket/Display.html?id=129650>
    • Added: Types::Standard ArrayRef parameterized type can now take a second parameter, the minimum array length.
    • Better implementation of is_subtype_of/is_supertype_of and related functions.
    • Don't use Int from Type::Tiny::XS unless version 0.016 is available. <https://rt.cpan.org/Ticket/Display.html?id=130411>
    • Eliminate memory cycles created by coderef overloading in Type::Tiny and Type::Coercion. Fixes RT#130823. Ivanov Anton++ <https://rt.cpan.org/Ticket/Display.html?id=130823>
    • Eval::TypeTiny's API is now considered to be stable.
    • Fix Types::Standard's LazyLoad implementation.
    • The `values` attribute of Type::Tiny::Enum now preserves order. Fixes RT#129650. Daniel Schröer++ <https://rt.cpan.org/Ticket/Display.html?id=129650>
    • Tidy up Type::Tiny namespace a little by fully-referencing some functions instead of importing them.
    • Tweaks to Type::Tiny and Type::Coercion to avoid unnecessarily loading overload.pm and overloading.pm.
    • Types::TypeTiny::TypeTiny->has_coercion is now true.

Changes for version 1.005_004 - 2019-11-11

  • Documentation
    • Types::Standard documentation fix. Lucas Buchala++ <https://github.com/tobyink/p5-type-tiny/pull/48>
  • Other
    • Added: Type::Tiny::Enum now has a `unique_values` method. <https://rt.cpan.org/Ticket/Display.html?id=129650>
    • Don't use Int from Type::Tiny::XS unless version 0.016 is available. <https://rt.cpan.org/Ticket/Display.html?id=130411>
    • Eliminate memory cycles created by coderef overloading in Type::Tiny and Type::Coercion. Fixes RT#130823. Ivanov Anton++ <https://rt.cpan.org/Ticket/Display.html?id=130823>
    • The `values` attribute of Type::Tiny::Enum now preserves order. Fixes RT#129650. Daniel Schröer++ <https://rt.cpan.org/Ticket/Display.html?id=129650>

Changes for version 1.005_003 - 2019-02-26

  • Test Suite
    • Improve test coverage.
  • Other
    • Fix Types::Standard's LazyLoad implementation.

Changes for version 1.005_002 - 2019-01-29

  • Added: Type::Params named_to_list feature. <https://rt.cpan.org/Ticket/Display.html?id=128337>

Changes for version 1.005_001 - 2019-01-23

  • Added: Type::Library now supports `of` and `where` options when importing type constraints.

Changes for version 1.005_000 - 2019-01-20

  • Bug Fixes
    • Fix spelling in error message for Types::Common::String LowerCaseSimpleStr. Robert Rothenberg++ <https://github.com/tobyink/p5-type-tiny/pull/47>
  • Documentation
    • Fix Type::Params documentation error. Nelo Onyiah++ <https://github.com/tobyink/p5-type-tiny/pull/45>
    • Fix Types::Standard documentation error: incorrect third-party module name. Nelo Onyiah++ <https://github.com/tobyink/p5-type-tiny/pull/46>
    • Minor correction to POD header for Type::Params Jonas B Nielsen++ <https://github.com/tobyink/p5-type-tiny/pull/43>
  • Packaging
    • Bump minimum required version of Exporter::Tiny to 1.000000.
  • Other
    • Added: Type::Params multisig function now supports custom error messages. Benct Philip Jonsson++ <https://github.com/tobyink/p5-type-tiny/pull/44>
    • Added: Types::Standard ArrayRef parameterized type can now take a second parameter, the minimum array length.
    • Better implementation of is_subtype_of/is_supertype_of and related functions.
    • Eval::TypeTiny's API is now considered to be stable.
    • Tidy up Type::Tiny namespace a little by fully-referencing some functions instead of importing them.
    • Tweaks to Type::Tiny and Type::Coercion to avoid unnecessarily loading overload.pm and overloading.pm.
    • Type::Params signatures with slurpy hashrefs now allow true hashrefs to be passed to them.
    • Types::TypeTiny::TypeTiny->has_coercion is now true.

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 StrMatch type constraint
internals for the Types::Standard Tied type constraint
internals for the Types::Standard Tuple type constraint
type constraints used internally by Type::Tiny