Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

[plan] release 2.0 #267

Open
caridy opened this issue Feb 28, 2017 · 0 comments
Open

[plan] release 2.0 #267

caridy opened this issue Feb 28, 2017 · 0 comments

Comments

@caridy
Copy link
Collaborator

caridy commented Feb 28, 2017

We have plans to revamp this polyfill now that the ECMA 402 4th Edition - 2017 draft was cut, and it is pending to be approved. This issue covers most of the things we want to do.

NOTE: WE NEED HELP, IF YOU CAN HELP US TO ACHIEVE THIS PLAN, JUST LET US KNOW.

Rational

ECMA402 keeps involving (and growing in features), while all major browsers already implement Intl. At the same time, this polyfill has been optimized to squeeze the data (~100kb gzip for all locales), which means that most users (+80% globally) will not really need to load the polyfill.

With that in mind, splitting this polyfill is now a possibility, and a must, if we consider the amount of new features that will be added incrementally in some browsers but not all with the same cadence of faster than ECMA 262 does it to the language. So better to be prepare for that.

Plan

  • Make this repo a multi-package repo (we can use lerna or something similar)
  • Split the existing polyfill into different independent packages
  • Each polyfill contains its own data, and builds with the data inside its bundle (custom builds should be possible)
  • Two flavors of each polyfill should be build, the default one (which includes all data for all locales), and narrow version (which includes the minimum amount of data needed for the polyfill to function, usually only the root locale or en)

Related Issues

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant