Countries v5.1.0 Release Notes

Release Date: 2022-06-27 // almost 2 years ago
  • Important changes

    • Subdivision now has a type 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:

    • โœ‚ Remove i18n_data dependency #756 (pmor)
    • โšก๏ธ Update subdivision YAML with codes #757 (pmor)
    • โž• Add subdivision types from ISO3166-2 #758 (pmor)