Deprecate _default_is and _default_default for native traits.
[gitmo/Moose.git] / lib / Moose / Deprecated.pm
1 package Moose::Deprecated;
2
3 use strict;
4 use warnings;
5
6 our $VERSION = '1.15';
7 $VERSION = eval $VERSION;
8 our $AUTHORITY = 'cpan:STEVAN';
9
10 use Package::DeprecationManager -deprecations => {
11     'default is for Native Trait'      => '1.14',
12     'default default for Native Trait' => '1.14',
13     'coerce without coercion'          => '1.08',
14     'pre-0.94 MetaRole API'            => '0.94',
15     'alias or excludes'                => '0.89',
16     'Role type'                        => '0.84',
17     'subtype without sugar'            => '0.72',
18     'type without sugar'               => '0.72',
19     'Moose::init_meta'                 => '0.56',
20     },
21     -ignore => [
22     qw( Moose
23         Moose::Exporter
24         Moose::Meta::Attribute
25         Moose::Meta::Class
26         Moose::Util::MetaRole
27         )
28     ],
29     ;
30
31 1;
32
33 __END__
34
35 =pod
36
37 =head1 NAME 
38
39 Moose::Deprecated - Manages deprecation warnings for Moose
40
41 =head1 DESCRIPTION
42
43     use Moose::Deprecated -api_version => $version;
44
45 =head1 FUNCTIONS
46
47 This module manages deprecation warnings for features that have been
48 deprecated in Moose.
49
50 If you specify C<< -api_version => $version >>, you can use deprecated features
51 without warnings. Note that this special treatment is limited to the package
52 that loads C<Moose::Deprecated>.
53
54 =head1 AUTHORS
55
56 Dave Rolsky E<lt>autarch@urth.orgE<gt>
57
58 =head1 COPYRIGHT AND LICENSE
59
60 Copyright 2006-2010 by Infinity Interactive, Inc.
61
62 L<http://www.iinteractive.com>
63
64 This library is free software; you can redistribute it and/or modify
65 it under the same terms as Perl itself.
66
67 =cut