Sinatra v2.2.0 Release Notes

Release Date: 2022-02-15 // 10 months ago
    • πŸ– Handle EOFError raised by Rack and return Bad Request 400 status. #1743 by tamazon

    • πŸ”¨ Minor refactors in base.rb. #1640 by ceclinux

    • βž• Add escaping to the static 404 page. #1645 by Chris Gavin

    • Remove detect_rack_handler method. #1652 by ceclinux

    • πŸ›  Respect content type set in superclass before filter. Fixes #1647 #1649 by Jordan Owens

    • βͺ Revert "Use prepend instead of include for helpers. #1662 by namusyaka

    • πŸ›  Fix usage of inherited Sinatra::Base classes keyword arguments. Fixes #1669 #1670 by Cadu Ribeiro

    • ⬇️ Reduce RDoc generation time by not including every README. Fixes #1578 #1671 by Eloy PΓ©rez

    • βž• Add support for per form csrf tokens. Fixes #1616 #1653 by Jordan Owens

    • ⚑️ Update MAINTENANCE.md with the stable branch status. #1681 by Fredrik Rubensson

    • Validate expanded path matches public_dir when serving static files. #1683 by cji-stripe

    • πŸ›  Fix Delegator to pass keyword arguments for Ruby 3.0. #1684 by andrewtblake

    • πŸ›  Fix use with keyword arguments for Ruby 3.0. #1701 by Robin Wallin

    • πŸ›  Fix memory leaks for proc template. Fixes #1704 #1719 by Slevin

    • βœ‚ Remove unnecessary test_files from the gemspec. #1712 by Masataka Pocke Kuwabara

    • βž• Add #select, #reject and #compact methods to Sinatra::IndifferentHash. #1711 by Olivier Bellone

    • πŸ“„ Docs: Spanish documentation: Update README.es.md with removal of Thin. #1630 by Espartaco Palma

    • πŸ“„ Docs: German documentation: Fixed typos in German README.md. #1648 by Juri

    • πŸ“„ Docs: Japanese documentation: Update README.ja.md with removal of Thin. #1629 by Ryuichi KAWAMATA

    • πŸ“„ Docs: English documentation: Various minor fixes to README.md. #1663 by Yanis ZafirΓ³pulos

    • πŸ“„ Docs: English documentation: Document when dump_errors is enabled. Fixes #1664 #1665 by Patrik Ragnarsson

    • πŸ“„ Docs: Brazilian Portuguese documentation: Update README.pt-br.md with translation fixes. #1668 by Vitor Oliveira

    CI

    • βœ… Use latest JRuby 9.2.16.0 on CI. #1682 by Olle Jonsson

    • πŸ‘· Switch CI from travis to GitHub Actions. #1691 by namusyaka

    • Skip the Slack action if secrets.SLACK_WEBHOOK is not set. #1705 by Robin Wallin

    • πŸ‘· Small CI improvements. #1703 by Robin Wallin

    • ⬇️ Drop auto-generated boilerplate comments from CI configuration file. #1728 by Olle Jonsson

    sinatra-contrib

    • Do not raise when key is an enumerable. #1619 by Ulysse Buonomo

    Rack protection

    • πŸ›  Fix broken origin_whitelist option. Fixes #1641 #1642 by Takeshi YASHIRO

Previous changes from v2.1.0

    • πŸ›  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