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