Skip to content

chore(release): v3.4.1 - #180

Merged
dmythro merged 2 commits into
mainfrom
chore/release-3.4.1
Jul 14, 2026
Merged

chore(release): v3.4.1#180
dmythro merged 2 commits into
mainfrom
chore/release-3.4.1

Conversation

@dmythro

@dmythro dmythro commented Jul 14, 2026

Copy link
Copy Markdown
Member

Release v3.4.1 — bundles the country-name alias work merged since v3.4.0 (#178 + #179).

User-facing

getCountryCode(name) now resolves a curated set of alternative and former names, fixing name→code lookups that broke on ISO renames:

  • Former ISO short names: Czech Republic, Cape Verde, Turkey, Swaziland, Macedonia, Burma.
  • Common short forms: UK, Britain, US, USA, America, UAE, Holland.
  • Historical / colonial names: Persia, Ceylon, Siam, Rhodesia, Abyssinia, Formosa, Zaire, …
  • Spelling variants: Byelorussia, Rumania, Bahrein, … and diacritic-free Cote d'Ivoire, Turkiye.

Also cleans the Myanmar (Burma) name hack → name is now Myanmar with Burma/Myanmar (Burma) as aliases. New optional alias?: string[] on ICountry; a guard test prevents any ambiguous alias. Adds ~1.2 KB to countries.min.json; non-breaking.

Release mechanics

  • Version → 3.4.1 across composer.json, root + packages/countries package.json, dist/package.json, and the lockfile.
  • dist/ rebuilt and committed (the release exception to the no-dist-in-PRs rule) — aliases baked into countries.min.json, CSV, SQL, and the JS bundles.
  • Tooling: the version-bump script now runs bun run format at the end, so the JSON.stringify vs Biome array-wrapping mismatch no longer fails bun run lint (hit during this release).

After merge

gh release create v3.4.1 creates the tag and triggers the npm publish workflow.

Verified: bun run ci green — lint, 3 typecheck targets, build, 22 tests.

dmythro added 2 commits July 14, 2026 17:42
The bump re-serializes composer.json/package.json with JSON.stringify, whose
array wrapping differs from Biome and fails `bun run lint`. Run `bun run format`
at the end so the release stays lint-clean without a manual step.
@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ffd4d19e-8024-4596-bb80-abd478bdc3cb

📥 Commits

Reviewing files that changed from the base of the PR and between 66d92dd and 5f21c7d.

⛔ Files ignored due to path filters (11)
  • dist/cjs/currencies.js is excluded by !**/dist/**
  • dist/cjs/index.js is excluded by !**/dist/**
  • dist/countries.csv is excluded by !**/dist/**, !**/*.csv
  • dist/countries.min.json is excluded by !**/dist/**
  • dist/data.sql is excluded by !**/dist/**
  • dist/index.d.ts is excluded by !**/dist/**
  • dist/index.iife.js is excluded by !**/dist/**
  • dist/minimal/countries.en.min.json is excluded by !**/dist/**
  • dist/mjs/currencies.js is excluded by !**/dist/**
  • dist/mjs/index.js is excluded by !**/dist/**
  • dist/package.json is excluded by !**/dist/**
📒 Files selected for processing (4)
  • composer.json
  • package.json
  • packages/countries/package.json
  • packages/scripts/version.ts

📝 Walkthrough

Walkthrough

Package versions in the Composer root manifest, workspace manifest, and countries package manifest are bumped from 3.4.0 to 3.4.1. The versioning script now runs bun run format from the repository root after updating dependencies and logs that Biome formatting was applied.

Poem

A rabbit bumps the version bright,
From three-four-zero to three-four-one tonight.
Bun hops through installs with care,
Biome combs each curly hair.
“Done!” the meadow sings with cheer.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is detailed, but it omits the required verified source URLs for the alias/data updates. Add the verified source URLs for the country-name alias changes, or remove the data-verification section if no sources are needed.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately summarizes the release version bump.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/release-3.4.1

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Release v3.4.1 updating published artifacts to include the recently merged country-name alias support in getCountryCode(name), along with the corresponding data regeneration and version bumps across the JS + Composer distributions.

Changes:

  • Bumps versions to 3.4.1 across workspace/package artifacts (package.json, composer.json, dist/package.json, etc.)
  • Rebuilds and commits dist/ outputs so aliases and the Myanmar name cleanup are reflected in shipped JSON/CSV/SQL and JS bundles
  • Updates the version-bump script to run bun run format after writing JSON + updating the lockfile to avoid Biome formatting drift

Reviewed changes

Copilot reviewed 4 out of 15 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/scripts/version.ts Runs bun run format after version/lock updates to normalize JSON formatting for Biome/lint.
packages/countries/package.json Bumps package version to 3.4.1.
package.json Bumps workspace version to 3.4.1.
composer.json Bumps Composer package version to 3.4.1.
dist/package.json Bumps dist package version to 3.4.1.
dist/mjs/index.js Rebuilt ESM bundle including alias-aware getCountryCode logic and updated dataset.
dist/mjs/currencies.js Rebuilt ESM currencies bundle header version bump.
dist/cjs/currencies.js Rebuilt CJS currencies bundle header version bump.
dist/index.d.ts Updates ICountry typings to include optional alias?: string[].
dist/countries.min.json Rebuilt minified countries dataset including alias fields and Myanmar rename.
dist/minimal/countries.en.min.json Updates minimal EN names dataset (Myanmar cleanup).
dist/countries.csv Updates CSV export for Myanmar name cleanup.
dist/data.sql Updates SQL export for Myanmar name cleanup.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dmythro
dmythro merged commit 1c39332 into main Jul 14, 2026
4 checks passed
@dmythro
dmythro deleted the chore/release-3.4.1 branch July 14, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants