Skip to content

Commit fea419a

Browse files
committed
changelog
1 parent 9bbdbf2 commit fea419a

File tree

1 file changed

+38
-6
lines changed

1 file changed

+38
-6
lines changed

CHANGELOG.md

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,44 @@
33
All notable changes to this project will be documented in this file.
44
This project adheres to [Semantic Versioning](http://semver.org/).
55

6-
## 10.0.0 (BETA) - 2017-04-01
6+
## 10.0.0 - 2017-04-04
77

8-
TODO: FINALIZE RELEASE NOTES
8+
**Standard is turning 10.0.0!** 🎉
9+
10+
As with every new major release, there are lots of new rules in 10.0.0 designed to
11+
help catch bugs and make programmer intent more explicit.
12+
13+
`standard` is more popular than ever – **330,000 downloads per month!** It's even
14+
more popular – **670,000 downloads per month** – if you include the
15+
[shareable ESLint config](https://www.npmjs.com/package/eslint-config-standard)
16+
that we also publish.
17+
18+
The most important change in 10.0.0 is that **using deprecated Node.js APIs is now
19+
considered an error**. It's finally time to update those dusty old APIs!
20+
21+
Deprecated APIs are problematic because they may print warning messages in the
22+
console in recent versions of Node.js. This often confuses users and leads to
23+
unecessary support tickets for project maintainers.
24+
25+
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 uninitialized
28+
program memory which could contain private user information, secret keys, etc.
29+
Instead of `Buffer(num)` use the new `Buffer.alloc(num)` or `Buffer.from(obj)`
30+
functions which make programmer intent clearer and work in all currently supported
31+
versions of Node.js, including Node.js 4.x. For more background,
32+
[see this Node.js issue](https://github.com/nodejs/node/issues/4660).
33+
34+
We also improved some rules to support common patterns in codebases that use React,
35+
JSX, and Flow.
36+
37+
When you upgrade, consider running `standard --fix` to automatically fix some of
38+
the issues caught by this new version.
939

1040
### New features
1141

12-
- Update ESLint from 3.15.x to 3.18.x.
42+
- Update ESLint from 3.15.x to 3.19.x.
43+
- Node.js API: Add `standard.lintTextSync` method
1344

1445
### New rules
1546

@@ -19,15 +50,16 @@ TODO: FINALIZE RELEASE NOTES
1950
- Ensures that code always runs without warnings on the lastest versions of Node
2051
- Ensures that safe Buffer methods (`Buffer.from()`, `Buffer.alloc()`) are used instead of `Buffer()`
2152
- Enforce callbacks always called with Node.js-style error first ([standard/no-callback-literal](https://github.com/xjamundx/eslint-plugin-standard#rules-explanations)) [#623](https://github.com/feross/standard/issues/623) (3%)
22-
- Functions named `callback`, `cb`, or `next` must be called with `null`, `undefined`, or an `Error` object as the first argument
23-
- Prevents accidentally using a string instead of an `Error` object
24-
- Prevents confusing callbacks that do not follow the Node.js pattern
53+
- Functions named `callback` or `cb` must be invoked with `null`, `undefined`, or an `Error` as the first argument
54+
- Disallows using a string instead of an `Error` object
55+
- Disallows confusing callbacks that do not follow the standard Node.js pattern
2556
- Disallow any imports that come after non-import statements ([import/first](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/first.md)) [#806](https://github.com/feross/standard/issues/806) (1%)
2657
- Disallow unnecessary return await ([no-return-await](http://eslint.org/docs/rules/no-return-await)) [#695](https://github.com/feross/standard/issues/695) (0%)
2758
- Disallow comma-dangle in functions ([comma-dangle](http://eslint.org/docs/rules/comma-dangle)) [#787](https://github.com/feross/standard/issues/787) (0%)
2859
- Disallow repeated exports of names or defaults ([import/export](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/export.md)) [#806](https://github.com/feross/standard/issues/806) (0%)
2960
- Disallow import of modules using absolute paths ([import/no-absolute-path](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-absolute-path.md)) [#806](https://github.com/feross/standard/issues/806) (0%)
3061
- Disallow Webpack loader syntax in imports ([import/no-webpack-loader-syntax](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-webpack-loader-syntax.md)) [#806](https://github.com/feross/standard/issues/806) (0%)
62+
- Disallow comparing against -0 ([no-compare-neg-zero](http://eslint.org/docs/rules/no-compare-neg-zero)) [#812](https://github.com/feross/standard/issues/812) (0%)
3163

3264
### Changed rules
3365

0 commit comments

Comments
 (0)