1.2.0
Full Changelog: 1.1.9...1.2.0
Additions
is_nato_member
toCountry
is_european_union_member
toCountry
- you can now return the
type
of aSovereignStateSubdivision
from aCountry
- you can now return the
type
of aSovereignStateCity
from aSovereignStateSubdivision
- 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
'sisMentioned
(+SovereignRegions.doesEqual
&SovereignRegions.doesSatisfy
) - major:
SovereignRegion
'skeywords
and other string arrays by using Sets instead of Arrays - major:
Country
'svalueOfSubdivisionIdentifier
- major:
SovereignStateSubdivision
'svalueOfCityIdentifier
- minor:
SovereignRegion
'stoCorrectCapitalization
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
togetWikipediaName
(computed property=wikipedia_name
) Currency
now conforms toLosslessStringConvertible
- began localization journey
Removals (mostly due to redundancy/best-practice/performance improvements)
Country
'svalueOfCacheID
in favor ofinit?(description)
andinit(rawValue)
getIdentifier
fromSovereignRegion
getDefaultType
fromSovereignStateCity
- now solely handled bytype