sinatra/sinatra (sinatra)
### [`v4.0.0`](https://redirect.github.com/sinatra/sinatra/blob/HEAD/CHANGELOG.md#400--2024-01-19)
[Compare Source](https://redirect.github.com/sinatra/sinatra/compare/v3.2.0...v4.0.0)
- New: Add support for Rack 3 ([#1857])
- Note: you may want to read the [Rack 3 Upgrade Guide]
- Require Ruby 2.7.8 as minimum Ruby version ([#1993])
- Breaking change: Drop support for Rack 2 ([#1857])
- Note: when using Sinatra to start the web server, you now need the `rackup` gem installed
- Breaking change: Remove the `IndifferentHash` initializer ([#1982])
- Breaking change: Disable `session_hijacking` protection by default ([#1984])
- Breaking change: Remove `Rack::Protection::EncryptedCookie` ([#1989])
- Note: cookies are still encrypted (by [`Rack::Session::Cookie`][Rack::Session::Cookie])
[#1857]: https://redirect.github.com/sinatra/sinatra/pull/1857
[#1993]: https://redirect.github.com/sinatra/sinatra/pull/1993
[#1982]: https://redirect.github.com/sinatra/sinatra/pull/1982
[#1984]: https://redirect.github.com/sinatra/sinatra/pull/1984
[#1989]: https://redirect.github.com/sinatra/sinatra/pull/1989
[`Rack::Session::Cookie`]: https://redirect.github.com/rack/rack-session
[Rack 3 Upgrade Guide]: https://redirect.github.com/rack/rack/blob/main/UPGRADE-GUIDE.md
### [`v3.2.0`](https://redirect.github.com/sinatra/sinatra/blob/HEAD/CHANGELOG.md#320--2023-12-29)
[Compare Source](https://redirect.github.com/sinatra/sinatra/compare/v3.1.0...v3.2.0)
- New: Add `#except` method to `Sinatra::IndifferentHash` ([#1940])
- New: Use `Exception#detailed_message` to show backtrace ([#1952])
- New: Add `Sinatra::HamlHelpers` to sinatra-contrib ([#1960])
- Fix: Add `base64` to rack-protection runtime dependencies ([#1946])
- Fix: Avoid open-ended dependencies for sinatra-contrib and rack-protection ([#1949])
- Fix: Helpful message when `Sinatra::Runner` times out ([#1975])
- Fix: Ruby 3.3 + Bundler 2.5 compatibility ([#1975])
[#1940]: https://redirect.github.com/sinatra/sinatra/pull/1940
[#1946]: https://redirect.github.com/sinatra/sinatra/pull/1946
[#1949]: https://redirect.github.com/sinatra/sinatra/pull/1949
[#1952]: https://redirect.github.com/sinatra/sinatra/pull/1952
[#1960]: https://redirect.github.com/sinatra/sinatra/pull/1960
[#1975]: https://redirect.github.com/sinatra/sinatra/pull/1975
### [`v3.1.0`](https://redirect.github.com/sinatra/sinatra/blob/HEAD/CHANGELOG.md#310--2023-08-07)
[Compare Source](https://redirect.github.com/sinatra/sinatra/compare/v3.0.6...v3.1.0)
- New: Add sass support via sass-embedded [#1911] by なつき
- New: Add start and stop callbacks [#1913] by Jevin Sew
- New: Warn on dropping sessions [#1900] by Jonathan del Strother
- New: Make Puma the default server [#1924] by Patrik Ragnarsson
- Fix: Remove use of Tilt::Cache [#1922] by Jeremy Evans (allows use of Tilt 2.2.0 without deprecation warning)
- Fix: rack-protection: specify rack version requirement [#1932] by Patrik Ragnarsson
[#1911]: https://redirect.github.com/sinatra/sinatra/pull/1911
[#1913]: https://redirect.github.com/sinatra/sinatra/pull/1913
[#1900]: https://redirect.github.com/sinatra/sinatra/pull/1900
[#1924]: https://redirect.github.com/sinatra/sinatra/pull/1924
[#1922]: https://redirect.github.com/sinatra/sinatra/pull/1922
[#1932]: https://redirect.github.com/sinatra/sinatra/pull/1932
### [`v3.0.6`](https://redirect.github.com/sinatra/sinatra/blob/HEAD/CHANGELOG.md#306--2023-04-11)
[Compare Source](https://redirect.github.com/sinatra/sinatra/compare/v3.0.5...v3.0.6)
- Fix: Add support to keep open streaming connections with Puma [#1858](https://redirect.github.com/sinatra/sinatra/pull/1858) by Jordan Owens
- Fix: Avoid crash in `uri` helper on Integer input [#1890](https://redirect.github.com/sinatra/sinatra/pull/1890) by Patrik Ragnarsson
- Fix: Rescue `RuntimeError` when trying to use `SecureRandom` [#1888](https://redirect.github.com/sinatra/sinatra/pull/1888) by Stefan Sundin
### [`v3.0.5`](https://redirect.github.com/sinatra/sinatra/blob/HEAD/CHANGELOG.md#305--2022-12-16)
[Compare Source](https://redirect.github.com/sinatra/sinatra/compare/v3.0.4...v3.0.5)
- Fix: Add Zeitwerk compatibility. [#1831](https://redirect.github.com/sinatra/sinatra/pull/1831) by Dawid Janczak
- Fix: Allow CALLERS_TO_IGNORE to be overridden
### [`v3.0.4`](https://redirect.github.com/sinatra/sinatra/blob/HEAD/CHANGELOG.md#304--2022-11-25)
[Compare Source](https://redirect.github.com/sinatra/sinatra/compare/v3.0.3...v3.0.4)
- Fix: Escape filename in the Content-Disposition header. [#1841](https://redirect.github.com/sinatra/sinatra/pull/1841) by Kunpei Sakai
### [`v3.0.3`](https://redirect.github.com/sinatra/sinatra/blob/HEAD/CHANGELOG.md#303--2022-11-11)
[Compare Source](https://redirect.github.com/sinatra/sinatra/compare/v3.0.2...v3.0.3)
- Fix: fixed ReDoS for Rack::Protection::IPSpoofing. [#1823](https://redirect.github.com/sinatra/sinatra/pull/1823) by [@ooooooo-q](https://redirect.github.com/ooooooo-q)
### [`v3.0.2`](https://redirect.github.com/sinatra/sinatra/blob/HEAD/CHANGELOG.md#302--2022-10-01)
[Compare Source](https://redirect.github.com/sinatra/sinatra/compare/v3.0.1...v3.0.2)
- New: Add Haml 6 support. [#1820](https://redirect.github.com/sinatra/sinatra/pull/1820) by Jordan Owens
### [`v3.0.1`](https://redirect.github.com/sinatra/sinatra/blob/HEAD/CHANGELOG.md#301--2022-09-26)
[Compare Source](https://redirect.github.com/sinatra/sinatra/compare/v3.0.0...v3.0.1)
- Fix: Revert removal of rack-protection.rb. [#1814](https://redirect.github.com/sinatra/sinatra/pull/1814) by Olle Jonsson
- Fix: Revert change to server start and stop messaging by using Kernel#warn. Renamed internal warn method warn_for_deprecation. [#1818](https://redirect.github.com/sinatra/sinatra/pull/1818) by Jordan Owens
### [`v3.0.0`](https://redirect.github.com/sinatra/sinatra/blob/HEAD/CHANGELOG.md#300--2022-09-26)
[Compare Source](https://redirect.github.com/sinatra/sinatra/compare/v2.2.4...v3.0.0)
- New: Add Falcon support. [#1794](https://redirect.github.com/sinatra/sinatra/pull/1794) by Samuel Williams and [@horaciob](https://redirect.github.com/horaciob)
- New: Add AES GCM encryption support for session cookies. \[[#1324](https://redirect.github.com/sinatra/sinatra/issues/1324)] ([https://github.com/sinatra/sinatra/pull/1324](https://redirect.github.com/sinatra/sinatra/pull/1324)) by Michael Coyne
- Deprecated: Sinatra Reloader will be removed in the next major release.
- Fix: Internal Sinatra errors now extend `Sinatra::Error`. This fixes [#1204](https://redirect.github.com/sinatra/sinatra/issues/1204) and [#1518](https://redirect.github.com/sinatra/sinatra/issues/1518). [bda8c29d](https://redirect.github.com/sinatra/sinatra/commit/bda8c29d70619d53f5b1c181140638d340695514) by Jordan Owens
- Fix: Preserve query param value if named route param nil. [#1676](https://redirect.github.com/sinatra/sinatra/pull/1676) by Jordan Owens
- Require Ruby 2.6 as minimum Ruby version. [#1699](https://redirect.github.com/sinatra/sinatra/pull/1699) by Eloy Pérez
- Breaking change: Remove support for the Stylus template engine. [#1697](https://redirect.github.com/sinatra/sinatra/pull/1697) by Eloy Pérez
- Breaking change: Remove support for the erubis template engine. [#1761](https://redirect.github.com/sinatra/sinatra/pull/1761) by Eloy Pérez
- Breaking change: Remove support for the textile template engine. [#1766](https://redirect.github.com/sinatra/sinatra/pull/1766) by Eloy Pérez
- Breaking change: Remove support for SASS as a template engine. [#1768](https://redirect.github.com/sinatra/sinatra/pull/1768) by Eloy Pérez
- Breaking change: Remove support for Wlang as a template engine. [#1780](https://redirect.github.com/sinatra/sinatra/pull/1780) by Eloy Pérez
- Breaking change: Remove support for CoffeeScript as a template engine. [#1790](https://redirect.github.com/sinatra/sinatra/pull/1790) by Eloy Pérez
- Breaking change: Remove support for Mediawiki as a template engine. [#1791](https://redirect.github.com/sinatra/sinatra/pull/1791) by Eloy Pérez
- Breaking change: Remove support for Creole as a template engine. [#1792](https://redirect.github.com/sinatra/sinatra/pull/1792) by Eloy Pérez
- Breaking change: Remove support for Radius as a template engine. [#1793](https://redirect.github.com/sinatra/sinatra/pull/1793) by Eloy Pérez
- Breaking change: Remove support for the defunct Less templating library. See [#1716](https://redirect.github.com/sinatra/sinatra/issues/1716), [#1715](https://redirect.github.com/sinatra/sinatra/issues/1715) for more discussion and background. [d1af2f1e](https://redirect.github.com/sinatra/sinatra/commit/d1af2f1e6c8710419dfe3102a660f7a32f0e67e3) by Olle Jonsson
- Breaking change: Remove Reel integration. [54597502](https://redirect.github.com/sinatra/sinatra/commit/545975025927a27a1daca790598620038979f1c5) by Olle Jonsson
- CI: Start testing on Ruby 3.1. [60e221940](https://redirect.github.com/sinatra/sinatra/commit/60e2219407e6ae067bf3e53eb060ee4860c60c8d) and [b0fa4bef](https://redirect.github.com/sinatra/sinatra/commit/b0fa4beffaa3b10bf02947d0a35e137403296c6b) by Johannes Würbach
- Use `Kernel#caller_locations`. [#1491](https://redirect.github.com/sinatra/sinatra/pull/1491) by Julik Tarkhanov
- Docs: Japanese documentation: Add notes about the `default_content_type` setting. [#1650](https://redirect.github.com/sinatra/sinatra/pull/1650) by Akifumi Tominaga
- Docs: Polish documentation: Add section about Multithreaded modes and Routes. [#1708](https://redirect.github.com/sinatra/sinatra/pull/1708) by Patrick Gramatowski
- Docs: Japanese documentation: Make Session section reflect changes done to README.md. [#1731](https://redirect.github.com/sinatra/sinatra/pull/1731) by [@shu-i-chi](https://redirect.github.com/shu-i-chi)
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
"~> 2.0"
->">= 2.0", "< 4.0.1"
Release Notes
sinatra/sinatra (sinatra)
### [`v4.0.0`](https://redirect.github.com/sinatra/sinatra/blob/HEAD/CHANGELOG.md#400--2024-01-19) [Compare Source](https://redirect.github.com/sinatra/sinatra/compare/v3.2.0...v4.0.0) - New: Add support for Rack 3 ([#1857]) - Note: you may want to read the [Rack 3 Upgrade Guide] - Require Ruby 2.7.8 as minimum Ruby version ([#1993]) - Breaking change: Drop support for Rack 2 ([#1857]) - Note: when using Sinatra to start the web server, you now need the `rackup` gem installed - Breaking change: Remove the `IndifferentHash` initializer ([#1982]) - Breaking change: Disable `session_hijacking` protection by default ([#1984]) - Breaking change: Remove `Rack::Protection::EncryptedCookie` ([#1989]) - Note: cookies are still encrypted (by [`Rack::Session::Cookie`][Rack::Session::Cookie]) [#1857]: https://redirect.github.com/sinatra/sinatra/pull/1857 [#1993]: https://redirect.github.com/sinatra/sinatra/pull/1993 [#1982]: https://redirect.github.com/sinatra/sinatra/pull/1982 [#1984]: https://redirect.github.com/sinatra/sinatra/pull/1984 [#1989]: https://redirect.github.com/sinatra/sinatra/pull/1989 [`Rack::Session::Cookie`]: https://redirect.github.com/rack/rack-session [Rack 3 Upgrade Guide]: https://redirect.github.com/rack/rack/blob/main/UPGRADE-GUIDE.md ### [`v3.2.0`](https://redirect.github.com/sinatra/sinatra/blob/HEAD/CHANGELOG.md#320--2023-12-29) [Compare Source](https://redirect.github.com/sinatra/sinatra/compare/v3.1.0...v3.2.0) - New: Add `#except` method to `Sinatra::IndifferentHash` ([#1940]) - New: Use `Exception#detailed_message` to show backtrace ([#1952]) - New: Add `Sinatra::HamlHelpers` to sinatra-contrib ([#1960]) - Fix: Add `base64` to rack-protection runtime dependencies ([#1946]) - Fix: Avoid open-ended dependencies for sinatra-contrib and rack-protection ([#1949]) - Fix: Helpful message when `Sinatra::Runner` times out ([#1975]) - Fix: Ruby 3.3 + Bundler 2.5 compatibility ([#1975]) [#1940]: https://redirect.github.com/sinatra/sinatra/pull/1940 [#1946]: https://redirect.github.com/sinatra/sinatra/pull/1946 [#1949]: https://redirect.github.com/sinatra/sinatra/pull/1949 [#1952]: https://redirect.github.com/sinatra/sinatra/pull/1952 [#1960]: https://redirect.github.com/sinatra/sinatra/pull/1960 [#1975]: https://redirect.github.com/sinatra/sinatra/pull/1975 ### [`v3.1.0`](https://redirect.github.com/sinatra/sinatra/blob/HEAD/CHANGELOG.md#310--2023-08-07) [Compare Source](https://redirect.github.com/sinatra/sinatra/compare/v3.0.6...v3.1.0) - New: Add sass support via sass-embedded [#1911] by なつき - New: Add start and stop callbacks [#1913] by Jevin Sew - New: Warn on dropping sessions [#1900] by Jonathan del Strother - New: Make Puma the default server [#1924] by Patrik Ragnarsson - Fix: Remove use of Tilt::Cache [#1922] by Jeremy Evans (allows use of Tilt 2.2.0 without deprecation warning) - Fix: rack-protection: specify rack version requirement [#1932] by Patrik Ragnarsson [#1911]: https://redirect.github.com/sinatra/sinatra/pull/1911 [#1913]: https://redirect.github.com/sinatra/sinatra/pull/1913 [#1900]: https://redirect.github.com/sinatra/sinatra/pull/1900 [#1924]: https://redirect.github.com/sinatra/sinatra/pull/1924 [#1922]: https://redirect.github.com/sinatra/sinatra/pull/1922 [#1932]: https://redirect.github.com/sinatra/sinatra/pull/1932 ### [`v3.0.6`](https://redirect.github.com/sinatra/sinatra/blob/HEAD/CHANGELOG.md#306--2023-04-11) [Compare Source](https://redirect.github.com/sinatra/sinatra/compare/v3.0.5...v3.0.6) - Fix: Add support to keep open streaming connections with Puma [#1858](https://redirect.github.com/sinatra/sinatra/pull/1858) by Jordan Owens - Fix: Avoid crash in `uri` helper on Integer input [#1890](https://redirect.github.com/sinatra/sinatra/pull/1890) by Patrik Ragnarsson - Fix: Rescue `RuntimeError` when trying to use `SecureRandom` [#1888](https://redirect.github.com/sinatra/sinatra/pull/1888) by Stefan Sundin ### [`v3.0.5`](https://redirect.github.com/sinatra/sinatra/blob/HEAD/CHANGELOG.md#305--2022-12-16) [Compare Source](https://redirect.github.com/sinatra/sinatra/compare/v3.0.4...v3.0.5) - Fix: Add Zeitwerk compatibility. [#1831](https://redirect.github.com/sinatra/sinatra/pull/1831) by Dawid Janczak - Fix: Allow CALLERS_TO_IGNORE to be overridden ### [`v3.0.4`](https://redirect.github.com/sinatra/sinatra/blob/HEAD/CHANGELOG.md#304--2022-11-25) [Compare Source](https://redirect.github.com/sinatra/sinatra/compare/v3.0.3...v3.0.4) - Fix: Escape filename in the Content-Disposition header. [#1841](https://redirect.github.com/sinatra/sinatra/pull/1841) by Kunpei Sakai ### [`v3.0.3`](https://redirect.github.com/sinatra/sinatra/blob/HEAD/CHANGELOG.md#303--2022-11-11) [Compare Source](https://redirect.github.com/sinatra/sinatra/compare/v3.0.2...v3.0.3) - Fix: fixed ReDoS for Rack::Protection::IPSpoofing. [#1823](https://redirect.github.com/sinatra/sinatra/pull/1823) by [@ooooooo-q](https://redirect.github.com/ooooooo-q) ### [`v3.0.2`](https://redirect.github.com/sinatra/sinatra/blob/HEAD/CHANGELOG.md#302--2022-10-01) [Compare Source](https://redirect.github.com/sinatra/sinatra/compare/v3.0.1...v3.0.2) - New: Add Haml 6 support. [#1820](https://redirect.github.com/sinatra/sinatra/pull/1820) by Jordan Owens ### [`v3.0.1`](https://redirect.github.com/sinatra/sinatra/blob/HEAD/CHANGELOG.md#301--2022-09-26) [Compare Source](https://redirect.github.com/sinatra/sinatra/compare/v3.0.0...v3.0.1) - Fix: Revert removal of rack-protection.rb. [#1814](https://redirect.github.com/sinatra/sinatra/pull/1814) by Olle Jonsson - Fix: Revert change to server start and stop messaging by using Kernel#warn. Renamed internal warn method warn_for_deprecation. [#1818](https://redirect.github.com/sinatra/sinatra/pull/1818) by Jordan Owens ### [`v3.0.0`](https://redirect.github.com/sinatra/sinatra/blob/HEAD/CHANGELOG.md#300--2022-09-26) [Compare Source](https://redirect.github.com/sinatra/sinatra/compare/v2.2.4...v3.0.0) - New: Add Falcon support. [#1794](https://redirect.github.com/sinatra/sinatra/pull/1794) by Samuel Williams and [@horaciob](https://redirect.github.com/horaciob) - New: Add AES GCM encryption support for session cookies. \[[#1324](https://redirect.github.com/sinatra/sinatra/issues/1324)] ([https://github.com/sinatra/sinatra/pull/1324](https://redirect.github.com/sinatra/sinatra/pull/1324)) by Michael Coyne - Deprecated: Sinatra Reloader will be removed in the next major release. - Fix: Internal Sinatra errors now extend `Sinatra::Error`. This fixes [#1204](https://redirect.github.com/sinatra/sinatra/issues/1204) and [#1518](https://redirect.github.com/sinatra/sinatra/issues/1518). [bda8c29d](https://redirect.github.com/sinatra/sinatra/commit/bda8c29d70619d53f5b1c181140638d340695514) by Jordan Owens - Fix: Preserve query param value if named route param nil. [#1676](https://redirect.github.com/sinatra/sinatra/pull/1676) by Jordan Owens - Require Ruby 2.6 as minimum Ruby version. [#1699](https://redirect.github.com/sinatra/sinatra/pull/1699) by Eloy Pérez - Breaking change: Remove support for the Stylus template engine. [#1697](https://redirect.github.com/sinatra/sinatra/pull/1697) by Eloy Pérez - Breaking change: Remove support for the erubis template engine. [#1761](https://redirect.github.com/sinatra/sinatra/pull/1761) by Eloy Pérez - Breaking change: Remove support for the textile template engine. [#1766](https://redirect.github.com/sinatra/sinatra/pull/1766) by Eloy Pérez - Breaking change: Remove support for SASS as a template engine. [#1768](https://redirect.github.com/sinatra/sinatra/pull/1768) by Eloy Pérez - Breaking change: Remove support for Wlang as a template engine. [#1780](https://redirect.github.com/sinatra/sinatra/pull/1780) by Eloy Pérez - Breaking change: Remove support for CoffeeScript as a template engine. [#1790](https://redirect.github.com/sinatra/sinatra/pull/1790) by Eloy Pérez - Breaking change: Remove support for Mediawiki as a template engine. [#1791](https://redirect.github.com/sinatra/sinatra/pull/1791) by Eloy Pérez - Breaking change: Remove support for Creole as a template engine. [#1792](https://redirect.github.com/sinatra/sinatra/pull/1792) by Eloy Pérez - Breaking change: Remove support for Radius as a template engine. [#1793](https://redirect.github.com/sinatra/sinatra/pull/1793) by Eloy Pérez - Breaking change: Remove support for the defunct Less templating library. See [#1716](https://redirect.github.com/sinatra/sinatra/issues/1716), [#1715](https://redirect.github.com/sinatra/sinatra/issues/1715) for more discussion and background. [d1af2f1e](https://redirect.github.com/sinatra/sinatra/commit/d1af2f1e6c8710419dfe3102a660f7a32f0e67e3) by Olle Jonsson - Breaking change: Remove Reel integration. [54597502](https://redirect.github.com/sinatra/sinatra/commit/545975025927a27a1daca790598620038979f1c5) by Olle Jonsson - CI: Start testing on Ruby 3.1. [60e221940](https://redirect.github.com/sinatra/sinatra/commit/60e2219407e6ae067bf3e53eb060ee4860c60c8d) and [b0fa4bef](https://redirect.github.com/sinatra/sinatra/commit/b0fa4beffaa3b10bf02947d0a35e137403296c6b) by Johannes Würbach - Use `Kernel#caller_locations`. [#1491](https://redirect.github.com/sinatra/sinatra/pull/1491) by Julik Tarkhanov - Docs: Japanese documentation: Add notes about the `default_content_type` setting. [#1650](https://redirect.github.com/sinatra/sinatra/pull/1650) by Akifumi Tominaga - Docs: Polish documentation: Add section about Multithreaded modes and Routes. [#1708](https://redirect.github.com/sinatra/sinatra/pull/1708) by Patrick Gramatowski - Docs: Japanese documentation: Make Session section reflect changes done to README.md. [#1731](https://redirect.github.com/sinatra/sinatra/pull/1731) by [@shu-i-chi](https://redirect.github.com/shu-i-chi)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.