Releases: HubSpot/jinjava
Releases · HubSpot/jinjava
jinjava-2.7.5
2025-09-30 Version 2.7.5 (Maven Central)
- Disallow accessing properties on restricted classes while rendering
jinjava-2.8.1
2025-09-16 Version 2.8.1 (Maven Central)
- Disallow accessing properties on restricted classes while rendering
- Make stack operations use AutoCloseable for safer usage with try-with-resources
jinjava-2.8.0
jinjava-2.7.4
jinjava-2.7.3
2024-09-12 Version 2.7.3 (Maven Central)
- Add support for numeric keys in map literal
- Add feature to consider undefined variable a TemplateError
- Improve Optional value serialization
- Fix bug where extends roots were processed inside of the RenderFilter
- Don't allow illegal characters in XmlAttrFilter
- Limit string length in
+
and~
operators - Fix various RuntimeExceptions in filters and functions
- Updates dependency versions
jinjava-2.7.2
2024-02-12 Version 2.7.2 (Maven Central)
- Use interpreter's locale for strftime functions
- Prevent infinite hashCode recursion in PyList or PyMap
- Support aliasing macro function names in {% from %} tag
- Add whitespace trimming functionality for notes and expressions
- Add feature to prevent accidental expressions from being output
- Add length-limiting to |render filter and add |closehtml filter
- Add length-limiting to |tojson filter
- Make |pprint filter output in JSON format
- Allow for loop with
null
values - Add length-limiting when coercing strings
- Add
ECHO_UNDEFINED
feature - Various PRs for eager execution to support two-phase rendering.
jinjava-2.7.1
2023-08-11 Version 2.7.1 (Maven Central)
- Introduce
{% do %}
blocks - Add warnings for unclosed tokens
- Fix
|default(null)
behavior - Improve EscapeJinjavaFilter
- Improve BeanELResolver Extensibility
- Add snake_case serialization config option
- Add generic node pre/post processors
- Upgrade jackson to 2.14.0
- Upgrade jsoup to 1.15.3
- Upgrade guava to 31.1
- Add feature flags to JinjavaConfig
- Make restricted methods and properties configurable
- Gracefully handle invalid escaped quotes
- Warn when datetime filters use null arguments
- Fix interpreter scope inside striptags filter
- Fix various RuntimeExceptions in filters and functions
- Various PRs for eager execution to support two-phase rendering.
jinjava-2.7.0
2023-03-03 Version 2.7.0 (Maven Central)
- Use number operations for multiply and divide filters
- Add config to require whitespace in tokens
- Make reject filter the inverse of select filter
- Make ObjectMapper configurable via JinjavaConfig
- Limit rendering cycle detection to expression nodes
- Add URL decode filter
- Fix truthiness of numbers between 0 and 1
- Fix macro function scoping inside of another macro function
- Handle thread interrupts by throwing an InterpretException
- Fix right-side inline whitespace trimming
- Fix Jinjava functionality for duplicate macro functions and call tags
- Fix custom operator precedence
- Parse leading negatives in expression nodes
- add keys function to dictionary
- Update title filter to ignore special characters
- add unescape_html filter
- Move object unwrap behavior to config object
- Get best invoke method based on parameters
- Create format_number filter
- Get current date and time from a provider
- Create context method for checking if in for loop
- Filter duplicate template errors
- Fix various NullPointerExceptions in filters and functions
- Various changes to reduce non-deterministic behavior
- Various changes to improve datetime formatting and exception handling
- Various PRs for eager execution to support two-phase rendering.
jinjava-2.6.0
2021-10-29 Version 2.6.0 (Maven Central)
- Create interface for object truth values
- Catch concurrent modification in for loop
- Add Originating Exception Message For A TemplateSyntaxException
- Throw a template error when attempting to divide by zero
- Make unixtimestamp behave the same as System.currentTimeMillis()
- handle null argument in range function
- Track Current Processed Node In The Context
- Add Base 64 encode and decode filters
jinjava-2.5.10
2021-09-03 Version 2.5.10 (Maven Central)
- Make LazyExpression memoization disable-able
- Add new MapELResolver with type coercion to support accessing enum keys
- Add methods to remove error from interpreter,
get the last error,
and remove the last error - Pass value of throwInterpreterErrors to child contexts
- Support Assignment Blocks with Set tags
- Handle spaces better in for loop expressions
- Support "not in"
- Set propertyResolved after evaluating the AbstractCallableMethod
- Limit infinite evaluation from recursive extends tags
- Fix striptags to clean HTML instead of parsing
- Various PRs for eager execution to support two-phase rendering.