Releases: harpreetkhalsagtbit/country-state-city
Releases · harpreetkhalsagtbit/country-state-city
Reduced Bundle Size
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.
- Add scripts to split and combine country, state, city data
- With split it is easy to test, debug, change and review the changes of Country, State, City data
- In the build package - we will be sharing combine data as before for Country, State, City
- Contributor will have to udpate the changes to the split data in specific Country, State, City - files/folder
- version bump from v3.0.6 to v3.0.7
Tree Shaking support - Release : v3.0.0(Not backward compatible)
v3.0.0 ::
-
Refactoring of complete package to make this package - Tree shakable Fix:60.
-
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)
- Not backward compatible with previous versions.
- New and updated API functions.
- Removed proprietor Indexed Id's for uniquely identifying Country, State, City. Instead now using standard isoCodes.
- Data taken from more robust and accurate database.
- Countries with their respective flags, isoCode, currencies, latitude, longitude & timezones.
- States & cities with their latitude & longitude.
First Major Version Release
- Typescript Support
- Interface type re-exported from index.ts.
- Compatible with ES6 module syntax.
- Compatible with AMD module - using require('../index').default.
- Add tests for Interface Re-Exports.
- Shared Test cases for both AMD modules and ES6 modules usage.
development - Typescript
development using Typescript
Working with both require
and import
Index Issue - Wrong Item Return
First tag release
0.0.5 Update: release version