Skip to content

Update dependency req to v0.5.17#23

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/req-0.x-lockfile
Open

Update dependency req to v0.5.17#23
renovate[bot] wants to merge 1 commit intomainfrom
renovate/req-0.x-lockfile

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Aug 11, 2025

This PR contains the following updates:

Package Type Update Change
req (source) prod patch 0.5.40.5.17

Release Notes

wojtekmach/req (req)

v0.5.17

Compare Source

  • [retry]: Use default delay if retry-after is "negative"

    Previously, we were only handling "negative" retry-after in "http date"
    format and slept for zero seconds. We were crashing on retry-after with
    negative seconds.

    Now, we're using the default delay (1s, 2s, 4s, ...) in either format.

v0.5.16

Compare Source

  • [Req.Test]: Fix verify_on_exit! accidentally using Mox name
    • [auth]: Support MFArgs
    • [auth]: Support digest auth
    • [put_aws_sigv4]: Support MFArgs
    • [put_path_params]: Encode :path_params even with reserved characters
    • [put_path_params]: Set :path_params_template on empty params
    • [run_plug]: Handle compressed request body

v0.5.15

Compare Source

  • [Req.Response]: Add [Req.Response.to_map/1].

v0.5.14

Compare Source

  • [run_plug]: Remove warning about into: fun with {:halt, acc} result.

    The warning never been particularly useful because it's not like users
    can do anything about it.

v0.5.13

Compare Source

  • [run_plug]: Ease transition to automatically parsing request body.

    Since v0.5.11, this code:

      plug = fn conn ->
        {:ok, body, conn} = Plug.Conn.read_body(conn)
        assert JSON.decode!(body) == %{"x" => 1}
        Plug.Conn.send_resp(conn, 200, "ok")
      end
    
      Req.put!(plug: plug, json: %{x: 1})
    

    Needed to be updated to:

      plug = fn conn ->
        assert conn.body_params == %{"x" => 1}
        Plug.Conn.send_resp(conn, 200, "ok")
      end
    
      Req.put!(plug: plug, json: %{x: 1})
    

    This change makes it so both work. The latter will be required, however.

v0.5.12

Compare Source

  • [run_plug]: Do not raise on unknown content types.

    • [Req.Test]: Improve Req.Test.transport_error/2 error message.

v0.5.11

Compare Source

  • [encode_body]: Fix leading newline before multipart body.

    • [run_finch]: Handle initial transport errors on into: :self.

    • [run_plug]: Automatically parse request body.

      Prior to this change, users would typically write:

      plug = fn conn ->
        {:ok, body, conn} = Plug.Conn.read_body(conn)
        assert JSON.decode!(body) == %{"x" => 1}
        Plug.Conn.send_resp(conn, 200, "ok")
      end
      
      Req.put!(plug: plug, json: %{x: 1})
      

      Now, it can be:

      plug = fn conn ->
        assert conn.params == %{"x" => 1}
        Plug.Conn.send_resp(conn, 200, "ok")
      end
      
      Req.put!(plug: plug, json: %{x: 1})
      

      This is a breaking change as Plug.Conn.read_body will now return "".

      It can be easily fixed by using [Req.Test.raw_body/1] which returns copy of
      the request raw body:

      - {:ok, body, conn} = Plug.Conn.read_body(conn)
      + body = Req.Test.raw_body(conn)

      Furthermore, prior to this change conn.body_params was unfetched:

      plug = fn conn ->
        Plug.Conn.send_resp(conn, 200, inspect(conn.body_params))
      end
      
      iex> Req.post!(json: %{a: 1}, plug: plug).body
      "%Plug.Conn.Unfetched{aspect: :body_params}"
      

      Now it is:

      iex> Req.post!(json: %{a: 1}, plug: plug).body
      "%{\"a\": 1}"
      

      If in your :plug usage you look at conn.params, it will
      now include conn.body_params as Plug always merges them.

    • [retry]: Use jitter by default

    • [Req.Request]: Add [Req.Request.put_option/3].

    • [Req.Request]: Add [Req.Request.put_new_option/3].

    • [Req.Request]: Add [Req.Request.merge_new_options/2].

    • [Req.Test]: Add [Req.Test.redirect/2].

v0.5.10

Compare Source

  • [Req]: Add [Req.get_headers_list/1].

v0.5.9

Compare Source

  • [encode_body]: Support any enumerable in :form_multipart

    • [Req.Test.expect/3]: Fix usage in shared mode

    • [retry]: Do not carry halt between retries

    • (Internal) Support custom headers in Req.Utils.aws_sigv4_url/1

    • (Internal) Support custom query params in Req.Utils.aws_sigv4_url/1

v0.5.8

Compare Source

  • [Req]: Check legacy headers when streaming headers

    • [Req]: Ignore :into collectable for non-200 responses

    • [put_aws_sigv4]: Fix encoding path

    • [run_finch]: Add option to configure Finch :pool_max_idle_time

    • [run_finch]: Prepare for upcoming Finch v0.20

v0.5.7

Compare Source

  • [put_aws_sigv4]: Fix signature when using custom port

    • [retry]: Do not call retry_delay fun twice

    • [auth]: Support passing a 0-arity function

v0.5.6

Compare Source

  • Fix compatibility with Elixir v1.13

v0.5.5

Compare Source

  • [put_aws_sigv4]: Fix detecting service

    • [put_aws_sigv4]: Raise on no :access_key_id/:secret_access_key/:service

    • [put_aws_sigv4]: Fix handling ?name (no value)

    • [handle_http_errors]: should run before verify_checksum

    • [encode_body]: Support %File.Stream{} in :form_multipart

    • [encode_body]: Support %File.Stream{} from other nodes in :form_multipart


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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/req-0.x-lockfile branch from 83b7bc0 to e1d9e6b Compare October 21, 2025 16:55
@renovate renovate bot changed the title Update dependency req to v0.5.15 Update dependency req to v0.5.16 Nov 10, 2025
@renovate renovate bot force-pushed the renovate/req-0.x-lockfile branch from e1d9e6b to 72ad7b6 Compare November 10, 2025 20:34
@renovate renovate bot force-pushed the renovate/req-0.x-lockfile branch from 72ad7b6 to 50aa143 Compare December 31, 2025 17:05
@renovate renovate bot changed the title Update dependency req to v0.5.16 Update dependency req to v0.5.17 Jan 6, 2026
@renovate renovate bot force-pushed the renovate/req-0.x-lockfile branch from 50aa143 to 369ddb3 Compare January 6, 2026 02:05
@renovate renovate bot force-pushed the renovate/req-0.x-lockfile branch from 369ddb3 to 61789b5 Compare February 2, 2026 18:33
@renovate renovate bot force-pushed the renovate/req-0.x-lockfile branch from 61789b5 to 1764f3a Compare March 13, 2026 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants