Skip to content

Releases: RandomHashTags/swift-sovereign-states

1.3.2

14 May 21:53
Compare
Choose a tag to compare

fixed a crash when trying to parse the localization bundle

Full Changelog: 1.3.1...1.3.2

1.3.1

01 May 07:28
Compare
Choose a tag to compare

fixed the product not being found when imported by another swift package

Full Changelog: 1.3.0...1.3.1

1.3.0

01 May 07:17
Compare
Choose a tag to compare
  • 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's flag_url computed property
  • Finland is now a NATO member
  • removed SovereignRegion's real_name, short_name, and short_name_decimal_separator_index computed properties (now use a singular name computed property

Full Changelog: 1.2.1...1.3.0

1.2.1

19 Feb 16:47
Compare
Choose a tag to compare

made wikipedia_url_suffix non-optional in Country

Full Changelog: 1.2.0...1.2.1

1.2.0

16 Feb 21:55
Compare
Choose a tag to compare

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

1.1.9

14 Jan 16:18
Compare
Choose a tag to compare

added 2 aliases; fixed some typos

Full Changelog: 1.1.8...1.1.9

1.1.8

12 Nov 19:44
Compare
Choose a tag to compare

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

09 Nov 17:52
Compare
Choose a tag to compare

adds some aliases for multiple Country

Full Changelog: 1.1.6...1.1.7

1.1.6

05 Nov 18:24
Compare
Choose a tag to compare

Bug fix relating to Country additional keywords and a change to Currency rawValue.

Full Changelog: 1.1.5...1.1.6

1.1.5

20 Oct 06:58
Compare
Choose a tag to compare

Added getCurrencies to SovereignRegion.

Full Changelog: 1.1.4...1.1.5