./devel/p5-Type-Tiny, Tiny, yet Moo(se)-compatible type constraint

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.004002nb1, Package name: p5-Type-Tiny-1.004002nb1, Maintainer: pkgsrc-users

Type::Tiny is a tiny class for creating Moose-like type constraint
objects which are compatible with Moo, Moose and Mouse.

Maybe now we won't need to have separate MooseX, MouseX and MooX
versions of everything? We can but hope...


Required to run:
[lang/perl5] [devel/p5-Exporter-Tiny]

Required to build:
[devel/p5-Mouse] [devel/p5-Moose] [devel/p5-MooseX-Types] [devel/p5-Moo] [pkgtools/cwrappers]

Master sites: (Expand)

SHA1: 7f27d88b15627e6d0bd6f1b81b0cac368232d916
RMD160: b4e655dcdf86aac7d26a39d2fb2e279062f2cad2
Filesize: 282.785 KB

Version history: (Expand)


CVS history: (Expand)


   2018-08-22 11:48:07 by Thomas Klausner | Files touched by this commit (3558)
Log message:
Recursive bump for perl5-5.28.0
   2018-07-31 12:29:26 by Wen Heping | Files touched by this commit (2) | Package updated
Log message:
Update to 1.004002

Upstream changes:
1.004002        2018-07-29

 [ Bug Fixes ]
 - Skip one particular test on old versions of Moo because it relies on a
   feature introduced in Moo 1.004000.
   Fixes RT#125948.
   <https://rt.cpan.org/Ticket/Display.html?id=125948>
   2018-07-29 04:58:58 by Wen Heping | Files touched by this commit (2) | Package updated
Log message:
Update to 1.004001

Upstream changes:
1.004001        2018-07-28

 [ Bug Fixes ]
 - Add Eval::TypeTiny::Sandbox to the list of packages which should be
   skipped as internal by Error::TypeTiny, as it was mistakenly removed in
   1.003_008.
   Fixes RT#125942.
   <https://rt.cpan.org/Ticket/Display.html?id=125942>

 [ Documentation ]
 - Correct release date of 1.004000 in change log.

1.004000        2018-07-27

 [ Documentation ]
 - Update NEWS.
 - Update TODO.

 [ Packaging ]
 - Repackage as a stable release. No functional changes since 1.003_010.

1.003_010       2018-07-25

 [ Test Suite ]
 - Improve test coverage for Type::Utils, Type::Coercion,
   Types::Standard::Tuple, Eval::TypeTiny, Type::Registry,
   Type::Tiny::Class, and Types::Standard::Tied.

1.003_009       2018-07-24

 [ Documentation ]
 - Better documentation of parameterization API.

 [ Test Suite ]
 - Improve testing of Test::TypeTiny itself; the matchfor() function in
   particular.
 - Test bad parameters to NumRange and IntRange.
 - Test late loading of Sub::Quote.

 [ Other ]
 - Types::Standard::Defined->complementary_type will now return
   Types::Standard::Undef, and vice versa.

1.003_008       2018-07-16

 [ REGRESSIONS ]
 - Make Error::TypeTiny aware of some newer internal modules.

 [ Bug Fixes ]
 - Fix error messages generating deep explanations of some parameterized
   types.
   Fixes RT#125765.
   KB Jørgensen++
   <https://rt.cpan.org/Ticket/Display.html?id=125765>

 [ Test Suite ]
 - Improve test coverage.
 - Test Type::Utils' match_on_type's support for wantarray on strings of
   code.

 [ Other ]
 - Improve processing of parameters to Types::Standard's parameterized type
   constraints
 - Simplify how Type::Registry generates the `t()` function.
 - Split out some code from Types::Standard into autoloaded modules to
   speed up loading.
 - Types::Common::Numeric's IntRange and NumRange do better checking of
   parameters.
 - Types::Common::String's StrLength does better checking of parameters.

1.003_007       2018-07-12

 [ Test Suite ]
 - Add tests for deep coercions in Tuples.
 - Better tests for Eval::TypeTiny's implementations of alias=>1.
 - Improve coverage.
 - Restructure Types::TypeTiny test cases so more of them run when Moose
   and Mouse aren't available.

 [ Other ]
 - Added: Eval::TypeTiny now supports PadWalker as a fallback
   implementation of alias => 1.
 - Added: Eval::TypeTiny provides a collection of constants to indicate the
   current implementation of alias => 1.
 - Eval::TypeTiny will now throw errors when it detects a mismatch between
   sigils and reference types in the environment hashref but only if
   EXTENDED_TESTING environment variable is true. Perl will probably give
   you its own error message for this later on anyway.
 - Improve progressive exporter in Types::TypeTiny to avoid loading
   Exporter::TypeTiny more often.
 - Removed: Eval::TypeTiny::HAS_LEXICAL_VARS constant is no longer
   documented and will be removed at a later date.
 - Types::Standard does better at checking the parameters of parameterized
   types are valid.
 - Updated: Eval::TypeTiny now supports Perl 5.22 refaliasing as the
   preferred implementation of alias => 1.

1.003_006       2018-07-08

 [ Bug Fixes ]
 - Fix issues with arrayref and hashref defaults in Type::Params.
 - Workaround for Regexp-based check for Int clobbering $1 sometimes (this
   will sometimes slow down Int checks a little, but is needed for
   correctness).
   Fixes RT#125132.
   <https://rt.cpan.org/Ticket/Display.html?id=125132>

 [ Documentation ]
 - Better documentation of environment variables.
 - Type::Params caller_level option is now documented.

 [ Test Suite ]
 - Improve coverage.

 [ Other ]
 - Added: PERL_TYPE_PARAMS_XS environment variable.
 - Added: Type::Params compile/compile_named now have subname and
   description options.

1.003_005       2018-07-05

 [ Documentation ]
 - Type::Tiny::Manual::Coercions improvements.
   Fixes RT#122305.
   <https://rt.cpan.org/Ticket/Display.html?id=122305>

 [ Other ]
 - Added: Allow type libraries to mark certain type constraints as
   deprecated.
   Fixes RT#124728.
   <https://rt.cpan.org/Ticket/Display.html?id=124728>

1.003_004       2018-06-12

 [ Bug Fixes ]
 - Load modules with `use` instead of `require` in 00-begin.t.
   Fixes RT#124067.
   Andreas J König++
   Slaven Rezić++
   <https://rt.cpan.org/Ticket/Display.html?id=124067>

1.003_003       2018-06-10

 [ BACK COMPAT ]
 - Bool (Types::Standard) is stricter, no longer allowing blessed objects
   that overload stringification because that's weird.

 [ Other ]
 - Added: Bool now allows coercion from Any.

1.003_002       2018-05-28

 - Added: Types::Common::Numeric now has NumRange and IntRange types.
 - Added: Types::Common::String now has a StrLength type.

1.003_001       2018-05-22

 [ Test Suite ]
 - Tests for coercions to CycleTuple from Types::Standard with
   non-inlineable type constraints.

 [ Other ]
 - Don't use Type::Tiny::XS's implementation of Bool in Types::Standard
   unless Type::Tiny::XS >= 0.014.
 - Looser definition of FileHandle in Types::Standard.
   Fixes RT#121762.
   <https://rt.cpan.org/Ticket/Display.html?id=121762>

1.003_000       2018-05-20

 [ Bug Fixes ]
 - Compatibility with constants and with CV-in-stash optimisation.
   Fixes RT#123408.
   <https://rt.cpan.org/Ticket/Display.html?id=123408>

 [ Documentation ]
 - Add a new CONTRIBUTING.pod file.
 - Document Type::Library's :coercion export tag.
   Diab Jerius++
 - Fix typo.
   Philippe Bruhat++
 - Improvements to Type::Params documentation.

 [ Test Suite ]
 - Skip t/30-integration/Moose/native-attribute-traits.t on older Moose
   because Test::Moose is broken.

 [ Packaging ]
 - Ref::Util::XS 0.100 should be recommended, not 0.200 (which doesn't
   exist yet).
   Fixes RT#121981.
   <https://rt.cpan.org/Ticket/Display.html?id=121981>

 [ Other ]
 - Added: Allow Type::Coercion's add_type_coercion to accept a
   Type::Coercion object, which was already documented as working.
   Diab Jerius++
 - Added: Type::Params compile_named now supports bless/class/constructor
   options.
 - Added: Type::Params now exports a compile_named_oo function which
   returns a parameters object.
 - Added: Type::Params now supports parameter defaults.
 - Don't use Type::Tiny::XS's implementation of PositiveInt in
   Types::Common::Numeric unless Type::Tiny::XS >= 0.013.
   2018-04-19 04:19:54 by Wen Heping | Files touched by this commit (2) | Package updated
Log message:
Update to 1.002002

Upstream changes:
1.002002	2018-04-17

 [ Bug Fixes ]
 - Compatibility with constants and with CV-in-stash optimisation.
   Fixes RT#123408.
   <https://rt.cpan.org/Ticket/Display.html?id=123408>
   2017-06-12 15:47:15 by Makoto Fujiwara | Files touched by this commit (2) | Package updated
Log message:
Updated devel/p5-Type-Tiny to 1.002001
--------------------------------------
1.002001        2017-06-08
 [ Test Suite ]
  - Skip t/30-integration/Moose/native-attribute-traits.t on older Moose
     because Test::Moose is broken.

 [ Packaging ]
  - Ref::Util::XS 0.100 should be recommended, not 0.200 (which doesn't
    exist yet).
     Fixes RT#121981.
      <https://rt.cpan.org/Ticket/Display.html?id=121981>
   2017-06-05 16:25:36 by Ryo ONODERA | Files touched by this commit (2298)
Log message:
Recursive revbump from lang/perl5 5.26.0
   2017-06-04 09:18:59 by Wen Heping | Files touched by this commit (2) | Package updated
Log message:
Update to 1.002000

Upstream changes:
1.002000	2017-06-01

 [ Packaging ]
 - Stable version number.

1.001_016	2017-05-30

 [ Documentation ]
 - Include page-numbers.pl example

1.001_015	2017-05-20

 [ Bug Fixes ]
 - Fix HashRef[Str]|Undef|Str parsing on Perl < 5.14.
   Fixes RT#121764.
   Aran Clary Deltac++
   Graham Knop++
   <https://rt.cpan.org/Ticket/Display.html?id=121764>

1.001_014	2017-05-19

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

1.001_013	2017-05-18	Kittiversary

 [ Bug Fixes ]
 - Fixed crazy amount of UTF-8 warnings from Type::Params on Perl 5.6.x and
   Perl 5.8.x.
   Fixes RT#101582.
   Andr矇 Walker++
   <https://rt.cpan.org/Ticket/Display.html?id=101582>
   <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.

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.

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.

1.001_010	2017-05-16	Puppiversary

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

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.

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

1.001_007	2017-05-04	May the fourth be with you

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

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>

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>

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>

1.001_003	2017-02-02

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

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.

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

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.
   2017-02-07 13:03:21 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
Updated p5-Type-Tiny to 1.000006.

1.000006	2017-01-30

 [ Bug Fixes ]
 - Fix escaping withing q{...} in a test case.
   Fixes RT#114386.
   Karen Etheridge++
   <https://rt.cpan.org/Ticket/Display.html?id=114386>