From a9a86b9e9db566ffda5b6ed052afeb7985982fb9 Mon Sep 17 00:00:00 2001 From: Mat Trudel Date: Sun, 21 Apr 2024 09:17:20 -0400 Subject: [PATCH] Version bump to 1.5.0 --- CHANGELOG.md | 21 +++++++++++++++++++++ mix.exs | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe837c46..61be700e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,24 @@ +## 1.5.0 (21 Apr 2024) + +### Enhancements + +* Bandit now respects an exception's conformance to `Plug.Exception` when + determining which status code to return to the client (if the plug did not + already send one). Previously they were always returned as 500 (for HTTP/1) + or an 'internal error' stream error (for HTTP/2) +* Bandit now only logs the stacktrace of plug-generated exceptions whose status + code (as determined by `Plug.Exception.status/1`) is contained within the new + `log_exceptions_with_status_codes` configuration option (defaulting to + `500..599`) +* As a corollary to the above, Bandit request handler processes no longer exit + abnormally in the case of plug-generated exceptions + +### Changes + +* HTTP semantic errors encountered in an HTTP/2 request are returned to the + client using their proper status code instead of as a 'protocol error' stream + error + ## 1.4.2 (2 Apr 2024) ### Enhancements diff --git a/mix.exs b/mix.exs index 31877649..8bef713f 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule Bandit.MixProject do def project do [ app: :bandit, - version: "1.4.2", + version: "1.5.0", elixir: "~> 1.13", start_permanent: Mix.env() == :prod, deps: deps(),