Skip to content

Releases: harpreetkhalsagtbit/country-state-city

Reduced Bundle Size

20 Aug 18:16
Compare
Choose a tag to compare

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

Minified JSON files - Country, State, City

19 Aug 18:11
Compare
Choose a tag to compare

35% file size reduction for city.json

Data split to improve data fixing and better debugging

21 Aug 08:09
57088ba
Compare
Choose a tag to compare

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)

24 Jun 10:42
a6ed495
Compare
Choose a tag to compare

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

05 Jan 12:10
9ffda0a
Compare
Choose a tag to compare

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.

First Major Version Release

28 May 06:33
Compare
Choose a tag to compare
  1. Typescript Support
  2. Interface type re-exported from index.ts.
  3. Compatible with ES6 module syntax.
  4. Compatible with AMD module - using require('../index').default.
  5. Add tests for Interface Re-Exports.
  6. Shared Test cases for both AMD modules and ES6 modules usage.

development - Typescript

15 May 13:00
Compare
Choose a tag to compare

development using Typescript
Working with both require and import

Index Issue - Wrong Item Return

18 Jan 10:15
3670e8a
Compare
Choose a tag to compare

V0.1.0

  1. Fix: #2
  2. Fix: #3
  3. Added some missing states and cities for Canada and US

First tag release

19 Apr 12:27
Compare
Choose a tag to compare
0.0.5

Update: release version