Skip to content

Bump country-state-city from 1.0.5 to 3.2.1#67

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/country-state-city-3.2.1
Open

Bump country-state-city from 1.0.5 to 3.2.1#67
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/country-state-city-3.2.1

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Aug 1, 2025

Bumps country-state-city from 1.0.5 to 3.2.1.

Release notes

Sourced from country-state-city's releases.

Reduced Bundle Size city.json file size reduce to 8MB from 25MB

Minified JSON files - Country, State, City

35% file size reduction for city.json

Data split to improve data fixing and better debugging

Data split to improve better data fixing and debugging as we are getting lot of req for missing, invalid data and sometimes P.Rs are difficult to review.

  1. Add scripts to split and combine country, state, city data
  2. With split it is easy to test, debug, change and review the changes of Country, State, City data
  3. In the build package - we will be sharing combine data as before for Country, State, City
  4. Contributor will have to udpate the changes to the split data in specific Country, State, City - files/folder
  5. version bump from v3.0.6 to v3.0.7

Tree Shaking support - Release : v3.0.0(Not backward compatible)

v3.0.0 ::

  1. Refactoring of complete package to make this package - Tree shakable Fix:60.

  2. Change in usage:

    • ES6 Module usage

      // Latest version - v3.0.0
      import { Country, State, City }  from 'country-state-city';
    • AMD Module usage

      // Latest version - v3.0.0
      let Country = require('country-state-city').Country;
      let State = require('country-state-city').State;
      console.log(Country.getAllCountries())
      console.log(State.getAllStates())

Release v2.0.0

v2.0.0 (Backward Incompatible) :: Data Source (dr5hn)

  1. Not backward compatible with previous versions.
  2. New and updated API functions.
  3. Removed proprietor Indexed Id's for uniquely identifying Country, State, City. Instead now using standard isoCodes.
  4. Data taken from more robust and accurate database.
  5. Countries with their respective flags, isoCode, currencies, latitude, longitude & timezones.
  6. States & cities with their latitude & longitude.
Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [country-state-city](https://github.com/harpreetkhalsagtbit/country-state-city) from 1.0.5 to 3.2.1.
- [Release notes](https://github.com/harpreetkhalsagtbit/country-state-city/releases)
- [Changelog](https://github.com/harpreetkhalsagtbit/country-state-city/blob/develop/Changelog.md)
- [Commits](https://github.com/harpreetkhalsagtbit/country-state-city/commits)

---
updated-dependencies:
- dependency-name: country-state-city
  dependency-version: 3.2.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Aug 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants