From 1df92223cf0f104186dc3a75783b563c69512553 Mon Sep 17 00:00:00 2001 From: Brandon W Maister Date: Fri, 25 Sep 2020 17:30:01 -0400 Subject: [PATCH 1/2] The wasm-bindgen code refers to oldtime::Duration and is failing https://github.com/chronotope/chrono/pull/286#issuecomment-699146233 --- src/offset/local.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/offset/local.rs b/src/offset/local.rs index 9f13e76b04..1abb3a9db0 100644 --- a/src/offset/local.rs +++ b/src/offset/local.rs @@ -152,7 +152,7 @@ impl TimeZone for Local { let mut local = local.clone(); // Get the offset from the js runtime let offset = FixedOffset::west((js_sys::Date::new_0().get_timezone_offset() as i32) * 60); - local -= oldtime::Duration::seconds(offset.local_minus_utc() as i64); + local -= ::Duration::seconds(offset.local_minus_utc() as i64); LocalResult::Single(DateTime::from_utc(local, offset)) } From a9dd78418f18bc7a7f22da0c52ada0919cbbca3d Mon Sep 17 00:00:00 2001 From: Brandon W Maister Date: Fri, 25 Sep 2020 17:54:03 -0400 Subject: [PATCH 2/2] Release v0.4.17 --- CHANGELOG.md | 12 ++++++++++-- Cargo.toml | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e75da686e..fe9106cdc5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,12 +3,20 @@ ChangeLog for Chrono This documents all notable changes to [Chrono](https://github.com/chronotope/chrono). -Chrono obeys the principle of [Semantic Versioning](http://semver.org/). +Chrono obeys the principle of [Semantic Versioning](http://semver.org/), with one caveat: we may +move previously-existing code behind a feature gate and put it behind a new feature. This new +feature will always be placed in the `previously-default` feature, which you can use to prevent +breakage if you use `no-default-features`. There were/are numerous minor versions before 1.0 due to the language changes. Versions with only mechanical changes will be omitted from the following list. -## 0.4.17 (unreleased) +## 0.4.18 (unreleased) + +## 0.4.17 + +* Fix a name resolution error in wasm-bindgen code introduced by removing the dependency on time + v0.1 ## 0.4.16 diff --git a/Cargo.toml b/Cargo.toml index 74d587b74f..01d15735eb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "chrono" -version = "0.4.16" +version = "0.4.17" authors = [ "Kang Seonghoon ", "Brandon W Maister ",