All notable changes to this project will be documented in this file.
- Add script to add missing ESM package.json
- Set up linting (by JC Franco)
- Remove build output from source control (by JC Franco)
- Add releasing script (by JC Franco)
- Update test action to run on node versions 8 - 20 (by JC Franco)
- Set up conventional commits PR check (by JC Franco)
- Fix dependabot config (by JC Franco)
- Updated with 2024b IANA Timezones database.
- Updated with 2023c IANA Timezones database.
- #58 Missing export for CommonJS.
- #60 Fixed
utcOffsetStr
calculation for negative offsets non-multiple of 60.
- Updated with 2023a IANA Timezones database.
- Countries:
BV
(Bouvet Island) andHM
(Heard Island and McDonald Islands) since their are dependent territories, nobody lives there and they don't have official timezones.
- Broken shield on Readme.
- Updated with 2022c IANA Timezones database.
- Increased type safety on
Timezone.name
(#49 by Vicary A.). - Added
Europe/Kyiv
timezone (#50 by S. M. Ibrahim lavlu).
- Wrong
utcOffset
for some timezones #51.
- Added new parameter
options
to most functions. - Added
deprecated
option to return both current and deprecated timezones.
- Updated with 2021c IANA Timezones database.
- Deprecated timezones are not returned by default (
deprecated
option is required).
- Constant declarations on Types (#41)
- Correct ESM build config (#36 by Kyle Herock)
- Eslint config
- Restores
getCountryForTimezone
method to keep compatibility with version 2. - Adds
esm
path to package.jsonfiles
(by Simon VDB)
- #32 Added support for ESM named exports
- Timezones might now be related with multiple countries.
- Removed deprecated timezones:
America/Fort_Wayne
,America/Godthab
,America/Indianapolis
,Asia/Rangoon
,Singapore
,US/East-Indiana
,W-SU
.
getCountryForTimezone
method was renamed togetCountriesForTimezone
since now timezones might be related with multiple countries. The first country in the list is more relevant due to its geographical location.- The timezone property
country
was renamed tocountries
and is a list of strings rather than a single string.
- #27 Added ESM Build (by Sachin Singh)
- Updated with 2021a IANA Timezones database.
US/Pacific-New
timezone.
- Support for
<script/>
tag.
- Added 1 new timezone ("America/Nuuk").
- Updated with 2020a IANA Timezones database.
- Updated 18 existing timezones.
- Added 89 new timezones.
- Complying with 2019c IANA Timezones database.
- #15 Babel and ES5 support (by Steven Vachon)
- #16 CI Action (by Steven Vachon)
getTimezone
method.getCountry
method.- 167 new alias timezones.
- Property
dstOffset
in timezones. - Property
dstOffsetStr
in timezones.
- Added all timezone aliases (before only primary timezones where supported). This increasead the support from 338 timezones to 505.
- Minified
data.json
as possible. Reduced size 72%, from 88.1 KB to 24.9 KB. - Replaced
countries
(array) timezones property forcountry
(string). Now all alias timezones are included, then each timezone has only one country assigned. - Renamed
offsetStr
toutcOffsetStr
, to be more specific whether the offset is for UTC or DST. getCountriesForTimezone
method was renamed togetCountryForTimezone
since now timezones have only 1 country. Only return a country object, instead of a countries array.
.raw
property. Instead usegetAllCountries
andgetAllTimezones
methods.