Skip to content

Commit

Permalink
Update README to use newest versions of dependencies (#670)
Browse files Browse the repository at this point in the history
- Also prefer the `~>` operator when installing packages (e.g. Jason)

- Pin to major versions instead of patches
  • Loading branch information
arcanemachine authored Apr 15, 2024
1 parent 876af0c commit 40966e5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ Add `:tesla` as dependency in `mix.exs`:
```elixir
defp deps do
[
{:tesla, "~> 1.4"},
{:tesla, "~> 1.9"},

# optional, but recommended adapter
{:hackney, "~> 1.17"},
{:hackney, "~> 1.20"},

# optional, required by JSON middleware
{:jason, ">= 1.0.0"}
{:jason, "~> 1.4"}
]
end
```
Expand Down Expand Up @@ -198,8 +198,8 @@ When using adapter other than `:httpc` remember to add it to the dependencies li
```elixir
defp deps do
[
{:tesla, "~> 1.4.0"},
{:hackney, "~> 1.10"} # when using hackney adapter
{:tesla, "~> 1.9"},
{:hackney, "~> 1.20"} # when using hackney adapter
]
end
```
Expand Down

0 comments on commit 40966e5

Please sign in to comment.