Skip to content

Upgrading prompt_toolkit 0.53 to 0.54

Breaking0.53 → 0.54Breaking7New7Fixed5

BreakingUpgrade verdict

7 breaking changes.

  • The function for building the default layout has a new name.
  • The function for building the default application has a new name.
  • The Layout class is now called Container.
  • The redraw method on the command line interface is now called invalidate.
Top 3 of 7 that need code or config changes
Breaking7
Renames create_default_layout to create_prompt_layout.
create_default_layoutcreate_prompt_layout
Renames create_default_application to create_prompt_application.
create_default_applicationcreate_prompt_application
Renames Layout to Container.
LayoutContainer
Renames CommandLineInterfaces.request_redraw to invalidate.
CommandLineInterface.request_redrawCommandLineInterface.invalidate
Removes old pt(i)python code.
Changes the actual values of SEARCH_BUFFER, DEFAULT_BUFFER, SYSTEM_BUFFER and DUMMY_BUFFER.
SEARCH_BUFFERDEFAULT_BUFFERSYSTEM_BUFFERDUMMY_BUFFER
Changes the order of keyword arguments of BufferControl, with buffer_name now first.
BufferControlbuffer_name