1.6.0 (2017/09/01)
* Rack::PostBodyContentTypeParser: if the middleware is told a POST body is
JSON, but it doesn't parse as JSON, then... it's not really JSON, and the
request is now rejected with a 400 response. Thanks to Yukihiko SAWANOBORI
(@sawanoboly) for the fix.
1.5.0 (2017/07/19)
After an extended hiatus, rack-contrib maintenance is back on track. This
is a tidy-up release, merging things that have sat around for far too long.
* git-version-bump has now been moved to being a development dependency,
thanks to Tobias Haagen Michaelsen.
* Rack::AcceptLocale can be restricted to a set of enforced locales, thanks to
Paco Guzman.
* Rack::NotFound's path argument is now optional, thanks to Ed Morley.
* Rack::BounceFavicon now has a description and tests, thanks to Steven
Wilkin.
* The automated Travis CI suite now tests all supported Ruby versions up to
2.4, which necessitated a few small changes.
v1.4.0: Features, Features Everywhere, and not a bug to fix
There's a bumper crop of new features this month. Share and enjoy!
Deprecations
* Rack::AcceptFormat is slated for removal in rack-contrib 2.0.0 (due on or
after 1 January, 2016. Using this middleware will now result in a
deprecation warning being printed to stderr. If you use this middleware, now
would be a good time to start doing things properly.
Features
* Rack::LazyConditionalGet: new middleware, by Mig. This middleware tracks
when the last POST/PUT/DELETE request was made, and returns 304 responses to
requests which include a Last-Modified entity request header which is
greater than or equal to that time.
* Rack::StaticCache: You can now specify a custom "version" regex for your
cache invalidation, if the default doesn't do it for you. Initial patch
provided by Eric Boehs.
* Rack::Profiler: You can now run a single request through the profiler
multiple times, by adding the profiler_runs query parameter to the
URL. Patch provided by Bryce McDonnell.