Countries v5.1.0 Release Notes

Release Date: 2022-06-27 // 3 months 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 #755 (pmor)
    • โšก๏ธ Update subdivision YAML with codes #757 (pmor)
    • โž• Add subdivision types from ISO3166-2 #758 (pmor)

Previous changes from v5.0.2

  • ๐Ÿ”€ Merged pull requests:

    • ๐Ÿ›  Fix common name for IR #754 (pmor)
    • โšก๏ธ Update MX subdivisions: Remove DIF and update some unofficial names #755 (pmor)