Upgrading prompt_toolkit 0.53 to 0.54
Breaking0.53 → 0.54Breaking7New7Fixed5
BreakingUpgrade verdict
7 breaking changes.
In plain terms
- 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.
Must act Top 3 of 7 that need code or config changes
What you must change
Breaking7
Renames create_default_layout to create_prompt_layout.
create_default_layoutcreate_prompt_layoutRenames create_default_application to create_prompt_application.
create_default_applicationcreate_prompt_applicationRenames Layout to Container.
LayoutContainerRenames CommandLineInterfaces.request_redraw to invalidate.
CommandLineInterface.request_redrawCommandLineInterface.invalidateRemoves old pt(i)python code.
Changes the actual values of SEARCH_BUFFER, DEFAULT_BUFFER, SYSTEM_BUFFER and DUMMY_BUFFER.
SEARCH_BUFFERDEFAULT_BUFFERSYSTEM_BUFFERDUMMY_BUFFERChanges the order of keyword arguments of BufferControl, with buffer_name now first.
BufferControlbuffer_name