Optimize the get branch for hash accessors a little bit
[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     'default is for Native Trait'      => '1.14',
8     'default default for Native Trait' => '1.14',
9     'coerce without coercion'          => '1.08',
10     'pre-0.94 MetaRole API'            => '0.94',
11     'alias or excludes'                => '0.89',
12     'Role type'                        => '0.84',
13     'subtype without sugar'            => '0.72',
14     'type without sugar'               => '0.72',
15     'Moose::init_meta'                 => '0.56',
16     },
17     -ignore => [qr/^(?:Class::MOP|Moose)(?:::)?/],
18     ;
19
20 1;
21
22 __END__
23
24 =pod
25
26 =head1 NAME 
27
28 Moose::Deprecated - Manages deprecation warnings for Moose
29
30 =head1 DESCRIPTION
31
32     use Moose::Deprecated -api_version => $version;
33
34 =head1 FUNCTIONS
35
36 This module manages deprecation warnings for features that have been
37 deprecated in Moose.
38
39 If you specify C<< -api_version => $version >>, you can use deprecated features
40 without warnings. Note that this special treatment is limited to the package
41 that loads C<Moose::Deprecated>.
42
43 =cut