| 1 |
Revision history for CGI::Application. |
| 2 |
|
| 3 |
4.61 |
| 4 |
|
| 5 |
- Release fix in 4.60_1 |
| 6 |
|
| 7 |
4.60_1 |
| 8 |
|
| 9 |
[BUGS] |
| 10 |
- Revert MANIFEST changes which seemed to have caused some issues |
| 11 |
https://github.com/MartinMcGrath/CGI--Application/issues/5 |
| 12 |
|
| 13 |
[DOCUMENTATION] |
| 14 |
- Fix minor POD typo. |
| 15 |
|
| 16 |
4.60 |
| 17 |
|
| 18 |
- Release, includes all changes from 4.50_50, 4.50_51 |
| 19 |
|
| 20 |
4.50_51 (developer release) 2015-07-16 |
| 21 |
|
| 22 |
[BUGS] |
| 23 |
- Create new CGI::PSGI object unconditionally in psgi_app()/Bug #88506 (allter) |
| 24 |
|
| 25 |
[DOCUMENTATION] |
| 26 |
- Introduced Travis CI (Martin McGrath) |
| 27 |
|
| 28 |
4.50_50 (developer release) Fri Jun 23, 2014 |
| 29 |
|
| 30 |
- Add PSGI Streaming methods (Mike Tonks) |
| 31 |
- Added CGI.pm dependency, it is no longer a core module (Martin McGrath) |
| 32 |
|
| 33 |
[BUGS] |
| 34 |
- Fixed rt #84403 - Security problem: missing "start" mode dumps ENV to output page. (Martin McGrath) |
| 35 |
- Ensure dump_html() returns valid HTML. (Martin McGrath) |
| 36 |
|
| 37 |
[DOCUMENTATION] |
| 38 |
- Changes to repository URL and bug tracker, added Martin McGrath as a co-maintainer |
| 39 |
- Typo fixes (David Steinbrunner) |
| 40 |
|
| 41 |
4.50 Thu Jun 16, 2011 |
| 42 |
|
| 43 |
[FEATURES] |
| 44 |
Better PSGI support in the core |
| 45 |
- run_as_psgi() works like run, but directly returns the expected PSGI response structure |
| 46 |
- psgi_app() wraps up all the PSGI bits to call and run the application and return a PSGI |
| 47 |
code ref: |
| 48 |
|
| 49 |
$psgi_coderef = WebApp->psgi_app({ ... args to new() ... }); |
| 50 |
|
| 51 |
[DOCUMENTATION] |
| 52 |
- docs for header_props() were improved |
| 53 |
|
| 54 |
[INTERNAL] |
| 55 |
- source control management was moved from darcs to git. Those who prefer |
| 56 |
darcs are are more familiar with it are advised to try the darcs-git.py |
| 57 |
wrapper for git. |
| 58 |
|
| 59 |
- The test file psgi_app.t is missing from this release and will be added later. |
| 60 |
|
| 61 |
|
| 62 |
4.31 Wed Jul 29, 2009 |
| 63 |
|
| 64 |
[FEATURES] |
| 65 |
- html_tmpl_class() now allows setting an an alternate HTML::Template class |
| 66 |
at a run time. This makes it easy to set the class to be |
| 67 |
'HTML::Template::Dumper' for debugging. You can then see and precisely |
| 68 |
test the Perl data structure that would be sent your template, taking |
| 69 |
into account the template tokens that are actually set there. (Mark Stosberg) |
| 70 |
|
| 71 |
[DOCUMENTATION] |
| 72 |
- More typo fixes (Lyle) |
| 73 |
|
| 74 |
4.21 Sat Jan 3, 2009 |
| 75 |
|
| 76 |
[FEATURES] |
| 77 |
- This now works: |
| 78 |
$webapp->query($new_query_object); |
| 79 |
Setting a new query object can be useful in combination with |
| 80 |
CGI::Application::Server. (Jaldhar Vyas) |
| 81 |
|
| 82 |
[DOCUMENTATION] |
| 83 |
- More typo fixes (Lyle) |
| 84 |
|
| 85 |
4.20 Sat Nov 1, 2008 |
| 86 |
|
| 87 |
[DOCUMENTATION] |
| 88 |
- typo fix (Lyle) |
| 89 |
|
| 90 |
4.19_1 Fri Sep 27, 2008 |
| 91 |
|
| 92 |
[FEATURES] |
| 93 |
- New 'html_tmpl_class' method allows you to specify an alternative |
| 94 |
HTML::Template class. This technique will eliminate the need to use |
| 95 |
a plugin for HTML::Template-compatible classes. See the docs |
| 96 |
for load_tmpl() for details. |
| 97 |
|
| 98 |
Thanks to Rhesa Rozendaal for the initial patch, and Mark Stosberg for |
| 99 |
documentation refinements. |
| 100 |
|
| 101 |
[DOCUMENTATION] |
| 102 |
- typo fix (George Hartzell) |
| 103 |
- Revert back to documenting the use of "$self", not $c, after community |
| 104 |
feedback. |
| 105 |
|
| 106 |
[INTERNALS] |
| 107 |
- Change how default run modes are declared for better compatibility |
| 108 |
with AutoRunmode and RunmodeDeclare plugins. Thanks Rhesa via RT#39631. |
| 109 |
|
| 110 |
4.11 Sun Aug 10, 2008 |
| 111 |
No code changes. |
| 112 |
|
| 113 |
[DOCUMENTATION] |
| 114 |
- Fix POD syntax issue. |
| 115 |
|
| 116 |
4.10 Tue Jun 17, 2008 |
| 117 |
|
| 118 |
This release maintains the same API public from 4.06. Changes since the |
| 119 |
last stable release include documentation updates and refactors to the internal |
| 120 |
of CGI::Application. |
| 121 |
|
| 122 |
[DOCUMENTATION] |
| 123 |
Several documentation improvements (Mark Stosberg) |
| 124 |
- Reformat POD so methods are easier browse on CPAN |
| 125 |
- Highlight some specific, common plugins to use |
| 126 |
- Mention that we now have two CGI::App specific testing tools to use |
| 127 |
Test::WWW::Mechanize::CGIApp and Test::WWW::Selenium::CGIApp |
| 128 |
- Introduce and recommend CGI::Application::Dispatch |
| 129 |
- Consolidated the documentation on error_mode() |
| 130 |
- Split out those application methods which are essential from |
| 131 |
those that are not. |
| 132 |
- Use and recommend "$c" instead of "$self" to cut down on |
| 133 |
typing for something that is abstract anyway, and represented |
| 134 |
a simple "." in Perl 6. |
| 135 |
- Mention CGI::Application::Server for offline website development. |
| 136 |
- Update the introduction to clarify that we are a proven, lightweight |
| 137 |
option. |
| 138 |
- Removed the "experimental" flag on the error hook. |
| 139 |
- Mention in the second Perl.com article in the "more reading" section. |
| 140 |
- Document darcs repo URL. (Suggested by Gabor) |
| 141 |
|
| 142 |
4.07_03 Mon Jun 16, 2008 |
| 143 |
|
| 144 |
[INTERNALS] |
| 145 |
- The refactor to split up run() in 4.07_01 started to always pass the run mode |
| 146 |
name as an argument to run modes. The behavior has now been reverted to |
| 147 |
only pass the run mode name in the AUTOLOAD case. (Mark Stosberg) |
| 148 |
|
| 149 |
[DOCUMENTATION] |
| 150 |
- Fix typo in example. Thanks to Lesley Binks. |
| 151 |
- document that header_props() can be usefully called with no arguments |
| 152 |
to return the current headers. Thanks to neuhaus, RT#33992. |
| 153 |
|
| 154 |
|
| 155 |
4.07_02 Weds Oct 31, 2007 |
| 156 |
|
| 157 |
[DOCUMENTATION] |
| 158 |
- typo corrections (Evan Zacks) |
| 159 |
- The docs for header_type() have been improved, including an example of using |
| 160 |
CGI::Applicatin::Plugin::Redirect (Mark Stosberg) |
| 161 |
|
| 162 |
[INTERNALS] |
| 163 |
- Reverted switch to Class::MOP in 4.07_01, which benchmarking showed |
| 164 |
to be slower. (Mark Stosberg) |
| 165 |
- Beautify the code for _send_headers (Chris Dolan, Mark Stosberg) |
| 166 |
|
| 167 |
4.07_01 Sun Jul 2, 2006 |
| 168 |
|
| 169 |
[INTERNALS] |
| 170 |
- Switched from using Class::ISA to Class::MOP for introspection. Class::MOP |
| 171 |
models the way this will be done Perl6, providing the same result. (Mark Stosberg) |
| 172 |
- better test diagnostics (rjbs) |
| 173 |
- improve test coverage (rjbs) |
| 174 |
- improve consistency of checks for false/0len/undef (rjbs) |
| 175 |
- split &run up into chunks (not yet finalized). New methods currently include: |
| 176 |
__get_runmode |
| 177 |
__get_runmeth |
| 178 |
__get_body |
| 179 |
Feedback is welcome on whether these should be exposed to the user, with |
| 180 |
(possibly) better names. (rjbs) |
| 181 |
|
| 182 |
4.06 Wed Apr 12, 2006 |
| 183 |
(No code changes) |
| 184 |
- Updated tests to work with status codes emitted before and after CGI.pm 3.16. |
| 185 |
The requirement for CGI.pm 3.16 or newer has been relaxed, so any version |
| 186 |
of CGI.pm will do. (Rhesa) |
| 187 |
|
| 188 |
4.05 Wed Mar 1, 2006 |
| 189 |
(No code changes) |
| 190 |
|
| 191 |
- Updated tests for redirects to check for 'Found', not 'Moved'. |
| 192 |
This correctly matches the standard, and was changed in CGI.pm 3.16. |
| 193 |
As a result, we now require CGI.pm 3.16 for consistent results. |
| 194 |
|
| 195 |
4.04 Wed Oct 11, 2005 |
| 196 |
- No code changes since 4.04_02. Declaring stable. |
| 197 |
|
| 198 |
4.04_02 Thu Sep 8, 2005 |
| 199 |
- Add support for templates stored in file handles and scalarrefs to load_tmpl(). |
| 200 |
(Jason Purdy) |
| 201 |
|
| 202 |
4.04_01 Wed Aug 31, 2005 |
| 203 |
- move load_tmpl hook to after we build $tmpl_file so it will always have a |
| 204 |
(probably) valid file to work with. |
| 205 |
|
| 206 |
- initial support for a default template name in load_tmpl(). That means |
| 207 |
you can now do this: |
| 208 |
|
| 209 |
my $t = $self->load_tmpl(); |
| 210 |
|
| 211 |
And it will default to a file named after the current run mode with a |
| 212 |
.html extension. |
| 213 |
|
| 214 |
4.03 Thu Aug 04, 2005 |
| 215 |
- Fixed important bug introduced in 4.02 in which a mode_param |
| 216 |
set in a sub-class would have been ignored. A new automated test |
| 217 |
was added to prevent this regression in the future. |
| 218 |
|
| 219 |
4.02 Sat Jul 30, 2005 |
| 220 |
|
| 221 |
- Documented existence of CGI::Application::Plugin::FillInForm. |
| 222 |
|
| 223 |
- path_info option to mode_param now supports negative index numbers |
| 224 |
to grab the run mode name from the other end of the PATH_INFO. |
| 225 |
(Thilo Planz) |
| 226 |
|
| 227 |
- Altered how "start_mode" default is set, allowing it to be set |
| 228 |
through the hook system in the 'init' phase. Existing applications |
| 229 |
should be unaffected. |
| 230 |
|
| 231 |
- Return value of run_modes() was documented. |
| 232 |
|
| 233 |
- Integrate more examples of using plugins into the documentation. |
| 234 |
|
| 235 |
- 'error' hook was added, which is executed just before error_mode() might |
| 236 |
be called. An example use of this would be a logging plugin that wants to |
| 237 |
log that the application died. Although it's unlikely to change, it is marked |
| 238 |
as experimental for now. |
| 239 |
|
| 240 |
4.01 Tue Jun 14, 2005 |
| 241 |
|
| 242 |
NOTE: This release has an important incompatibility from the 4.0 release |
| 243 |
two days ago. The 'load_tmpl' hook which was just introduced has had it's |
| 244 |
interface changed. The change allows plug-in authors to affect the parameters |
| 245 |
passed to the 'new' constructor of the template object, instead of just adding |
| 246 |
parameters later. |
| 247 |
|
| 248 |
4.0 Fri Jun 10, 2005 |
| 249 |
This release adds a major new feature of special interest to plugin |
| 250 |
authors: 'hooks'. This concept helps to create plugins that are more powerful |
| 251 |
and simpler to use for end users. See the documentation on writing plugins for |
| 252 |
details. |
| 253 |
|
| 254 |
Special thanks to Cees Hek and Michael Graham for their effort to develop |
| 255 |
and refine the hook system. |
| 256 |
|
| 257 |
Since the last major release, there has been an explosion of new plugins |
| 258 |
developed. This is an incomplete list of modules below the |
| 259 |
'CGI::Application::Plugin' namespace. Expect more to be added and updated soon |
| 260 |
with the advent of the hook system: |
| 261 |
|
| 262 |
::AnyTemplate - Use any templating system with a unified interface |
| 263 |
::Apache - Use Apache::* modules without interference |
| 264 |
::AutoRunmode - Automatically register runmodes |
| 265 |
::ConfigAuto - Integration with Config::Auto |
| 266 |
::Config::Context - Integration with Config::Context |
| 267 |
::Config::General - Integration with Config::General |
| 268 |
::Config::Simple - Integration with Config::Simple |
| 269 |
::CompressGzip - Add Gzip compression |
| 270 |
::DBH - Integration with DBI |
| 271 |
::LogDispatch - Integration with Log::Dispatch |
| 272 |
::Session - Integration with CGI::Session |
| 273 |
::Stream - Help stream files to the browser |
| 274 |
::TT - Use Template::Toolkit as an alternative to HTML::Template |
| 275 |
::ValidateRM - Integration with Data::FormValidator and HTML::FillInForm |
| 276 |
|
| 277 |
The following additional changes are also present in this release: |
| 278 |
|
| 279 |
- Enhanced tests and documentation for error_mode(). (Rob Kinyon). |
| 280 |
- Clarified Plug-in documentation (Timothy Appnel) |
| 281 |
- Avoid some warnings when getting run mode from PATH_INFO (Emanuele Zeppieri) |
| 282 |
- Use query() object to get PATH_INFO, to workaround bug in IIS web server. (Mark Stosberg) |
| 283 |
- Documented return value of header_props() |
| 284 |
|
| 285 |
3.31 Sun Sep 26, 2004 |
| 286 |
- Documentation clean-ups. No code changes. |
| 287 |
|
| 288 |
3.30 Sun Sep 26, 2004 |
| 289 |
- Refactored test suite to use Test::More (Gabor Szabo) |
| 290 |
- Removed warnings being emitted for documented API calls |
| 291 |
- minor code clean-up to load_tmpl() (Emanuele Zeppieri) |
| 292 |
- Support for passing multiple template paths to HTML::Template (Michael Peters) |
| 293 |
- Added error_mode to support trapping runmodes dying (Rob Kinyon) |
| 294 |
- Added Plug-in related documentation. (Mark Stosberg) |
| 295 |
- mode_param() updated to more easily set the run mode from $ENV{PATH_INFO} (Mark Stosberg) |
| 296 |
|
| 297 |
3.22 Fri Feb 13, 2004 |
| 298 |
- The nocgicarp flag introduced in 3.2 has now been removed due |
| 299 |
to ill importing side effects. Instead, we now simply use Carp |
| 300 |
instead of CGI::Carp. You must now explicitly load CGI::Carp if you want |
| 301 |
it. Any code that used the brief-lived 'nocgicarp' feature will need to |
| 302 |
be updated. |
| 303 |
- Support for run modes named '0'. (Josh Glover) |
| 304 |
|
| 305 |
3.21 Wed Feb 4, 2004 |
| 306 |
- Updated some header tests to be compatible with old and new versions of CGI.pm, which |
| 307 |
handled the capitalization of the header differently. (Mark Stosberg) |
| 308 |
|
| 309 |
3.2 Sat Jan 31, 2004 |
| 310 |
- header_add() has been added to allow setting extra headers, particularly cookies, |
| 311 |
after header_props has already been called (Cees Hek, Mark Stosberg) |
| 312 |
- CGI::Carp is now optional. See docs for details. (Steve Hay) |
| 313 |
- Avoid 'unitialized value' warning on redirects (Cees Hek) |
| 314 |
- Some tests added (Mark Stosberg) |
| 315 |
- Updated documentation to use term "Run Mode" consistently, versus "Run-Mode" with |
| 316 |
a dash. Run-mode-with-a-dash is dead. Don't revive it. Also added mentions |
| 317 |
of the CGI::Application wiki and CGI::Application::ValidateRM |
| 318 |
(Mark Stosberg) |
| 319 |
- Fixed typo in cgiapp_postrun documentation (Steve Hay) |
| 320 |
- Improved exception handling (Steve Hay) |
| 321 |
- delete() method added to remove items stored using param() (Michael Peters) |
| 322 |
- 'CGI_APP_RETURN_ONLY' environment variable that is used for testing is now |
| 323 |
documented (Michael Peters) |
| 324 |
- dump_html() is now properly HTML-escaped (podmaster, Brian Cassidy) |
| 325 |
- Migrated from Makefile.PL to Build.PL. Either can now be used for installation. |
| 326 |
- Updated 'Changes' file to put new releases on top. |
| 327 |
|
| 328 |
3.1 Mon Jun 2 07:54:31 EDT 2003 |
| 329 |
- Changed dump_html default run mode to be referenced by name |
| 330 |
instead of sub-ref. This allows dump_html() to be overridden |
| 331 |
in sub-class. |
| 332 |
- Added current run mode to output of dump() and dump_html(). |
| 333 |
(Thanks to Mark Stosberg for the suggestion.) |
| 334 |
- Added example of doing an HTTP redirect (suggested by Sam Tregar) |
| 335 |
- Fixed bug where non-CGI.pm query objects couldn't be set |
| 336 |
at initialization time via the new() method. (Thanks to Steve |
| 337 |
Hay for the catch.) |
| 338 |
- Added header_type("none") to surpress HTTP header output. |
| 339 |
(Thanks to Steve Comrie for the suggestion.) |
| 340 |
- Numerous typos corrected in POD. |
| 341 |
- Added cgiapp_postrun() hook. This hook allows run mode output |
| 342 |
to be "pipelined" through optional filters, modifying the |
| 343 |
content and HTTP headers if so desired. |
| 344 |
|
| 345 |
3.0 Sat Feb 1 02:27:19 EST 2003 |
| 346 |
- Changed run_modes() method to allow list of run modes to be |
| 347 |
designated via an array reference. This will automatically |
| 348 |
create a run modes table which maps from a run mode to a |
| 349 |
run mode method of the same name. Bumped major revision |
| 350 |
number to reflect this significant change in functionality. |
| 351 |
- Clarified license for module (GPL or Artistic). Included |
| 352 |
licenses in distribution package. |
| 353 |
|
| 354 |
2.6 Mon Oct 7 07:34:35 EDT 2002 |
| 355 |
- Changed the run() method to use Perl's built-in dynamic method |
| 356 |
call for all run modes, whether by name or by code ref. This |
| 357 |
is intended to improve run-time performance somewhat. Thanks |
| 358 |
to Darin McBride for this patch. |
| 359 |
- Added new override-able method cgiapp_get_query(). This method |
| 360 |
is called when CGI::Application first needs access to the CGI |
| 361 |
query object. By default, this is a CGI.pm object. It is |
| 362 |
possible to override the cgiapp_get_query() method to return |
| 363 |
an object of some other module besides CGI.pm, providing |
| 364 |
that it is sufficiently compatible. Thanks to Eric Andreychek |
| 365 |
for the suggestion and his help troubleshooting the code. |
| 366 |
|
| 367 |
2.5 Thu Jul 18 07:45:47 EDT 2002 |
| 368 |
- Changed mailing list address. The new mailing list address. |
| 369 |
To subscribe: [email protected] |
| 370 |
To post message: [email protected] |
| 371 |
|
| 372 |
2.4 Sat May 25 13:32:44 EDT 2002 |
| 373 |
- Modified tmpl_path() to propagate to HTML::Template's PATH |
| 374 |
parameter. This provides much more useful and intuitive |
| 375 |
behavior. Thanks to Sam Tregar for the patch! |
| 376 |
- Added prerun_mode() method to allow the run mode to be |
| 377 |
dynamically changed inside the cgiapp_prerun() method. |
| 378 |
Thanks to Steve Comrie for the suggestion of using a |
| 379 |
method call for this function. Thanks to many other list |
| 380 |
members for further refining this idea. |
| 381 |
- Refactored some test cases, general code clean-up. |
| 382 |
- Refactored POD a bit to make it less intimidating for |
| 383 |
new users. |
| 384 |
|
| 385 |
2.3 Mon May 6 07:12:09 EDT 2002 |
| 386 |
- Fixed minor bug in build system for older Perl versions. |
| 387 |
|
| 388 |
2.2 Sun Aug 19 12:20:21 EDT 2001 |
| 389 |
- Added new module CGI::Application::Mailform as both an |
| 390 |
example of how to use CGI::Application and a useful |
| 391 |
(albeit simple) reusable web-based application. |
| 392 |
- CGI::Application::Mailform allows the contents of |
| 393 |
data submitted through HTML forms to be easily sent |
| 394 |
via email to a specified recipient. This application |
| 395 |
is intended to be very easy to reuse, yet secure |
| 396 |
and functional enough to replace some of the most |
| 397 |
onerous "mailform" scripts which have been floating |
| 398 |
around the Internet for ages. |
| 399 |
- Added cgiapp_prerun() hook, for adding global behaviors |
| 400 |
before the run mode method is called. The cgiapp_prerun() |
| 401 |
gets the name of the run mode as a parameter. This would |
| 402 |
allow the user to perform some action based on the |
| 403 |
current run mode. |
| 404 |
|
| 405 |
2.1 Sat Aug 11 12:57:49 EDT 2001 |
| 406 |
- The param() method has been extended to allow multiple parameters |
| 407 |
to be set at one time, via a hash (or hashref). |
| 408 |
- Fixed bug in run() method where a null-string run mode would be |
| 409 |
considered valid. A zero-length run mode will now result in the |
| 410 |
start_mode() being called. |
| 411 |
(Thanks to Mark Stosberg for the two preceding ideas!) |
| 412 |
- The run_mode() method now may be called a subsequent time to |
| 413 |
amend the list of run modes. |
| 414 |
|
| 415 |
2.0 Sun Jun 24 23:01:58 EDT 2001 |
| 416 |
- Added ability to set mode_param() to use a call-back instance method |
| 417 |
(specified by subref) instead of a CGI parameter. |
| 418 |
- HTML::Template is now only loaded if load_tmpl() is called. |
| 419 |
(Thanks to Stephen Howard for the two preceding ideas!) |
| 420 |
- Run modes may now return scalar-refs in addition to scalars. |
| 421 |
- Added new run mode of last resort: "AUTOLOAD". See POD for usage. |
| 422 |
- Updated MAJOR REVISION number to 2 -- new functionality deserves it. |
| 423 |
|
| 424 |
1.31 Mon May 28 14:06:16 EDT 2001 |
| 425 |
- Updated docs to favor new name-based run mode method references. |
| 426 |
|
| 427 |
1.3 Sun May 20 18:48:36 EDT 2001 |
| 428 |
- Enhanced capabilities for creating general superclasses for your projects. |
| 429 |
- All run modes may be referenced by method name, in addition to subref. |
| 430 |
- Created cgiapp_init() hook to allow for inherited common behaviors. |
| 431 |
- Fixed minor bugs in default values. |
| 432 |
|
| 433 |
1.2 Fri Jul 14 01:49:30 EDT 2000 |
| 434 |
- Modified load_tmpl() to pass extra params to HTML::Template->new_file(). |
| 435 |
- Fixed up the docs a bit. |
| 436 |
- Minor code clean-up. |
| 437 |
|
| 438 |
1.1 Tue Jul 11 22:59:17 EDT 2000 |
| 439 |
- Tweaked test.pl to avoid CGI.pm command line debugging interface |
| 440 |
which requires user to hit CTRL-D to continue |
| 441 |
- Added ANNOUNCE file. |
| 442 |
|
| 443 |
1.0 Mon Jul 10 23:47:30 2000 |
| 444 |
- Release 1.0 complete. Woohoo! |
| 445 |
|
| 446 |
0.01 Mon Jul 3 20:40:30 2000 |
| 447 |
- original version; created by h2xs 1.19 |