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

Changes for version 1.011_009 - 2020-10-09

  • Documentation
    • Add _ForeignTypeConstraint to AllTypes.pod.
  • Test Suite
    • Add tests for _ForeignTypeConstraint.
    • Improve test coverage by adding tests for various esoteric parts of the distribution and edge cases.
  • Other
    • More efficient use of Type::Tiny::XS by Types::TypeTiny.
    • Refactoring of Types::TypeTiny.
    • Where various parts of Type::Tiny internally use type constraints to check values, prefer is_* and assert_* functions over method calls.

Changes for version 1.011_008 - 2020-10-07

  • Documentation
    • Some minor tidyups and updates to Type::Tiny::Manual.
  • Test Suite
    • Better tests for the placeholder type constraints created by Type::Library -declare flag.
    • Test integration with Type::Nano as an example of a generic non-Type::Tiny type constraint class.
    • Test that $type->() works with subclasses that override the assert_return method.
    • Write tests for some internal undocumented methods.
  • Other
    • Added: Type::Utils::assert() function.

Changes for version 1.011_007 - 2020-10-06

  • Bug Fixes
    • ArgsObject inlining was closing over a coderef in a way that didn't work on archaic versions of Perl. Resolve by calling the coderef outside the closure.

Changes for version 1.011_006 - 2020-10-02

  • Documentation
    • Include JSONCapaable type example.
  • Test Suite
    • Improved test coverage for Type::Library.
    • Improved test coverage for Type::Params.
    • Improved test coverage for Type::Registry.
    • Improved test coverage for Type::Tiny::Union.
    • Improved tests for Type::Utils::is().
    • Various tests for garbage collection using Devel::Refcount.
  • Other
    • Added: Type::Params now exports an ArgsObject type constraint.
    • Test::TypeTiny's should_pass and should_fail exercise type constraints in even more ways in EXTENDED_TESTING mode.

Changes for version 1.011_005 - 2020-09-30

  • Added: Type::Library import now supports -extends and -utils flags.
  • Type::Library -base import flag now marks the caller package as loaded in %INC.

Changes for version 1.011_004 - 2020-09-30

  • Bug Fixes
    • Make predeclared type constraints work better for Zydeco.
  • Documentation
    • Document that ArrayLike and HashLike are now parameterizable.
  • Test Suite
    • Make test suite work better with App::Yath.

Changes for version 1.011_003 - 2020-09-25

  • Bug Fixes
    • Old versions of Data::Dumper would sometimes die when dumping certain overloaded objects. Type::Tiny::_dd() now catches this in an eval {}.
    • Types::Standard would sometimes complain about very old versions of Scalar::Util.
  • Other
    • ArrayLike and HashLike are now parameterizable, though the implementation for the parameterized version is in pure Perl, not XS.
    • Type::Tiny::Enum better caches regexps.
    • Updated: ArrayLike, HashLike, CodeLike, and StringLike type constraints can use XS if Type::Tiny::XS 0.022 is installed.

Changes for version 1.011_002 - 2020-09-22

  • Added: Type::Utils now exports an `is` function but it needs to be requested explicitly.

Changes for version 1.011_001 - 2020-09-21

  • Documentation
    • Update the NEWS file.
  • Other
    • Added: Add new list processing functions to Type::Tiny.

Changes for version 1.011_000 - 2020-09-15

  • Documentation
    • Describe deficiencies of is_* functions for parameterized types. Fixes RT#132918. <https://rt.cpan.org/Ticket/Display.html?id=132918>
  • Other
    • Type::Tiny::Enum now generates faster regexps to validate enums. (Code stolen from Regexp::Trie.)

Documentation

an overview of Type::Tiny
alphabetical list of all type constraints bundled with Type::Tiny
advanced information on coercions
contributing to Type::Tiny development.
how to install Type::Tiny
defining your own type libraries
Type::Tiny in non-object-oriented code
squeeze the most out of your CPU
advanced information on Type::Params
Type::Tiny policies
use of Type::Tiny with Class::Tiny
basic use of Type::Tiny with Moo
advanced use of Type::Tiny with Moo
alternative use of Type::Tiny with Moo
how to use Type::Tiny with Moose
how to use Type::Tiny with Mouse
using Type::Tiny with Class::InsideOut, Params::Check, and Object::Accessor.
Type::Tiny for test suites

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
shared behavour for Type::Tiny::Class, etc
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