Upgrading prompt_toolkit 0.50 to 0.51
Breaking0.50 → 0.51Breaking8New4Changed1Fixed4Other1
BreakingUpgrade verdict
8 breaking changes.
In plain terms
- 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.
Must act Top 3 of 8 that need code or config changes
What you must change
Breaking8
Disables search by default in KeyBindingManager.
KeyBindingManagerSeparates abort/exit key bindings and disables them by default in KeyBindingManager.
KeyBindingManagerMakes 'Ignore' the default on_abort action in Application.
Applicationon_abortMakes 'Ignore' the default accept_action in Buffer.
Bufferaccept_actionRenames SwitchableValidator to ConditionalValidator.
SwitchableValidatorConditionalValidatorRefactors the layout processors, changing the API.
Makes several incompatible changes to WindowRenderInfo.
WindowRenderInfoRefactors margins completely so the window holds the margin instead of BufferControl, improving performance and flexibility.
BufferControl