Minijinja

Latest version: v2.7.0

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

Scan your dependencies

Page 5 of 15

1.0.11

- Added `Environment::compile_expression_owned` to allow compiled expressions
to be held without requiring a reference. 383
- Added `minijinja-embed` crate which provides a simple way to embed templates
directly in the binary. 392

1.0.10

- Added `int` and `float` filters. 372
- Added `integer` and `float` tests. 373
- Fixed an issue that caused the CLI not to run when the `repl` feature
was disabled. 374
- Added `-n` / `--no-newline` option to CLI. 375

1.0.9

- Fixed a memory leak involving macros. Previously using macros was
leaking memory due to an undetected cycle. 359
- The `debug` function in templates can now also be used to print out
the debug output of a variable. 356
- Added a new `stacker` feature which allows raising of the recursion
limits. It enables monitoring of the call stack via [stacker](https://crates.io/crates/stacker)
and automatically acquires additional memory when the call stack
runs out of space. 354

1.0.8

- Large integer literals in templates are now correctly handled. 353
- Relax the trait bounds of `Value::downcast_object_ref` /
`Object::downcast_ref` / `Object::is` and added support for downcasting
of types that were directly created with `Value::from_seq_object`
and `Value::from_struct_object`. 349
- Overflowing additions on very large integers now fails rather than
silently wrapping around. 350
- Fixed a few overflow panics: dividing integers with an overflow and
- Exposed missing new functionality for the Python binding. 339

1.0.7

- Added support for `keep_trailing_newlines` which allows you to disable
the automatic trimming of trailing newlines. 334
- Added `minijinja-cli` which lets you render and debug templates from
the command line. 331
- Macros called with the wrong state will no longer panic. 330
- Debug output of `Value::UNDEFINED` and `Value::from(())` is now
`undefined` and `none` rather than `Undefined` and `None`. This was
an accidental inconsistency.
- Fixed a potential panic in debug error printing.
- Added `Environment::set_path_join_callback` and `State::get_template`
to support path joining. This is for greater compatibility with Jinja2
where path joining was overridable. With this you can configure the
engine so that paths used by `include` or `extends` can be relative to
the current template. 328
- The default auto-escape detection now accepts `.html.j2` as alias for
`.html` as well as for all other choices. In general `.j2` as an extension
is now generally supported.

1.0.6

- Fixed iso datetime formatting not handling negative offsets correctly. 327
- Re-report `Value` directly from the crate root for convenience.
- It's now possible to `deserialize` from a `Value`. Additionally the
`ViaDeserialize<T>` argument type was added to support value conversions
via serde as argument type. 325

Page 5 of 15

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.