Closed jokull closed 9 months ago
Dug into some tests. I don't believe the global URL
class will handle the following URL's found in tests without some special cases and RegEx detection:
file://localhost
- and its variants, because URL
seems to have some special handling around not wanting to interpret hostnamesfile:
with relative paths/
pathI'm no longer convinced my proposal is viable. It will need much more work to become backwards compatible and I don't have time for that right now.
Thanks a lot for your help with this. This is really useful for us because we still need to fix the issue with Next.js so your insights help us a lot!
I want to test out two different ideas. The first one is to look for an already built 3986 parser like elysiumphase/node-uri as a replacement and the second idea is to find a workaround for the regex.
Fixed by https://github.com/tursodatabase/libsql-client-ts/pull/172 so closing this PR.
Reproduction
app/test/route.ts
Run
bun run build
.