diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e97a7b..5fb3ca1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ ## [Unreleased] +## [0.2.0] - 2023-03-24 + +- `Apigatewayv2Rack.handle_request` now takes a block and pass rack env and `Apigatewayv2Rack::Request` object to allow final modification before passing env to a Rack app. +- `Apigatewayv2Rack.generate_handler` and `handler_from_rack_config_file` propagates given block to `handle_request` for the enhancement above. +- Introduce `Apigatewayv2Rack::Middlewares::CloudfrontXff` and `Apigatewayv2Rack::Middlewares::CloudfrontVerify` as a helper middleware. + ## [0.1.3] - 2023-03-22 - Fixed Errno::EACCES from StringIO when a streaming body (body does not respond to `#each`) is returned diff --git a/Gemfile.lock b/Gemfile.lock index b2f473a..8d88985 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - apigatewayv2_rack (0.1.3) + apigatewayv2_rack (0.2.0) rack GEM @@ -33,4 +33,4 @@ DEPENDENCIES rspec (~> 3.0) BUNDLED WITH - 2.3.16 + 2.3.21 diff --git a/lib/apigatewayv2_rack/version.rb b/lib/apigatewayv2_rack/version.rb index f81add9..668d15f 100644 --- a/lib/apigatewayv2_rack/version.rb +++ b/lib/apigatewayv2_rack/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Apigatewayv2Rack - VERSION = "0.1.3" + VERSION = "0.2.0" end