Changes in Libp2pJS PubSub Library


Im trying to use the libp2p library and listen on a specific topic. I saw that in previous versions there were a function node.pubsub.on(topic, handler), but it got removed. On the other hand, this function is still on the documentation and proves to be really useful to define different handlers on specific topics, instead of having an addEventListener(‘message’, handler) to all of them. Can you tell me if I’m doing something wrong, if I should not expect to have .on function?