Skip to content

Commit

Permalink
v2.4.0: Updated with 2021a IANA database
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelmhtr committed Apr 24, 2021
1 parent 8fb11af commit fcc80ad
Show file tree
Hide file tree
Showing 9 changed files with 1,146 additions and 1,314 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
All notable changes to this project will be documented in this file.


## [2.4.0] - 2021-04-24
### Changed
- Updated with 2021a INANA Timezones database.

### Removed
- `US/Pacific-New` timezone.


## [2.3.0] - 2020-08-25
### Added
- Support for `<script/>` tag.
Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Add the following script to your project (only ~9kb):
<script src="https://cdn.jsdelivr.net/gh/manuelmhtr/countries-and-timezones@latest/dist/index.js" type="text/javascript"></script>

<!-- Or specify a version -->
<script src="https://cdn.jsdelivr.net/gh/manuelmhtr/countries-and-timezones@v2.3.0/dist/index.js" type="text/javascript"></script>
<script src="https://cdn.jsdelivr.net/gh/manuelmhtr/countries-and-timezones@v2.4.0/dist/index.js" type="text/javascript"></script>

<!-- This will export a variable named "ct": -->
<script type="text/javascript">
Expand Down Expand Up @@ -320,9 +320,15 @@ A timezone is defined by the following parameters:

## Related projects

* [countries-db](https://www.npmjs.com/package/countries-db): Minimalistic lib withcountries data.
* [countries-db](https://www.npmjs.com/package/countries-db): Minimalistic lib with countries data.
* [location-by-ip](https://www.npmjs.com/package/location-by-ip): Get the location of any IP address.

## Help

This project is maintained by a single person, considering supporting by:

* Sharing your [feedback](mailto:[email protected]).
* Becoming a [sponsor](https://github.com/sponsors/manuelmhtr).

## Working on something more complex?

Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "countries-and-timezones",
"version": "2.3.1",
"version": "2.4.0",
"description": "Minimalistic library to work with countries and timezones data.",
"main": "dist/index.js",
"files": [
Expand Down Expand Up @@ -45,17 +45,17 @@
},
"homepage": "https://github.com/manuelmhtr/countries-and-timezones#readme",
"devDependencies": {
"@babel/cli": "^7.10.5",
"@babel/core": "^7.11.4",
"@babel/preset-env": "^7.11.0",
"@rollup/plugin-babel": "^5.2.0",
"@rollup/plugin-commonjs": "^15.0.0",
"@babel/cli": "^7.13.16",
"@babel/core": "^7.13.16",
"@babel/preset-env": "^7.13.15",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-json": "^4.1.0",
"chai": "^4.2.0",
"mocha": "^8.1.1",
"chai": "^4.3.4",
"mocha": "^8.3.2",
"proxyquire": "^2.1.3",
"rollup": "^2.26.5",
"rollup": "^2.45.2",
"rollup-plugin-uglify": "^6.0.4",
"sinon": "^9.0.3"
"sinon": "^10.0.0"
}
}
2 changes: 1 addition & 1 deletion src/data.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion test/unit/get-country-for-timezone.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const US = {
"US/Indiana-Starke",
"America/Louisville",
"US/Pacific",
"US/Pacific-New",
"US/Eastern",
"US/Arizona",
"Pacific/Johnston",
Expand Down
1 change: 0 additions & 1 deletion test/unit/get-country.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ const TEST_CASES = {
"US/Indiana-Starke",
"America/Louisville",
"US/Pacific",
"US/Pacific-New",
"US/Eastern",
"US/Arizona",
"Pacific/Johnston",
Expand Down
Loading

0 comments on commit fcc80ad

Please sign in to comment.