You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

135 lines
5.0 KiB

4 years ago
  1. # Release history
  2. All notable changes to this project will be documented in this file.
  3. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
  4. and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
  5. <details>
  6. <summary><strong>Guiding Principles</strong></summary>
  7. - Changelogs are for humans, not machines.
  8. - There should be an entry for every single version.
  9. - The same types of changes should be grouped.
  10. - Versions and sections should be linkable.
  11. - The latest version comes first.
  12. - The release date of each versions is displayed.
  13. - Mention whether you follow Semantic Versioning.
  14. </details>
  15. <details>
  16. <summary><strong>Types of changes</strong></summary>
  17. Changelog entries are classified using the following labels _(from [keep-a-changelog](http://keepachangelog.com/)_):
  18. - `Added` for new features.
  19. - `Changed` for changes in existing functionality.
  20. - `Deprecated` for soon-to-be removed features.
  21. - `Removed` for now removed features.
  22. - `Fixed` for any bug fixes.
  23. - `Security` in case of vulnerabilities.
  24. </details>
  25. ## 2.3.6 - 2020-07-02
  26. ### Changed
  27. - Upgraded [ansi-colors](https://github.com/doowb/ansi-colors) dependency to v4, thanks to [@trySound](https://github.com/TrySound), [#297](https://github.com/enquirer/enquirer/pull/297).
  28. ## 2.3.5 - 2020-04-07
  29. ### Fixed
  30. - PR #259 fixed typing numbers in the autocomplete prompt, which fixes #112, #199, and #237
  31. - PR #266 add the `template` property to the `SnippetPromptOptions` TypeScript interface
  32. ## 2.3.4 - 2020-01-13
  33. ### Added
  34. - `MultiSelectPrompt` new example for `result` option.
  35. ### Fixed
  36. - Updated typings to use `EventEmitter` class from `events` directly due to changes in `@types/node`.
  37. ## 2.3.3 - 2020-01-13
  38. ### Added
  39. - `BooleanPrompt` new example for `header` option.
  40. ### Fixed
  41. - using `await` in `keypress` and returning the `number` result in the `array` type fixes an issue with tests failing only on Travis
  42. - `autocomplete` highlighting issue
  43. - Typos in some documentation and example comments.
  44. - Syntax errors in example code on the README.md.
  45. ## 2.3.2 - 2019-09-17
  46. ### Added
  47. - `AuthPrompt` type for creating authentication based prompts.
  48. - `BasicAuth` prompt as an example of creating an authentication prompt using basic username/password authentication
  49. - Examples for different authentication prompts.
  50. - `QuizPrompt`
  51. ### Fixed
  52. - More examples were updated to fix any known bugs.
  53. - Couple of fixes to the editable and autocomplete prompts.
  54. - Documentation updates to highlight options available to some prompts.
  55. ## 2.3.1 - 2019-07-12
  56. ### Fixed
  57. - Several examples were updated to align with latest code changes and to fix small bugs found in the implementation of the example.
  58. - Some bugs found from updating examples were fixed.
  59. - Updates to documentation to provide more information on how to use prompts and the options available.
  60. ## 2.1.0 - 2018-11-29
  61. ### Fixed
  62. - Several improvements were made for handling custom `format`, `result` and `initial` functions defined on the options.
  63. ## 2.0.7 - 2018-11-14
  64. ### Fixed
  65. - `validate` function now properly accepts `false` as a return value, thanks to [@g-plane](https://github.com/g-plane).
  66. ### Added
  67. - Adds support for <kbd>ctrl</kbd>+<kbd>n</kbd> to add choices
  68. - Adds support for `options.required` on all prompts. Uses the built-in `validate()` function, allowing this functionality to be overridden or customized.
  69. - Adds support for `options.scroll` to disable scrolling in array prompts.
  70. - Adds support for `options.onRun`, which is called when `prompt.run()` is called, after the readline instance is created.
  71. - Adds support for `options.history` on the `Input` and `Text` prompts.
  72. - Adds support for `options.term` to set the terminal, thanks to [@tunnckoCore](https://github.com/tunnckoCore). At the moment this is only used in a couple of edge cases with the `Survey` and `Scale` prompts to check if the terminal is Hyper.
  73. - `options.skip` may now be a Boolean, thanks to [@tunnckoCore](https://github.com/tunnckoCore)
  74. ## 2.0.0 - 2018-11-07
  75. ### Changed
  76. Enquire 2.0 is a bottom-up complete re-write:
  77. - Several prompts that were previously published as individual packages will be included in Enquirer itself.
  78. - Why? - As users, we didn't like having to add commonly-used prompts as plugins. Enquirer 2.0 will still support custom prompts as plugins, but many prompts will also be built-in.
  79. - Enquirer will only have a single dependency, https://github.com/doowb/ansi-colors, which itself has no other dependencies). This will make Enquirer easier to maintain and faster for users.
  80. - Methods for registering "questions" have been removed. While it was nice to be able to preregister questions that could be called upon later, this is something that is better left to implementors, as it's relatively trivial to do with custom code.
  81. - `options.default` is now `options.initial`
  82. ### Added
  83. - Many prompts that were previously separate packages are now bundled into Enquirer itself.
  84. [Unreleased]: https://github.com/enquirer/enquirer/compare/2.0.2...HEAD
  85. [keep-a-changelog]: https://github.com/olivierlacan/keep-a-changelog