Sinatra v2.1.0 Release Notes

Release Date: 2020-09-05 // about 1 year ago
    • πŸ›  Fix additional Ruby 2.7 keyword warnings #1586 by Stefan Sundin

    • ⬇️ Drop Ruby 2.2 support #1455 by Eloy PΓ©rez

    • βž• Add Rack::Protection::ReferrerPolicy #1291 by Stefan Sundin

    • Add default_content_type setting. Fixes #1238 #1239 by Mike Pastore

    • πŸ‘ Allow set :<engine> in sinatra-namespace #1255 by Christian HΓΆppner

    • πŸ›  Use prepend instead of include for helpers. Fixes #1213 #1214 by Mike Pastore

    • πŸ›  Fix issue with passed routes and provides Fixes #1095 #1606 by Mike Pastore, Jordan Owens

    • βž• Add QuietLogger that excludes pathes from Rack::CommonLogger 1250 by Christoph Wagner

    • ⚑️ Sinatra::Contrib dependency updates. Fixes #1207 #1411 by Mike Pastore

    • πŸ‘ Allow CSP to fallback to default-src. Fixes #1484 #1490 by Jordan Owens

    • Replace origin_whitelist with permitted_origins. Closes #1620 #1625 by rhymes

    • πŸ‘‰ Use Rainbows instead of thin for async/stream features. Closes #1624 #1627 by Ryuichi KAWAMATA

    • Enable EscapedParams if passed via settings. Closes #1615 #1632 by Anders BΓ€lter

    • πŸ‘Œ Support for parameters in mime types. Fixes #1141 by John Hope

    • πŸ– Handle null byte when serving static files #1574 by Kush Fanikiso

    • πŸ‘Œ Improve development support and documentation and source code by Olle Jonsson, Pierre-Adrien Buisson, Shota Iguchi


Previous changes from v2.0.8

    • πŸ›  Lookup Tilt class for template engine without loading files #1558. Fixes #1172 by Jordan Owens

    • βž• Add request info in NotFound exception #1566 by Stefan Sundin

    • βž• Add .yaml support in Sinatra::Contrib::ConfigFile #1564. Fixes #1563 by Emerson Manabu Araki

    • πŸ‘ Allow multiple hashes to be passed in merge and merge! for Sinatra::IndifferentHash #1572 by Shota Iguchi

    • βœ‚ Remove only routing parameters from @params hash #1569. Fixes #1567 by Jordan Owens, Horacio

    • πŸ‘Œ Support capture and content_for with Hamlit #1580 by Takashi Kokubun

    • ⚠ Eliminate warnings of keyword parameter for Ruby 2.7.0 #1581 by Osamtimizer