Skip to content

1.2.0

Compare
Choose a tag to compare
@RandomHashTags RandomHashTags released this 16 Feb 21:55
· 178 commits to main since this release

Full Changelog: 1.1.9...1.2.0

Additions

  • is_nato_member to Country
  • is_european_union_member to Country
  • you can now return the type of a SovereignStateSubdivision from a Country
  • you can now return the type of a SovereignStateCity from a SovereignStateSubdivision
  • level-1 administrative divisions for 13 countries (Greenland, Grenada, Bermuda, Finland, the Maldives, Mozambique, Somalia, Guinea, the Marshall Islands, Morocco, Nauru, South Africa, Uganda)

Fixes

  • 4 incorrect Wikipedia URLs for SubdivisionsMadagascar

Performance Improvements

  • major: SovereignRegion's isMentioned (+ SovereignRegions.doesEqual & SovereignRegions.doesSatisfy)
  • major: SovereignRegion's keywords and other string arrays by using Sets instead of Arrays
  • major: Country's valueOfSubdivisionIdentifier
  • major: SovereignStateSubdivision's valueOfCityIdentifier
  • minor: SovereignRegion's toCorrectCapitalization

Other changes

  • replaced a large portion of functions with computed properties where appropriate (only functions that served as getters)
  • SovereignRegion cache id is now separated by their parent cache id with a hyphen
  • renamed getConditionalName to getWikipediaName (computed property=wikipedia_name)
  • Currency now conforms to LosslessStringConvertible
  • began localization journey

Removals (mostly due to redundancy/best-practice/performance improvements)

  • Country's valueOfCacheIDin favor of init?(description) and init(rawValue)
  • getIdentifier from SovereignRegion
  • getDefaultType from SovereignStateCity - now solely handled by type