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
Potential breaking changes in Moment Timezone data format #678
Comments
Hello @gilmoreorless first of all, thank you for the information. I thought moment is "legacy" and "done" and just waiting for the temporal proposal. I wonder how that fits with a major refactoring of Moment ?
tldr; It would be super awesome, if there would be a new data format, that fixes the 2038 and other issues! |
I just saw that the 2038 issue is already fixed, but introduced moment/moment-timezone#999. So yes, fixing filesize, would be really important. Either by supplying several ranges of tzdb data (eg +-10 and +-100 years) and / or a by compacting data even more. I like the idea of having a separate tzdb javascript package, that is feasible also for other libraries. |
Thanks for your thoughts!
This is somewhat explained in the opening part of the issue (
That said, the potential change I'm the most hesitant about is extracting the data to one or more separate packages. I haven't properly dug into how it would work, and it might turn out to be too disruptive if a lot of the internals have to change. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
Hiya, this is a friendly heads-up. I'm planning to do a one-off breaking change release for
moment-timezone
at some (currently unspecified) point in the future, and I'm currently seeking feedback: moment/moment-timezone#1039One of the potential changes is around the date range and format of the packed JSON data. My understanding is that
js-joda
also uses these packed JSON files — is that correct? If so, I have some questions for you:packed.json
data directly, using your own parser, or do you just reuse the parsing functions inmoment-timezone-utils.js
?A rough idea of some of the format changes is detailed in some example snippets at moment/moment-timezone#1039 (comment). I'd love to get your feedback.
The text was updated successfully, but these errors were encountered: