Debian Codegraph @

Changes

raw
1 Revision history for Catalyst-Action-REST
2
3 1.22 2026-03-30 10:49:28-07:00 America/Vancouver
4 - fix expected YAML output in test to account for new YAML::Syck
5
6 1.21 2017-12-05 10:05:25-05:00 America/New_York
7 - Added an optional mode for RFC 7231 compliance
8 - New option json_options_encode to set JSON options for output
9
10 1.20 2015-10-29 15:28:27-05:00 America/Chicago
11
12 - Documentation fixes.
13 - Don't clobber some response headers if they are already set.
14
15 1.19 2015-02-06 09:40:02-06:00 America/Chicago
16
17 - Make LWP a test dep instead of a hard dep (Fixes GH#3, thanks Alexander
18 Hartmaier for the report!)
19 - Hard dep on JSON::MaybeXS (Fixes RT#101854, thanks Emmanuel Seyman for the
20 report and Karen Etheridge for help tracking down the cause!)
21
22 1.18 2015-01-20 12:20:46-06:00 America/Chicago
23 - Fix tests on travisci so that Catalyst proper can run on travisci
24 (Thanks André Walker!)
25
26 1.17 2014-10-23 19:58:46-05:00 America/Chicago
27 - Make 3xx status codes skip serialization when there is no data to serialize
28 (Thanks Jesse Sheidlower!)
29
30 1.16 2014-09-12 13:21:43-05:00 America/Chicago
31 - Switch from JSON to JSON::MaybeXS to get a better choice of JSON parsers.
32
33 1.15 2014-05-07 09:02:44-05:00 CST6CDT
34
35 - Added new status_see_other method for returning a 303 redirect.
36 - Added new status_moved method for returning a 301 redirect. (Matthew Keller)
37
38 1.14 2013-12-27 15:32:19 America/Chicago
39
40 - Stop prompting for features at install time
41
42 1.13 2013-11-08 09:40:00 EST
43
44 - Fix tests to skip if YAML::Syck is not installed (Arthur Axel fREW Schmidt)
45
46 1.12 2013-09-03 13:00:00 EST
47
48 WARNING BACK COMPAT BREAKAGE FOLLOWS
49
50 Removed The YAML and HTML parser from the distro. You
51 should install these if you actually use them. They are listed as
52 optional dependencies going forward.
53
54 This is possibly a breaking change, but necessary for security and
55 considered acceptable since those formats have not generally
56 become preferred for web services.
57
58 In addition, the default de/serialization mappings for HTML and YAML
59 have been removed. You can add that back by adding the following to
60 you Configuration for the subclass of Catalyst::Controller::REST -
61
62 package Foo::Controller::Bar;
63
64 use Moose;
65 use namespace::autoclean;
66
67 BEGIN { extends 'Catalyst::Controller::REST' }
68 __PACKAGE__->config(
69 'map' => {
70 'text/html' => 'YAML::HTML',
71 'text/x-yaml' => 'YAML',
72 },
73 );
74
75 You should do this if you are using these de/serialization formats.
76
77 1.11 2013-06-16 15:23:03 BST
78
79 - Fix infinite recursion in tests under Catalyst 5.90040
80
81 1.10 2013-04-22 14:36:53 BST
82
83 - Use YAML rather than JSON in basic tests
84
85 1.09 2013-04-19 13:34:38 BST
86
87 - Don't load Data::Serializer unnecessarily in tests
88
89 1.08 2013-04-16 08:33:00 BST
90
91 - Factor Data::Serializable into it's own dist to stop breakages.
92
93 If you use any of:
94
95 * Data::Dumper
96 * Data::Denter
97 * Data::Taxi
98 * Config::General
99 * PHP::Serialization
100
101 You'll need to install Catalyst-Action-Serialize-Data-Serializer and add the
102 appropriate lines to your controller config. Said lines may be:
103
104 'text/x-data-dumper' => [ 'Data::Serializer', 'Data::Dumper' ],
105 'text/x-data-denter' => [ 'Data::Serializer', 'Data::Denter' ],
106 'text/x-data-taxi' => [ 'Data::Serializer', 'Data::Taxi' ],
107 'text/x-config-general' => [ 'Data::Serializer', 'Config::General' ],
108 'text/x-php-serialization' => [ 'Data::Serializer', 'PHP::Serialization' ],
109
110 1.07 2013-04-11 20:20:00 BST
111
112 - Don't serialize if a view is explicitly set.
113
114 - If the controller sets the view in $c->stash->{current_view} or
115 $c->stash->{current_view_instance}, then it is explicitly requesting a
116 certain kind of serialization and C::A::Serialize shouldn't override
117 that.
118
119 - Remove Storable and FreezeThaw from the list
120 of serialization methods offered by default, and
121 from the docs - they're totally unsafe :/
122
123 1.06 2012-12-11 22:04:00 UTC
124
125 - Sort list of allowed methods. RT#81825
126
127 1.05 2012-07-02 20:13:00 BST
128
129 - Bugfix get_allowed_methods list:
130 - include HEAD
131 - remove "not_implemented"
132
133 1.04 2012-06-30 10:25:00 BST
134
135 - Bugfix to _dispatch_rest_method
136
137 1.03 2012-06-28 00:40:00 BST
138
139 - Expose _get_allowed_methods to the API (wreis)
140
141 - Fix default OPTIONS handler: As the ->body is defined, then serialization
142 won't happen and we don't get wrong responses. (wreis)
143
144 - Add default HEAD handler: auto dispatches to _GET method if it exists (wreis)
145
146 1.02 2012-06-05 22:23:00 BST
147
148 - Fix forwarded REST methods, e.g. foo_GET to be more
149 correctly displayed as a forward in the stats info.
150
151 - Make public response building methods for errors
152 _unsupported_media_type and _serialize_bad_request which
153 can be extended from an action-role to return custom
154 error response.
155
156 1.01 2012-05-29 20:19:00 BST
157
158 - Add Catalyst::Action::Deserialize::JSON::XS
159
160 - Fix JSON::XS useage to depend on JSON.pm v2.0, and rely on the
161 fact that can be backed by XS code, by explicitly setting
162 $ENV{'PERL_JSON_BACKEND'} = 2
163
164 1.00 2012-04-13 09:31:00 BST
165
166 - Repack without auto_include to stop Module::Install inlining
167 Test::More without Test::Builder. RT#76524
168
169 0.99 2012-02-28 09:09:00 UTC
170
171 - Repack with new Module::Install to stop depending on an unnecessary
172 ExtUtils::MakeMaker version.
173
174 0.98 2012-02-21 11:40:00 UTC
175
176 - More fixes as per last release.
177
178 0.97 2012-02-21 09:58:00 UTC
179
180 - Fix test with latest Catalyst version which passes _log into
181 requests.
182
183 0.96 2012-01-20 11:22:00 UTC
184
185 - Added fix for RT 63537 (from Gerv) and tests to check it.
186
187 0.95 2012-01-04 19:34:00 UTC
188
189 - Fix regex for JSONP parameter name to be able to include the . character
190 in Catalyst::Action::Serialize::JSONP. RT#73741
191
192 - Add optional location parameter to status_accepted handler. RT#73691 (ghenry)
193
194 0.94 2011-12-09 08:35:00 UTC
195
196 - Add 403 Forbidden and 302 Not Found status methods to
197 Catalyst::Controller::REST (Caleb Cushing)
198
199 0.93 2011-10-12 11:37:00 America/Chicago
200
201 - Add a "Callback" serializer/deserializer to allow for more customization in
202 how the REST data is parsed/generated (bphillips)
203
204 0.92 2011-10-01 11:04:00 BST
205
206 - Add a Catalyst::Action::DeserializeMultiPart, allowing one part of a multipart
207 request to be deserialized as the REST data (allowing other parts to be used for
208 file uploads, for example) (bphillips)
209
210 0.91 2011-08-04 14:37:21 Europe/Berlin
211
212 - For the deserialization action class, make the HTTP methods it operates on
213 configurable on a per-action level (plu, rafl).
214
215 0.90 2011-02-25 13:56:00 UTC
216
217 - Remove test which is no longer applicable and fails in the latest Catalyst
218 release.
219
220 0.89 2011-01-24 21:57:42 UTC
221
222 - All classes are now made immutable. (Dave Rolsky)
223
224 - Added a Catalyst::Action::REST::ForBrowsers class. This will try to dispatch
225 GET requests to a foo_GET_html method before trying foo_GET. (Dave Rolsky)
226
227 0.88 2011-01-11 23:07:00 UTC
228
229 - Fix documentation for overriding Serialize and Deserialize actions
230 in Catalyst::Controller::REST.
231
232 - Avoid warning with empty response bodies and new Catalyst version
233 (>= 5.80030)
234
235 - Returning a body of '' is now possible - Catalyst::Action::Serialize
236 acts like Catalyst::Action::RenderView (>= 0.16) by using the has_body
237 predicate in Catalyst::Response (>= 5.80030)
238
239 0.87 2010-11-03 19:46:00 UTC
240
241 - Fix Request class role when used with new Moose and other request
242 class roles.
243
244 0.86 2010-09-01 23:14:00 BST
245
246 - Add rest_serializer_json_options config key useable to set options
247 like relaxed => 1 to be passed to the JSON serializer (Ton Voon)
248
249 - Make Data::Dumper unserializer safer by using a Safe compartment (Ton Voon)
250
251 0.85 2010-05-13 10:09:19 Europe/Berlin
252
253 - Make Catalyst::Action::Serialize::View return directly rather than serializing
254 a response for 3XX status codes. This stops back-compat breakage from the
255 previous change (in 0.84), whilst also allowing actual data serializers
256 to still handle 3XX.
257
258 - Fix docs in Catalyst::TraitFor::Request::REST::ForBrowsers. (RT#54983)
259
260 0.84 2010-05-06 09:27:56 BST
261
262 - Revert always using a trait rather than Catalyst::Request::REST to improve
263 debug messages.
264
265 - Add a status_multiple_choices helper method to the Controller base class.
266
267 - Allow 3XX responses to be serialized.
268
269 0.83 2010-02-08 22:17:12 UTC
270
271 - Make it possible to deserialize a request with a DELETE method. This probably
272 breaks 'strict' REST guidelines, but is useful for being able to delete multiple
273 resources from a single call by providing a batch delete method.
274
275 - Remove JSONP from the list of default serializers (RT#54336)
276 Fix MANIFEST (RT#54408)
277
278 0.82 2010-02-04 22:31:57 UTC
279
280 - Integrated Catalyst::Request::REST::ForBrowsers as
281 Catalyst::TraitFor::Request::ForBrowsers. (Dave Rolsky)
282
283 - Clarified docs so that they encourage the use of the request traits, rather
284 than using Catalyst::Request::REST. (Dave Rolsky)
285
286 - When Catalyst::Action::REST or Controller::REST automatically add the trait,
287 your request class will no longer end up getting set to
288 Catalyst::Request::REST. Instead, creates an anon class with the appropriate
289 role. (Dave Rolsky)
290
291 - Shut up log output from the tests. (Dave Rolsky)
292
293 - Added a $VERSION to every module, mostly to make sure that when people
294 install Catalyst::Request::REST::ForBrowsers, they get the version in this
295 distro. (Dave Rolsky)
296
297 - Change Catalyst::Action::Serialize, Catalyst::Action::Deserialize and
298 Catalyst::Action::SerializeBase to be more Moose like.
299
300 - Fix JSON and JSON::XS to encode_blessed. (fREW)
301 - Fix Catalyst::Action::Serialize to use objects instead of classes. (fREW)
302 - Fix doc nits. (RT#53780)
303
304 0.81 2010-01-14 20:56:00 UTC
305
306 - Add a JSONP serialization type.
307
308 0.80 2009-12-19 14:54:00 UTC
309
310 - Convert all classes to Moose
311
312 - Change Catalyst::Request::REST to be a mostly empty class, with
313 all the functionality in Catalyst::TraitFor::Request::REST
314
315 - Simplify _get_allowed_methods method (aristotle)
316
317 - Rework serializer return so that serializers throw an exception in
318 the case of issues serializing the data (hobbs).
319
320 0.79 2009-12-11 01:08:00 UTC
321
322 - Cope with invalid (missing required q parameter) header like:
323 application/json; charset="utf-8"
324
325 - Fix documentation to not mention deprecated things and generally be
326 in better style.
327
328 - Make author information consistant and only in one module.
329
330 0.78 2009-09-28 15:01:03 BST
331
332 - Require Moose for the tests (RT#50066).
333
334 0.77 2009-08-27 02:21:09 BST
335
336 - Allow dispatching to Catalyst Actions, for use with ActionClasses
337 etc - fREW
338
339 - Fix test if CATALYST_DEBUG environment variable is set
340
341 0.76 2009-08-21 21:20:52 BST
342
343 - Added two new status response helpers (202 no content and 410 gone),
344 and tests - Franck Cuny
345
346 0.75 2009-08-17 14:07:41 BST
347
348 - Fix optional test failures in catalyst-action-serialize-accept.t
349 - Added a serializer for JSON::XS
350 - Made test independent of YAML::Syck bugs (dandv)
351
352 0.74 2009-07-22 23:49:16 BST (t0m)
353
354 - Switch from NEXT to MRO::Compat (agladdish).
355
356 - Add display of additional REST actions in the stats, and also fix a warning
357 in Catalyst 5.80 when you forward to another action from inside an
358 action_FOO method (as it was confusing the stats).
359
360 - POD fixes
361 - Catalyst::Action::REST no longer @ISA Catalyst or Catalyst::Controller.
362 - Change constructor to call next::method instead of SUPER::
363 - Change method used to find the application class to be more correct
364
365 0.73 2009-06-27 20:20:09 America/New_York (hdp)
366
367 - Packaging fixes
368
369 0.72 2009-06-25 14:52:29 America/New_York (hdp)
370
371 - Refresh Module::Install
372
373 0.71 2009-03-28 09:16:09 America/Los_Angeles (hdp)
374
375 - Fix RT#44641, missing documented 'end' action
376
377 0.70 2009-03-27 23:21:17 America/Los_Angeles (hdp)
378
379 - Tests that use JSON were either not checking for the version or checking in a
380 - way that was a syntax error.
381
382 0.69 2009-03-26 14:16:03 America/Los_Angeles (hdp)
383
384 - Fix RT#32342, deprecated config loses default map (hdp)
385 - Fix broken insertion of Catalyst::Request::REST for Action::REST (jshirley)
386
387 0.68 2009-03-25 22:33:38 America/Los_Angeles (hdp)
388
389 - Remove prompt for ancient and deprecated Data::Denter from Makefile.PL
390 - Remove Data::Dump, which was entirely unused
391 - Stop tests from dying with Catalyst 5.80
392
393 0.67 2009-03-25 21:59:59 America/Los_Angeles (hdp)
394
395 - (no changes from 0.67_01)
396
397 0.67_01 2009-03-25 09:36:00 America/Los_Angeles (hdp)
398
399 - Fix RT#43840, improper app-level config handling
400 - Fix RT#42859, 'wrong' Catalyst dependency
401 - Fix RT#42025, stepping on custom request classes
402
403 0.65 2008-08-20 10:42:00 America/Los_Angeles (jshirley)
404
405 - Fully revamped tests to work without any JSON support
406 - Final removal of JSON::Syck
407 - Special thanks to jgoulah for helping test this release
408
409 0.64 2008-08-13 08:55:00 America/Los_Angeles (jshirley)
410
411 - New dist to fix issue with Module::Install
412
413 0.63 2008-07-09 11:16:00 America/Los_Angeles (jshirley)
414
415 - Changing from JSON::Syck to JSON/JSON::XS
416 - Refactored tests to be more applicable to current state of affairs
417
418 0.62 2008-07-02 07:53:00 America/Los_Angeles (jshirley)
419
420 - Reshipping with current Module::Install included due to error reports
421 about failed installs
422
423 0.61 2008-06-30 12:28:00 America/Los_Angeles (jshirley)
424
425 - Support official application/json and carp about text/x-json
426
427 - Accepted patch from Luke Saunders for processing all accepted content types
428
429 0.60 2008-01-03 17:23:58 America/Los_Angeles (adam)
430
431 - Updated my contact information.
432
433 - Fixed RT#30498 - REST controller references Catalyst without
434 loading it first.
435
436 - Fixed RT#32042 - Import of Params::Validate :all plays badly
437 with subclasses that have their own validate()
438
439 - Fixed RT#30456 - Debug messages print even with debugging disabled
440
441 - Fixed an issue where YAML::Syck versions 0.92 require $c->request->body to
442 be stringified
443
444 - Updated the configuration specifiers to operate more in line with the way
445 Catalyst expects. Most notably component based configuration through
446 "Controller::RestClass" now works. "serialize" at the top level simply
447 is suggested defaults that all REST classes inherit.
448
449 - Fixed 'default' serializer to set a valid Content-Type: header. Fixes
450 RT ticket 27949. Note that behavior has changed -- the default
451 serializer must now be specified as a content-type, not as a plugin
452 name. ([email protected])
453
454 0.41 2007-05-24 14:01:06 America/Los_Angeles (adam)
455
456 - Moved a bogus $self->class to $c->component($self->class)
457
458 0.40 2007-03-09 14:13:29 America/Los_Angeles (adam)
459
460 - Refactored the Content-Type negotiation to live in Catalyst::Request::REST. (drolsky)
461 - Added some useful debugging. (drolsky)
462 - Added a View serializer/deserializer, which simply calls the correct
463 - Catalyst view. ('text/html' => [ 'View', 'TT' ]) (claco, adam)
464
465 0.31 2006-12-06 00:45:02 America/Los_Angeles (adam)
466
467 - Fixed a bug where we would report a blank content-type negotiation.
468 - Added Data::Dump as a dependency.
469
470 - Made the YAML::HTML view automatically append content-type=text/html on
471 the resulting URLs.
472
473 0.30 2006-12-03 12:24:16 America/Los_Angeles (adam)
474
475 - Updated the Makefile to support optional installation of the different
476 Serialization formats.
477
478 - Renamed some of the test cases, since the execution order doesn't
479 matter.
480
481 - Fixed things so that not having a Serialization module returns 415.
482 - Fixed things so that failure to Deserialize sends the proper status.
483 - Refactored the Plugin loading to Catalyst::Action::SerializeBase.
484 - Updated the Documentation.
485
486 - Added a whole raft of serializers. (JSON, all the Data::Serializer
487 supported ones, and XML::Simple)
488
489 - Added test cases.
490
491 - Refactored the Catalyst::Action::REST dispatch, so that the default
492 method is called before any _METHOD handlers. In addition, moved
493 the 405 Not Implemented handler to be foo_not_implemented, instead
494 of the default sub. (daisuke++ pointed out the inconsistency and
495 provided a patch, and I added the foo_not_implemented support)
496
497 - Added in automated OPTIONS handler, which constructs the allow
498 header for you, just like the 405 handler. Can be overridden
499 with a normal _METHOD sub.
500
501 - Refactored Test::Rest, so that it uses closures to create the
502 very similar $test->method() subs.
503
504 - Added tests for Catalyst::Action::REST.
505
506 0.2 2006-11-30 17:14:51 America/Los_Angeles (adam)
507
508 - Added documentation patch from Daisuke Maki ([email protected])
509 - Added dependency patch from Daisuke Maki ([email protected])
510
511 0.1 2006-11-19 16:24:20 America/Los_Angeles (adam)
512
513 - Added status_accepted (Code 202)
514 - Added a first pass at documentation.
515 - Added in Test Suite
516 - Created Catalyst::Action::Serialize and Catalyst::Action::Deserialize
517 - Added Data::Serializer actions
518 - Added status_created helper method
519 - Added more status_ helpers
520
521 - Converted error helpers to return an object instead of plain-text. It's
522 a more consistent model than a text/plain error message.
523
524 - Added logging to 4xx status handlers
525