Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module: use buffer.toString base64 #56315

Merged
merged 2 commits into from
Dec 21, 2024

Conversation

legendecas
Copy link
Member

btoa only supports latin-1 charset and produces invalid source mapping urls.

This also forbids usage of btoa in lib/ without particular reasons.

Refs: #56296

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/loaders

@nodejs-github-bot nodejs-github-bot added module Issues and PRs related to the module subsystem. needs-ci PRs that need a full CI run. labels Dec 19, 2024
@legendecas legendecas changed the title modules: use buffer.toString base64 module: use buffer.toString base64 Dec 19, 2024
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.54%. Comparing base (0d00511) to head (5f90d08).
Report is 19 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #56315      +/-   ##
==========================================
+ Coverage   88.04%   88.54%   +0.50%     
==========================================
  Files         657      657              
  Lines      190290   190297       +7     
  Branches    36245    36535     +290     
==========================================
+ Hits       167536   168499     +963     
+ Misses      15893    14979     -914     
+ Partials     6861     6819      -42     
Files with missing lines Coverage Δ
lib/internal/modules/typescript.js 100.00% <100.00%> (ø)

... and 93 files with indirect coverage changes

`btoa` only supports latin-1 charset and produces invalid source
mapping urls.
lib/eslint.config_partial.mjs Outdated Show resolved Hide resolved
@aduh95 aduh95 added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Dec 19, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 19, 2024
@nodejs-github-bot
Copy link
Collaborator

@aduh95 aduh95 added the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 19, 2024
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 21, 2024
@nodejs-github-bot nodejs-github-bot merged commit 4fd5db4 into nodejs:main Dec 21, 2024
64 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in 4fd5db4

@legendecas legendecas deleted the module/forbid-btoa branch December 21, 2024 12:04
@Patrikoska1

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. module Issues and PRs related to the module subsystem. needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants