+Mon 8 Feb 2010 22:17:12 GMT - Release 0.83
+ Make it possible to deserialize a request with a DELETE method. This probably
+ breaks 'strict' REST guidelines, but is useful for being able to delete multiple
+ resources from a single call by providing a batch delete method.
+
+ Remove JSONP from the list of default serializers (RT#54336)
+
+ Fix MANIFEST (RT#54408)
+
Thu 4 Feb 2010 22:31:57 GMT - Release 0.82
Integrated Catalyst::Request::REST::ForBrowsers as
use Module::Pluggable::Object;
use MRO::Compat;
-our $VERSION = '0.82';
+our $VERSION = '0.83';
$VERSION = eval $VERSION;
has plugins => ( is => 'rw' );
my $self = shift;
my ( $controller, $c ) = @_;
- my @demethods = qw(POST PUT OPTIONS);
+ my @demethods = qw(POST PUT OPTIONS DELETE);
my $method = $c->request->method;
if ( grep /^$method$/, @demethods ) {
my ( $sclass, $sarg, $content_type ) =
extends 'Catalyst::Action';
use Data::Serializer;
-our $VERSION = '0.82';
+our $VERSION = '0.83';
$VERSION = eval $VERSION;
sub execute {
extends 'Catalyst::Action';
use JSON qw( decode_json );
-our $VERSION = '0.82';
+our $VERSION = '0.83';
$VERSION = eval $VERSION;
sub execute {
extends 'Catalyst::Action';
-our $VERSION = '0.82';
+our $VERSION = '0.83';
$VERSION = eval $VERSION;
sub execute {
extends 'Catalyst::Action';
-our $VERSION = '0.82';
+our $VERSION = '0.83';
$VERSION = eval $VERSION;
sub execute {
extends 'Catalyst::Action';
use YAML::Syck;
-our $VERSION = '0.82';
+our $VERSION = '0.83';
$VERSION = eval $VERSION;
sub execute {
BEGIN { require 5.008001; }
-our $VERSION = '0.82';
+our $VERSION = '0.83';
$VERSION = eval $VERSION;
sub new {
use Module::Pluggable::Object;
use MRO::Compat;
-our $VERSION = '0.82';
+our $VERSION = '0.83';
$VERSION = eval $VERSION;
has _encoders => (
extends 'Catalyst::Action';
use Data::Serializer;
-our $VERSION = '0.82';
+our $VERSION = '0.83';
$VERSION = eval $VERSION;
sub execute {
extends 'Catalyst::Action';
use JSON ();
-our $VERSION = '0.82';
+our $VERSION = '0.83';
$VERSION = eval $VERSION;
has encoder => (
extends 'Catalyst::Action::Serialize::JSON';
use JSON::XS ();
-our $VERSION = '0.82';
+our $VERSION = '0.83';
$VERSION = eval $VERSION;
sub _build_encoder {
extends 'Catalyst::Action::Serialize::JSON';
-our $VERSION = '0.82';
+our $VERSION = '0.83';
$VERSION = eval $VERSION;
after 'execute' => sub {
extends 'Catalyst::Action';
-our $VERSION = '0.82';
+our $VERSION = '0.83';
$VERSION = eval $VERSION;
sub execute {
extends 'Catalyst::Action';
-our $VERSION = '0.82';
+our $VERSION = '0.83';
$VERSION = eval $VERSION;
sub execute {
extends 'Catalyst::Action';
use YAML::Syck;
-our $VERSION = '0.82';
+our $VERSION = '0.83';
$VERSION = eval $VERSION;
sub execute {
use YAML::Syck;
use URI::Find;
-our $VERSION = '0.82';
+our $VERSION = '0.83';
$VERSION = eval $VERSION;
sub execute {
use Catalyst::Request::REST;
use Catalyst::Utils ();
-our $VERSION = '0.82';
+our $VERSION = '0.83';
$VERSION = eval $VERSION;
after BUILDARGS => sub {
use Moose;
use namespace::autoclean;
-our $VERSION = '0.82';
+our $VERSION = '0.83';
$VERSION = eval $VERSION;
=head1 NAME
If a callback=? parameter is passed, this returns javascript in the form of: $callback($serializedJSON);
+Note - this is disabled by default as it can be a security risk if you are unaware.
+
+The usual MIME types for this serialization format are: 'text/javascript', 'application/x-javascript',
+'application/javascript'.
+
=item * C<text/x-data-dumper> => C<Data::Serializer>
Uses the L<Data::Serializer> module to generate L<Data::Dumper> output.
'text/x-yaml' => 'YAML',
'application/json' => 'JSON',
'text/x-json' => 'JSON',
- 'application/x-javascript' => 'JSONP',
- 'application/javascript' => 'JSONP',
- 'text/javascript' => 'JSONP',
'text/x-data-dumper' => [ 'Data::Serializer', 'Data::Dumper' ],
'text/x-data-denter' => [ 'Data::Serializer', 'Data::Denter' ],
'text/x-data-taxi' => [ 'Data::Serializer', 'Data::Taxi' ],
'text/x-yaml' => 'YAML',
'application/json' => 'JSON',
'text/x-json' => 'JSON',
- 'application/x-javascript' => 'JSONP',
- 'application/javascript' => 'JSONP',
- 'text/javascript' => 'JSONP',
'text/x-data-dumper' => [ 'Data::Serializer', 'Data::Dumper' ],
'text/x-data-denter' => [ 'Data::Serializer', 'Data::Denter' ],
'text/x-data-taxi' => [ 'Data::Serializer', 'Data::Taxi' ],
extends 'Catalyst::Request';
with 'Catalyst::TraitFor::Request::REST';
-our $VERSION = '0.82';
+our $VERSION = '0.83';
$VERSION = eval $VERSION;
# Please don't take this as a recommended way to do things.
use namespace::autoclean;
-our $VERSION = '0.82';
+our $VERSION = '0.83';
$VERSION = eval $VERSION;
extends 'Catalyst::Request::REST';
use HTTP::Headers::Util qw(split_header_words);
use namespace::autoclean;
-our $VERSION = '0.82';
+our $VERSION = '0.83';
$VERSION = eval $VERSION;
has [qw/ data accept_only /] => ( is => 'rw' );
with 'Catalyst::TraitFor::Request::REST';
-our $VERSION = '0.82';
+our $VERSION = '0.83';
$VERSION = eval $VERSION;
has _determined_real_method => (
'text/view' => [ 'View', 'Simple' ],
'text/explodingview' => [ 'View', 'Awful' ],
'text/broken' => 'Broken',
+ 'text/javascript', => 'JSONP',
+ 'application/x-javascript' => 'JSONP',
+ 'application/javascript' => 'JSONP',
},
);