Skip to content
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

Do not require timezone data directly for cljs #898

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

dvingo
Copy link
Contributor

@dvingo dvingo commented Apr 18, 2023

When making a release cljs build I noticed js-joda was around 700kb and then realized the malli.experimental.time namespace was pulling in all historical timezone data.
See the note at the bottom of the package for more info: https://www.npmjs.com/package/@js-joda/timezone
using the +/- 5 year range adds ~30kb.

This change requires ClojureScript users of malli to include the timezone data of their choice explicitly.

I had to convert the zone-id-gen to a function due to ZoneId now not being available until runtime.

@ikitommi
Copy link
Member

ikitommi commented Aug 8, 2023

This makes sense. Thanks!!

@ikitommi ikitommi merged commit b5c58c6 into metosin:master Aug 8, 2023
@ikitommi ikitommi mentioned this pull request Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants