Minijinja

Latest version: v2.7.0

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

Scan your dependencies

Page 7 of 15

1.0.0

- Support unicode sorting for filters when the `unicode` feature is enabled.
This also fixes confusing behavior when mixed types were sorted. (299)

- Added `json5` as file extension for JSON formatter.

- The autoreload crate now supports fast reloading by just clearing the
already templates. This is enabled via `set_fast_reload` on the
`Notifier`.

**Note:** This also includes all the changes in the different 1.0.0 alphas.

Breaking Changes

1.0.0alpha.4

- `Value` now implements `Ord`. This also improves the ability of the engine
to sort more complex values in filters. (295)

- `Arc<String>` was replaced with `Arc<str>` in some of the public APIs where
this shined through. Support for more complex key types in maps was added.
You can now have tuple keys for instance. (297)

1.0.0alpha.3

- Removed `char` as a value type. Characters are now represented as strings
instead. This solves a bunch of Jinja2 incompatibilities that resulted by
indexing into strings. (292)

- Marked `ErrorKind` as `[non_exhaustive]`.

- Correctly handle coercing of characters and strings. `"w" == "w"[0]` is
now evaluating to `true` as one would expect.

1.0.0alpha.2

- The `include` block now supports `with context` and `without context`
modifiers but they are ignored. This is mostly helpful to render some
Jinja2 templates that depend on this functionality. (288)

- Added tests `true`, `false`, `filter`, `test` and filters
`pprint` and `unique`. (287)

- Added support for indexing into strings. (149)

- Added `Error::detail` which returns the detail help string. (289)

- Added `Error::template_source` and `Error::range` to better support
rendering of errors outside of the built-in debug printing. (286)

1.0.0alpha.1

- Removed `testutils` feature. New replacement APIs are directly available
on the `State`.

- Added `Template::render_and_return_state` to render a template and return the
resulting `State` to permit introspection. `Template::render_to_write` now
also returns the `State`.

- Added `State::fuel_levels` to introspect fuel consumption when the fuel feature
is in use.

- Removed `Source` and the `source` feature. The replacement is the new `loader`
feature and the functionality of the source is moved directly into the
`Environment`. This also adds `Environment::clear_templates` to unload
all already loaded templates. (275)

- Added `Environment::template_from_str` and `Environment::template_from_named_str`
to compile templates for temporary use. (274)

- Removed `Kwargs::from_args` as this can now be expressed with just
`from_args`. (273)

- `Output` no longer reveals if it's discarding in the public API.

- Added `Value::call`, `Value::call_method` and `Template::new_state`. The
combination of these APIs makes it possible to call values which was
previously not possible. (272)

- Added `Template::eval_to_state`. This replaces the functionality of the
previous `Template::render_block` which is now available via `State`.
It also adds support for accessing globals and macros from a template
via the `State`. (271)

- Removed support for `State::current_call`. This property wasn't too useful
and unreliable. Supporting it properly for nested invocations would require
calls to take a mutable state or use interior mutability which did not seem
reasonable for this. (269)

0.34.0

- Updated `self_cell` and `percent-encoding` dependencies. (264)

- Added `Template::render_block` and `Template::render_block_to_write` which
allows rendering a single block in isolation. (262)

Page 7 of 15

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.