James Browning
James Browning
> A relative URL of "./#hash" will cause a page refresh. One can always remove `.hash` / `.query` before passing the urls to `URL.relative`.
> That means special-case behaviour for something unexpected. It's `URL.relative` not `path.relative`, I don't think it's unexpected at all that `URL.relative('https://foo.bar/#qux', 'https://foo.bar/boz')` is `./#qux` given that `new URL('./#qux', 'https://foo.bar/boz')` is...
> It's pretty unexpected that you chose that particular relative representation This is the shortest form that works everywhere relative imports are supported, other forms like `#qux` won't work in...
> import is not the only use case for relative URLs. I know this but `./`-prefixed urls work *everywhere* relative urls are accepted in the spec which is why this...
> it operates on module specifiers. Contorting the requirements of a hypothetical URL API for module specifiers seems like a non-starter. Yes but all "module specifiers" that start with `./`...
So `AbortSignal.any` has been merged but I don't believe the changes from `AbortSignal.any` actually do anything to affect the cleanup of the associated abort steps for fetch. Like consider the...
Given fixing, as has been pointed out, is potentially problematic to automatically fix, could this instead be provided via [a suggestion](https://eslint.org/docs/latest/extend/custom-rules#providing-suggestions)?
I for one have wanted `Infinity`/`-Infinity` as a special case for things that otherwise take BigInts e.g. ranges: ```js function* bigintRange(low: bigint, high: bigint | Infinity, step?: bigint=1n): Generator {...
> In your example you could just as well replace the Infinity with undefined. Having a dedicated Infinity type would not help you in this case, because Infinity would be...
> The signature should _probably_ be These signatures should take async iterables not iterators. Also it should [accept sync iterables](https://github.com/tc39/proposal-array-from-async#sync-iterable-inputs) as well: ```ts interface ArrayConstructor { fromAsync(iterable: AsyncIterable | Iterable):...