I tried out webext-bridge, but it didn't work as a drop in replacement. Instead, I wrote one loosely based on it, taking ideas from how it's typed, and made my own: @anime-skip/web-ext-bridge.
IMO it's got better typescript support and while it doesn't do all the caching and queuing webext-bridge does, it's a much better interface than the Messenger class I was using before. It is also very equivalent to what the Messenger class was doing, making it an easy drop in replacement. Might turn it into an NPM library, might now :shrug:
I tried out
webext-bridge
, but it didn't work as a drop in replacement. Instead, I wrote one loosely based on it, taking ideas from how it's typed, and made my own:@anime-skip/web-ext-bridge
.IMO it's got better typescript support and while it doesn't do all the caching and queuing
webext-bridge
does, it's a much better interface than theMessenger
class I was using before. It is also very equivalent to what theMessenger
class was doing, making it an easy drop in replacement. Might turn it into an NPM library, might now :shrug:Todo