Skip to content

v0.5.4

Choose a tag to compare

@AstrOOnauta AstrOOnauta released this 29 Sep 18:03
· 5 commits to main since this release

0.5.4

  • Fixed the search keeping its text after a single-select pick: a picker kept mounted (toggling visible) reopened with the previous query and a filtered list. Selecting a country now clears the search, like the close button and the backdrop already did;
  • Fixed getCountriesByName ignoring diacritics: "sao tome", "curacao" and "reunion" found nothing, while the modal search matched them. Results only widen, no query returns fewer countries than before;
  • Added Jest and React Native Testing Library: the self-check moved to Jest, and CountrySelect is now tested end to end (search, single and multi select, popular sections, visible/hidden filters, close button, backdrop in both modal types, Android back button, alphabet filter, languages). 52 tests, written in TypeScript and type-checked by npm run typecheck;
  • Added a Tests workflow on every push and pull request, and a tests badge in the README;
  • Updated the dev dependencies used by the tests to React 19.1 and React Native 0.82. peerDependencies and the published type declarations are unchanged;
  • Removed the tsx dev dependency, unused since the Jest migration.