chore(deps): update rust crate minijinja to v2.9.0 #234

Merged
lucas merged 1 commit from renovate/minijinja-2.x-lockfile into master 2025-04-21 18:37:02 +02:00
Collaborator

This PR contains the following updates:

Package Type Update Change
minijinja workspace.dependencies minor 2.2.0 -> 2.9.0

Release Notes

mitsuhiko/minijinja (minijinja)

v2.9.0

Compare Source

  • Do not panic if too large templates (too many lines or too many
    columns) are loaded. The error reporting will be wrong in those
    cases but the templates will load. #​742
  • Fixed a bug that caused unknown method callbacks to not get
    proper error reporting if they cannot find a method. #​743
  • Added merge_maps which is a dynamic version of the context!
    merge feature, and fixed enumeration behavior when non-map objects
    are attempted to be merged. #​745
  • Added mj_value_new_bytes to the C-ABI. #​749
  • Added mj_value_as_bytes to the C-ABI to borrow from strings or
    byte values. #​750
  • Fixed buggy mj_err_get_detail and mj_err_get_template_name. These
    did not work correctly. To fix them the return value now needs to be
    freed. #​754
  • Fix a compilation issue on 32bit systems when AtomicU64 is
    not available in minijinja-contrib. #​755
  • Correctly handle with context and without context for
    imports. #​759
  • The default filter is now also registered as d for Jinja2
    compatibility. #​763
  • The default filter now accepts a second argument to enable lax
    defaulting. #​764
  • Added a striptags filter to the contrib module. #​765
  • Enable pycompat by default for the Python bindings and register
    the default contrib filters and tests. #​767

v2.8.0

Compare Source

  • Added SemiStrict undefined mode that is like strict but allows
    to be checked for truthiness. Additionally an if expression without
    an else block will always produce a silent undefined object that
    never errors for compatibility with Jinja2. #​687
  • Make the trait bounds of ViaDeserialize stricter. Now the type
    can only be constructed if the type implements DeserializeOwned.
    This is not a new requirement for passing the function to
    add_function but bad code will now error earlier for better
    error reporting. #​689
  • Raise MSRV to 1.70.
  • The contrib crate now uses a basic xorrand implementation instead
    of depending on all of the rand module. #​696
  • Added temps, a way to stash away temporary state during rendering. #​697
  • Fixed a bug that caused the random functions in the contrib crate
    to not advance the RNG between calls. #​698
  • Added Environment.undeclared_variables_in_template and
    Environnent.undeclared_variables_in_str to Python binding. #​699
  • Enable loop_controls for Python in-line with the CLI. #​704
  • Fixed a panic when comparing plain objects. #​705
  • Added Object::custom_cmp to allow objects to influence how they
    compare against themselves. This also fixes Python objects in the
    Python binding not to compare correctly. #​707
  • Fixed a bug where undeclared_variables would incorrectly handle
    variables referenced by macros. #​714
  • Fixed a deadlock in the Python binding when multiple threads were
    rendering from the same environment at once. #​717
  • The Python bindings handle __bool__ correctly now for custom
    objects in if-conditions and filters. #​719
  • Fixed a bug where }} caused a syntax error in expressions with
    open parentheses, braces or brackets. #​723
  • Added State::known_variables to return a list of known variables
    and Environment::globals. #​724
  • Fixed an issue with undeclared variables not handling caller. #​725
  • Removed unnecessary Filters and Tests traits. They remain as
    hidden aliases to Function. #​726
  • Fixed a bug that caused implicit string concatenation to not correctly
    handle escapes. #​728
  • Implemented constant folding in the code generator. #​731
  • Improved error reporting for bad loop recursion calls. #​734
  • The engine now uses smaller integers to represent columns, line numbers
    and addresses. This cuts down on the memory usage needed for debug
    information. #​735
  • Added load_from_path to python. #​736
  • Added JavaScript bindings. #​737

v2.7.0

