From 3d838ef4e1e9e385f5bde8d3a155c6798c58aef1 Mon Sep 17 00:00:00 2001 From: Javi R <4920956+rameerez@users.noreply.github.com> Date: Sat, 10 Oct 2026 05:20:24 +0100 Subject: [PATCH] 0.1.5: country count read from the dataset manifest (was "14", dataset has 15) "official registers of N countries" in the npm description, the library header and the README is now synced from VehiclesDB's manifest.json (`countries`) by scripts/sync-countries.mjs (zero deps); prepublishOnly runs it with --check so a stale count can never be published again. Synced: 15 (ar ca de es fi gb ie lu my nl no nz th ua us, release v2026.10.0). Offline unit test added. No npm publish from this change. Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- make-model-dropdown.js | 2 +- package.json | 8 +++-- scripts/sync-countries.mjs | 66 ++++++++++++++++++++++++++++++++++++ test/sync-countries.test.mjs | 14 ++++++++ 5 files changed, 87 insertions(+), 5 deletions(-) create mode 100644 scripts/sync-countries.mjs create mode 100644 test/sync-countries.test.mjs diff --git a/README.md b/README.md index 203dfba..f44f717 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Car, motorcycle and truck make and model dropdown -**The make/model picker you stopped hand-maintaining.** `make-model-dropdown` turns two `` elements into a dependent make → model dropdown, populated live from the [VehiclesDB API](https://vehiclesdb.com/api): **14,000+ models across 850+ makes**, six vehicle kinds — cars, motorcycles (motorbikes), mopeds, vans, trucks and buses — reconciled from the official vehicle registers of 15 countries and refreshed monthly. One `kind` option turns the same widget into a car picker, a motorcycle picker or a truck picker. Zero dependencies. No build step. Works with plain HTML forms, React, Vue, Rails, anything that renders a `