Deprecation section more complete, and link ::Upgrading
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Delta.pod
CommitLineData
6c18e892 1=head1 Deltachanges from 5.7 to 5.8
2
b31499bc 3This is an overview of the user visible changes in 5.8
4
5=head2 Deprecations
6
e88235ff 7Please see L<Catalyst::Upgrading> for a full description of how changes in the
8framework may affect your application.
9
10Below is a brief list of features which have been deprecated in this release:
11
796a8358 12=over
b31499bc 13
796a8358 14=item ::[MVC]:: style naming scheme has been deprecated and will warn
b31499bc 15
e88235ff 16=item NEXT is deprecated for all applications and components, use MRO::Compat
b31499bc 17
e88235ff 18=item Dispatcher methods which are an implementation detail made private, public versions now warn.
b31499bc 19
e88235ff 20=item MyApp->plugin method is deprecated, use L<Catalyst::Model::Adaptor> instead.
796a8358 21
22=back
23
b31499bc 24=head2 Dispatcher
25
6171ddd5 26Fix forwarding to Catalyst::Action objects (Rafael Kitover).
b31499bc 27
6171ddd5 28=head2 Restarter
b31499bc 29
6171ddd5 30The development server restarter has been improved to be compatible with
31immutable Moose classes, and also to optionally use
32L<B::Hooks::OP::Check::StashChange> to handle more complex application layouts
33correctly.
b31499bc 34
6171ddd5 35=head2 $c->uri_for_action method. (hdp)
b31499bc 36
6c18e892 37A private path to the Catalyst action you want to create a URI for.
38This is a shortcut for calling C<< $c->dispatcher->get_action_by_path($path) >>
39and passing the resulting C<$action> and the remaining arguments to
40C<< $c->uri_for >>.
41
b31499bc 42=head2 Logging
43
6171ddd5 44Log levels have been madeadditive, and add documentation to the setup_log
45method.
b31499bc 46
47=head2 Consequences of the Moose backend
48
796a8358 49=over
50
51=item *
52
53Use MooseX::MethodAttributes::Inheritable to contain action
54attributes. This means that attributes are now represented in the MOP,
55allowing method modifiers on actions to work as expected. (rafl)
56
57=item *
58
59Provide a reasonable API in Catalyst::Controller for working with
60and registering actions, allowing a controller sub-class to replace
61subroutine attributes for action declerations with an alternate
62syntax. (rafl/hdp)
63
64=item *
65
66Refactor capturing of $app from Catalyst::Controller into
67Catalyst::Component::ApplicationAttribute for easier reuse in other
68components (Florian Ragwitz)
69
70=item *
71
72Make MyApp immutable at the end of the scope after the setup
73method is called, fixing issues with plugins which have their
74own new methods by inlining a constructor on MyApp (t0m)
75
76=back
77
b31499bc 78=head2 Test Suite
6c18e892 79
6c18e892 80 - Change Catalyst::Test to use Sub::Exporter (Florian Ragwitz).
81 - Port to Moose
b31499bc 82 - Support mocking virtualhosts in test suite ()
83 - Add methods like action_ok and action_redirect to write
84 more compact tests
85
86=head2 Catalyst::Response->print()
87
6c18e892 88Prints @data to the output stream, separated by $,. This lets you pass
89the response object to functions that want to write to an L<IO::Handle>.
90