Packages

@inquirer/core

12.1.1 · 22 Nov 2026MIT101.8M / weekRepositoryHomepagenpmAtom feed

Your version

2.2.0

23 Jun 2023Where it was published

2.3.1 is the newest release of 2.x.

In short

2 changed

Release note

  • When setting a state (useState), it'll only re-renders if the value changed.

  • When setting multiple states at once, we'll only trigger one re-renders if it happens inside a hook callback (previously each state change triggered one re-render.)

If you're setting multiple state in a callback from an async function (like setTimeout or a network call), those will not be merged in a single re-renders. For those case, you're better using a state object holding all values to reduce the amount of re-renders. Open to discuss this in #1251

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.