Debian Codegraph @

lib/Dancer2/DeprecationPolicy.pod

raw
1 package Dancer2::DeprecationPolicy;
2
3 # ABSTRACT: Define the process by which outdated, broken, or unused code is removed from Dancer2
4
5 __END__
6
7 =pod
8
9 =encoding UTF-8
10
11 =head1 NAME
12
13 Dancer2::DeprecationPolicy - Define the process by which outdated, broken, or unused code is removed from Dancer2
14
15 =head1 VERSION
16
17 version 2.2.2
18
19 =head1 DESCRIPTION
20
21 While there are conflicting ideas about deprecation, in Dancer2, deprecated
22 code is code that:
23
24 =over
25
26 =item * Is in the way of implementing important features or fixes that provide
27 more value.
28
29 =item * Has a negative impact on the integrity and security of user code,
30 whether by misusing it to not.
31
32 =item * Provides a negative experience for the users.
33
34 =back
35
36 Deprecated code is code we either had to write and can now remove or we thought
37 was a good idea and were wrong. It is code that doesn't overall benefit users
38 or the developers.
39
40 Deprecated code is code that is marked for eventual removal and we do not
41 intend to keep in the Dancer2 codebase.
42
43 =head1 DEPRECATION PROCESS
44
45 =over
46
47 =item * Code to be deprecated is posted/discussed publicly (see below)
48
49 =item * Deprecated code enters soft deprecation phase
50
51 =item * After 12 months or 2 major releases, code is hard deprecated
52
53 =item * After 6 months or 1 major release, hard deprecated code is removed
54
55 =back
56
57 Deprecated code is marked with warnings and the version and/or date in which it
58 will no longer be available.
59
60 =head2 Public Notice
61
62 When a feature/code is to be deprecated, the Dancer Core Team will create a new
63 GitHub issue for the code/feature to be deprecated, and announce this in a
64 public manner (blog post, Twitter, and the mailing list, at minimum). The
65 notice should provide the reason for the deprecation, what Dancer2/the
66 community is gaining as a result of the deprecation, and what the officially
67 recognized alternative to the deprecated code is.
68
69 The public notice period will provide the developer/user base an opportunity to
70 voice objections or provide feedback or alternatives to deprecation. It also
71 allows the Core Team to better assess the potential long range effects of
72 deprecation.
73
74 While the deprecated feature/code can be discussed by community, the decision
75 will be ultimately made by the Dancer Core Team. There is no definitive time
76 for the public notice period to end; some deprecations are more urgent than
77 others, and each situation is left to the discretion of the Core Team, with
78 feedback from the community.
79
80 =head2 Soft Deprecation
81
82 When code is soft deprecated, a warning will be thrown to indicate that the
83 code is to be considered deprecated. Apps will continue to function normally
84 otherwise.
85
86 =head2 Hard Deprecation
87
88 After 12 months or two major releases (whichever comes first), the code is
89 considered to be hard deprecated. An error will continue to be thrown, but
90 unlike soft deprecation, continued usage of the deprecated code will cause the
91 application to die.
92
93 There is one caveat to this: code will B<never> be deprecated for less than 6
94 months. So if we deprecate code after v0.500000, become unusually productive,
95 and produce Dancer 0.600000 and 0.700000 in a two month timeframe, no
96 deprecated code will be removed because 6 months hasn't elapsed.
97
98 =head2 Removal
99
100 Six months following hard deprecation, or one major release after hard
101 deprecation, the deprecated code is removed from Dancer2.
102
103 =head1 EXCEPTIONS
104
105 In special cases, based on community feedback, these timelines may be extended.
106 But we expect this to be a rare occurrence, at best.
107
108 =head1 PLUGINS
109
110 We strongly encourage (but cannot/do not require) plugin authors to adopt the
111 same policy.
112
113 =head1 AUTHOR
114
115 Dancer Core Developers
116
117 =head1 COPYRIGHT AND LICENSE
118
119 This software is copyright (c) 2026 by Alexis Sukrieh.
120
121 This is free software; you can redistribute it and/or modify it under
122 the same terms as the Perl 5 programming language system itself.
123
124 =cut