opening_hours 3.11.0 → 3.12.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.md CHANGED
@@ -8,6 +8,30 @@ SPDX-License-Identifier: LGPL-3.0-only
8
8
 
9
9
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
10
10
 
11
+ ## [3.12.0](https://github.com/opening-hours/opening_hours.js/compare/v3.11.0...v3.12.0) (2026-03-21)
12
+
13
+
14
+ ### Features
15
+
16
+ * add error tolerance tests for languages with Unicode characters and ambiguous words ([3f9fe33](https://github.com/opening-hours/opening_hours.js/commit/3f9fe33ba5a613959b13b34942434f27a93cd0b3))
17
+ * also use short names for weeks and months ([44d059a](https://github.com/opening-hours/opening_hours.js/commit/44d059a9bf7d9d69a66c6c64a398fc4e400c12c7))
18
+ * expand locale pattern discovery to 3-letter codes ([032c18a](https://github.com/opening-hours/opening_hours.js/commit/032c18a779dc7a06254409413bd74dde2edbec78))
19
+ * implement dynamic word error correction generator with zero dependencies ([361ca2d](https://github.com/opening-hours/opening_hours.js/commit/361ca2d4e5a5ccb408be32d7168bc832cb5ab891))
20
+
21
+
22
+ ### Documentation
23
+
24
+ * rename develop branch to main (overwrites main) ([5cde3f5](https://github.com/opening-hours/opening_hours.js/commit/5cde3f57cc18898ef0ad995fcd4126d709c1b86a)), closes [#554](https://github.com/opening-hours/opening_hours.js/issues/554)
25
+ * update localization documentation to include word error correction system details ([957cc5c](https://github.com/opening-hours/opening_hours.js/commit/957cc5cbc2bd5ea0d6d50189fc6ccf81cd426f60))
26
+
27
+
28
+ ### Code Refactoring
29
+
30
+ * adapt yargs calls to v18 API ([f0ea1c7](https://github.com/opening-hours/opening_hours.js/commit/f0ea1c7b70ab1b2114a6fd255b91e1db3ac4b352))
31
+ * remove non-functional concept script `scripts/gen_word_error_correction.js`` ([c22fff9](https://github.com/opening-hours/opening_hours.js/commit/c22fff9bac62a540e7953304fed26c68be41bd0b))
32
+ * remove redundant entries from manual word corrections ([b5fc898](https://github.com/opening-hours/opening_hours.js/commit/b5fc8986ccf725d0a1610690dc0112d7cb7cff37))
33
+ * replace String.prototype patching with c namespace for style helpers ([8e384bd](https://github.com/opening-hours/opening_hours.js/commit/8e384bd969072773a46b723dd4a88934fe40b420))
34
+
11
35
  ## [3.11.0](https://github.com/opening-hours/opening_hours.js/compare/v3.10.0...v3.11.0) (2026-01-25)
12
36
 
13
37
 
package/Makefile CHANGED
@@ -81,7 +81,7 @@ build/opening_hours.js \
81
81
  build/opening_hours.min.js \
82
82
  build/opening_hours.esm.mjs \
83
83
  build/opening_hours+deps.js \
84
- build/opening_hours+deps.min.js: src/index.js
84
+ build/opening_hours+deps.min.js: src/index.js src/locales/word_error_correction.yaml
85
85
  node_modules/.bin/rollup -c
86
86
 
87
87
  .PHONY: check
@@ -213,7 +213,7 @@ benchmark-%.js: build/%.js scripts/benchmark.mjs
213
213
 
214
214
  .PHONY: check-package.json
215
215
  check-package.json: package.json
216
- ./node_modules/package-json-validator/lib/bin/pjv.js --warnings --recommendations --filename "$<"
216
+ ./node_modules/.bin/package-json-validator-cli --warnings --recommendations --filename "$<"
217
217
 
218
218
  .PHONY: check-holidays
219
219
  check-holidays: scripts/PH_SH_exporter.js
@@ -247,8 +247,13 @@ release-local-resign-tag: package.json
247
247
  git tag --delete "v$(shell jq --raw-output '.version' $<)"
248
248
  git tag --sign --local-user="$(RELEASE_OPENPGP_FINGERPRINT)" --message="chore(release): $(shell jq --raw-output '.version' $<)" "v$(shell jq --raw-output '.version' $<)"
249
249
 
250
+ # "build" target currently does not guarantee correctness [1].
251
+ # GNU make is not the right tool for this so we just force make as workaround.
252
+ #
253
+ # [1]: https://bazel.build/reference/glossary#correctness
250
254
  .PHONY: release-publish
251
255
  release-publish:
256
+ $(MAKE) $(MAKE_OPTIONS) --always-make build
252
257
  git push --follow-tags origin
253
258
  npm publish
254
259
  @echo "Manually create release on https://github.com/opening-hours/opening_hours.js/releases"
@@ -499,6 +504,10 @@ osm-tag-data-gen-stats-sort:
499
504
  done
500
505
  ## }}}
501
506
 
507
+ src/locales/word_error_correction.yaml: scripts/gen_word_error_correction.mjs
508
+ @echo "Generating word error correction data..."
509
+ $(NODEJS) scripts/gen_word_error_correction.mjs >/dev/null
510
+
502
511
  README.html:
503
512
 
504
513
  %.html: %.md