deprecate non-arrayref enum and duck_type
[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     'non-arrayref form of enum'         => '2.0700',
8     'non-arrayref form of duck_type'    => '2.0700',
9     'optimized type constraint sub ref' => '2.0000',
10     'default is for Native Trait'       => '1.14',
11     'default default for Native Trait'  => '1.14',
12     'coerce without coercion'           => '1.08',
13     },
14     -ignore => [qr/^(?:Class::MOP|Moose)(?:::)?/],
15     ;
16
17 1;
18
19 # ABSTRACT: Manages deprecation warnings for Moose
20
21 __END__
22
23 =pod
24
25 =head1 DESCRIPTION
26
27     use Moose::Deprecated -api_version => $version;
28
29 =head1 FUNCTIONS
30
31 This module manages deprecation warnings for features that have been
32 deprecated in Moose.
33
34 If you specify C<< -api_version => $version >>, you can use deprecated features
35 without warnings. Note that this special treatment is limited to the package
36 that loads C<Moose::Deprecated>.
37
38 =cut