Skip to content

Commit

Permalink
Bump version and prepare v0.1 (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja authored Jun 20, 2024
1 parent 437aced commit 141f3bf
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 11 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CHANGELOG

## Unreleased - [0.1.0]
## 2024-06-20 - [0.1.0]

### Breaking changes

Expand All @@ -14,6 +14,12 @@
global attribute of the `<html>` 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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion leptos-fluent-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion leptos-fluent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion leptos-fluent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
10 changes: 7 additions & 3 deletions leptos-fluent/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
//!
//! ```toml
//! [dependencies]
//! leptos-fluent = "0.0.37"
//! leptos-fluent = "0.1"
//! fluent-templates = "0.9"
//!
//! [features]
Expand Down Expand Up @@ -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::<Vec<_>>().join(".")
}

#[test]
fn test_readme_leptos_fluent_version_is_updated() {
let this_file = include_str!("./lib.rs");
Expand All @@ -530,8 +534,8 @@ mod test {
r#"leptos-fluent = "<version>" 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."
Expand Down

0 comments on commit 141f3bf

Please sign in to comment.