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_url
computed property Finland
is now a NATO member- removed
SovereignRegion
'sreal_name
,short_name
, andshort_name_decimal_separator_index
computed properties (now use a singularname
computed 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_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
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