The RequestComponentSelector protocol and the ComponentSelector type are generic now to allow more flexible integrations.
RequestComponentSelector.get_component_id() was renamed to RequestComponentSelector.get_component() as a consequence of the above change.
How to migrate from 2.0.0.-rc1:
If you have custom component selector implementations, just rename your RequestComponentSelector.get_component_id() methods to RequestComponentSelector.get_component().
If you've written a custom integration, just add the required generic type to ComponentSelector type hints.
Changes (breaking):
RequestComponentSelector
protocol and theComponentSelector
type are generic now to allow more flexible integrations.RequestComponentSelector.get_component_id()
was renamed toRequestComponentSelector.get_component()
as a consequence of the above change.How to migrate from
2.0.0.-rc1
:RequestComponentSelector.get_component_id()
methods toRequestComponentSelector.get_component()
.ComponentSelector
type hints.