Skip to content

Conversation

@minggangw
Copy link
Member

@minggangw minggangw commented Oct 28, 2025

This PR removes deprecated SlowBuffer support from the ref-napi library. SlowBuffer was deprecated in Node.js v6.0.0 and removed in later versions, making this legacy compatibility code unnecessary for modern Node.js versions.

Key Changes:

  • Removed the SlowBuffer prototype extension block that copied Buffer methods to SlowBuffer
  • Eliminated the conditional check for whether SlowBuffer inherits from Buffer

Fix: #1312

Copilot AI review requested due to automatic review settings October 28, 2025 07:50
Copy link

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 removes deprecated SlowBuffer support from the ref-napi library. SlowBuffer was deprecated in Node.js v6.0.0 and removed in later versions, making this legacy compatibility code unnecessary for modern Node.js versions.

Key Changes:

  • Removed the SlowBuffer prototype extension block that copied Buffer methods to SlowBuffer
  • Eliminated the conditional check for whether SlowBuffer inherits from Buffer

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coveralls
Copy link

Coverage Status

coverage: 81.767% (-0.03%) from 81.795%
when pulling 374eab3 on fix-1312
into 525fba1 on develop.

@minggangw minggangw merged commit ce7c19b into develop Oct 28, 2025
18 checks passed
minggangw added a commit that referenced this pull request Oct 30, 2025
This PR removes deprecated `SlowBuffer` support from the ref-napi library. `SlowBuffer` was deprecated in Node.js v6.0.0 and removed in later versions, making this legacy compatibility code unnecessary for modern Node.js versions.

**Key Changes:**
- Removed the `SlowBuffer` prototype extension block that copied Buffer methods to SlowBuffer
- Eliminated the conditional check for whether `SlowBuffer` inherits from `Buffer`

Fix: #1312
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove SlowBuffer to support nodejs v25

3 participants