Some URL methods not supported in convex runtime
I'm using
normalize-url
, which works both in Node and the web - it looks like some of the web URL api isn't supported. I have a number of places to normalize url inputs and pushing that through an action is going to be pretty loopy.
Curious if support is in the cards.
The offending library code:
5 Replies
Hmm I bet you're not fully supporting
URL
to keep the runtime lightWe can see how much effor this would take
"to keep the runtime light" is a most generous way to put this, thank you @erquhart — there's some truth to that but mostly we haven't gotten around to it, since https://www.npmjs.com/package/normalize-url is huge we should add support for this.
npm
normalize-url
Normalize a URL. Latest version: 8.0.0, last published: a year ago. Start using normalize-url in your project by running
npm i normalize-url
. There are 1307 other projects in the npm registry using normalize-url.actually just hitting that error automatically logs it as "someone tried to use this API, tally it torwards us implementing it"
Nice, thanks for the context! I'll limit my use to client side for now