diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b4d298..ad74ebc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +### v1.2.0 (18 December 2021) + +- [ENHANCEMENT] Add `formatInTimeZone` +- [DOCS] Various improvements and corrections +- [BUGFIX] Fixed `zonedTimeToUtc` parsing of date strings with time zone specifiers +- [ENHANCEMENT] Functions that return dates will return `Invalid Date` for bad date / time zone + inputs, and `format` functions throw a `RangeError` +- [BUGFIX] Fix `format` returning wrong time zone offset close to DST. (#138) + ### v1.1.7 (17 December 2021) - [PERFORMANCE] Improve performance when validating the same timezones many times through caching; thanks @billthornton (#135) diff --git a/package.json b/package.json index 7489ebd..50ef4f5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "date-fns-tz", - "version": "1.1.7", + "version": "1.2.0", "sideEffects": false, "description": "Time zone support for date-fns v2 with the Intl API", "author": "Marnus Weststrate ", @@ -46,7 +46,7 @@ ] }, "peerDependencies": { - "date-fns": ">=2.0.0-alpha.13" + "date-fns": ">=2.0.0" }, "devDependencies": { "@babel/cli": "^7.15.4", diff --git a/yarn.lock b/yarn.lock index 4c8ea3a..665e854 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2738,7 +2738,7 @@ __metadata: webpack: ^4.41.1 webpack-cli: ^3.1.2 peerDependencies: - date-fns: ">=2.0.0-alpha.13" + date-fns: ">=2.0.0" languageName: unknown linkType: soft