Skip to content

0.1.5: country count read from the dataset manifest (was 14, dataset has 15) - #4

Open
rameerez wants to merge 1 commit into
mainfrom
s4w/devq-countries
Open

rameerez wants to merge 1 commit into
mainfrom
s4w/devq-countries

Conversation

@rameerez

Copy link
Copy Markdown
Contributor

"official registers of 14 countries" in the npm description, the JS header and the README was stale (VehiclesDB v2026.10.0 has 15 register countries: ar ca de es fi gb ie lu my nl no nz th ua us). It was a hand-typed fact; now it is read from the dataset's own manifest.json (countries).

  • scripts/sync-countries.mjs (zero deps, Node >= 18): node scripts/sync-countries.mjs [--manifest <path|url>] [--check]; default source https://raw.githubusercontent.com/vehiclesdb/vehiclesdb/main/manifest.json (main carries the last release's build outputs).
  • prepublishOnly runs it with --check, so a stale count fails the publish instead of shipping.
  • test/sync-countries.test.mjs (offline): distinct-country counting, phrase rewrite touches nothing else. npm test: 20/20 pass.
  • Version 0.1.5. No npm publish (owner/release only).

Not changed: "14,000+ models, 850+ makes" (still true: 14,997 / 860+).

🤖 Generated with Claude Code

…t 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 <[email protected]>
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.

1 participant