Grape v0.12.0 Release Notes
-
๐ Features
- ๐ #995: Added support for coercion to Set or Set[Other] - @jordansexton @u2.
- ๐ #980: Grape is now eager-loaded - @u2.
- ๐ #956: Support
present
withGrape::Presenters::Presenter
- @u2. - ๐ #974: Added
error!
torescue_from
blocks - @whatasunnyday. - ๐ #950: Status method can now accept one of Rack::Utils status code symbols (:ok, :found, :bad_request, etc.) - @dabrorius.
- ๐ #952: Status method now raises error when called with invalid status code - @dabrorius.
- ๐ #957: Regexp validator now supports
allow_blank
,nil
value behavior changed - @calfzhou. - 0๏ธโฃ #962: The
default
attribute withfalse
value is documented now - @ajvondrak. - ๐ #1026: Added
file
method, explicitly setting a file-like response object - @dblock.
๐ Fixes
- 0๏ธโฃ #994: Fixed optional Array params default to Hash - @u2.
- ๐ #988: Fixed duplicate identical endpoints - @u2.
- 0๏ธโฃ #936: Fixed default params processing for optional groups - @dm1try.
- ๐ #942: Fixed forced presence for optional params when based on a reused entity that was also required in another context - @croeck.
- ๐ #1001: Fixed calling endpoint with specified format with format in its path - @hodak.
- ๐ #1005: Fixed the Grape::Middleware::Globals - @urkle.
- ๐ #1012: Fixed
allow_blank: false
with a Boolean value offalse
- @mfunaro. - ๐ #1023: Fixes unexpected behavior with
present
and an object that responds tomerge
but isn't a Hash - @dblock. - ๐ #1017: Fixed
undefined method stringify_keys
with nested mutual exclusive params - @quickpay.