-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
replace 'opening_hours' with 'simple-opening-hours' #347
Comments
can you assign this? |
@Kishore-abhimanyu If you want to work on this, just do so and provide a pull-request 👍 |
Raised a pull request. Please review and merge it. See #349. |
✔️ moment.js has been replaced with day.js in #343 |
Yes. This still would simplify things but also remove some functionality. |
Ooh. Like what? Do the libraries not provide the same functionality? |
simple-opening-hours "only supports the human readable parts". e.g.
opening_hours supports a much more compley syntax. I think we don't need this over-engineered syntax and should stick to the "human readable" stuff :-) |
Sounds reasonable at first hand. It would be interesting to find out how many of the current data points cannot be handled by days.js. The result would help to support the decision whether a migration make sense. Related: Yesterday, I reached out to the Berlin Senat to sort out the "sonstige" data points which cannot be parsed by opening_hours.js. Pending response. |
Meanwhile, the number of "sonstige" markets has been reduced for Berlin. Still some to be sorted out. |
opening_hours is very complex and has dependencies on moment.js, i18next-client and suncalc.
At the moment opening_hours accounts for about 37% of the complete bundle size!
It looks like simple-opening-hours also does, what we want but with a much smaller footprint!
The text was updated successfully, but these errors were encountered: