X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FDeprecated.pm;h=312604f1812cbccd67deb7de4c0490a2ca0c8c9d;hb=0a58c428c30c068fa9ff897a3f5a56edfc9d131f;hp=a51f0720da802ebc70b5b8ac8ba5c66c95cf979f;hpb=0eb7894a222c1d55c583a867bb6fad21d6927b2c;p=gitmo%2FMoose.git diff --git a/lib/Moose/Deprecated.pm b/lib/Moose/Deprecated.pm index a51f072..312604f 100644 --- a/lib/Moose/Deprecated.pm +++ b/lib/Moose/Deprecated.pm @@ -3,16 +3,34 @@ package Moose::Deprecated; use strict; use warnings; -our $VERSION = '1.08'; -$VERSION = eval $VERSION; -our $AUTHORITY = 'cpan:STEVAN'; - -use Package::DeprecationManager -deprecations => { - 'pre-0.94 MetaRole API' => '0.93', - 'Moose::Exporter with_caller' => '0.89', - 'Role type' => '0.84', +use Package::DeprecationManager 0.07 -deprecations => { + 'optimized type constraint sub ref' => '2.0000', + 'default is for Native Trait' => '1.14', + 'default default for Native Trait' => '1.14', + 'coerce without coercion' => '1.08', }, - -ignore => [qw( Moose Moose::Exporter Moose::Util::MetaRole )], + -ignore => [qr/^(?:Class::MOP|Moose)(?:::)?/], ; 1; + +# ABSTRACT: Manages deprecation warnings for Moose + +__END__ + +=pod + +=head1 DESCRIPTION + + use Moose::Deprecated -api_version => $version; + +=head1 FUNCTIONS + +This module manages deprecation warnings for features that have been +deprecated in Moose. + +If you specify C<< -api_version => $version >>, you can use deprecated features +without warnings. Note that this special treatment is limited to the package +that loads C. + +=cut