• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tselect-npm / countries
100%

Build:
DEFAULT BRANCH: main
Repo Added 30 Aug 2026 04:29PM UTC
Token 5r9BWIW2588KScnbGgTSrkP3GMzENZVvv regen
Build 2 Last
Files 15
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • chore/modernize
  • main

30 Aug 2026 04:40PM UTC coverage: 100.0%. First build
33323121906

push

github

web-flow
:boom: Modernize the toolchain, and fix three bugs in the published package

Brings countries onto the scope's toolchain — pnpm, tsdown dual ESM+CJS, Vitest,
Biome, TypeScript 7, the org-wide reusable CI — and fixes three bugs found on the
way, two of them in the shipped public API.

The branch's gitmoji series, which the squash collapses:

  :bug:                 Ship only compiled JavaScript in the published package
  :wrench:              Migrate to pnpm
  :sparkles:            Add dual ESM + CJS build via tsdown, on TypeScript 7
  :bug:                 Drop lodash — the ESM entry threw on import
  :white_check_mark:    Migrate test suite to Vitest
  :bug:                 Key the language indexes by the enum member, not an uppercased one
  :bug:                 Resolve the macrolanguages, and stop leaking undefined into getLanguages()
  :white_check_mark:    Cover the rest of the API, to 100%
  :rotating_light:      Replace TSLint with Biome
  :memo:                Rewrite the README, and make its examples a test
  :construction_worker: Run CI and releases from the org-wide reusable workflows
  :wrench:              Declare engines.node >=22

Major four times over: engines.node >=22; the exports map closing deep imports;
ILanguage's four code getters returning different strings; and Countries.get(ME)
now throwing.

The three bugs, all present in the published 1.0.0:

  1. The ESM entry threw on import. lodash was used for one function, toPairs,
     via `import * as Lodash`, and the datasets are built at module scope — so
     `import '@tselect/countries'` died with `TypeError: Lodash.toPairs is not a
     function` before any consumer code ran. Object.entries replaces it; zero
     runtime dependencies now.

  2. Languages keyed its four indexes uppercase against lowercase enums, so all
     185 lookups by an enum member returned undefined, the getters returned
     values outside their declared types, and ICountry.hasLanguage() was
     structura... (continued)

22 of 22 branches covered (100.0%)

Branch coverage included in aggregate %.

30 of 30 new or added lines in 12 files covered. (100.0%)

1295 of 1295 relevant lines covered (100.0%)

37.15 hits per line

Relevant lines Covered
Build:
Build:
1295 RELEVANT LINES 1295 COVERED LINES
37.15 HITS PER LINE
Source Files on main
  • Tree
  • List 15
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
33323121906 main :boom: Modernize the toolchain, and fix three bugs in the published package Brings countries onto the scope's toolchain — pnpm, tsdown dual ESM+CJS, Vitest, Biome, TypeScript 7, the org-wide reusable CI — and fixes three bugs found on the way, tw... push 30 Aug 2026 04:40PM UTC web-flow github
100.0
33322586011 chore/modernize Merge fb821e416 into d988f2392 Pull #16 30 Aug 2026 04:29PM UTC web-flow github
100.0
See All Builds (2)

Badge your Repo: countries

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc