Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Rust crate leptos-fluent to 0.2 #227

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 21, 2024

This PR contains the following updates:

Package Type Update Change
leptos-fluent (source) dependencies minor 0.1 -> 0.2

Release Notes

mondeja/leptos-fluent (leptos-fluent)

v0.2.0

Compare Source

Breaking changes
Require Leptos v0.7

Support for Leptos v0.6 has been dropped. Now leptos-fluent requires
Leptos v0.7.

Declarative API

Previously, the leptos_fluent! macro was providing the I18n context
using provide_context, so the app was configured as:

#[component]
fn App() -> impl IntoView {
    leptos_fluent! {
        // ...
    }

    view! {
        // ...
    }
}

Now a children option has been added to the macro and need to be used
to declare a I18n component:

#[component]
fn I18n(children: Children) -> impl IntoView {
    leptos_fluent! {
        children: children(),
        // ...
    }
}

#[component]
fn App() -> impl IntoView {
    view! {
        <I18n>
            // ...
        </I18n>
    }
}

By this way leptos_fluent! does not return the I18n context anymore.

No more double curly braces

Support for deprecated double curly braces syntax for the leptos_fluent!
macro has been removed. Use single curly braces instead:

leptos_fluent! {
    // ...
}
No more default features

The feature json is not enabled by default anymore. Now leptos-fluent
does not includes features by default, so you don't need to use
default-features = false in your Cargo.toml file.

SsrHtmlTag component removed

The deprecated SsrHtmlTag component has been removed.


Configuration

📅 Schedule: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from dessalines as a code owner December 21, 2024 03:51
@renovate renovate bot enabled auto-merge (squash) December 21, 2024 03:51
@renovate renovate bot requested a review from SleeplessOne1917 as a code owner December 21, 2024 03:51
@renovate renovate bot force-pushed the renovate/leptos-fluent-0.x branch from 9afee4a to 7601224 Compare December 21, 2024 03:53
@renovate renovate bot force-pushed the renovate/leptos-fluent-0.x branch from 7601224 to eabee0a Compare December 21, 2024 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants