Skip to content

Commit

Permalink
v3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed Dec 22, 2024
1 parent c5195a8 commit 0a12323
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v3.1.0 - 2024-12-22

- Updated for `gleam_stdlib` v0.51.0.

## v3.0.0 - 2024-12-22

- Updated for `gleam_stdlib` v0.50.0.
Expand Down
4 changes: 2 additions & 2 deletions gleam.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "pog"
version = "3.0.0"
version = "3.1.0"
gleam = ">= 1.4.0"
licences = ["Apache-2.0"]
description = "A PostgreSQL database client for Gleam, based on PGO"
Expand All @@ -16,7 +16,7 @@ pages = [
]

[dependencies]
gleam_stdlib = ">= 0.50.0 and < 2.0.0"
gleam_stdlib = ">= 0.51.0 and < 2.0.0"
pgo = ">= 0.12.0 and < 2.0.0"

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ packages = [
{ name = "backoff", version = "1.1.6", build_tools = ["rebar3"], requirements = [], otp_app = "backoff", source = "hex", outer_checksum = "CF0CFFF8995FB20562F822E5CC47D8CCF664C5ECDC26A684CBE85C225F9D7C39" },
{ name = "exception", version = "2.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "exception", source = "hex", outer_checksum = "F5580D584F16A20B7FCDCABF9E9BE9A2C1F6AC4F9176FA6DD0B63E3B20D450AA" },
{ name = "gleam_erlang", version = "0.33.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_erlang", source = "hex", outer_checksum = "A1D26B80F01901B59AABEE3475DD4C18D27D58FA5C897D922FCB9B099749C064" },
{ name = "gleam_stdlib", version = "0.50.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "489AFCEE829FADE57F20F4C69AD67C59D80610D8A3C7DB5A7E12BE75946AAF55" },
{ name = "gleam_stdlib", version = "0.51.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "14AFA8D3DDD7045203D422715DBB822D1725992A31DF35A08D97389014B74B68" },
{ name = "gleeunit", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "F7A7228925D3EE7D0813C922E062BFD6D7E9310F0BEE585D3A42F3307E3CFD13" },
{ name = "opentelemetry_api", version = "1.4.0", build_tools = ["rebar3", "mix"], requirements = [], otp_app = "opentelemetry_api", source = "hex", outer_checksum = "3DFBBFAA2C2ED3121C5C483162836C4F9027DEF469C41578AF5EF32589FCFC58" },
{ name = "pg_types", version = "0.4.0", build_tools = ["rebar3"], requirements = [], otp_app = "pg_types", source = "hex", outer_checksum = "B02EFA785CAECECF9702C681C80A9CA12A39F9161A846CE17B01FB20AEEED7EB" },
Expand All @@ -15,6 +15,6 @@ packages = [
[requirements]
exception = { version = ">= 2.0.0 and < 3.0.0" }
gleam_erlang = { version = ">= 0.30.0 and < 1.0.0" }
gleam_stdlib = { version = ">= 0.50.0 and < 2.0.0" }
gleam_stdlib = { version = ">= 0.51.0 and < 2.0.0" }
gleeunit = { version = ">= 1.0.0 and < 2.0.0" }
pgo = { version = ">= 0.12.0 and < 2.0.0" }
4 changes: 2 additions & 2 deletions src/pog.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// TODO: add time and timestamp with zone once pgo supports them

import gleam/dynamic.{type DecodeErrors, type Dynamic}
import gleam/dynamic.{type Dynamic}
import gleam/dynamic/decode.{type Decoder}
import gleam/float
import gleam/int
Expand Down Expand Up @@ -407,7 +407,7 @@ pub type QueryError {
UnexpectedArgumentType(expected: String, got: String)
/// The rows returned by the database could not be decoded using the supplied
/// dynamic decoder.
UnexpectedResultType(DecodeErrors)
UnexpectedResultType(List(decode.DecodeError))
/// The query timed out.
QueryTimeout
/// No connection was available to execute the query. This may be due to
Expand Down
3 changes: 1 addition & 2 deletions test/pog_test.gleam
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import exception
import gleam/dynamic
import gleam/dynamic/decode.{type Decoder}
import gleam/erlang/atom
import gleam/option.{None, Some}
Expand Down Expand Up @@ -445,7 +444,7 @@ pub fn expected_return_type_test() {
|> should.equal(
Error(
pog.UnexpectedResultType([
dynamic.DecodeError(expected: "String", found: "Int", path: ["0"]),
decode.DecodeError(expected: "String", found: "Int", path: ["0"]),
]),
),
)
Expand Down

0 comments on commit 0a12323

Please sign in to comment.