Repository navigation
✨ Alternative & former country names (#178, #179)
getCountryCode() now resolves a curated set of alternative names — fixing name→code lookups that broke when countries adopted new ISO short names:
- Former ISO names —
Czech Republic→CZ,Cape Verde→CV,Turkey→TR,Swaziland→SZ,Macedonia→MK,Burma→MM - Common short forms —
UK/Britain→GB,US/USA/America→US,UAE→AE,Holland→NL - Historical / colonial names —
Persia→IR,Ceylon→LK,Siam→TH,Rhodesia→ZW,Abyssinia→ET,Formosa→TW,Zaire→CD, and more - Spelling variants —
Byelorussia→BY,Rumania→RO,Bahrein→BH, plus diacritic-freeCote d'Ivoire,Turkiye
New optional alias?: string[] on ICountry (also surfaced via getCountryData). A build-time guard test ensures no name, native, or alias is ever ambiguous. Adds ~1.2 KB to countries.min.json — fully non-breaking.
Myanmar (Burma) is now cleanly Myanmar, with Burma / Myanmar (Burma) kept resolvable as aliases.
🛠 Tooling (#176, #180)
- Adopt TypeScript 7; extend
check-typesto all workspace packages. - Align
packageManagerto bun@1.3.14; sync workspace versions. - Version-bump script now runs Biome format automatically (keeps releases lint-clean).
Full changelog: v3.4.0...v3.4.1