Conversation
Contributor
Author
⚠ Artifact update problemRenovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below: File name: Cargo.lock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.33->1.0Release Notes
mitsuhiko/minijinja (minijinja)
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
TryFromandArgTypeforArc<str>.datetimeformat,dateformat,timeformatandnow()to thecontrib crate. (#309)
v1.0.1Compare Source
Environment::compile_expression_ownedto allow compiled expressionsto be held without requiring a reference. #383
v1.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 clearning 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)
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 becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.