Releases: RandomHashTags/swift-sovereign-states
1.3.2
fixed a crash when trying to parse the localization bundle
Full Changelog: 1.3.1...1.3.2
1.3.1
fixed the product not being found when imported by another swift package
Full Changelog: 1.3.0...1.3.1
1.3.0
- major localization changes and additions
- added counties for many United State level-1 subdivisions
- fixed multiple incorrect Wikipedia URLs for some level-2 administration divisions
- major performance improvement to
SovereignRegion'sflag_urlcomputed property Finlandis now a NATO member- removed
SovereignRegion'sreal_name,short_name, andshort_name_decimal_separator_indexcomputed properties (now use a singularnamecomputed property
Full Changelog: 1.2.1...1.3.0
1.2.1
made wikipedia_url_suffix non-optional in Country
Full Changelog: 1.2.0...1.2.1
1.2.0
Full Changelog: 1.1.9...1.2.0
Additions
is_nato_membertoCountryis_european_union_membertoCountry- you can now return the
typeof aSovereignStateSubdivisionfrom aCountry - you can now return the
typeof aSovereignStateCityfrom 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'skeywordsand 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)
SovereignRegioncache id is now separated by their parent cache id with a hyphen- renamed
getConditionalNametogetWikipediaName(computed property=wikipedia_name) Currencynow conforms toLosslessStringConvertible- began localization journey
Removals (mostly due to redundancy/best-practice/performance improvements)
Country'svalueOfCacheIDin favor ofinit?(description)andinit(rawValue)getIdentifierfromSovereignRegiongetDefaultTypefromSovereignStateCity- now solely handled bytype
1.1.9
added 2 aliases; fixed some typos
Full Changelog: 1.1.8...1.1.9
1.1.8
can now validate if a SovereignRegion is mentioned in a string while ignoring case sensitivity.
Full Changelog: 1.1.7...1.1.8
1.1.7
adds some aliases for multiple Country
Full Changelog: 1.1.6...1.1.7
1.1.6
Bug fix relating to Country additional keywords and a change to Currency rawValue.
Full Changelog: 1.1.5...1.1.6
1.1.5
Added getCurrencies to SovereignRegion.
Full Changelog: 1.1.4...1.1.5