Skip to content

Latest commit

 

History

History
84 lines (62 loc) · 3.19 KB

CHANGELOG.md

File metadata and controls

84 lines (62 loc) · 3.19 KB

Changelog

All notable changes to this project will be documented in this file.

[3.2.1] - 2021-08-17

Fixed

Added

  • Eslint config

[3.2.0] - 2021-08-10

Added

[3.1.0] - 2021-08-04

Added

  • Restores getCountryForTimezone method to keep compatibility with version 2.
  • Adds esm path to package.json files (by Simon VDB)

[3.0.0] - 2021-07-28

Added

  • #32 Added support for ESM named exports

Changed

  • Timezones might now be related with multiple countries.

Removed

  • Removed deprecated timezones: America/Fort_Wayne, America/Godthab, America/Indianapolis, Asia/Rangoon, Singapore, US/East-Indiana, W-SU.

Breaking changes

  • getCountryForTimezone method was renamed to getCountriesForTimezone 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 to countries and is a list of strings rather than a single string.

[2.5.0] - 2021-07-18

Added

[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.

Changed

  • Added 1 new timezone ("America/Nuuk").
  • Updated with 2020a INANA Timezones database.

[2.2.0] - 2020-04-18

Added

  • Updated 18 existing timezones.
  • Added 89 new timezones.
  • Complying with 2019c INANA Timezones database.

[2.1.0] - 2020-03-31

Added

[2.0.0] - 2019-10-10

Added

  • getTimezone method.
  • getCountry method.
  • 167 new alias timezones.
  • Property dstOffset in timezones.
  • Property dstOffsetStr in timezones.

Changed

  • 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 for country (string). Now all alias timezones are included, then each timezone has only one country assigned.
  • Renamed offsetStr to utcOffsetStr, to be more specific whether the offset is for UTC or DST.
  • getCountriesForTimezone method was renamed to getCountryForTimezone since now timezones have only 1 country. Only return a country object, instead of a countries array.

Removed

  • .raw property. Instead use getAllCountries and getAllTimezones methods.