Skip to content

fix: replace usages of Buffer#slice() with Buffer#subarray()#11326

Merged
kodiakhq[bot] merged 2 commits intomainfrom
fix/deprecated-buffer-slice
Dec 2, 2025
Merged

fix: replace usages of Buffer#slice() with Buffer#subarray()#11326
kodiakhq[bot] merged 2 commits intomainfrom
fix/deprecated-buffer-slice

Conversation

@almeidx
Copy link
Copy Markdown
Member

@almeidx almeidx commented Nov 29, 2025

Buffer#slice has been deprecated since Node.js v16.15.01.

Footnotes

  1. https://nodejs.org/api/buffer.html#bufslicestart-end

@vercel
Copy link
Copy Markdown

vercel bot commented Nov 29, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
discord-js Ignored Ignored Preview Dec 2, 2025 11:08pm
discord-js-guide Ignored Ignored Preview Dec 2, 2025 11:08pm

@codecov
Copy link
Copy Markdown

codecov bot commented Nov 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 43.53%. Comparing base (2520a0f) to head (74b7cef).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11326      +/-   ##
==========================================
- Coverage   43.68%   43.53%   -0.16%     
==========================================
  Files         375      375              
  Lines       19354    19311      -43     
  Branches     1884     1880       -4     
==========================================
- Hits         8455     8407      -48     
- Misses      10886    10891       +5     
  Partials       13       13              
Flag Coverage Δ
voice 61.47% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Jiralite Jiralite added this to the voice 0.20.0 milestone Nov 29, 2025
@github-project-automation github-project-automation bot moved this from Todo to Review Approved in discord.js Dec 2, 2025
@kodiakhq kodiakhq bot merged commit 87b359e into main Dec 2, 2025
27 checks passed
@kodiakhq kodiakhq bot deleted the fix/deprecated-buffer-slice branch December 2, 2025 23:13
@github-project-automation github-project-automation bot moved this from Review Approved to Done in discord.js Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants