Skip to content

Latest commit

 

History

History
74 lines (46 loc) · 2.14 KB

changelog.md

File metadata and controls

74 lines (46 loc) · 2.14 KB

CHANGELOG

1.4.1 - 01/12/2021

  • Fixed KG (Kyrgyzstan)
  • Changes Saint Barthelemy to official name Saint Barthélemy

1.2.4 - 24/11/2021

  • Added XK (Republic of Kosovo)
  • Added BN (Brunei Darussalam)

1.2.2 - 21/11/2021

  • Minor internal updates
  • Moved to esbuild minifier
  • pnpm linked dependencies
  • dropped const enum Country export
  • Updated docs

1.2.1 - 05/11/2021

Improved type support and provided error handling for when invalid or incorrect ISO codes are provided.

  • Added literal union support for argument code
  • Added type support for country name reference of return
  • Added error support when an unmatched ISO is provided
  • Appended "(DPRK)" to "North Korea" country name.
  • Added const enum Country export which uses Country Names to map ISO codes
  • Exposed ISO code Union type to export

1.2.0 - 24/10/2021

  • Added CountryCodes type export

1.1.2 - 10/09/2021

Replaced development rollup dependencies to use @brixtol/rollup-config

1.1.1 - 23/08/2021

Extend prettier config in package.json file and align readme.

1.1.0 - 23/08/2021

Mostly development space adjustments, no code was modified, aside from the eslint formats that were applied to source. In addition, the module also exposes the mapping object on the exports.

Breakdown

1.0.0 - 22/08/2021

Dropped support of default exports. This module uses named exports. The module typings now export an identical interface of countries.

Named export
import { getCountryName } from '@brixtol/country-names';

const country = getCountryName('SE'); // Sweden
Breakdown
  • No longer support default exports, project now uses named export approach.
  • Provided interface of country mappings, available on ICountries

0.1.0 - 17/08/2021

  • Initial Release