You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed the alphabet filter rendering 26 dead letters in every non-Latin script; the rail is now derived from the country names in the selected language, so Arabic, Russian, Korean, Persian, Ukrainian and Urdu index correctly. Chinese, whose names start with ~150 distinct characters, drops the rail instead of rendering an unusable one;
Fixed the bottom sheet staying expanded after the keyboard closed, and clamped the drag so it can no longer be stretched past the screen;
Fixed t() returning undefined for language codes outside the map ("pt-BR"), which left the search placeholder and every accessibility label empty; unknown codes now fall back to English;
Fixed truncated calling codes: Saint Helena showed +2 instead of +290, Western Sahara +2 instead of +212, Vatican City +3 instead of +39;
Fixed scrollToIndex throwing when an alphabet jump ran against a list that had shrunk in the meantime;
Fixed selectedCountries leaking into the props forwarded to Modal;
Fixed every visible country row re-rendering on each keystroke in the search box;
Removed accessibilityRole="text" from the search input, which made screen readers announce an editable field as static text;
Changed popularCountries to ICountryCca2[], matching visibleCountries and hiddenCountries;
Reduced the published package from 10.5 MB to 3.6 MB by dropping source maps and README artwork and minifying the bundled dataset; dist/index.js went from 1.46 MB to 1.09 MB;
Improved sort performance: the sort key is built once per country instead of on both sides of every comparison, ~250 normalizations per search instead of ~4000;
Removed the stale split-countries pipeline, the duplicate lib/index.d.ts and the unused getCountryNameInLanguage util;
Added npm test, a dependency-free self-check covering the alphabet, translations, search, filters and sorting across all 33 languages, wired into CI and prepublishOnly;