From ed254bfdae18af904d541cbc66e32f622af5dcfd Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Wed, 12 Jul 2017 15:28:55 -0700 Subject: [PATCH] Document type name changes in 0.3 CHANGELOG. Resolves #22. --- CHANGELOG.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c619a5f..ebc7bd53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -199,7 +199,17 @@ applications. * **The `IntoValue` config trait was removed in favor of `Into`.** - There is no workaround. + There is no workaround. Use `Into` as necessary. + + * **The `rocket_contrib::JSON` type has been renamed to + [`rocket_contrib::Json`].** + + Use `Json` instead of `JSON`. + + * **All structs in the [`content`] module use TitleCase names.** + + Use `Json`, `Xml`, `Html`, and `Css` instead of `JSON`, `XML`, `HTML`, and + `CSS`, respectively. [`&RawStr`]: https://api.rocket.rs/rocket/http/struct.RawStr.html [`IntoOutcome`]: https://api.rocket.rs/rocket/outcome/trait.IntoOutcome.html @@ -211,13 +221,15 @@ applications. [`FromForm`]: https://api.rocket.rs/rocket/request/trait.FromForm.html [`ConfigError`]: https://api.rocket.rs/rocket/config/enum.ConfigError.html [`ContentType::from_extension()`]: https://api.rocket.rs/rocket/http/struct.ContentType.html#method.from_extension +[`rocket_contrib::Json`]: https://api.rocket.rs/rocket_contrib/struct.Json.html +[`content`]: https://api.rocket.rs/rocket/response/content/index.html ## General Improvements In addition to new features, Rocket saw the following improvements: * "Rocket" is now capatilized in the `Server` HTTP header. - * The generic parameter of `rocket_contrib::JSON` defaults to `json::Value`. + * The generic parameter of `rocket_contrib::Json` defaults to `json::Value`. * The trailing '...' in the launch message was removed. * The launch message prints regardless of the config environment. * For debugging, `FromData` is implemented for `Vec` and `String`.