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 with Grape::Presenters::Presenter - @u2.
    • ๐Ÿ’Ž #974: Added error! to rescue_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 with false 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 of false - @mfunaro.
    • ๐Ÿ”€ #1023: Fixes unexpected behavior with present and an object that responds to merge but isn't a Hash - @dblock.
    • ๐Ÿ’Ž #1017: Fixed undefined method stringify_keys with nested mutual exclusive params - @quickpay.