Minijinja

Latest version: v2.7.0

Safety actively analyzes 702116 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 15

1.0.17

- Added support for `Option<Into<Value>>` as return value from
functions. 452
- Deprecated `Value::from_serializable` for the improved replacement
method `Value::from_serialize`. 482

1.0.16

- Tolerate underscores in number literals. 443
- Added support for `trim_blocks` and `lstrip_blocks` for Jinja2
compatibility. 447
- Changed API of `unstable_machinery`. The `tokenize` function got an
extra argument for the `WhitespaceConfig`. It's however recommended
to use the new `Tokenizer` struct instead. `parse_expr` was added,
the `parse` function now takes a `SyntaxConfig` and `WhitespaceConfig`. 447

1.0.15

- Resolved a compiler warning for Rust 1.77. 440
- Fixed an incorrect error case in `call_method`. Now `UnknownMethod`
is returned instead of `InvalidOperation` correctly. 439
- Added `Environment::set_unknown_method_callback` which allows a user
to intercept method calls on primitives. The motivation here is that
this can be used to implement python like methods to improve the
compatibility with Jinja2 Python templates. 441

1.0.14

- Fixed a bug with broken closure handling when working with nested
`{% macro %}` or `{% call %}` blocks. 435

1.0.13

- `minijinja-cli` now supports an `-o` or `--output` parameter to write
into a target file. 405
- `minijinja-cli` now accepts the `--safe-path` parameter to disallow
includes or extends from paths not explicitly allowlisted. 432
- Added support for `Error::display_debug_info` which displays just the
debug info, same way as alternative display on the error does. 420
- Added the `namespace()` function from Jinja2 and the ability to assign
to it via `{% set %}`. 422
- `minijinja-autoreload` now supports `on_should_reload_callback` which
lets one register a callback to be called just before an auto reload
should be performed. 424
- Added support for `Value::from_iterator`, `IteratorObject` and
`ObjectKind::Iterator`. 426
- Added support for `0b`/`0o`/`0x` prefixed integer literals for
binary, octal and hexadecimal notation. 433

1.0.12

- The `urlencode` filter now correctly skips over none and undefined. 394
- The `dict` function now supports merging in of extra arguments. 395
- Added support for primitive datetimes in the contrib module. 398

Page 4 of 15

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.