country-state-city
Advanced tools
Comparing version 3.0.6 to 3.1.0
{ | ||
"name": "country-state-city", | ||
"version": "3.0.6", | ||
"version": "3.1.0", | ||
"description": "Library for fetching Country, its States and Cities", | ||
@@ -42,3 +42,5 @@ "main": "./lib/cjs/index.js", | ||
"homepage": "https://github.com/harpreetkhalsagtbit/country-state-city#readme", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"ts-node": "^10.7.0", | ||
"@types/jest": "^26.0.19", | ||
@@ -51,8 +53,5 @@ "@typescript-eslint/eslint-plugin": "^4.12.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-jsx-a11y": "^6.4.1", | ||
"eslint-plugin-prettier": "^3.3.1", | ||
"eslint-plugin-react": "^7.22.0", | ||
"husky": "^4.3.6", | ||
"jest": "^26.6.3", | ||
"json-minimizer-webpack-plugin": "^3.0.0", | ||
"prettier": "^2.2.1", | ||
@@ -62,4 +61,2 @@ "ts-jest": "^26.4.4", | ||
"typescript": "^4.3.2", | ||
"webpack": "^5.38.1", | ||
"webpack-cli": "^4.7.2", | ||
"@types/node": "^14.11.2" | ||
@@ -80,7 +77,3 @@ }, | ||
] | ||
}, | ||
"dependencies": { | ||
"copy-webpack-plugin": "^9.0.0", | ||
"ts-node": "^10.7.0" | ||
} | ||
} |
@@ -7,3 +7,3 @@ country-state-city | ||
https://github.com/dr5hn/countries-states-cities-database<br> | ||
For any data related issue, you can raise a Issue [here](https://github.com/dr5hn/countries-states-cities-database/issues/new). | ||
For any data related issue, you can also raise a Issue [here](https://github.com/dr5hn/countries-states-cities-database/issues/new). | ||
@@ -13,2 +13,46 @@ # Install | ||
# Release Info & Documentation | ||
1. [Release v3.1.0](https://github.com/harpreetkhalsagtbit/country-state-city/tree/hotfix/split-csc-data-for-better-debugging-and-fixing-data#release--v310) | ||
1. [Overview](https://github.com/harpreetkhalsagtbit/country-state-city/tree/hotfix/split-csc-data-for-better-debugging-and-fixing-data#overview) | ||
2. [How to contribute to Country, State, City Database, request changes and report issue? | ||
](https://github.com/harpreetkhalsagtbit/country-state-city/tree/hotfix/split-csc-data-for-better-debugging-and-fixing-data#how-to-contribute-to-country-state-city-database-request-changes-and-report-issue) | ||
3. [How Data will be Released finally? | ||
](https://github.com/harpreetkhalsagtbit/country-state-city/tree/hotfix/split-csc-data-for-better-debugging-and-fixing-data#how-data-will-be-released-finally) | ||
2. [Usage](https://github.com/harpreetkhalsagtbit/country-state-city/tree/hotfix/split-csc-data-for-better-debugging-and-fixing-data#usage) | ||
1. [Release : v3.0.0 (Major Version Release - Not backward compatible) | ||
](https://github.com/harpreetkhalsagtbit/country-state-city/tree/hotfix/split-csc-data-for-better-debugging-and-fixing-data#release--v300-major-version-release---not-backward-compatible) | ||
2. [For versions below v2.2.0 and above v0.1.8 | ||
](https://github.com/harpreetkhalsagtbit/country-state-city/tree/hotfix/split-csc-data-for-better-debugging-and-fixing-data#for-versions-below-v220-and-above-v018) | ||
3. [Docs](https://github.com/harpreetkhalsagtbit/country-state-city/tree/hotfix/split-csc-data-for-better-debugging-and-fixing-data#docs) | ||
## Release : `v3.1.0` | ||
## Overview | ||
1. The **data** folder in the root contains all the data of **Countries, their States and Cities** | ||
2. The earlier **large big JSONs are split into smaller JSONs** and stored in separate files and folder | ||
3. The advantage of doing so is to make it **easy to check, test and submit** the change. It's **easier to review** a small file than a large file. It's **easier to debug** any missing or wrong values in a small file. | ||
4. This will help in future optimisation | ||
5. There is a separate folder for each country | ||
- Each **Country** folder contains **Country's** information and its **states as sub-child folders** | ||
- The **Country's** info is also split into - **Country Lite, Plain, Geo, TimeZone's.** | ||
- Inside each **Country** - there are **Sub-folder** of State | ||
6. Each **State** folder contains **State's** information and its **Cities as sub-child** files | ||
7. **State's** info is also split into - **State Lite, Geo** | ||
8. Inside each **State** - there are JSON files of **City** | ||
1. Each **City** file contains information of all the Cities of that particular State | ||
2. **Cities** info is split into two files - **City Lite, Geo** | ||
## How to contribute to Country, State, City Database, request changes and report issue? | ||
1. **Code change** - make the necessary change, raise the PR. | ||
2. **Data changes** - Database is in `data` folder in the root. | ||
3. **Update**: Add the necessary changes in the particular files with proper structure and format and then raise the PR. | ||
4. **Add New - Country, State, City** - follow the proper folder structure and raise the P.R or simply share the JSONs in an issue with proper and up to date reference. | ||
6. **Deleting - Country, State, City** - remove the necessary files/folder - update the necessary files and raise the PR or simply share the updated JSONs in an issue with a proper and up to date reference. | ||
7. Queries/Issues related to wrong data must be provided with some references. | ||
8. For any **Geo-Political** related **queries, border conflicts** - things will be updated when multiple proper references has been provided. | ||
## How Data will be Released finally? | ||
1. After the changes gets merged, a script will be run to combine all the data in a separate but single file for each Country, State, City as we have earlier without affecting out library functions and only those three files are passed to the build code and then it gets released. | ||
2. In future we will be working on how to use these split files to optimise this library further. | ||
# Usage | ||
@@ -15,0 +59,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52614357
0
16
278
- Removedcopy-webpack-plugin@^9.0.0
- Removedts-node@^10.7.0
- Removed@cspotcode/source-map-support@0.8.1(transitive)
- Removed@jridgewell/gen-mapping@0.3.8(transitive)
- Removed@jridgewell/resolve-uri@3.1.2(transitive)
- Removed@jridgewell/set-array@1.2.1(transitive)
- Removed@jridgewell/source-map@0.3.6(transitive)
- Removed@jridgewell/sourcemap-codec@1.5.0(transitive)
- Removed@jridgewell/trace-mapping@0.3.250.3.9(transitive)
- Removed@nodelib/fs.scandir@2.1.5(transitive)
- Removed@nodelib/fs.stat@2.0.5(transitive)
- Removed@nodelib/fs.walk@1.2.8(transitive)
- Removed@tsconfig/node10@1.0.11(transitive)
- Removed@tsconfig/node12@1.0.11(transitive)
- Removed@tsconfig/node14@1.0.3(transitive)
- Removed@tsconfig/node16@1.0.4(transitive)
- Removed@types/eslint@9.6.1(transitive)
- Removed@types/eslint-scope@3.7.7(transitive)
- Removed@types/estree@1.0.6(transitive)
- Removed@types/json-schema@7.0.15(transitive)
- Removed@types/node@22.10.2(transitive)
- Removed@webassemblyjs/ast@1.14.1(transitive)
- Removed@webassemblyjs/floating-point-hex-parser@1.13.2(transitive)
- Removed@webassemblyjs/helper-api-error@1.13.2(transitive)
- Removed@webassemblyjs/helper-buffer@1.14.1(transitive)
- Removed@webassemblyjs/helper-numbers@1.13.2(transitive)
- Removed@webassemblyjs/helper-wasm-bytecode@1.13.2(transitive)
- Removed@webassemblyjs/helper-wasm-section@1.14.1(transitive)
- Removed@webassemblyjs/ieee754@1.13.2(transitive)
- Removed@webassemblyjs/leb128@1.13.2(transitive)
- Removed@webassemblyjs/utf8@1.13.2(transitive)
- Removed@webassemblyjs/wasm-edit@1.14.1(transitive)
- Removed@webassemblyjs/wasm-gen@1.14.1(transitive)
- Removed@webassemblyjs/wasm-opt@1.14.1(transitive)
- Removed@webassemblyjs/wasm-parser@1.14.1(transitive)
- Removed@webassemblyjs/wast-printer@1.14.1(transitive)
- Removed@xtuc/ieee754@1.2.0(transitive)
- Removed@xtuc/long@4.2.2(transitive)
- Removedacorn@8.14.0(transitive)
- Removedacorn-walk@8.3.4(transitive)
- Removedajv@6.12.68.17.1(transitive)
- Removedajv-formats@2.1.1(transitive)
- Removedajv-keywords@3.5.25.1.0(transitive)
- Removedarg@4.1.3(transitive)
- Removedarray-union@2.1.0(transitive)
- Removedbraces@3.0.3(transitive)
- Removedbrowserslist@4.24.3(transitive)
- Removedbuffer-from@1.1.2(transitive)
- Removedcaniuse-lite@1.0.30001688(transitive)
- Removedchrome-trace-event@1.0.4(transitive)
- Removedcommander@2.20.3(transitive)
- Removedcopy-webpack-plugin@9.1.0(transitive)
- Removedcreate-require@1.1.1(transitive)
- Removeddiff@4.0.2(transitive)
- Removeddir-glob@3.0.1(transitive)
- Removedelectron-to-chromium@1.5.73(transitive)
- Removedenhanced-resolve@5.17.1(transitive)
- Removedes-module-lexer@1.5.4(transitive)
- Removedescalade@3.2.0(transitive)
- Removedeslint-scope@5.1.1(transitive)
- Removedesrecurse@4.3.0(transitive)
- Removedestraverse@4.3.05.3.0(transitive)
- Removedevents@3.3.0(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-glob@3.3.2(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedfast-uri@3.0.3(transitive)
- Removedfastq@1.17.1(transitive)
- Removedfill-range@7.1.1(transitive)
- Removedglob-parent@5.1.26.0.2(transitive)
- Removedglob-to-regexp@0.4.1(transitive)
- Removedglobby@11.1.0(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedignore@5.3.2(transitive)
- Removedis-extglob@2.1.1(transitive)
- Removedis-glob@4.0.3(transitive)
- Removedis-number@7.0.0(transitive)
- Removedjest-worker@27.5.1(transitive)
- Removedjson-parse-even-better-errors@2.3.1(transitive)
- Removedjson-schema-traverse@0.4.11.0.0(transitive)
- Removedloader-runner@4.3.0(transitive)
- Removedmake-error@1.3.6(transitive)
- Removedmerge-stream@2.0.0(transitive)
- Removedmerge2@1.4.1(transitive)
- Removedmicromatch@4.0.8(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedneo-async@2.6.2(transitive)
- Removednode-releases@2.0.19(transitive)
- Removednormalize-path@3.0.0(transitive)
- Removedpath-type@4.0.0(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedpicomatch@2.3.1(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedqueue-microtask@1.2.3(transitive)
- Removedrandombytes@2.1.0(transitive)
- Removedrequire-from-string@2.0.2(transitive)
- Removedreusify@1.0.4(transitive)
- Removedrun-parallel@1.2.0(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedschema-utils@3.3.04.3.0(transitive)
- Removedserialize-javascript@6.0.2(transitive)
- Removedslash@3.0.0(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedsource-map-support@0.5.21(transitive)
- Removedsupports-color@8.1.1(transitive)
- Removedtapable@2.2.1(transitive)
- Removedterser@5.37.0(transitive)
- Removedterser-webpack-plugin@5.3.11(transitive)
- Removedto-regex-range@5.0.1(transitive)
- Removedts-node@10.9.2(transitive)
- Removedtypescript@5.7.2(transitive)
- Removedundici-types@6.20.0(transitive)
- Removedupdate-browserslist-db@1.1.1(transitive)
- Removeduri-js@4.4.1(transitive)
- Removedv8-compile-cache-lib@3.0.1(transitive)
- Removedwatchpack@2.4.2(transitive)
- Removedwebpack@5.97.1(transitive)
- Removedwebpack-sources@3.2.3(transitive)
- Removedyn@3.1.1(transitive)