Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ New features:
- `INSPECT_MAX_BYTES`: https://nodejs.org/docs/latest-v18.x/api/buffer.html#bufferinspect_max_bytes
- `MAX_LENGTH`: https://nodejs.org/docs/latest-v18.x/api/buffer.html#bufferconstantsmax_length
- `MAX_STRING_LENGTH`: https://nodejs.org/docs/latest-v18.x/api/buffer.html#bufferconstantsmax_string_length

- Added a new data constructor for `Encoding`: `Base64Url` (#56 by @JordanMartinez)

Bugfixes:

Expand Down
3 changes: 3 additions & 0 deletions src/Node/Encoding.purs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ data Encoding
| UTF16LE
| UCS2
| Base64
| Base64Url
| Latin1
| Binary
| Hex
Expand All @@ -24,6 +25,7 @@ instance showEncoding :: Show Encoding where
show UTF16LE = "UTF16LE"
show UCS2 = "UCS2"
show Base64 = "Base64"
show Base64Url = "Base64Url"
show Latin1 = "Latin1"
show Binary = "Binary"
show Hex = "Hex"
Expand All @@ -36,6 +38,7 @@ encodingToNode UTF8 = "utf8"
encodingToNode UTF16LE = "utf16le"
encodingToNode UCS2 = "ucs2"
encodingToNode Base64 = "base64"
encodingToNode Base64Url = "base64url"
encodingToNode Latin1 = "latin1"
encodingToNode Binary = "binary"
encodingToNode Hex = "hex"
Expand Down