Skip to content

Commit 48990fe

Browse files
committed
v1.3.0
1 parent d8e96bb commit 48990fe

File tree

5 files changed

+21
-18
lines changed

5 files changed

+21
-18
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ jobs:
1515
- uses: erlef/setup-beam@v1
1616
with:
1717
otp-version: "25.1"
18-
gleam-version: "0.32.2"
18+
gleam-version: "1.6.3"
1919
rebar3-version: "3"
20-
- run: gleam deps download
2120
- run: gleam test
2221
- run: gleam format --check src test

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v1.3.0 - 2024-12-07
4+
5+
- Updated for `gleam_stdlib` v0.45.0.
6+
37
## v1.2.0 - 2023-11-06
48

59
- Updated for Gleam v0.32.0.

gleam.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "gleam_hackney"
2-
version = "1.2.0"
3-
gleam = ">= 0.32.0"
2+
version = "1.3.0"
3+
gleam = ">= 1.0.0"
44

55
description = "Gleam bindings to the Hackney HTTP client"
66
licences = ["Apache-2.0"]
@@ -12,7 +12,7 @@ links = [
1212
]
1313

1414
[dependencies]
15-
gleam_stdlib = "~> 0.32"
15+
gleam_stdlib = "~> 0.45"
1616
gleam_http = "~> 3.0"
1717
hackney = "~> 1.18"
1818

manifest.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33

44
packages = [
55
{ name = "certifi", version = "2.12.0", build_tools = ["rebar3"], requirements = [], otp_app = "certifi", source = "hex", outer_checksum = "EE68D85DF22E554040CDB4BE100F33873AC6051387BAF6A8F6CE82272340FF1C" },
6-
{ name = "gleam_http", version = "3.5.1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_http", source = "hex", outer_checksum = "0B09AAE8EB547C4F2F2D3F8917A0A4D2EF75DFF0232389332BAFE19DBBFDB92B" },
7-
{ name = "gleam_stdlib", version = "0.32.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "07D64C26D014CF570F8ACADCE602761EA2E74C842D26F2FD49B0D61973D9966F" },
8-
{ name = "gleeunit", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "D3682ED8C5F9CAE1C928F2506DE91625588CC752495988CBE0F5653A42A6F334" },
9-
{ name = "hackney", version = "1.20.1", build_tools = ["rebar3"], requirements = ["mimerl", "unicode_util_compat", "parse_trans", "ssl_verify_fun", "certifi", "metrics", "idna"], otp_app = "hackney", source = "hex", outer_checksum = "FE9094E5F1A2A2C0A7D10918FEE36BFEC0EC2A979994CFF8CFE8058CD9AF38E3" },
6+
{ name = "gleam_http", version = "3.7.1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_http", source = "hex", outer_checksum = "A9EE0722106FCCAB8AD3BF9D0A3EFF92BFE8561D59B83BAE96EB0BE1938D4E0F" },
7+
{ name = "gleam_stdlib", version = "0.45.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "206FCE1A76974AECFC55AEBCD0217D59EDE4E408C016E2CFCCC8FF51278F186E" },
8+
{ name = "gleeunit", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "F7A7228925D3EE7D0813C922E062BFD6D7E9310F0BEE585D3A42F3307E3CFD13" },
9+
{ name = "hackney", version = "1.20.1", build_tools = ["rebar3"], requirements = ["certifi", "idna", "metrics", "mimerl", "parse_trans", "ssl_verify_fun", "unicode_util_compat"], otp_app = "hackney", source = "hex", outer_checksum = "FE9094E5F1A2A2C0A7D10918FEE36BFEC0EC2A979994CFF8CFE8058CD9AF38E3" },
1010
{ name = "idna", version = "6.1.1", build_tools = ["rebar3"], requirements = ["unicode_util_compat"], otp_app = "idna", source = "hex", outer_checksum = "92376EB7894412ED19AC475E4A86F7B413C1B9FBB5BD16DCCD57934157944CEA" },
1111
{ name = "metrics", version = "1.0.1", build_tools = ["rebar3"], requirements = [], otp_app = "metrics", source = "hex", outer_checksum = "69B09ADDDC4F74A40716AE54D140F93BEB0FB8978D8636EADED0C31B6F099F16" },
12-
{ name = "mimerl", version = "1.2.0", build_tools = ["rebar3"], requirements = [], otp_app = "mimerl", source = "hex", outer_checksum = "F278585650AA581986264638EBF698F8BB19DF297F66AD91B18910DFC6E19323" },
12+
{ name = "mimerl", version = "1.3.0", build_tools = ["rebar3"], requirements = [], otp_app = "mimerl", source = "hex", outer_checksum = "A1E15A50D1887217DE95F0B9B0793E32853F7C258A5CD227650889B38839FE9D" },
1313
{ name = "parse_trans", version = "3.4.1", build_tools = ["rebar3"], requirements = [], otp_app = "parse_trans", source = "hex", outer_checksum = "620A406CE75DADA827B82E453C19CF06776BE266F5A67CFF34E1EF2CBB60E49A" },
1414
{ name = "ssl_verify_fun", version = "1.1.7", build_tools = ["mix", "rebar3", "make"], requirements = [], otp_app = "ssl_verify_fun", source = "hex", outer_checksum = "FE4C190E8F37401D30167C8C405EDA19469F34577987C76DDE613E838BBC67F8" },
1515
{ name = "unicode_util_compat", version = "0.7.0", build_tools = ["rebar3"], requirements = [], otp_app = "unicode_util_compat", source = "hex", outer_checksum = "25EEE6D67DF61960CF6A794239566599B09E17E668D3700247BC498638152521" },
1616
]
1717

1818
[requirements]
1919
gleam_http = { version = "~> 3.0" }
20-
gleam_stdlib = { version = "~> 0.32" }
20+
gleam_stdlib = { version = "~> 0.45" }
2121
gleeunit = { version = "~> 1.0" }
2222
hackney = { version = "~> 1.18" }

src/gleam/hackney.gleam

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import gleam/result
1+
import gleam/bit_array
2+
import gleam/bytes_tree.{type BytesTree}
23
import gleam/dynamic.{type Dynamic}
34
import gleam/http.{type Method}
45
import gleam/http/request.{type Request}
56
import gleam/http/response.{type Response, Response}
6-
import gleam/bit_array
7-
import gleam/bytes_builder.{type BytesBuilder}
8-
import gleam/string
97
import gleam/list
8+
import gleam/result
9+
import gleam/string
1010
import gleam/uri
1111

1212
pub type Error {
@@ -20,12 +20,12 @@ fn ffi_send(
2020
a: Method,
2121
b: String,
2222
c: List(http.Header),
23-
d: BytesBuilder,
23+
d: BytesTree,
2424
) -> Result(Response(BitArray), Error)
2525

2626
// TODO: test
2727
pub fn send_bits(
28-
request: Request(BytesBuilder),
28+
request: Request(BytesTree),
2929
) -> Result(Response(BitArray), Error) {
3030
use response <- result.then(
3131
request
@@ -40,7 +40,7 @@ pub fn send_bits(
4040
pub fn send(req: Request(String)) -> Result(Response(String), Error) {
4141
use resp <- result.then(
4242
req
43-
|> request.map(bytes_builder.from_string)
43+
|> request.map(bytes_tree.from_string)
4444
|> send_bits,
4545
)
4646

0 commit comments

Comments
 (0)