Skip to content

feat: migrate to es6 class instead of util.inherit in http2wrapper#1764

Merged
titanism merged 1 commit into
forwardemail:masterfrom
tobiasdiez:es6_http2wrapper
Aug 15, 2023
Merged

feat: migrate to es6 class instead of util.inherit in http2wrapper#1764
titanism merged 1 commit into
forwardemail:masterfrom
tobiasdiez:es6_http2wrapper

Conversation

@tobiasdiez

Copy link
Copy Markdown
Contributor

It is recommended to no longer use util.inherits but instead use es6 classes and extends, see https://nodejs.org/api/util.html#utilinheritsconstructor-superconstructor. In this PR we follow this advice and migrate the http2wrapper accordingly. Other instances of util.inherit are left for follow-up PRs.

@titanism

Copy link
Copy Markdown
Collaborator

v8.1.0 released which fixes this issue, thank you

npm install superagent@8.1.0

release notes @ https://github.com/ladjs/superagent/releases/tag/v8.1.0

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.

2 participants