-
Notifications
You must be signed in to change notification settings - Fork 28
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
Checksum, and multiple download locations, general download reliability. #68
Comments
I generally agree with this, and actually have spent the past few days looking at alternate solutions here. For me, the issue is that I want the "full" set without having to specify an environment variable or package.json property (which doesn't work with some monorepo build systems). The individual CLDR datasets are already available as npm modules already: https://github.com/unicode-cldr/cldr-json The nice thing about this package is the 'glue' in Anyway, I don't have a particular ideal solution yet, but happy to chat more about building one. |
Perhaps if this package looks for and globalises the separate npm packages and avoids downloading specifically those. Then a meta-package which depends on this and the data packages could be made. It feels a bit like a minimal-changes-hack but it's the first solution I see |
I am open to revisit globalize packages peer dep on cldr-data |
@rxaviers I've been looking at this and think I have a decent solution (at least for my own purposes, at the moment) which is based on the official Unicode CLDR npm modules. Is there any thought about taking the "glue" from Then, the next step would be to adjust the globalize-* packages to not require Thoughts? |
I liked it 👍. In that line of thought:
An unrelated change, but probably something we could do as well is either of:
|
Personally, I'd vote for depending on the official packages, assuming folks can manage the breaking change. Depending on how they use Going with the official packages eliminates unnecessary dependencies and automatically fixes the other issues you mention. I have a little time I could spend on this right now if we can agree on a direction. Can chat more in Slack, too? |
In the name of reliability and security it should be possible to have an integrity checksum with each URL in the JSON file.
It should also be possible to list multiple sources for the data. For instance, github went down for a few hours today breaking our builds because of this package. Having alternative sources would lessen this problem.
Finally I think the primary source of the data that this package uses should be on npm anyway, in many cases people use the default json file. That could just be one large package on npm, allowing local enterprise npm caches to cache the data.
The text was updated successfully, but these errors were encountered: