Skip to content

Upgrading prompt_toolkit 0.50 to 0.51

Breaking0.50 → 0.51Breaking8New4Changed1Fixed4Other1

BreakingUpgrade verdict

8 breaking changes.

  • Disables search by default in KeyBindingManager.
  • Separates abort/exit key bindings and disables them by default in KeyBindingManager.
  • Makes 'Ignore' the default on_abort action in Application.
  • Makes 'Ignore' the default accept_action in Buffer.
Top 3 of 8 that need code or config changes
Breaking8
Disables search by default in KeyBindingManager.
KeyBindingManager
Separates abort/exit key bindings and disables them by default in KeyBindingManager.
KeyBindingManager
Makes 'Ignore' the default on_abort action in Application.
Applicationon_abort
Makes 'Ignore' the default accept_action in Buffer.
Bufferaccept_action
Renames SwitchableValidator to ConditionalValidator.
SwitchableValidatorConditionalValidator
Refactors the layout processors, changing the API.
Makes several incompatible changes to WindowRenderInfo.
WindowRenderInfo
Refactors margins completely so the window holds the margin instead of BufferControl, improving performance and flexibility.
BufferControl