Countries v5.1.0 Release Notes
Release Date: 2022-06-27 // almost 2 years ago-
Important changes
Subdivision
now has atype
attribute obtained from ISO3166-2 subdivision types.type
is a lowercase and snake_cased string.- Adds
Country#subdivision_types
and#humanized_subdivision_types
to list a country's subdivision types - Adds
Country#subdivisions_of_types(types)
to allow getting subdivisions of given type(s) - ๐
Country#states
is now deprecated to avoid confusion (this method was just an alias to#subdivisions
and retuns all subdivisions, regarless of type)
๐ Merged pull requests: