Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@Gudahtt
Copy link

@Gudahtt Gudahtt commented Sep 10, 2021

The deprecated Buffer constructor has been replaced with Buffer.from and Buffer.alloc. This removes deprecation warnings when this library is used.

There were some instances where either the Buffer constructor or Buffer.from was used, depending on whether Buffer.from was defined. But this was unnecessary because the engines field of this package ensures that the minimum Node.js version used is 6, which includes the Buffer.from method.

The deprecated Buffer constructor has been replaced with `Buffer.from`
and `Buffer.alloc`. This removes deprecation warnings when this library
is used.

There were some instances where either the Buffer constructor or
`Buffer.from` was used, depending on whether `Buffer.from` was defined.
But this was unnecessary because the `engines` field of this package
ensures that the minimum Node.js version used is 6, which includes the
`Buffer.from` method.
Gudahtt added a commit to MetaMask/metamask-extension that referenced this pull request Sep 10, 2021
The warnings about use of the unsafe Buffer constructor have been
addressed by package updates and patches.

The updates were:
 * `gulp-sourcemaps` was updated from v2 to v3, and was patched to
replace remaining uses of the `Buffer` constructor
   * Upstream PR: gulp-sourcemaps/gulp-sourcemaps#388
 * The transitive dependency `yazl` was updated from v2.4.3 to v2.5.1
in the lockfile.
 * The abandoned packages `combine-source-map` and `inline-source-map`
were patched.
Gudahtt added a commit to MetaMask/metamask-extension that referenced this pull request Sep 27, 2021
The warnings about use of the unsafe Buffer constructor have been
addressed by package updates and patches.

The updates were:
 * `gulp-sourcemaps` was updated from v2 to v3, and was patched to
replace remaining uses of the `Buffer` constructor
   * Upstream PR: gulp-sourcemaps/gulp-sourcemaps#388
 * The transitive dependency `yazl` was updated from v2.4.3 to v2.5.1
in the lockfile.
 * The abandoned packages `combine-source-map` and `inline-source-map`
were patched.
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.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.