Discourse Plugin API Changes: Using api.registerValueTransformer for addPostMenuButton and component:topic-list

I updated my local development Discourse to version 3.5.0.beta2-dev, and the plugin API version is 2.1.1. How can I use api.registerValueTransformer for the addPostMenuButton and component:topic-list functions?