Minijinja

Latest version: v2.7.0

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

Scan your dependencies

Page 10 of 15

0.30.0

- Expose `debug` flag from environment.
- Added experimental Python bindings.

0.29.0

- Resolve a runtime panic if `{% extends %}` appears in the template
but never is executed.
- Fixed recursion detection for macros.
- Enforce a maximum size of 10000 items on the range output.
- Added fuel tracking support.
- Added `none` test. (185)
- Improved various issues with whitespace trimming. (187)
- `Value::default` now returns `Undefined` rather than `None`.
- Added support for `loop.previtem` and `loop.nextitem`. (188)

0.28.0

- Added `capitalize` filter. (163)
- Added support for `{% call %}`. (164)
- Added support for `{% do %}`. (167)
- Improved testsuite to execute on wasm32-wasi.

0.27.0

- Filters, tests and other functions can now be registered with a dynamically
allocated name. (146)
- Added `State::current_call` which exposes the name of the currently called
item. (150)
- Introduced revamped object model with `SeqObject` and `StructObject`. (148)
- `Object` now directly exposes `downcast_ref` and `is`.
- Removed `Value::as_slice`
- Introduced `Value::as_seq` and `Value::as_struct`.
- Introduced `Value::from_seq_object` and `Value::from_struct_object`.
- Added the ability for function arguments to be of type `&dyn SeqObject`.
- Renamed `Iter` to `ValueIter`.
- Added `Environment::render_named_str`. (149)
- Exposed string interning via the `intern` function.
- Improved support for structs in built-in filters.
- Added `indent` filter. (151)
- Added the `map`, `select` / `selectattr` and `reject` / `rejectattr` filters.
- Added `safe` / `escaped` test.
- Strings now have the same iteration behavior as in Jinja2. (152)

Breaking Changes

- The `Object` model changed significantly in this release. It's now possible
for objects to have different shapes (structs or sequences today). As a result
`SeqObject` and `StructObject` were added to the API. For changing your objects
over have a look at the new documentation for `Object`.
- The `Iter` type is now called `ValueIter`.

0.26.0

- Changed `Object::attributes` to being an iterator. (138)
- `Arc<T: Object>` now implements `Object`. (139)
- Aligned semantics of top-level template code after `extends` with Jinja2. (140)
- Exposed value creation from Arcs. (141)
- Performance improvements for value conversions and object creation. (142)
- Align iteration behavior of dynamic objects with maps.

Breaking Changes

- The `attributes` method on objects now returns iterators. To make the
transition easy change `[..]` to `Box::new([..].into_iter())`.

0.25.0

- Added support for recursive macro invocations. (133)
- Added optional unicode identifier support. (134)

Page 10 of 15

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.