be13721499f2ecae71b4f6dd76fecba16472790418f8c8fede777c0ecb2029b86a5fba6389650cbee8468c45b555c50b66f2982f41f9f779c33f41fa380559 2.9 KB

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