Skip to content

chore(deps): update tera requirement from 1.19 to 2.2 - #73

Closed
dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/cargo/develop/tera-2.2
Closed

dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/cargo/develop/tera-2.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 24, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on tera to permit the latest version.

Changelog

Sourced from tera's changelog.

2.2.0 (2026-08-20)

  • 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

2.1.1 (2026-08-11)

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

2.1.0 (2026-06-23)

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

2.0.0 (2026-06-26)

see migration guide for all the changes.

1.21.1 (2025-10-30)

  • Replace unmaintained unic-segment dependency

1.20.0 (2024-05-27)

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

1.19.1 (2023-09-03)

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

1.19.0 (2023-05-31)

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

1.18.1 (2023-03-15)

  • Fix panic on invalid globs to Tera::new

1.18.0 (2023-03-08)

  • Add abs filter
  • Add indent filter
  • Deprecate get_json_pointer in favour of dotted_pointer, a faster alternative

... (truncated)

Commits
  • ca78425 Ready for release
  • 250ed5b Add configurable indent character (#1012)
  • 99bdc80 Better error message for existing but undefined values
  • a0bd524 Better error message for x not allowed in y
  • 36755bf Add back blocks in conditionals
  • 98551d2 Add chained filter sections (#1013)
  • 96ce00e Bump deps
  • e31a03b Mention date locale arg dropped in migration
  • 6ced1e8 Add CSS for tables in doc site
  • 1b4bccd Fix map/filter still showing changes in migration
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [tera](https://github.com/Keats/tera) to permit the latest version.
- [Changelog](https://github.com/Keats/tera/blob/master/CHANGELOG.md)
- [Commits](Keats/tera@v1.19.0...v2.2.0)

---
updated-dependencies:
- dependency-name: tera
  dependency-version: 2.2.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@chrome-grid

chrome-grid Bot commented Aug 24, 2026

Copy link
Copy Markdown

🟪🔷 netrunner :: intrusion report

░▒▓ N E T R U N N E R ▓▒░
   🟪 GRID STATUS: FLATLINE   |   netrunner-review: fail

The CI failed due to breaking changes in the Tera 2.2 upgrade. The Result type has been moved and filter functions now require an additional argument. These issues need to be addressed before the upgrade can be approved.


📡 NETWATCH · gate checks

❌ Code Coverage — failure
❌ Test Suite — failure
❌ Validate Examples — failure
✅ automerge — success

fault trace:

Validate Examples

error[E0425]: cannot find type `Result` in crate `tera`
  --> src/generators/base/templates.rs:52:77
   |
52 | fn escape_js_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
   |                                                                             ^^^^^^ not found in `tera`
   |
help: consider importing one of these items
   |
 1 + use crate::Result;
   |
 1 + use std::fmt::Result;
   |
 1 + use std::io::Result;
   |
 1 + use std::result::Result;
   |
   = and 7 other candidates
help: if you import `Result`, refer to it directly
   |
52 - fn escape_js_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
52 + fn escape_js_filter(value: &Value, _args: &HashMap<String, Value>) -> Result<Value> {
   |

error[E0425]: cannot find type `Result` in crate `tera`
  --> src/generators/base/templates.rs:74:84
   |
74 | fn add_types_prefix_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
   |                                                                                    ^^^^^^ not found in `tera`
   |
help: consider importing one of these items
   |
 1 + use crate::Result;
   |
 1 + use std::fmt::Result;
   |
 1 + use std::io::Result;
   |
 1 + use std::result::Result;
   |
   = and 7 other candidates
help: if you import `Result`, refer to it directly
   |
74 - fn add_types_prefix_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
74 + fn add_types_prefix_filter(value: &Value, _args: &HashMap<String, Value>) -> Result<Value> {
   |

error[E0425]: cannot find type `Result` in crate `tera`
 --> src/generators/zod/filters.rs:6:84
  |
6 | pub fn to_zod_schema_filter(value: &Value, args: &HashMap<String, Value>) -> tera::Result<Value> {
  |                                                                                    ^^^^^^ not found in `tera`
  |
help: consider importing one of these items
  |
1 + use crate::Result;
  |
1 + use std::fmt::Result;
  |
1 + use std::io::Result;
  |
1 + use std::result::Result;
  |
  = and 7 other candidates
help: if you import `Result`, refer to it directly
  |
6 - pub fn to_zod_schema_filter(value: &Value, args: &HashMap<String, Value>) -> tera::Result<Value> {
6 + pub fn to_zod_schema_filter(value: &Value, args: &HashMap<String, Value>) -> Result<Value> {
  |

error[E0593]: function is expected to take 3 arguments, but it takes 2 arguments
   --> src/generators/base/templates.rs:32:43
    |
 32 |         tera.register_filter("escape_js", escape_js_filter);
    |              ---------------              ^^^^^^^^^^^^^^^^ expected function that takes 3 arguments
    |              |
    |              required by a bound introduced by this call
...
 52 | fn escape_js_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
    | ----------------------------------------------------------------------------------------- takes 2 arguments
    |

Test Suite

error[E0425]: cannot find type `Result` in crate `tera`
  --> src/generators/base/templates.rs:52:77
   |
52 | fn escape_js_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
   |                                                                             ^^^^^^ not found in `tera`
   |
help: consider importing one of these items
   |
 1 + use crate::Result;
   |
 1 + use std::fmt::Result;
   |
 1 + use std::io::Result;
   |
 1 + use std::result::Result;
   |
   = and 7 other candidates
help: if you import `Result`, refer to it directly
   |
52 - fn escape_js_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
52 + fn escape_js_filter(value: &Value, _args: &HashMap<String, Value>) -> Result<Value> {
   |

error[E0425]: cannot find type `Result` in crate `tera`
  --> src/generators/base/templates.rs:74:84
   |
74 | fn add_types_prefix_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
   |                                                                                    ^^^^^^ not found in `tera`
   |
help: consider importing one of these items
   |
 1 + use crate::Result;
   |
 1 + use std::fmt::Result;
   |
 1 + use std::io::Result;
   |
 1 + use std::result::Result;
   |
   = and 7 other candidates
help: if you import `Result`, refer to it directly
   |
74 - fn add_types_prefix_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
74 + fn add_types_prefix_filter(value: &Value, _args: &HashMap<String, Value>) -> Result<Value> {
   |

error[E0425]: cannot find type `Result` in crate `tera`
 --> src/generators/zod/filters.rs:6:84
  |
6 | pub fn to_zod_schema_filter(value: &Value, args: &HashMap<String, Value>) -> tera::Result<Value> {
  |                                                                                    ^^^^^^ not found in `tera`
  |
help: consider importing one of these items
  |
1 + use crate::Result;
  |
1 + use std::fmt::Result;
  |
1 + use std::io::Result;
  |
1 + use std::result::Result;
  |
  = and 7 other candidates
help: if you import `Result`, refer to it directly
  |
6 - pub fn to_zod_schema_filter(value: &Value, args: &HashMap<String, Value>) -> tera::Result<Value> {
6 + pub fn to_zod_schema_filter(value: &Value, args: &HashMap<String, Value>) -> Result<Value> {
  |

error[E0593]: function is expected to take 3 arguments, but it takes 2 arguments
   --> src/generators/base/templates.rs:32:43
    |
 32 |         tera.register_filter("escape_js", escape_js_filter);
    |              ---------------              ^^^^^^^^^^^^^^^^ expected function that takes 3 arguments
    |              |
    |              required by a bound introduced by this call
...
 52 | fn escape_js_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
    | ----------------------------------------------------------------------------------------- takes 2 arguments
    |

Code Coverage

error[E0425]: cannot find type `Result` in crate `tera`
  --> src/generators/base/templates.rs:52:77
   |
52 | fn escape_js_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
   |                                                                             ^^^^^^ not found in `tera`
   |
help: consider importing one of these items
   |
 1 + use crate::Result;
   |
 1 + use std::fmt::Result;
   |
 1 + use std::io::Result;
   |
 1 + use std::result::Result;
   |
   = and 7 other candidates
help: if you import `Result`, refer to it directly
   |
52 - fn escape_js_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
52 + fn escape_js_filter(value: &Value, _args: &HashMap<String, Value>) -> Result<Value> {
   |

error[E0425]: cannot find type `Result` in crate `tera`
  --> src/generators/base/templates.rs:74:84
   |
74 | fn add_types_prefix_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
   |                                                                                    ^^^^^^ not found in `tera`
   |
help: consider importing one of these items
   |
 1 + use crate::Result;
   |
 1 + use std::fmt::Result;
   |
 1 + use std::io::Result;
   |
 1 + use std::result::Result;
   |
   = and 7 other candidates
help: if you import `Result`, refer to it directly
   |
74 - fn add_types_prefix_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
74 + fn add_types_prefix_filter(value: &Value, _args: &HashMap<String, Value>) -> Result<Value> {
   |

error[E0425]: cannot find type `Result` in crate `tera`
 --> src/generators/zod/filters.rs:6:84
  |
6 | pub fn to_zod_schema_filter(value: &Value, args: &HashMap<String, Value>) -> tera::Result<Value> {
  |                                                                                    ^^^^^^ not found in `tera`
  |
help: consider importing one of these items
  |
1 + use crate::Result;
  |
1 + use std::fmt::Result;
  |
1 + use std::io::Result;
  |
1 + use std::result::Result;
  |
  = and 7 other candidates
help: if you import `Result`, refer to it directly
  |
6 - pub fn to_zod_schema_filter(value: &Value, args: &HashMap<String, Value>) -> tera::Result<Value> {
6 + pub fn to_zod_schema_filter(value: &Value, args: &HashMap<String, Value>) -> Result<Value> {
  |

error[E0593]: function is expected to take 3 arguments, but it takes 2 arguments
   --> src/generators/base/templates.rs:32:43
    |
 32 |         tera.register_filter("escape_js", escape_js_filter);
    |              ---------------              ^^^^^^^^^^^^^^^^ expected function that takes 3 arguments
    |              |
    |              required by a bound introduced by this call
...
 52 | fn escape_js_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
    | ----------------------------------------------------------------------------------------- takes 2 arguments
    |

☠️ GLITCH TRACE · flaws & patches

🔴 CRIT · src/generators/base/templates.rs — The Result type is no longer available directly from the tera crate in version 2.2. It should be imported from std::result::Result or referred to directly as Result.

🩹 patch:

use std::result::Result;

🔴 CRIT · src/generators/base/templates.rs — The filter function signature has changed in Tera 2.2. The escape_js_filter function needs to be updated to take an additional argument.

🩹 patch:

fn escape_js_filter(value: &Value, _args: &HashMap<String, Value>, _context: &tera::Context) -> Result<Value> {

🔴 CRIT · src/generators/zod/filters.rs — The Result type is no longer available directly from the tera crate in version 2.2. It should be imported from std::result::Result or referred to directly as Result.

🩹 patch:

use std::result::Result;

🔴 CRIT · src/generators/zod/filters.rs — The filter function signature has changed in Tera 2.2. The to_zod_schema_filter function needs to be updated to take an additional argument.

🩹 patch:

pub fn to_zod_schema_filter(value: &Value, args: &HashMap<String, Value>, _context: &tera::Context) -> Result<Value> {

🔴 VERDICT // FLATLINE — holding the netrunner-review gate. Patch required, choom.

"Gotta patch those filters before Arasaka ICE locks down your deck, choom."
— netrunner 🟪🔷

verdict: REQUEST_CHANGES · model: mistral-medium-2508

@dependabot @github

dependabot Bot commented on behalf of github Aug 31, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #76.

@dependabot dependabot Bot closed this Aug 31, 2026
@dependabot
dependabot Bot deleted the dependabot/cargo/develop/tera-2.2 branch August 31, 2026 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant