312604f1812cbccd67deb7de4c0490a2ca0c8c9d
[gitmo/Moose.git] / lib / Moose / Deprecated.pm
1 package Moose::Deprecated;
2
3 use strict;
4 use warnings;
5
6 use Package::DeprecationManager 0.07 -deprecations => {
7     'optimized type constraint sub ref' => '2.0000',
8     'default is for Native Trait'       => '1.14',
9     'default default for Native Trait'  => '1.14',
10     'coerce without coercion'           => '1.08',
11     },
12     -ignore => [qr/^(?:Class::MOP|Moose)(?:::)?/],
13     ;
14
15 1;
16
17 # ABSTRACT: Manages deprecation warnings for Moose
18
19 __END__
20
21 =pod
22
23 =head1 DESCRIPTION
24
25     use Moose::Deprecated -api_version => $version;
26
27 =head1 FUNCTIONS
28
29 This module manages deprecation warnings for features that have been
30 deprecated in Moose.
31
32 If you specify C<< -api_version => $version >>, you can use deprecated features
33 without warnings. Note that this special treatment is limited to the package
34 that loads C<Moose::Deprecated>.
35
36 =cut