Skip to content

Allow specifying an encoding output in fromBase64#130

Merged
sethvargo merged 1 commit into
mainfrom
sethvargo/encode_out
Apr 25, 2025
Merged

Allow specifying an encoding output in fromBase64#130
sethvargo merged 1 commit into
mainfrom
sethvargo/encode_out

Conversation

@sethvargo
Copy link
Copy Markdown
Contributor

Also updates deps

@sethvargo sethvargo requested a review from a team as a code owner April 25, 2025 16:21
@sethvargo sethvargo requested review from Copilot and verbanicm April 25, 2025 16:21
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enables the fromBase64 function to output in a specified encoding and updates dependencies accordingly.

  • Updated tests to include a custom output encoding scenario
  • Modified fromBase64 to handle an optional outEncoding parameter with a default value
  • Adjusted ESLint globals to recognize BufferEncoding

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

File Description
tests/encoding.test.ts Added a test case to verify custom encoding output functionality
src/encoding.ts Updated fromBase64 to support an optional outEncoding parameter
eslint.config.mjs Added BufferEncoding as a readonly global to support type checking
Files not reviewed (1)
  • package.json: Language not supported

@sethvargo sethvargo force-pushed the sethvargo/encode_out branch from 435dbf5 to 613e527 Compare April 25, 2025 16:22
@sethvargo sethvargo enabled auto-merge (squash) April 25, 2025 16:23
@sethvargo sethvargo force-pushed the sethvargo/encode_out branch from 613e527 to 024af8b Compare April 25, 2025 16:23
@sethvargo sethvargo force-pushed the sethvargo/encode_out branch from 024af8b to 37ea9e2 Compare April 25, 2025 16:24
@sethvargo sethvargo merged commit a1193f1 into main Apr 25, 2025
6 checks passed
@sethvargo sethvargo deleted the sethvargo/encode_out branch April 25, 2025 17:48
google-github-actions-bot added a commit that referenced this pull request Apr 25, 2025
## What's Changed
* Allow specifying an encoding output in `fromBase64` by @sethvargo in
#130


**Full Changelog**:
v0.8.6...v0.8.7

---------

Co-authored-by: Seth Vargo <seth@sethvargo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants