fix(deps): update rust crate tera to v2 #48

Open
renovate-bot wants to merge 1 commit from renovate/tera-2.x into master
Member

This PR contains the following updates:

Package Type Update Change
tera (source) dependencies major 1.15 -> 2.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.

v1.20.1

Compare Source

v1.20.0

Compare Source

  • Support parenthesis in if statements
  • Allow escaped newline and tab join separator

v1.19.1

Compare Source

  • Minimum supported Rust version (MSRV) is now 1.63 due to transitive dependencies.
  • Update crates.io metadata for the website

v1.19.0

Compare Source

  • Revert change to glob path to not error if the path doesn't exist
  • Allow macro definition in renderable template

v1.18.1

  • Fix panic on invalid globs to Tera::new

v1.18.0

  • Add abs filter
  • Add indent filter
  • Deprecate get_json_pointer in favour of dotted_pointer, a faster alternative
  • Always canonicalize glob paths passed to Tera to workaround a globwalk bug
  • Handle apostrophes in title case filter
  • Some performance improvement

v1.17.1

Compare Source

  • Make get_random use isize instead of i32 and bad error message
  • Fix variables lookup when the evaluated key has a . or quotes
  • Fix changed output of f64 from serde_json 1.0.85

v1.17.0

Compare Source

  • Fix bug where operands in in operation were escaped before comparison
  • Force chrono dep to be 0.4.20 minimum
  • Better support for parenthesis in expression

v1.16.0

Compare Source

  • Add a feature just for the urlencode builtin
  • Fix bug in slice filter if start >= end
  • Allow supplying a timezone to a timestamp for the date filter

Configuration

📅 Schedule: 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 has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [tera](https://keats.github.io/tera/) ([source](https://github.com/Keats/tera)) | dependencies | major | `1.15` -> `2.0` | --- ### Release Notes <details> <summary>Keats/tera (tera)</summary> ### [`v2.4.0`](https://github.com/Keats/tera/blob/HEAD/CHANGELOG.md#240-2026-09-11) [Compare Source](https://github.com/Keats/tera/compare/v2.3.0...v2.4.0) - 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`](https://github.com/Keats/tera/blob/HEAD/CHANGELOG.md#230-2026-08-26) [Compare Source](https://github.com/Keats/tera/compare/v2.2.0...v2.3.0) - 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`](https://github.com/Keats/tera/blob/HEAD/CHANGELOG.md#220-2026-08-20) [Compare Source](https://github.com/Keats/tera/compare/v2.1.1...v2.2.0) - 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`](https://github.com/Keats/tera/blob/HEAD/CHANGELOG.md#211-2026-08-11) [Compare Source](https://github.com/Keats/tera/compare/v2.1.0...v2.1.1) - Fix component default value not allowing negative numbers - Fix component default value not checking whether default value matches expected type ### [`v2.1.0`](https://github.com/Keats/tera/blob/HEAD/CHANGELOG.md#210-2026-06-23) [Compare Source](https://github.com/Keats/tera/compare/v2.0.0...v2.1.0) - Add .iter() method to Kwargs - Add `Tera::contains_component` and `Tera::get_component_names` ### [`v2.0.0`](https://github.com/Keats/tera/blob/HEAD/CHANGELOG.md#200-2026-06-26) [Compare Source](https://github.com/Keats/tera/compare/v1.20.1...v2.0.0) see [migration guide](./MIGRATION.md) for all the changes. ### [`v1.20.1`](https://github.com/Keats/tera/compare/v1.20.0...v1.20.1) [Compare Source](https://github.com/Keats/tera/compare/v1.20.0...v1.20.1) ### [`v1.20.0`](https://github.com/Keats/tera/blob/HEAD/CHANGELOG.md#1200-2024-05-27) [Compare Source](https://github.com/Keats/tera/compare/v1.19.1...v1.20.0) - Support parenthesis in if statements - Allow escaped newline and tab join separator ### [`v1.19.1`](https://github.com/Keats/tera/blob/HEAD/CHANGELOG.md#1191-2023-09-03) [Compare Source](https://github.com/Keats/tera/compare/v1.19.0...v1.19.1) - Minimum supported Rust version (MSRV) is now 1.63 due to transitive dependencies. - Update crates.io metadata for the website ### [`v1.19.0`](https://github.com/Keats/tera/blob/HEAD/CHANGELOG.md#1190-2023-05-31) [Compare Source](https://github.com/Keats/tera/compare/v1.18.1...v1.19.0) - Revert change to glob path to not error if the path doesn't exist - Allow macro definition in renderable template ### [`v1.18.1`](https://github.com/Keats/tera/blob/HEAD/CHANGELOG.md#1181-2023-03-15) - Fix panic on invalid globs to Tera::new ### [`v1.18.0`](https://github.com/Keats/tera/blob/HEAD/CHANGELOG.md#1180-2023-03-08) - Add `abs` filter - Add `indent` filter - Deprecate `get_json_pointer` in favour of `dotted_pointer`, a faster alternative - Always canonicalize glob paths passed to Tera to workaround a globwalk bug - Handle apostrophes in title case filter - Some performance improvement ### [`v1.17.1`](https://github.com/Keats/tera/blob/HEAD/CHANGELOG.md#1171-2022-09-19) [Compare Source](https://github.com/Keats/tera/compare/v1.17.0...v1.17.1) - Make `get_random` use isize instead of i32 and bad error message - Fix variables lookup when the evaluated key has a `.` or quotes - Fix changed output of f64 from serde\_json 1.0.85 ### [`v1.17.0`](https://github.com/Keats/tera/blob/HEAD/CHANGELOG.md#1170-2022-08-14) [Compare Source](https://github.com/Keats/tera/compare/v1.16.0...v1.17.0) - Fix bug where operands in `in` operation were escaped before comparison - Force chrono dep to be 0.4.20 minimum - Better support for parenthesis in expression ### [`v1.16.0`](https://github.com/Keats/tera/blob/HEAD/CHANGELOG.md#1160-2022-06-10) [Compare Source](https://github.com/Keats/tera/compare/v1.15.0...v1.16.0) - Add a feature just for the urlencode builtin - Fix bug in slice filter if start >= end - Allow supplying a timezone to a timestamp for the date filter </details> --- ### Configuration 📅 **Schedule**: 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi41Mi44IiwidXBkYXRlZEluVmVyIjoiNDIuNTIuOCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6WyJyZW5vdmF0ZS1ib3QiXX0=-->
fix(deps): update rust crate tera to v2
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/pull_request_metadata/woodpecker Pipeline was successful
a411b9ac40
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/pull_request_metadata/woodpecker Pipeline was successful
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/tera-2.x:renovate/tera-2.x
git switch renovate/tera-2.x

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch master
git merge --no-ff renovate/tera-2.x
git switch renovate/tera-2.x
git rebase master
git switch master
git merge --ff-only renovate/tera-2.x
git switch renovate/tera-2.x
git rebase master
git switch master
git merge --no-ff renovate/tera-2.x
git switch master
git merge --squash renovate/tera-2.x
git switch master
git merge --ff-only renovate/tera-2.x
git switch master
git merge renovate/tera-2.x
git push origin master
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ForgeFlux/starchart!48
No description provided.