December 2019 Archives

Dancer2 0.300000 released

The Dancer Core Team has one more holiday treat in store for you: Dancer2 0.300000 is headed to CPAN, and it's a good one: Dancer now offers typed route parameters!

To be clear, all of the existing route syntax is unaffected. You don't have to use types, and typed parameters might not be good for all situations. There is a lot to be gained from having them though, and we're excited to bring them to you!

Using them in your own code is simple:

get '/thing/:id[Int]' => sub {};

# if not Int then perhaps a Num...
get '/thing/:id[Num]' => sub {};

The default type checking library is Type::Tiny, but you can also specify your own type checking library too. See the manual for more information.

A big thanks to SysPete for making this long-standing request a reality.

I'd also like to apologize to Tom Hukins. I erroneously listed a PR of his in the last release that didn't seem to make it in. I believe that I have made things better in this release.

Happy holidays from your friends at Dancer! See you in 2020.

Dancer2 0.208002

Your gift is arriving just a bit early this year: a new Dancer2 just in time for the holidays!

There are a number of documentation fixes and enhancements in this version. The largest change you will see under the hood removes Return::MultiLevel (and therefore Scope::Upper) from the list of Dancer2 dependencies, and makes your favorite lightweight web application framework just a little bit lighter.

The full changelog follows:

0.208002  2019-12-14 16:08:46-05:00 America/New_York

[ BUG FIXES ]
* GH#1527: Update travis dist to 'trusty' (Sergiy Borodych)

[ ENHANCEMENTS ]
* GH #1525: Remove use of Return::MultiLevel, and implement stack frame 
  jumping manually (Graham Knop)

[ DOCUMENTATION ]
* GH #1505: Fix Flaskr link (Mohammad S Anwar)
* GH #1506, 1520: Explain what add_route() does with args (Tom Hukins)
* GH #1519: Fix Template Toolkit config docs (Tom Hukins)
* GH #1522: Fix itetare typo (Stefan Hornburg - Racke)
* GH #1523: Fix typo in Template Toolkit documentation (Mike Katasonov)
* GH #1524: Fix error in configuration documentation (Tom Hukins)
* GH #1526: Mention that TT2 config start_tag/end_tag need escaping 
  (Chris White)
* GH #1528: Note that"Engines" key must be merged in config.yml (Chris
  White)

Barring any show-stopping bugs or security vulnerabilities, this will be the last release of the year. Happy holidays, and we will see you in 2020!

About Jason A. Crome

user-pic Dancer developer, pilot, and hockey player.