-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move Cached*Iterable and mapContext out of the fluent package #212
Comments
As the first step, I'd like to move As far as @zbraniecki I'm looking for a second opinion here. Does this look like a good plan forward? |
I'm totally with you on moving As to |
If my attempt to rewrite |
I created https://github.com/projectfluent/cached-iterable and published version 0.1.0 which is the same as |
Sadly, the new For browsers which don't support async functions, Babel uses a short function called For older browsers which don't support generators, Babel falls back on to the Next, for even older browsers, Babel also transpiles the The entire problem boils down to the list of browsers that we support. That's #133. |
Good news! #133 landed last week and with the updated browser support matrix, the I think there's still value in moving I'll wait a few days for the feedback in #222 before creating the new package in case we drop the name |
In #273 I moved |
The
fluent
package currently exposes the following exports (among others):CachedSyncIterable
CachedAsyncIterable
mapContextSync
mapContextAsync
The async exports have been a source of upgrading pains for web projects targeting older browsers. The transpiled
fluent/compat
build requires theregeneratorRuntime
provided bybabel-polyfill
which can significantly increase the bundle size of a web app. This was the reason why we created thefluent
0.4.x branch which uses a Syntax 0.5-compatible parser but doesn't add the async iterables to the API.I'd like to fix this by moving the iterables and the
mapContext
methods out of thefluent
package, so thatfluent
can be updated independently of these iteration helpers.The text was updated successfully, but these errors were encountered: