1 | ### v4.0.1 (2016-12-14)
|
---|
2 |
|
---|
3 | #### WHOOPS
|
---|
4 |
|
---|
5 | * [`fb9b1ce`](https://github.com/npm/nopt/commit/fb9b1ce57b3c69b4f7819015be87719204f77ef6)
|
---|
6 | Merged so many patches at once that the code fencing
|
---|
7 | ([@adius](https://github.com/adius)) added got broken. Sorry,
|
---|
8 | ([@adius](https://github.com/adius))!
|
---|
9 | ([@othiym23](https://github.com/othiym23))
|
---|
10 |
|
---|
11 | ### v4.0.0 (2016-12-13)
|
---|
12 |
|
---|
13 | #### BREAKING CHANGES
|
---|
14 |
|
---|
15 | * [`651d447`](https://github.com/npm/nopt/commit/651d4473946096d341a480bbe56793de3fc706aa)
|
---|
16 | When parsing String-typed arguments, if the next value is `""`, don't simply
|
---|
17 | swallow it. ([@samjonester](https://github.com/samjonester))
|
---|
18 |
|
---|
19 | #### PERFORMANCE TWEAKS
|
---|
20 |
|
---|
21 | * [`3370ce8`](https://github.com/npm/nopt/commit/3370ce87a7618ba228883861db84ddbcdff252a9)
|
---|
22 | Simplify initialization. ([@elidoran](https://github.com/elidoran))
|
---|
23 | * [`356e58e`](https://github.com/npm/nopt/commit/356e58e3b3b431a4b1af7fd7bdee44c2c0526a09)
|
---|
24 | Store `Array.isArray(types[arg])` for reuse.
|
---|
25 | ([@elidoran](https://github.com/elidoran))
|
---|
26 | * [`0d95e90`](https://github.com/npm/nopt/commit/0d95e90515844f266015b56d2c80b94e5d14a07e)
|
---|
27 | Interpret single-item type arrays as a single type.
|
---|
28 | ([@samjonester](https://github.com/samjonester))
|
---|
29 | * [`07c69d3`](https://github.com/npm/nopt/commit/07c69d38b5186450941fbb505550becb78a0e925)
|
---|
30 | Simplify key-value extraction. ([@elidoran](https://github.com/elidoran))
|
---|
31 | * [`39b6e5c`](https://github.com/npm/nopt/commit/39b6e5c65ac47f60cd43a1fbeece5cd4c834c254)
|
---|
32 | Only call `Date.parse(val)` once. ([@elidoran](https://github.com/elidoran))
|
---|
33 | * [`934943d`](https://github.com/npm/nopt/commit/934943dffecb55123a2b15959fe2a359319a5dbd)
|
---|
34 | Use `osenv.home()` to find a user's home directory instead of assuming it's
|
---|
35 | always `$HOME`. ([@othiym23](https://github.com/othiym23))
|
---|
36 |
|
---|
37 | #### TEST & CI IMPROVEMENTS
|
---|
38 |
|
---|
39 | * [`326ffff`](https://github.com/npm/nopt/commit/326ffff7f78a00bcd316adecf69075f8a8093619)
|
---|
40 | Fix `/tmp` test to work on Windows.
|
---|
41 | ([@elidoran](https://github.com/elidoran))
|
---|
42 | * [`c89d31a`](https://github.com/npm/nopt/commit/c89d31a49d14f2238bc6672db08da697bbc57f1b)
|
---|
43 | Only run Windows tests on Windows, only run Unix tests on a Unix.
|
---|
44 | ([@elidoran](https://github.com/elidoran))
|
---|
45 | * [`affd3d1`](https://github.com/npm/nopt/commit/affd3d1d0addffa93006397b2013b18447339366)
|
---|
46 | Refresh Travis to run the tests against the currently-supported batch of npm
|
---|
47 | versions. ([@helio](https://github.com/helio)-frota)
|
---|
48 | * [`55f9449`](https://github.com/npm/nopt/commit/55f94497d163ed4d16dd55fd6c4fb95cc440e66d)
|
---|
49 | `tap@8.0.1` ([@othiym23](https://github.com/othiym23))
|
---|
50 |
|
---|
51 | #### DOC TWEAKS
|
---|
52 |
|
---|
53 | * [`5271229`](https://github.com/npm/nopt/commit/5271229ee7c810217dd51616c086f5d9ab224581)
|
---|
54 | Use JavaScript code block for syntax highlighting.
|
---|
55 | ([@adius](https://github.com/adius))
|
---|
56 | * [`c0d156f`](https://github.com/npm/nopt/commit/c0d156f229f9994c5dfcec4a8886eceff7a07682)
|
---|
57 | The code sample in the README had `many2: [ oneThing ]`, and now it has
|
---|
58 | `many2: [ two, things ]`. ([@silkentrance](https://github.com/silkentrance))
|
---|