Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: annexare/Countries
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.0.6
Choose a base ref
...
head repository: annexare/Countries
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 8 commits
  • 29 files changed
  • 2 contributors

Commits on Mar 4, 2024

  1. Update data & types (new partOf, userAssigned params) (#135)

    * Bump modules
    
    * Update types and data for cases like #36 and #132
    
    * Update comments in types.ts
    
    * Update phone code for Kazakhstan to just `7` #134
    
    * Case insensitive search in getCountryCode function #131
    
    * Rebuild dist data
    dmythro authored Mar 4, 2024
    Copy the full SHA
    db04d49 View commit details
  2. v3.1.0

    dmythro committed Mar 4, 2024
    Copy the full SHA
    d342f5b View commit details
  3. Switch to named exports within sources

    dmythro committed Mar 4, 2024
    Copy the full SHA
    c65b2d6 View commit details

Commits on Jul 31, 2024

  1. chore: Update dependencies, Turborepo 2.0, TypeScript 5.5

    dmythro committed Jul 31, 2024
    Copy the full SHA
    9612859 View commit details
  2. chore: Update Husky pre-commit script

    dmythro committed Jul 31, 2024
    Copy the full SHA
    2605783 View commit details
  3. chore: Revert @swc-node/register dependency to version 1.6.7

    dmythro committed Jul 31, 2024
    Copy the full SHA
    9bcb613 View commit details
  4. refactor: Improve getCountryCode function

    Refactor the getCountryCode function to handle special characters and symbols in country names. This ensures that the function can match country names accurately, even when they contain special characters or symbols. The function now escapes special RegExp characters and replaces hyphens with the appropriate escape sequence. Additionally, the function now trims leading and trailing spaces from the country name before matching it against the country data list.
    dmythro committed Jul 31, 2024
    Copy the full SHA
    3c991cb View commit details
  5. chore: Update package versions to 3.1.1

    dmythro committed Jul 31, 2024
    Copy the full SHA
    cc382a4 View commit details
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "annexare/countries-list",
"version": "3.0.6",
"version": "3.1.1",
"description": "Continents & countries: ISO 3166-1 alpha-2 code, name, ISO 639-1 languages, capital, currency, native name, phone. JSON, CSV and SQL.",
"type": "library",
"keywords": [
Loading