docs: fix deprecated Buffer constructor and formatting issues in README#7371
Merged
jasonsaayman merged 2 commits intoaxios:v1.xfrom Feb 5, 2026
Merged
docs: fix deprecated Buffer constructor and formatting issues in README#7371jasonsaayman merged 2 commits intoaxios:v1.xfrom
jasonsaayman merged 2 commits intoaxios:v1.xfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request updates the README.md documentation to modernize Node.js API usage and fix a minor formatting issue. The changes replace deprecated new Buffer() constructor calls with the modern Buffer.alloc() method, and correct spacing in the URLSearchParams section.
Changes:
- Replaced two instances of deprecated
new Buffer()withBuffer.alloc()in code examples - Fixed spacing after a comma in the URLSearchParams documentation section
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request makes minor improvements to the
README.mddocumentation. The changes update examples to use modern Node.js APIs and correct a small formatting issue.Node.js API modernization:
new Buffer()withBuffer.alloc()in code examples to follow current Node.js best practices and avoid deprecated APIs. [1] [2]Documentation formatting:
Summary by cubic
Modernize README examples by replacing deprecated new Buffer() with Buffer.alloc() and fix a small URLSearchParams formatting issue. This improves clarity and aligns docs with current Node.js practices.
Description
Testing
Written for commit 7bf9887. Summary will update on new commits.