fix(deps): update rust crate minijinja-stack-ref to v1 #132
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.32->1.0Release Notes
mitsuhiko/minijinja (minijinja-stack-ref)
v1.0.22Compare Source
next-generation trait resolver to fail. #790
v1.0.21Compare Source
lstrip_blocksunintentionally also applied tovariable expression blocks. #502
v1.0.20Compare Source
v1.0.18Compare Source
undeclared_variables. #486v1.0.17Compare Source
Option<Into<Value>>as return value fromfunctions. #452
Value::from_serializablefor the improved replacementmethod
Value::from_serialize. #482v1.0.16Compare Source
trim_blocksandlstrip_blocksfor Jinja2compatibility. #447
unstable_machinery. Thetokenizefunction got anextra argument for the
WhitespaceConfig. It's however recommendedto use the new
Tokenizerstruct instead.parse_exprwas added,the
parsefunction now takes aSyntaxConfigandWhitespaceConfig. #447v1.0.15Compare Source
call_method. NowUnknownMethodis returned instead of
InvalidOperationcorrectly. #439Environment::set_unknown_method_callbackwhich allows a userto 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
v1.0.14Compare Source
{% macro %}or{% call %}blocks. #435v1.0.13Compare Source
minijinja-clinow supports an-oor--outputparameter to writeinto a target file. #405
minijinja-clinow accepts the--safe-pathparameter to disallowincludes or extends from paths not explicitly allowlisted. #432
Error::display_debug_infowhich displays just thedebug info, same way as alternative display on the error does. #420
namespace()function from Jinja2 and the ability to assignto it via
{% set %}. #422minijinja-autoreloadnow supportson_should_reload_callbackwhichlets one register a callback to be called just before an auto reload
should be performed. #424
Value::from_iterator,IteratorObjectandObjectKind::Iterator. #4260b/0o/0xprefixed integer literals forbinary, octal and hexadecimal notation. #433
v1.0.12Compare Source
urlencodefilter now correctly skips over none and undefined. #394dictfunction now supports merging in of extra arguments. #395v1.0.11Compare Source
Environment::compile_expression_ownedto allow compiled expressionsto be held without requiring a reference. #383
minijinja-embedcrate which provides a simple way to embed templatesdirectly in the binary. #392
v1.0.10Compare Source
intandfloatfilters. #372integerandfloattests. #373replfeaturewas disabled. #374
-n/--no-newlineoption to CLI. #375v1.0.9Compare Source
leaking memory due to an undetected cycle. #359
debugfunction in templates can now also be used to print outthe debug output of a variable. #356
stackerfeature which allows raising of the recursionlimits. It enables monitoring of the call stack via stacker
and automatically acquires additional memory when the call stack
runs out of space. #354
v1.0.8Compare Source
Value::downcast_object_ref/Object::downcast_ref/Object::isand added support for downcastingof types that were directly created with
Value::from_seq_objectand
Value::from_struct_object. #349silently wrapping around. #350
v1.0.7Compare Source
keep_trailing_newlineswhich allows you to disablethe automatic trimming of trailing newlines. #334
minijinja-cliwhich lets you render and debug templates fromthe command line. #331
Value::UNDEFINEDandValue::from(())is nowundefinedandnonerather thanUndefinedandNone. This wasan accidental inconsistency.
Environment::set_path_join_callbackandState::get_templateto 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
includeorextendscan be relative tothe current template. #328
.html.j2as alias for.htmlas well as for all other choices. In general.j2as an extensionis now generally supported.
v1.0.6Compare Source
Valuedirectly from the crate root for convenience.deserializefrom aValue. Additionally theViaDeserialize<T>argument type was added to support value conversionsvia serde as argument type. #325
v1.0.5context!macro. (#317)
Option<T>now acceptsnonein filters. Previously onlyundefined values were accepted. This bugfix might have a minor impact
on code that relied in this behavior. (#320)
minijinja-contribif thetimezonefeature is not enabled.
v1.0.4args!macro which can be used to create an argumentslice on the stack. (#311)
chronosupport to the time filters in theminijinja-contribcrate.v1.0.3Compare Source
1.0.2with fixed docs.v1.0.2Compare Source
next-generation trait resolver to fail. #790
v1.0.1Compare Source
Value::from_iteratorand introduced replacementValue::make_one_shot_iteratorAPI which also exists in 2.x. #487v1.0.0Compare Source
Support unicode sorting for filters when the
unicodefeature is enabled.This also fixes confusing behavior when mixed types were sorted. (#299)
Added
json5as file extension for JSON formatter.The autoreload crate now supports fast reloading by just clearing the
already templates. This is enabled via
set_fast_reloadon theNotifier.Note: This also includes all the changes in the different 1.0.0 alphas.
Breaking Changes
1.0 includes a lot of changes that are breaking. However they should with
some minor exceptions be rather trivial changes.
Environment::source,Environment::set_sourceand theSourcetypetogether with the
sourcefeature were removed. The replacement is thenew
loaderfeature which adds theadd_template_ownedandset_loaderAPIs. The functionality previously provided by
Source::from_pathisnow available via
path_loader.Old:
New:
Old:
New:
Template::render_blockandTemplate::render_block_to_writewerereplaced with APIs of the same name on the
Statereturned byTemplate::eval_to_stateorTemplate::render_and_return_state:Old:
New:
Kwargs::from_argswas removed as API as it's no longer necessary sincethe
from_argsfunction now provides the same functionality:Before:
After:
The
testutilsfeature andtestutilsmodule were removed. Instead youcan now directly create an empty
Stateand use the methods providedto invoke filters.
Before:
After:
Before:
After:
Before:
After:
internand some APIs that useArc<String>now useArc<str>. Thismeans that for instance
StructObject::fieldsreturnsArc<str>insteadof
Arc<String>. All the type conversions that previously acceptedArc<String>now only supportArc<str>.State::current_callwas removed without replacement. This informationwas unreliably maintained in the engine and caused issues with recursive
calls. If you have a need for this API please reach out on the issue
tracker.
Output::is_discardingwas removed without replacement. This isan implementation detail and was unintentionally exposed. You should not
write code that depends on the internal state of the
Output.v0.34.0Compare Source
Updated
self_cellandpercent-encodingdependencies. (#264)Added
Template::render_blockandTemplate::render_block_to_writewhichallows rendering a single block in isolation. (#262)
v0.33.0Compare Source
Syntax::compilemethod.undeclared_variablesmethods toTemplateandExpression. (#250)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.