Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit ed1a85d

Browse files
committed
merge for 1.0.0 release
2 parents 45acd22 + 39632bb commit ed1a85d

9 files changed

+2180
-2319
lines changed

.eslintrc.js

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
module.exports = {
2+
extends: 'google',
3+
env: {
4+
node: true,
5+
mocha: true
6+
},
7+
plugins: [
8+
'pabigot'
9+
],
10+
rules: {
11+
'guard-for-in': 'off',
12+
'prefer-rest-params': 'off',
13+
'prefer-spread': 'off',
14+
__temporary: 'off',
15+
'arrow-parens': ['error', 'as-needed'],
16+
camelcase: 'off',
17+
curly: 'error',
18+
eqeqeq: 'error',
19+
'max-len': ['error', {code: 120, tabWidth: 2}],
20+
'no-constant-condition': 'off',
21+
'no-fallthrough': ['error', {commentPattern: 'FALLTHRU'}],
22+
'no-implicit-coercion': 'off',
23+
'no-irregular-whitespace': ['error', {skipComments: true}],
24+
'no-multi-spaces': ['error', {ignoreEOLComments: true}],
25+
'operator-linebreak': ['error', 'before'],
26+
'pabigot/affixed-ids': ['error', {
27+
allowedSuffixes: [
28+
'_dCel',
29+
'_ppt'
30+
]
31+
}],
32+
quotes: ['error', 'single', {
33+
avoidEscape: true,
34+
allowTemplateLiterals: true
35+
}],
36+
radix: ['error', 'as-needed'],
37+
'require-jsdoc': 'off',
38+
'spaced-comment': ['error', 'always', {line: {markers: ['#']}}],
39+
'valid-jsdoc': 'off',
40+
yoda: ['error', 'always', {exceptRange: true}]
41+
},
42+
parserOptions: {
43+
sourceType: 'module'
44+
}
45+
}

.travis.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
11
language: node_js
22
node_js:
3-
- "5.6"
4-
- "5.5"
5-
- "5.4"
6-
- "5.3"
7-
- "5.2"
8-
- "5.1"
9-
- "5.0"
10-
- "4.3"
11-
- "4.2"
12-
- "4.1"
13-
- "4.0"
14-
- "0.12"
3+
- "node"
4+
- "8"
5+
- "6"
6+
- "4"
157
after_success:
16-
- npm run lint.strict
17-
- npm run jscs
8+
- npm run eslint
189
- npm run coveralls

CHANGELOG.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Change Log
22

3+
## [1.0.0] - 2017-12-17
4+
5+
* Minimum Node version increased to 4.5 to support dependency
6+
on
7+
[Buffer.alloc()](https://nodejs.org/dist/latest-v4.x/docs/api/buffer.html#buffer_class_method_buffer_alloc_size_fill_encoding).
8+
* Removed [patch][node:issue#3994] for [ancient buffer bug][node:issue#3992]
9+
* Update to ES6 classes and other features
10+
* Documentation clarifications.
11+
* Update dependent packages.
12+
* Switch to [npm:eslint] and deal with fallout.
13+
314
## [0.13.0] - 2016-03-27
415

516
* **API** Add [fieldFor][doc:BitStructure.fieldFor].
@@ -10,7 +21,7 @@
1021

1122
* Disable coverage testing for [patchIssue3992][doc:patchIssue3992] to
1223
avoid taking a penalty on node versions that have been updated.
13-
24+
1425
## [0.12.0] - 2016-03-08
1526

1627
* **API** Replace `setClassLayout` with [bindConstructorLayout][doc:bindConstructorLayout].
@@ -99,12 +110,14 @@
99110
list.
100111
* Document [destination parameter to decode][issue#2].
101112
* Allow [user-defined name for union discriminators][issue#1].
102-
113+
103114
## 0.1.0 - 2015-10-25
104115

105116
* Initial release.
106117

107-
[0.13.0]: https://github.com/pabigot/buffer-layout/compare/v0.12.1...v0.13.0
118+
[1.0.0]: https://github.com/pabigot/buffer-layout/compare/v0.13.0...v1.0.0
119+
[0.13.0]: https://github.com/pabigot/buffer-layout/compare/v0.12.0...v0.13.0
120+
[0.12.1]: https://github.com/pabigot/buffer-layout/compare/v0.12.0...v0.12.1
108121
[0.12.0]: https://github.com/pabigot/buffer-layout/compare/v0.11.0...v0.12.0
109122
[0.11.0]: https://github.com/pabigot/buffer-layout/compare/v0.10.0...v0.11.0
110123
[0.10.0]: https://github.com/pabigot/buffer-layout/compare/v0.9.0...v0.10.0
@@ -120,6 +133,7 @@
120133
[doc:bindConstructorLayout]: http://pabigot.github.io/buffer-layout/module-Layout.html#.bindConstructorLayout
121134
[doc:BitField]: http://pabigot.github.io/buffer-layout/module-Layout-BitField.html
122135
[doc:BitStructure]: http://pabigot.github.io/buffer-layout/module-Layout-BitStructure.html
136+
[doc:BitStructure.fieldFor]: http://pabigot.github.io/buffer-layout/module-Layout-BitStructure.html#fieldFor
123137
[doc:Blob]: http://pabigot.github.io/buffer-layout/module-Layout-Blob.html
124138
[doc:Blob.length]: http://pabigot.github.io/buffer-layout/module-Layout-Blob.html#length
125139
[doc:Boolean]: http://pabigot.github.io/buffer-layout/module-Layout-Boolean.html
@@ -158,8 +172,10 @@
158172
[ci:travis]: https://travis-ci.org/pabigot/buffer-layout
159173
[ci:coveralls]: https://coveralls.io/github/pabigot/buffer-layout
160174
[node:issue#3992]: https://github.com/nodejs/node/issues/3992
175+
[node:issue#3994]: https://github.com/nodejs/node/issues/3994
161176
[npm:istanbul]: https://www.npmjs.com/package/istanbul
162177
[npm:jscs]: https://www.npmjs.com/package/jscs
178+
[npm:eslint]: https://www.npmjs.com/package/eslint
163179

164180
<!---
165181
# Local Variables:

0 commit comments

Comments
 (0)