Skip to content

Commit 9727138

Browse files
committed
v3.0.1
1 parent a7a7ee3 commit 9727138

File tree

3 files changed

+5
-19
lines changed

3 files changed

+5
-19
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+
## v3.0.1 - 2025-05-14
4+
5+
- The `to_string_builder` function has been removed.
6+
37
## v3.0.0 - 2025-05-13
48

59
- The `decode` and `decode_bits` functions, and the `UnexpectedFormat` variant,

gleam.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "gleam_json"
2-
version = "3.0.0"
2+
version = "3.0.1"
33
gleam = ">= 0.32.0"
44

55
licences = ["Apache-2.0"]

src/gleam/json.gleam

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -122,24 +122,6 @@ pub fn to_string(json: Json) -> String {
122122
@external(javascript, "../gleam_json_ffi.mjs", "json_to_string")
123123
fn do_to_string(a: Json) -> String
124124

125-
/// Convert a JSON value into a string builder.
126-
///
127-
/// Where possible prefer this function to the `to_string` function as it is
128-
/// slower than this function, and BEAM VM IO is optimised for sending
129-
/// `StringTree` data.
130-
///
131-
/// ## Examples
132-
///
133-
/// ```gleam
134-
/// > to_string_builder(array([1, 2, 3], of: int))
135-
/// string_builder.from_string("[1,2,3]")
136-
/// ```
137-
///
138-
@deprecated("Use `json.to_string_tree` instead.")
139-
pub fn to_string_builder(json: Json) -> StringTree {
140-
to_string_tree(json)
141-
}
142-
143125
/// Convert a JSON value into a string tree.
144126
///
145127
/// Where possible prefer this function to the `to_string` function as it is

0 commit comments

Comments
 (0)