From 141f3bf6928b10c1a25a2a6fada3fc5aaeefa087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Mond=C3=A9jar=20Rubio?= Date: Thu, 20 Jun 2024 02:46:23 +0200 Subject: [PATCH] Bump version and prepare v0.1 (#130) --- CHANGELOG.md | 10 ++++++++-- Cargo.lock | 4 ++-- README.md | 2 +- leptos-fluent-macros/Cargo.toml | 2 +- leptos-fluent/Cargo.toml | 2 +- leptos-fluent/README.md | 2 +- leptos-fluent/src/lib.rs | 10 +++++++--- 7 files changed, 21 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 172c8de6..ede69f44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # CHANGELOG -## Unreleased - [0.1.0] +## 2024-06-20 - [0.1.0] ### Breaking changes @@ -14,6 +14,12 @@ global attribute of the `` tag with the current language direction. - Multiple translations can be passed to the `leptos_fluent!` macro. +## Versioning + +**leptos-fluent** will include breacking changes in minor versions during +the v0.x.0 series until the v1.0.0 version is reached. Is safe to pin the +version to `0.1` during installation. + ## 2024-06-16 - [0.0.37] ### Bug fixes @@ -228,7 +234,7 @@ - Added all ISO-639-1 and ISO-639-2 languages. -[0.1.0]: https://github.com/mondeja/leptos-fluent/compare/v0.0.37...master +[0.1.0]: https://github.com/mondeja/leptos-fluent/compare/v0.0.37...v0.1.0 [0.0.37]: https://github.com/mondeja/leptos-fluent/compare/v0.0.36...v0.0.37 [0.0.36]: https://github.com/mondeja/leptos-fluent/compare/v0.0.35...v0.0.36 [0.0.35]: https://github.com/mondeja/leptos-fluent/compare/v0.0.34...v0.0.35 diff --git a/Cargo.lock b/Cargo.lock index 0a36b36f..c24cca41 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1446,7 +1446,7 @@ dependencies = [ [[package]] name = "leptos-fluent" -version = "0.0.37" +version = "0.1.0" dependencies = [ "fluent-templates", "leptos", @@ -1478,7 +1478,7 @@ dependencies = [ [[package]] name = "leptos-fluent-macros" -version = "0.0.37" +version = "0.1.0" dependencies = [ "fluent-syntax", "fluent-templates", diff --git a/README.md b/README.md index ffdb78dc..26ec00c2 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Add the following to your `Cargo.toml` file: ```toml [dependencies] -leptos-fluent = "0.0.37" +leptos-fluent = "0.1" fluent-templates = "0.9" [features] diff --git a/leptos-fluent-macros/Cargo.toml b/leptos-fluent-macros/Cargo.toml index bbc7d3a5..8ae7aebb 100644 --- a/leptos-fluent-macros/Cargo.toml +++ b/leptos-fluent-macros/Cargo.toml @@ -2,7 +2,7 @@ name = "leptos-fluent-macros" description = "Macros for leptos-fluent" edition.workspace = true -version = "0.0.37" +version = "0.1.0" license = "MIT" documentation.workspace = true repository.workspace = true diff --git a/leptos-fluent/Cargo.toml b/leptos-fluent/Cargo.toml index 5410c34f..7c4450e0 100644 --- a/leptos-fluent/Cargo.toml +++ b/leptos-fluent/Cargo.toml @@ -2,7 +2,7 @@ name = "leptos-fluent" description = "Fluent framework for internationalization of Leptos applications" edition.workspace = true -version = "0.0.37" +version = "0.1.0" license = "MIT" documentation.workspace = true repository.workspace = true diff --git a/leptos-fluent/README.md b/leptos-fluent/README.md index ffdb78dc..26ec00c2 100644 --- a/leptos-fluent/README.md +++ b/leptos-fluent/README.md @@ -20,7 +20,7 @@ Add the following to your `Cargo.toml` file: ```toml [dependencies] -leptos-fluent = "0.0.37" +leptos-fluent = "0.1" fluent-templates = "0.9" [features] diff --git a/leptos-fluent/src/lib.rs b/leptos-fluent/src/lib.rs index b663d6cd..08b1db65 100644 --- a/leptos-fluent/src/lib.rs +++ b/leptos-fluent/src/lib.rs @@ -15,7 +15,7 @@ //! //! ```toml //! [dependencies] -//! leptos-fluent = "0.0.37" +//! leptos-fluent = "0.1" //! fluent-templates = "0.9" //! //! [features] @@ -507,6 +507,10 @@ pub fn language_from_str_between_languages( #[cfg(test)] mod test { + fn major_and_minor_version(version: &str) -> String { + version.split('.').take(2).collect::>().join(".") + } + #[test] fn test_readme_leptos_fluent_version_is_updated() { let this_file = include_str!("./lib.rs"); @@ -530,8 +534,8 @@ mod test { r#"leptos-fluent = "" not found in leptos-fluent/src/lib.rs"# ); assert_eq!( - version.unwrap(), - env!("CARGO_PKG_VERSION"), + major_and_minor_version(&version.unwrap()), + major_and_minor_version(env!("CARGO_PKG_VERSION")), concat!( "The version of leptos-fluent shown in the README at", " 'Installation' section is not updated."