Skip to content

deps: bump tera from 1.20.1 to 2.0.0 - #368

Merged
passcod merged 2 commits into
mainfrom
dependabot/cargo/tera-2.0.0
Aug 2, 2026
Merged

deps: bump tera from 1.20.1 to 2.0.0#368
passcod merged 2 commits into
mainfrom
dependabot/cargo/tera-2.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 12, 2026

Copy link
Copy Markdown
Contributor

Bumps tera from 1.20.1 to 2.0.0.

Changelog

Sourced from tera's changelog.

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
  • Always canonicalize glob paths passed to Tera to workaround a globwalk bug
  • Handle apostrophes in title case filter
  • Some performance improvement

1.17.1 (2022-09-19)

  • 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

1.17.0 (2022-08-14)

  • 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

1.16.0 (2022-06-10)

... (truncated)

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Jul 12, 2026
@dependabot
dependabot Bot force-pushed the dependabot/cargo/tera-2.0.0 branch from 938b33b to 5476452 Compare July 20, 2026 02:46
@dependabot
dependabot Bot force-pushed the dependabot/cargo/tera-2.0.0 branch from 5476452 to dcc8654 Compare July 28, 2026 23:28
dependabot Bot and others added 2 commits August 2, 2026 02:57
Bumps [tera](https://github.com/Keats/tera) from 1.20.1 to 2.0.0.
- [Changelog](https://github.com/Keats/tera/blob/master/CHANGELOG.md)
- [Commits](Keats/tera@v1.20.1...v2.0.0)

---
updated-dependencies:
- dependency-name: tera
  dependency-version: 2.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
tera 2 is a rewrite, and two things the templates relied on no longer hold.

Tests take keyword arguments now, so `is starting_with("https://")` is a
parse error ("Found string but expected identifier"). The templates are
embedded and parsed in `init_tera()`, which both binaries call at startup,
so that one line took down every server-backed test at once and left the
e2e fixture waiting on a server that never booted. Add the `pat=` name.

Comparing null against a number is an error rather than silently false.
`server_versions` walks `version_distance` down a `< 2` / `< 5` / `< 10`
ladder, and that field is null whenever a server reports a version we
can't measure a distance for — most plainly when nothing is published, so
there is no latest to measure against. Give the unknown case its own
branch. This one is not new: tera 1 also errored ("used in a math
operation but is not a number"), so the page has been 500ing on that
fleet shape all along; the port just made it impossible to miss.

Rendering is otherwise unchanged — every template renders byte-identical
under 1.20.1 and 2.1.0 for the same context.

Cover both: a unit test that parses each embedded template, so the next
syntax break is one named failure instead of the whole suite, and a
server-versions test for a reported version with no distance.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0175UuBBSRyvavmHPPQQaUfz
@passcod
passcod force-pushed the dependabot/cargo/tera-2.0.0 branch from dcc8654 to 14f8595 Compare August 2, 2026 03:02
@passcod
passcod enabled auto-merge August 2, 2026 03:04
@passcod
passcod added this pull request to the merge queue Aug 2, 2026
Merged via the queue into main with commit aca19e1 Aug 2, 2026
8 checks passed
@passcod
passcod deleted the dependabot/cargo/tera-2.0.0 branch August 2, 2026 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants