opening_hours 3.6.0 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.rst +48 -2
- package/Makefile +1 -1
- package/README.md +3 -3
- package/build/opening_hours.js +537 -57
- package/package.json +26 -20
- package/site/js/i18n-resources.js +202 -124
- package/site/js/opening_hours_table.js +14 -5
- package/types/index.d.ts +95 -0
package/CHANGELOG.rst
CHANGED
|
@@ -83,6 +83,8 @@ Contributors
|
|
|
83
83
|
* [napei_] - Nathaniel Peiffer
|
|
84
84
|
* [fodor0205_]
|
|
85
85
|
* [goodudetheboy_] - Vuong Ho
|
|
86
|
+
* [MerlinPerrotLegler_] - Merlin Perrot
|
|
87
|
+
|
|
86
88
|
|
|
87
89
|
Thanks very much to all contributors!
|
|
88
90
|
|
|
@@ -145,6 +147,7 @@ Thanks very much to all contributors!
|
|
|
145
147
|
.. _napei: https://nathaniel.peiffer.com.au/
|
|
146
148
|
.. _fodor0205: https://github.com/fodor0205
|
|
147
149
|
.. _goodudetheboy: https://github.com/goodudetheboy
|
|
150
|
+
.. _MerlinPerrotLegler: https://github.com/MerlinPerrotLegler
|
|
148
151
|
|
|
149
152
|
|
|
150
153
|
Supporters
|
|
@@ -161,10 +164,53 @@ Thanks for helping by allowing employees to work on the project during work hour
|
|
|
161
164
|
master_ - unreleased
|
|
162
165
|
--------------------
|
|
163
166
|
|
|
164
|
-
.. _master: https://github.com/opening-hours/opening_hours.js/compare/v3.
|
|
167
|
+
.. _master: https://github.com/opening-hours/opening_hours.js/compare/v3.7.0...master
|
|
168
|
+
|
|
169
|
+
`v3.9.0 milestone <https://github.com/opening-hours/opening_hours.js/issues?q=milestone%3Av3.9.0+is%3Aclosed>`__
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
v3.8.0_ - 2022-05-18
|
|
173
|
+
--------------------
|
|
174
|
+
|
|
175
|
+
.. _v3.8.0: https://github.com/opening-hours/opening_hours.js/compare/v3.7.0...v3.8.0
|
|
176
|
+
|
|
177
|
+
Added
|
|
178
|
+
~~~~~
|
|
179
|
+
|
|
180
|
+
* Public holiday definitions added:
|
|
181
|
+
|
|
182
|
+
* Argentina
|
|
183
|
+
|
|
184
|
+
* Localizations added:
|
|
185
|
+
|
|
186
|
+
* Vietnamese
|
|
187
|
+
|
|
188
|
+
Changed
|
|
189
|
+
~~~~~~~
|
|
190
|
+
|
|
191
|
+
* School holiday definitions updated:
|
|
192
|
+
|
|
193
|
+
* Romania
|
|
194
|
+
* France
|
|
195
|
+
|
|
196
|
+
Fixed
|
|
197
|
+
~~~~~
|
|
198
|
+
|
|
199
|
+
* Typing for typescript
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
v3.7.0_ - 2021-07-24
|
|
203
|
+
--------------------
|
|
204
|
+
|
|
205
|
+
.. _v3.7.0: https://github.com/opening-hours/opening_hours.js/compare/v3.6.0...v3.7.0
|
|
165
206
|
|
|
166
207
|
`v3.7.0 milestone <https://github.com/opening-hours/opening_hours.js/issues?q=milestone%3Av3.7.0+is%3Aclosed>`__
|
|
167
208
|
|
|
209
|
+
Added
|
|
210
|
+
~~~~~
|
|
211
|
+
|
|
212
|
+
* Typing for typescript [MerlinPerrotLegler_]
|
|
213
|
+
|
|
168
214
|
v3.6.0_ - 2021-04-24
|
|
169
215
|
--------------------
|
|
170
216
|
|
|
@@ -210,7 +256,7 @@ Added
|
|
|
210
256
|
* Misused ``.`` character. Example: ``Jan 01,Dec 24.-25.``. [ypid_]
|
|
211
257
|
* Trailing ``,`` after time selector. Example: ``We 12:00-18:00,``. [ypid_]
|
|
212
258
|
* Additional rule which evaluates to closed. Example: ``Mo-Fr 10:00-20:00, We off``. [ypid_]
|
|
213
|
-
* Value consists of multiple rules each only using a time selector. Example: ``11:30-14:30;17:30-23:00``. [
|
|
259
|
+
* Value consists of multiple rules each only using a time selector. Example: ``11:30-14:30;17:30-23:00``. [ypid_]
|
|
214
260
|
* Potentially missing use of ``<additional_rule_separator>`` if the previous
|
|
215
261
|
rule has a time range which wraps over midnight and the current rule
|
|
216
262
|
matches one of the following days of the previous rule.
|
package/Makefile
CHANGED
|
@@ -120,7 +120,7 @@ doctoc:
|
|
|
120
120
|
|
|
121
121
|
## Build files which are needed to host the evaluation tool on a webserver.
|
|
122
122
|
.PHONY: ready-for-hosting
|
|
123
|
-
ready-for-hosting: dependencies-get opening_hours+deps.min.js
|
|
123
|
+
ready-for-hosting: dependencies-get build/opening_hours+deps.min.js
|
|
124
124
|
|
|
125
125
|
## command line programs {{{
|
|
126
126
|
.PHONY: run-regex_search
|
package/README.md
CHANGED
|
@@ -623,7 +623,7 @@ Almost everything from opening_hours definition is supported, as well as some ex
|
|
|
623
623
|
|
|
624
624
|
- To evaluate the correct holidays, the country code and the state (could be omitted but this will probably result in less correctness) are required which are included in the JSON returned by [Nominatim] \(see in the [Library API][ohlib.library-api] how to provide it\).
|
|
625
625
|
|
|
626
|
-
- If your country or state is missing or wrong you can [add it][ohlib.contribute.holidays] or
|
|
626
|
+
- If your country or state is missing or wrong you can [add it][ohlib.contribute.holidays]. Please note that issues for missing or wrong holidays cannot be handled. There are just to many countries for them to be handled by one spare time maintainer. See also [issue #300](https://github.com/opening-hours/opening_hours.js/issues/300).
|
|
627
627
|
|
|
628
628
|
### Month ranges
|
|
629
629
|
|
|
@@ -909,7 +909,7 @@ Edit: This does also work on npmjs in this short version … -->
|
|
|
909
909
|
[ohlib.time-ranges]: #time-ranges
|
|
910
910
|
[ohlib.states]: #states
|
|
911
911
|
[ohlib.holidays]: #holidays
|
|
912
|
-
[ohlib.contribute.holidays]:
|
|
912
|
+
[ohlib.contribute.holidays]: /src/holidays/
|
|
913
913
|
[ohlib.evaluation-tool]: #evaluation-tool
|
|
914
914
|
[ohlib.library-api]: #library-api
|
|
915
915
|
[ohlib.testing]: #testing
|
|
@@ -929,7 +929,7 @@ Edit: This does also work on npmjs in this short version … -->
|
|
|
929
929
|
[ph-be]: https://de.wikipedia.org/wiki/Feiertage_in_Belgien
|
|
930
930
|
[ph-br]: https://pt.wikipedia.org/wiki/Feriados_no_Brasil
|
|
931
931
|
[ph-ca]: https://en.wikipedia.org/wiki/Public_holidays_in_Canada
|
|
932
|
-
[ph-ch]: https://www.bj.admin.ch/dam/data/
|
|
932
|
+
[ph-ch]: https://www.bj.admin.ch/dam/bj/de/data/publiservice/service/zivilprozessrecht/kant-feiertage.pdf.download.pdf/kant-feiertage.pdf
|
|
933
933
|
[ph-ci]: https://fr.wikipedia.org/wiki/Jour_f%C3%A9ri%C3%A9#_C%C3%B4te_d%27Ivoire
|
|
934
934
|
[ph-cz]: https://en.wikipedia.org/wiki/Public_holidays_in_the_Czech_Republic
|
|
935
935
|
[ph-de]: https://de.wikipedia.org/wiki/Feiertage_in_Deutschland
|