Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For those of us unfamiliar, how long until stuff comes out of experimental?


In general "when we feel it's ready". For some features I've worked recently (like `flatMap` and friends for streams) I think it'll take about a year.

For `fetch` it will take us around a year or two probably.

I wrote more details on the PR itself but I (and others) basically feel strongly that it should be as close to compliant as possible (Deno have a nice list which they happily shared with us of how they diverge and that seems reasonable).

Basically there is a bunch of stuff that should happen first:

- We need to run (and pass) the web platform tests.

- We want to go over the spec (again) and check compliance and add more tests and fix bugs.

- We want community feedback on the implementation and to improve the DX to be better (while not sacrificing spec compliance).

- We want better support for stuff like `File` in core.

- Web streams need to go out of experimental first.

This was a _long_ road that had many stepping stones (like EventTarget, AbortController, Blob, ReadableStream etc). It's important to get it right.

Worth mentioning the fact it's experimental doesn't mean it's not safe to use in simple code in this case - it just means if you make your code behave in a way that diverges from the specification we may change our implementation to match the specification and break your code.

Anything like `await fetch('./someUrl').then(x => x.text())` should be fine.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: