Inquirer.js 8.6.0

8.6.0
Added 1
  • Add initialValue option to @inquirer/search to pre-fill the search input
Changed 1
  • Update @inquirer/core to 12.0.0, which makes the useState setter accept a reducer/updater function
Fixed 4
  • Fix floating-point step errors in @inquirer/number
  • Allow @inquirer/number to accept explicit undefined as default
  • Allow @inquirer/confirm to accept explicit undefined as default
  • Allow @inquirer/editor to accept explicit undefined as default

From Inquirer.js

@inquirer/prompts@8.6.0

The all-in-one prompts package, re-exporting every individual prompt at its latest version.

Highlights

This release rides on @inquirer/core@12.0.0, which makes the useState setter accept a reducer/updater function. It also brings a new initialValue option to search, plus fixes for number, confirm, and editor.

What's new
  • @inquirer/search — new initialValue?: string option to pre-fill the search input (#2205)
What's fixed
  • @inquirer/number — avoid floating-point step errors; accept explicit undefined as default (#2166, #2182)
  • @inquirer/confirm — accept explicit undefined as default (#2182)
  • @inquirer/editor — accept explicit undefined as default (#2182)
Included prompts
  • @inquirer/checkbox@5.2.2
  • @inquirer/confirm@6.2.0
  • @inquirer/editor@5.3.0
  • @inquirer/expand@5.1.2
  • @inquirer/input@5.1.3
  • @inquirer/number@4.2.0
  • @inquirer/password@5.1.2
  • @inquirer/rawlist@5.3.2
  • @inquirer/search@4.3.0
  • @inquirer/select@5.2.2

Note: This release depends on @inquirer/core@^12.0.0, which contains a breaking change to the useState setter type (it now accepts a reducer function). See the @inquirer/core@12.0.0 release notes for details.

View original

Upgraded? How did it go?

Discussion