4de00abee30bb22c6ca12170f577e5c4115e3a5d
[gitmo/Moose.git] / lib / Moose / Deprecated.pm
1 package Moose::Deprecated;
2
3 use strict;
4 use warnings;
5
6 our $VERSION = '1.16';
7 $VERSION = eval $VERSION;
8 our $AUTHORITY = 'cpan:STEVAN';
9
10 use Package::DeprecationManager 0.07 -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 => [qr/^(?:Class::MOP|Moose)(?:::)?/],
22     ;
23
24 1;
25
26 __END__
27
28 =pod
29
30 =head1 NAME 
31
32 Moose::Deprecated - Manages deprecation warnings for Moose
33
34 =head1 DESCRIPTION
35
36     use Moose::Deprecated -api_version => $version;
37
38 =head1 FUNCTIONS
39
40 This module manages deprecation warnings for features that have been
41 deprecated in Moose.
42
43 If you specify C<< -api_version => $version >>, you can use deprecated features
44 without warnings. Note that this special treatment is limited to the package
45 that loads C<Moose::Deprecated>.
46
47 =head1 AUTHORS
48
49 Dave Rolsky E<lt>autarch@urth.orgE<gt>
50
51 =head1 COPYRIGHT AND LICENSE
52
53 Copyright 2006-2010 by Infinity Interactive, Inc.
54
55 L<http://www.iinteractive.com>
56
57 This library is free software; you can redistribute it and/or modify
58 it under the same terms as Perl itself.
59
60 =cut