Skip to content

Update Rust crate tera to v2 - #14

Merged
raphael-goetz merged 1 commit into
mainfrom
renovate/tera-2.x
Sep 28, 2026
Merged

raphael-goetz merged 1 commit into
mainfrom
renovate/tera-2.x

Conversation

@renovate

@renovate renovate Bot commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Change
tera (source) dependencies 1.20.1 → 2.0.0

Release Notes

Keats/tera (tera)

v2.4.0

Compare Source

  • Add implicit parameters for components
  • Add Tera::render_component_with_implicits and Tera::render_component_with_implicits_to to render a component with implicit parameters as a separate context.
  • Fix bug in unique filter treating distinct maps as the same
  • Fix some deserializing issues with Value

v2.3.0

Compare Source

  • Add State::{escape,autoescaping_enabled,escape_if_needed}
  • Add StringInput to use for input/parameters that is safety aware and use it for built-in filters: this
    means you should need less | safe and that string safety is passed around correctly. Safety is dropped by
    filters where the changes depend on the content itself (truncate can cut anywhere) and preserved when they specify exactly what changes (trim, replace).
  • Add escape filter that is safety aware (it will not escape an already safe string) and uses the current instance
    escape function
  • Escaping included templates is now done base on where it's included rather than the included template itself:
    for example a .txt included in a .html will now be autoescaped if Tera autoescapes on .html.
  • Fix double escape of filter/set blocks

v2.2.0

Compare Source

  • Do not reserialize existing Value when serializing to a Value
  • Error on content in children templates that would have been ignored
  • Allows blocks inside if/elif/else again like in v1
  • Allows the indentation character of the indent filter to be configured
  • Add chained filter sections

v2.1.1

Compare Source

  • Fix component default value not allowing negative numbers
  • Fix component default value not checking whether default value matches expected type

v2.1.0

Compare Source

  • Add .iter() method to Kwargs
  • Add Tera::contains_component and Tera::get_component_names

v2.0.0

Compare Source

see migration guide for all the changes.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, 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 added the dependencies This updates dependency files label Sep 27, 2026
@raphael-goetz
raphael-goetz merged commit fe22b55 into main Sep 28, 2026
2 checks passed
@renovate
renovate Bot deleted the renovate/tera-2.x branch September 28, 2026 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies This updates dependency files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant