aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorRichard Viney <richard.viney@gmail.com>2024-11-28 11:15:42 +1300
committerLouis Pilfold <louis@lpil.uk>2024-11-28 12:20:57 +0000
commit406eb387d750191546d9da6f54df50b4b1ee8409 (patch)
tree845945efea54c443eaf63eb7bd028ccb8e650f1a /CHANGELOG.md
parent4411f584ff87f7acdf26676fc085f4b277eff166 (diff)
downloadgleam_stdlib-406eb387d750191546d9da6f54df50b4b1ee8409.tar.gz
gleam_stdlib-406eb387d750191546d9da6f54df50b4b1ee8409.zip
Add bit_array.pad_to_bytes. Pad bit arrays when encoding and in bytes_tree.
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 16f2acd..193845e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,13 @@
- The performance of `string.trim`, `string.trim_start`, and `string.trim_end`
has been improved on JavaScript.
+- The `base64_encode`, `base64_url_encode`, and `base16_encode` functions in the
+ `bit_array` module no longer throw an exception when called with a bit array
+ which is not a whole number of bytes. Instead, the bit array is now padded
+ with zero bits prior to being encoded.
+- The `bit_array` module gains the `pad_to_bytes` function.
+- The `bytes_tree` module now pads unaligned bit arrays with zeros when they are
+ added to the tree.
## v0.44.0 - 2024-11-25