Skip to content

Commit f107095

Browse files
committed
changelog
1 parent 9223ed2 commit f107095

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,14 @@ console in recent versions of Node.js. This often confuses users and leads to
2323
unnecessary support tickets for project maintainers.
2424

2525
Some deprecated APIs are even insecure (or at least prone to incorrect usage) which
26-
can have serious security implications. For that reason, `standard` now prevents
27-
usage of `Buffer(num)` or `new Buffer(num)` since these functions return
28-
uninitialized program memory which could contain private user information or
29-
confidential secret keys.
26+
can have serious security implications. For that reason, `standard` now considers
27+
usage of `Buffer(num)` to be an error, since this function returns uninitialized
28+
program memory which could contain confidential information like passwords or keys.
3029

3130
Instead of `Buffer(num)`, consider using `Buffer.alloc(num)` or `Buffer.from(obj)`
32-
which make the programmer intention much clearer. These new functions exist in all
33-
currently supported versions of Node.js, including Node.js 4.x. For more
34-
background, [see this Node.js issue](https://github.com/nodejs/node/issues/4660).
31+
which make the programmer's intent clearer. These functions exist in all currently
32+
supported versions of Node.js, including Node.js 4.x. For more background,
33+
[see this Node.js issue](https://github.com/nodejs/node/issues/4660).
3534

3635
We also improved some rules to support common patterns in code bases that use
3736
React, JSX, and Flow.

0 commit comments

Comments
 (0)