Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jun 23, 2025

This PR contains the following updates:

Package Type Update Change
req (source) prod patch 0.5.10 -> 0.5.16
req (source) dev patch 0.5.10 -> 0.5.16

Release Notes

wojtekmach/req (req)

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].


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 is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates 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 added the chore label Jun 23, 2025
@renovate renovate bot requested a review from bryannaegele as a code owner June 23, 2025 14:43
@renovate renovate bot requested a review from tsloughter as a code owner June 23, 2025 14:43
@renovate renovate bot changed the title chore(deps): update dependency req to v0.5.11 chore(deps): update dependency req to v0.5.12 Jun 24, 2025
@renovate renovate bot force-pushed the renovate/req-0.x-lockfile branch from 55b3d8b to 46fbbc4 Compare June 24, 2025 12:37
@renovate renovate bot changed the title chore(deps): update dependency req to v0.5.12 chore(deps): update dependency req to v0.5.14 Jul 2, 2025
@renovate renovate bot force-pushed the renovate/req-0.x-lockfile branch from 46fbbc4 to 9d548c2 Compare July 2, 2025 15:57
@renovate renovate bot force-pushed the renovate/req-0.x-lockfile branch from 9d548c2 to 02e7219 Compare July 14, 2025 12:54
@renovate renovate bot changed the title chore(deps): update dependency req to v0.5.14 chore(deps): update dependency req to v0.5.15 Jul 14, 2025
@renovate renovate bot force-pushed the renovate/req-0.x-lockfile branch 2 times, most recently from 9a7aba0 to 0120207 Compare July 15, 2025 02:24
@renovate renovate bot force-pushed the renovate/req-0.x-lockfile branch 2 times, most recently from d9c57ea to 529d0f4 Compare August 13, 2025 12:50
@renovate renovate bot force-pushed the renovate/req-0.x-lockfile branch 9 times, most recently from 1b12546 to ee0e76c Compare August 23, 2025 09:45
@renovate renovate bot force-pushed the renovate/req-0.x-lockfile branch 2 times, most recently from 974fccb to 1163593 Compare September 27, 2025 16:22
@renovate renovate bot force-pushed the renovate/req-0.x-lockfile branch 2 times, most recently from a97b687 to 19933b6 Compare October 28, 2025 15:08
@renovate renovate bot force-pushed the renovate/req-0.x-lockfile branch from 19933b6 to d7d46b9 Compare November 4, 2025 14:49
@renovate renovate bot changed the title chore(deps): update dependency req to v0.5.15 chore(deps): update dependency req to v0.5.16 Nov 10, 2025
@renovate renovate bot force-pushed the renovate/req-0.x-lockfile branch from d7d46b9 to 853f92b Compare November 10, 2025 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment