-
Notifications
You must be signed in to change notification settings - Fork 762
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
feat: switch buffer to native Uint8Array #2288
Conversation
@jimmywarting please have a look at this PR. It tries to eliminate the usage of Buffer entirely. |
@mathis-m please have a look at this well if/when you have time please. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good for what is the Fallback?
d1e11f5
to
210a7cb
Compare
@mathis-m good point. I've added explicit explanation for it as a JSDOC of fallback /**
* This is a webpack@5 fallback for `buffer` library.
* swagger-js is using `querystring-browser` which depends on
* `buffer` under the hood. The usage is compatible with
* `Uint8Array` interface though.
*
* If we introduce other libraries in future that will depend on
* `buffer`, this fallback needs to be reviewed again.
*/ |
lgtm |
210a7cb
to
354f4df
Compare
Thanks guys. I've just pushed a commit which eliminates the fallback as it will cause problems for library consumers. I've replaced the |
🎉 This PR is included in version 3.17.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This is followup for #2243.
This is technically not a breaking change as we already claim for long time that minimum version of Node.js is 12.4.
Types of changes
package.json
)Checklist: