Skip to content

Releases

Version 1.0.2

Choose a tag to compare

@sricharankrishnan sricharankrishnan released this 31 Jul 06:24
f068930

Simple Country Flags API Client: Version 1.0.2

  1. enabled tree shaking for the package
  2. side effects set to false in package json file
  3. no changes were made to the package logic, unit tests run as expected

NPM Package Deployed: https://www.npmjs.com/package/simple-country-flags-api-client

Version 1.0.1

Choose a tag to compare

@sricharankrishnan sricharankrishnan released this 31 May 04:26
802b01d

Simple Country Flags API Client: v1.0.1

  • created SECURITY.md
    a. clarifies that package is not making any third party requests
    b. no network requests are made
    c. no malicious intent
  • created publish.yml
    a. github actions workflow
    b. done to establish trusted publish/source of code
  • tsconfig updated - remove test being bundled in the production build
  • package.json: version update with the above updates
  • README.md
    a. added badges for NPM Provenance and Security Policy
    b. introductory section to SECURITY.md
    c. new banner illustration added

NPM Package: https://www.npmjs.com/package/simple-country-flags-api-client

Version 1.0.0

Choose a tag to compare

@sricharankrishnan sricharankrishnan released this 18 Mar 03:19

Official Public Release. No changes to repo code and all functionalities remain stable.
NPM Package Published: https://www.npmjs.com/package/simple-country-flags-api-client

Version 0.9.0-beta.1

Choose a tag to compare

@sricharankrishnan sricharankrishnan released this 12 Mar 12:05

🇺🇳 simple-country-flags-api-client is a tiny TypeScript/JavaScript helper that generates type‑safe image URLs for country flags from https://flagsapi.com/ and exposes a curated, strongly‑typed list of supported countries for UI dropdowns and selectors.

📦 Installation

npm install --save simple-country-flags-api-client

📗 Test Coverage

PASS  src/get-supported-countries/test/index.test.ts
  getSupportedCountries
    ✓ returns an array with length greater than zero
    ✓ ensures each item has "name" and "code" string properties
    ✓ ensures each "code" is exactly 2 characters long
    ✓ ensures each code is uppercase
    ✓ ensures there are no duplicate codes

PASS  src/get-flag-icon/test/index.test.ts
  getFlagIcon
    ✓ returns the URL based on the input params
    ✓ returns a URL that contains "https://flagsapi.com" as a substring
    ✓ returns a flat 16px URL in /style/size.png order
    ✓ returns a shiny 64px URL in /style/size.png order
-------------------------|---------|----------|---------|---------|-------------------
File                     | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
-------------------------|---------|----------|---------|---------|-------------------
All files                |     100 |      100 |     100 |     100 |                   
 get-flag-icon           |     100 |      100 |     100 |     100 |                   
  index.ts               |     100 |      100 |     100 |     100 |                   
 get-supported-countries |     100 |      100 |     100 |     100 |                   
  index.ts               |     100 |      100 |     100 |     100 |                   
-------------------------|---------|----------|---------|---------|-------------------
Test Suites: 2 passed, 2 total
Tests:       9 passed, 9 total

NPM Package Release: https://www.npmjs.com/package/simple-country-flags-api-client