POV: You maintain a JS library that 80% of modern web infrastructure uses as a dependency.
(lemmy.blahaj.zone)
🤔 1
I see your point regarding global scope. But personally, I’ve never encountered an issue with it. And it’s kinda nice not to have to import fetch every time you need it.
Regarding subdomains, if you’ll humor my curiosity: What’s the use case? I also wonder what an API for this might look like.
const {domain, subdomains, rootDomain} = new URL('https://wikipedia.org/')
// 'wikipedia.org', [], 'wikipedia.org'
const {domain, subdomains, rootDomain} = new URL('https://foo.bar.baz.net/')
// 'foo.bar.baz.net', ['foo.bar.baz.net', 'bar.baz.net'], 'baz.net'