Compare Source

  • Removed string interning. #​675
  • loop.nextitem is now a lazy operation. This prevents issues when
    iterating over one-shot iterators combined with {% break %} and
    it now ensures that the iterator is not running "one item ahead". #​677
  • Fixed an issue that caused loop aliasing not to be supported for
    recursive loops. #​678
  • CLI moved from serde_yml to serde_yaml. #​684
  • Improved undefined error reporting. Undefined values will now in most
    cases point to exactly where the error happened. #​686
  • Allow newer notify dependency versions (up to 8.x) for the autoreload
    crate. #​688

v2.6.0

Compare Source

  • Added sum filter. #​648
  • Added truncate filter to minijinja-contrib. #​647
  • Added wordcount filter to minijinja-contrib. #​649
  • Added wordwrap filter to minijinja-contrib. #​651
  • Some tests and filters now pass borrowed values for performance reasons
    and a bug was fixed that caused undefined values in strict undefined
    mode not to work with tests. #​657
  • Fixed an error reporting issue for some syntax errors. #​655
  • Removed an unsafe code block from the Kwargs type internally
    which was probably unsafe. #​659
  • Fix a regression with latest serde that caused internals to leak
    out when flattening on value handles is used. #​664
  • Added Value::make_object_map to create projections from object
    into maps, similar to how it was already possible to create
    iterators that were projected from objects. #​663
  • The |items filter will no longer allocate a list and instead
    return an iterator. #​665
  • Fixed a bug that caused lstrip_blocks to act too eager. #​674

v2.5.0

Compare Source

  • minijinja-cli now supports preservation of order in maps. #​611
  • Fixed an issue where CBOR was not correctly deserialized in
    minijinja-cli. #​611
  • Added a lines filter to split a string into lines.
  • Bytes are now better supported in MiniJinja. They can be created from
    Value::from_bytes without having to go via serde, and they are now
    producing a nicer looking debug output. #​616
  • Added the missing string filter from Jinja2. #​617
  • Reversing bytes and convergint them implicitly to strings will now work
    more consistently. #​619
  • Added type hints for the Python binding and relaxed maturin constraint. #​590
  • minijinja-cli now allows the template name to be set to an empty
    string when --template is used, to allow suppliying a data file. #​624
  • Added the missing sameas filter from Jinja2. #​625
  • Tests can now support one argument without parentheses like in Jinja2
    (1 is sameas 1). #​626
  • Added error context for strict undefined errors during template
    rendering. #​627
  • Syntax errors caused by the lexer now include the correct position of
    the error. #​630
  • minijinja-cli now has all features enabled by default as documented
    (that means also shell completion and ini). #​633
  • minijinja-cli now does not convert INI files to lowercase anymore. This was
    an unintended behavior. #​633
  • Moved up MSRV to 1.63.0 due to indexmap. #​635
  • Added argument splatting support (*args for variable args and **kwargs
    for keyword arguments) and fixed a bug where sometimes maps and keyword
    arguments were created in inverse order. #​642

v2.4.0

Compare Source

  • Updated version of minijinja-cli with support for better documentation,
    config file and environment variable support. #​602
  • minijinja-cli now supports template source passed by parameter for
    simple cases. #​606
  • minijinja-cli now has a --syntax-help argument that prints out the
    primer on the syntax. #​607
  • minijinja-cli now installs to ~/.local/bin by default. #​608
  • Made the c-bindings compatible with wasm compilation. #​603
  • String/Cow<str> argument types will no longer implicitly convert
    keyword arguments to string form. This was an unintended foot gun. #​605

v2.3.1

Compare Source

  • Fixes a regression in PartialEq / Eq in Value caused by changes
    in 2.3.0. #​584

v2.3.0

