Skip to content

Commit 6498513

Browse files
committed
v0.19.2
1 parent 4303b47 commit 6498513

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

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

3+
## v0.19.2 - 2022-01-09
4+
5+
- The `dynamic.dynamic` function is is no longer a thunk.
6+
37
## v0.19.1 - 2022-01-09
48

59
- The `dynamic.dynamic` function now returns a result.

gleam.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "gleam_stdlib"
2-
version = "0.19.1"
2+
version = "0.19.2"
33
licences = ["Apache-2.0"]
44
description = "A standard library for the Gleam programming language"
55

src/gleam/dynamic.gleam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ if javascript {
6767
/// when you need to give a decoder function but you don't actually care what
6868
/// the to-decode value is.
6969
///
70-
pub fn dynamic() -> Decoder(Dynamic) {
71-
Ok
70+
pub fn dynamic(value: Dynamic) -> Result(Dynamic, List(DecodeError)) {
71+
Ok(value)
7272
}
7373

7474
/// Checks to see whether a `Dynamic` value is a bit_string, and returns that bit string if

0 commit comments

Comments
 (0)