js-joda-timezone
Advanced tools
Comparing version
@@ -6,2 +6,7 @@ Changelog | ||
### 2.1.0 | ||
* produce smaller builds containing a more limited set of timezone data #73 | ||
* updated to iana tzdb 2019a #73 | ||
### 2.0.2 | ||
@@ -8,0 +13,0 @@ |
@@ -1,2 +0,2 @@ | ||
//! @version js-joda-timezone-2.0.2 | ||
//! @version js-joda-timezone-2.1.0 | ||
//! @copyright (c) 2015-present, Philipp Thürwächter, Pattrick Hüper & js-joda contributors | ||
@@ -3,0 +3,0 @@ //! @license BSD-3-Clause (see LICENSE in the root directory of this source tree) |
{ | ||
"name": "js-joda-timezone", | ||
"version": "2.0.2", | ||
"version": "2.1.0", | ||
"description": "iana tzdb timezone bindings for js-joda", | ||
@@ -23,2 +23,3 @@ "typings": "dist/js-joda-timezone.d.ts", | ||
"build-dist": "./node_modules/.bin/webpack --progress --colors --bail", | ||
"transform-data": "node ./transform-data.js", | ||
"lint": "./node_modules/.bin/eslint ." | ||
@@ -54,6 +55,7 @@ }, | ||
"chai": "^4.1.2", | ||
"copy-webpack-plugin": "^5.0.3", | ||
"coveralls": "^3.0.1", | ||
"esdoc": "^1.1.0", | ||
"esdoc-standard-plugin": "^1.0.0", | ||
"eslint": "^4.19.1", | ||
"eslint": "^6.0.0", | ||
"eslint-config-js-joda": "^1.0.0", | ||
@@ -60,0 +62,0 @@ "js-joda": "^1.9.1", |
@@ -78,2 +78,13 @@ # js-joda-timezone | ||
## Reducing js-joda-timezone file size | ||
If you don't need all the historical data that js-joda-timezone provides, you can instead use one of the reduced files ize builds: | ||
* `js-joda-timezone-10-year-range.js` covers +- five years from the current version's release | ||
* `js-joda-timezone-1970-2030.js` covers from 1970 to 2030 | ||
* `js-joda-timezone-2012-2022.js` covers from 2012 to 2022 | ||
To use one of these, just change your import path to the following format: | ||
import 'js-joda-timezone/dist/js-joda-timezone-1970-2030' | ||
## Implementation details | ||
@@ -90,4 +101,4 @@ | ||
* The packed json version of the iana tzdb is imported from [moment-timezone](https://github.com/moment/moment-timezone) package. | ||
* The json versions of the iana tzdb are imported from and generated with [moment-timezone](https://github.com/moment/moment-timezone). | ||
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
2642281
29.4%35
52.17%7132
49.05%103
11.96%32
3.23%5
150%