Compare Source

  • Fixes some compiler warnings in Rust 1.81. #​575
  • Fixes incorrect ordering of maps when the keys of those maps
    were not in consistent order. #​569
  • Implemented the missing groupby filter. #​570
  • The unique filter now is case insensitive by default like in
    Jinja2 and supports an optional flag to make it case sensitive.
    It also now lets one check individual attributes instead of
    values. #​571
  • Changed sort order of Ord to avoid accidentally non total order
    that could cause panics on Rust 1.81. #​579
  • Added a Value::is_integer method to allow a user to tell floats
    and true integers apart. #​580

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

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [minijinja](https://github.com/mitsuhiko/minijinja) | workspace.dependencies | minor | `2.2.0` -> `2.9.0` | --- ### Release Notes <details> <summary>mitsuhiko/minijinja (minijinja)</summary> ### [`v2.9.0`](https://github.com/mitsuhiko/minijinja/blob/HEAD/CHANGELOG.md#290) [Compare Source](https://github.com/mitsuhiko/minijinja/compare/2.8.0...2.9.0) - Do not panic if too large templates (too many lines or too many columns) are loaded. The error reporting will be wrong in those cases but the templates will load. [#&#8203;742](https://github.com/mitsuhiko/minijinja/issues/742) - Fixed a bug that caused unknown method callbacks to not get proper error reporting if they cannot find a method. [#&#8203;743](https://github.com/mitsuhiko/minijinja/issues/743) - Added `merge_maps` which is a dynamic version of the `context!` merge feature, and fixed enumeration behavior when non-map objects are attempted to be merged. [#&#8203;745](https://github.com/mitsuhiko/minijinja/issues/745) - Added `mj_value_new_bytes` to the C-ABI. [#&#8203;749](https://github.com/mitsuhiko/minijinja/issues/749) - Added `mj_value_as_bytes` to the C-ABI to borrow from strings or byte values. [#&#8203;750](https://github.com/mitsuhiko/minijinja/issues/750) - Fixed buggy `mj_err_get_detail` and `mj_err_get_template_name`. These did not work correctly. To fix them the return value now needs to be freed. [#&#8203;754](https://github.com/mitsuhiko/minijinja/issues/754) - Fix a compilation issue on 32bit systems when `AtomicU64` is not available in minijinja-contrib. [#&#8203;755](https://github.com/mitsuhiko/minijinja/issues/755) - Correctly handle `with context` and `without context` for imports. [#&#8203;759](https://github.com/mitsuhiko/minijinja/issues/759) - The `default` filter is now also registered as `d` for Jinja2 compatibility. [#&#8203;763](https://github.com/mitsuhiko/minijinja/issues/763) - The `default` filter now accepts a second argument to enable lax defaulting. [#&#8203;764](https://github.com/mitsuhiko/minijinja/issues/764) - Added a `striptags` filter to the contrib module. [#&#8203;765](https://github.com/mitsuhiko/minijinja/issues/765) - Enable `pycompat` by default for the Python bindings and register the default contrib filters and tests. [#&#8203;767](https://github.com/mitsuhiko/minijinja/issues/767) ### [`v2.8.0`](https://github.com/mitsuhiko/minijinja/blob/HEAD/CHANGELOG.md#280) [Compare Source](https://github.com/mitsuhiko/minijinja/compare/2.7.0...2.8.0) - Added `SemiStrict` undefined mode that is like strict but allows to be checked for truthiness. Additionally an if expression without an else block will always produce a silent undefined object that never errors for compatibility with Jinja2. [#&#8203;687](https://github.com/mitsuhiko/minijinja/issues/687) - Make the trait bounds of `ViaDeserialize` stricter. Now the type can only be constructed if the type implements `DeserializeOwned`. This is not a new requirement for passing the function to `add_function` but bad code will now error earlier for better error reporting. [#&#8203;689](https://github.com/mitsuhiko/minijinja/issues/689) - Raise MSRV to 1.70. - The contrib crate now uses a basic xorrand implementation instead of depending on all of the `rand` module. [#&#8203;696](https://github.com/mitsuhiko/minijinja/issues/696) - Added temps, a way to stash away temporary state during rendering. [#&#8203;697](https://github.com/mitsuhiko/minijinja/issues/697) - Fixed a bug that caused the random functions in the contrib crate to not advance the RNG between calls. [#&#8203;698](https://github.com/mitsuhiko/minijinja/issues/698) - Added `Environment.undeclared_variables_in_template` and `Environnent.undeclared_variables_in_str` to Python binding. [#&#8203;699](https://github.com/mitsuhiko/minijinja/issues/699) - Enable `loop_controls` for Python in-line with the CLI. [#&#8203;704](https://github.com/mitsuhiko/minijinja/issues/704) - Fixed a panic when comparing plain objects. [#&#8203;705](https://github.com/mitsuhiko/minijinja/issues/705) - Added `Object::custom_cmp` to allow objects to influence how they compare against themselves. This also fixes Python objects in the Python binding not to compare correctly. [#&#8203;707](https://github.com/mitsuhiko/minijinja/issues/707) - Fixed a bug where `undeclared_variables` would incorrectly handle variables referenced by macros. [#&#8203;714](https://github.com/mitsuhiko/minijinja/issues/714) - Fixed a deadlock in the Python binding when multiple threads were rendering from the same environment at once. [#&#8203;717](https://github.com/mitsuhiko/minijinja/issues/717) - The Python bindings handle `__bool__` correctly now for custom objects in if-conditions and filters. [#&#8203;719](https://github.com/mitsuhiko/minijinja/issues/719) - Fixed a bug where `}}` caused a syntax error in expressions with open parentheses, braces or brackets. [#&#8203;723](https://github.com/mitsuhiko/minijinja/issues/723) - Added `State::known_variables` to return a list of known variables and `Environment::globals`. [#&#8203;724](https://github.com/mitsuhiko/minijinja/issues/724) - Fixed an issue with undeclared variables not handling `caller`. [#&#8203;725](https://github.com/mitsuhiko/minijinja/issues/725) - Removed unnecessary `Filters` and `Tests` traits. They remain as hidden aliases to `Function`. [#&#8203;726](https://github.com/mitsuhiko/minijinja/issues/726) - Fixed a bug that caused implicit string concatenation to not correctly handle escapes. [#&#8203;728](https://github.com/mitsuhiko/minijinja/issues/728) - Implemented constant folding in the code generator. [#&#8203;731](https://github.com/mitsuhiko/minijinja/issues/731) - Improved error reporting for bad loop recursion calls. [#&#8203;734](https://github.com/mitsuhiko/minijinja/issues/734) - The engine now uses smaller integers to represent columns, line numbers and addresses. This cuts down on the memory usage needed for debug information. [#&#8203;735](https://github.com/mitsuhiko/minijinja/issues/735) - Added `load_from_path` to python. [#&#8203;736](https://github.com/mitsuhiko/minijinja/issues/736) - Added JavaScript bindings. [#&#8203;737](https://github.com/mitsuhiko/minijinja/issues/737) ### [`v2.7.0`](https://github.com/mitsuhiko/minijinja/blob/HEAD/CHANGELOG.md#270) [Compare Source](https://github.com/mitsuhiko/minijinja/compare/2.6.0...2.7.0) - Removed string interning. [#&#8203;675](https://github.com/mitsuhiko/minijinja/issues/675) - `loop.nextitem` is now a lazy operation. This prevents issues when iterating over one-shot iterators combined with `{% break %}` and it now ensures that the iterator is not running "one item ahead". [#&#8203;677](https://github.com/mitsuhiko/minijinja/issues/677) - Fixed an issue that caused loop aliasing not to be supported for recursive loops. [#&#8203;678](https://github.com/mitsuhiko/minijinja/issues/678) - CLI moved from `serde_yml` to `serde_yaml`. [#&#8203;684](https://github.com/mitsuhiko/minijinja/issues/684) - Improved undefined error reporting. Undefined values will now in most cases point to exactly where the error happened. [#&#8203;686](https://github.com/mitsuhiko/minijinja/issues/686) - Allow newer notify dependency versions (up to 8.x) for the autoreload crate. [#&#8203;688](https://github.com/mitsuhiko/minijinja/issues/688) ### [`v2.6.0`](https://github.com/mitsuhiko/minijinja/blob/HEAD/CHANGELOG.md#260) [Compare Source](https://github.com/mitsuhiko/minijinja/compare/2.5.0...2.6.0) - Added `sum` filter. [#&#8203;648](https://github.com/mitsuhiko/minijinja/issues/648) - Added `truncate` filter to `minijinja-contrib`. [#&#8203;647](https://github.com/mitsuhiko/minijinja/issues/647) - Added `wordcount` filter to `minijinja-contrib`. [#&#8203;649](https://github.com/mitsuhiko/minijinja/issues/649) - Added `wordwrap` filter to `minijinja-contrib`. [#&#8203;651](https://github.com/mitsuhiko/minijinja/issues/651) - Some tests and filters now pass borrowed values for performance reasons and a bug was fixed that caused undefined values in strict undefined mode not to work with tests. [#&#8203;657](https://github.com/mitsuhiko/minijinja/issues/657) - Fixed an error reporting issue for some syntax errors. [#&#8203;655](https://github.com/mitsuhiko/minijinja/issues/655) - Removed an `unsafe` code block from the `Kwargs` type internally which was probably unsafe. [#&#8203;659](https://github.com/mitsuhiko/minijinja/issues/659) - Fix a regression with latest serde that caused internals to leak out when flattening on value handles is used. [#&#8203;664](https://github.com/mitsuhiko/minijinja/issues/664) - Added `Value::make_object_map` to create projections from object into maps, similar to how it was already possible to create iterators that were projected from objects. [#&#8203;663](https://github.com/mitsuhiko/minijinja/issues/663) - The `|items` filter will no longer allocate a list and instead return an iterator. [#&#8203;665](https://github.com/mitsuhiko/minijinja/issues/665) - Fixed a bug that caused `lstrip_blocks` to act too eager. [#&#8203;674](https://github.com/mitsuhiko/minijinja/issues/674) ### [`v2.5.0`](https://github.com/mitsuhiko/minijinja/blob/HEAD/CHANGELOG.md#250) [Compare Source](https://github.com/mitsuhiko/minijinja/compare/2.4.0...2.5.0) - `minijinja-cli` now supports preservation of order in maps. [#&#8203;611](https://github.com/mitsuhiko/minijinja/issues/611) - Fixed an issue where CBOR was not correctly deserialized in `minijinja-cli`. [#&#8203;611](https://github.com/mitsuhiko/minijinja/issues/611) - Added a `lines` filter to split a string into lines. - Bytes are now better supported in MiniJinja. They can be created from `Value::from_bytes` without having to go via serde, and they are now producing a nicer looking debug output. [#&#8203;616](https://github.com/mitsuhiko/minijinja/issues/616) - Added the missing `string` filter from Jinja2. [#&#8203;617](https://github.com/mitsuhiko/minijinja/issues/617) - Reversing bytes and convergint them implicitly to strings will now work more consistently. [#&#8203;619](https://github.com/mitsuhiko/minijinja/issues/619) - Added type hints for the Python binding and relaxed maturin constraint. [#&#8203;590](https://github.com/mitsuhiko/minijinja/issues/590) - `minijinja-cli` now allows the template name to be set to an empty string when `--template` is used, to allow suppliying a data file. [#&#8203;624](https://github.com/mitsuhiko/minijinja/issues/624) - Added the missing `sameas` filter from Jinja2. [#&#8203;625](https://github.com/mitsuhiko/minijinja/issues/625) - Tests can now support one argument without parentheses like in Jinja2 (`1 is sameas 1`). [#&#8203;626](https://github.com/mitsuhiko/minijinja/issues/626) - Added error context for strict undefined errors during template rendering. [#&#8203;627](https://github.com/mitsuhiko/minijinja/issues/627) - Syntax errors caused by the lexer now include the correct position of the error. [#&#8203;630](https://github.com/mitsuhiko/minijinja/issues/630) - `minijinja-cli` now has all features enabled by default as documented (that means also shell completion and ini). [#&#8203;633](https://github.com/mitsuhiko/minijinja/issues/633) - `minijinja-cli` now does not convert INI files to lowercase anymore. This was an unintended behavior. [#&#8203;633](https://github.com/mitsuhiko/minijinja/issues/633) - Moved up MSRV to 1.63.0 due to indexmap. [#&#8203;635](https://github.com/mitsuhiko/minijinja/issues/635) - Added argument splatting support (`*args` for variable args and `**kwargs` for keyword arguments) and fixed a bug where sometimes maps and keyword arguments were created in inverse order. [#&#8203;642](https://github.com/mitsuhiko/minijinja/issues/642) ### [`v2.4.0`](https://github.com/mitsuhiko/minijinja/blob/HEAD/CHANGELOG.md#240) [Compare Source](https://github.com/mitsuhiko/minijinja/compare/2.3.1...2.4.0) - Updated version of `minijinja-cli` with support for better documentation, config file and environment variable support. [#&#8203;602](https://github.com/mitsuhiko/minijinja/issues/602) - `minijinja-cli` now supports template source passed by parameter for simple cases. [#&#8203;606](https://github.com/mitsuhiko/minijinja/issues/606) - `minijinja-cli` now has a `--syntax-help` argument that prints out the primer on the syntax. [#&#8203;607](https://github.com/mitsuhiko/minijinja/issues/607) - `minijinja-cli` now installs to `~/.local/bin` by default. [#&#8203;608](https://github.com/mitsuhiko/minijinja/issues/608) - Made the c-bindings compatible with wasm compilation. [#&#8203;603](https://github.com/mitsuhiko/minijinja/issues/603) - `String`/`Cow<str>` argument types will no longer implicitly convert keyword arguments to string form. This was an unintended foot gun. [#&#8203;605](https://github.com/mitsuhiko/minijinja/issues/605) ### [`v2.3.1`](https://github.com/mitsuhiko/minijinja/blob/HEAD/CHANGELOG.md#231) [Compare Source](https://github.com/mitsuhiko/minijinja/compare/2.3.0...2.3.1) - Fixes a regression in `PartialEq` / `Eq` in `Value` caused by changes in 2.3.0. [#&#8203;584](https://github.com/mitsuhiko/minijinja/issues/584) ### [`v2.3.0`](https://github.com/mitsuhiko/minijinja/blob/HEAD/CHANGELOG.md#230) [Compare Source](https://github.com/mitsuhiko/minijinja/compare/2.2.0...2.3.0) - Fixes some compiler warnings in Rust 1.81. [#&#8203;575](https://github.com/mitsuhiko/minijinja/issues/575) - Fixes incorrect ordering of maps when the keys of those maps were not in consistent order. [#&#8203;569](https://github.com/mitsuhiko/minijinja/issues/569) - Implemented the missing `groupby` filter. [#&#8203;570](https://github.com/mitsuhiko/minijinja/issues/570) - The `unique` filter now is case insensitive by default like in Jinja2 and supports an optional flag to make it case sensitive. It also now lets one check individual attributes instead of values. [#&#8203;571](https://github.com/mitsuhiko/minijinja/issues/571) - Changed sort order of `Ord` to avoid accidentally non total order that could cause panics on Rust 1.81. [#&#8203;579](https://github.com/mitsuhiko/minijinja/issues/579) - Added a `Value::is_integer` method to allow a user to tell floats and true integers apart. [#&#8203;580](https://github.com/mitsuhiko/minijinja/issues/580) </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 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. --- - [ ] <!-- 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:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMzguMiIsInVwZGF0ZWRJblZlciI6IjM5LjIzOC4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
renovate-botbot added 1 commit 2025-04-21 17:47:24 +02:00
chore(deps): update rust crate minijinja to v2.9.0
All checks were successful
build/msvc Build for the target platform: msvc
build/linux Build for the target platform: linux
lint/clippy Checking for common mistakes and opportunities for code improvement
3f3c4aa321
lucas merged commit e33e02457b into master 2025-04-21 18:37:02 +02:00
lucas deleted branch renovate/minijinja-2.x-lockfile 2025-04-21 18:37:02 +02:00
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: bitsquid_dt/dtmt#234
No description provided.