chore(deps): Bump jinja2 from 2.11.3 to 3.0.1
Bumps jinja2 from 2.11.3 to 3.0.1.
Release notes
Sourced from jinja2's releases.
3.0.1
3.0.0
New major versions of all the core Pallets libraries, including Jinja 3.0, have been released! :tada:
- Read the announcement on our blog: https://palletsprojects.com/blog/flask-2-0-released/
- Read the full list of changes: https://jinja.palletsprojects.com/changes/#version-3-0-0
- Retweet the announcement on Twitter: https://twitter.com/PalletsTeam/status/1392266507296514048
- Follow our blog, Twitter, or GitHub to see future announcements.
This represents a significant amount of work, and there are quite a few changes. Be sure to carefully read the changelog, and use tools such as pip-compile and Dependabot to pin your dependencies and control your updates.
3.0.0rc2
Fixes an issue with the deprecated
Markupsubclass, #1401.3.0.0rc1
Changelog
Sourced from jinja2's changelog.
Version 3.0.1
Released 2021-05-18
- Update MarkupSafe dependency to >= 2.0. 1418
- Mark top-level names as exported so type checking understands imports in user projects. 1426
- Fix some types that weren't available in Python 3.6.0. 1433
- The deprecation warning for unneeded
autoescapeandwith_extensions shows more relevant context. 1429- Fixed calling deprecated
jinja2.Markupwithout an argument. Usemarkupsafe.Markupinstead. 1438- Calling sync
renderfor an async template usesasyncio.runon Python >= 3.7. This fixes a deprecation that Python 3.10 introduces. 1443Version 3.0.0
Released 2021-05-11
- Drop support for Python 2.7 and 3.5.
- Bump MarkupSafe dependency to >=1.1.
- Bump Babel optional dependency to >=2.1.
- Remove code that was marked deprecated.
- Add type hinting. 1412
- Use 451 API to load templates with ~loaders.PackageLoader. 1168
- Fix a bug that caused imported macros to not have access to the current template's globals. 688
- Add ability to ignore
trim_blocksusing+%}. 1036- Fix a bug that caused custom async-only filters to fail with constant input. 1279
- Fix UndefinedError incorrectly being thrown on an undefined variable instead of
Undefinedbeing returned onNativeEnvironmenton Python 3.10. 1335- Blocks can be marked as
required. They must be overridden at some point, but not necessarily by the direct child. 1147- Deprecate the
autoescapeandwithextensions, they are built-in to the compiler. 1203- The
urlizefilter recognizesmailto:links and takesextra_schemes(orenv.policies["urlize.extra_schemes"]) to recognize other schemes. It tries to balance parentheses within a URL instead of ignoring trailing characters. The parsing in general has been updated to be more efficient and match more cases. URLs without a scheme are linked ashttps://instead ofhttp://. 522, 827, 1172, 1195- Filters that get attributes, such as
mapandgroupby, can use a false or empty value as a default. 1331- Fix a bug that prevented variables set in blocks or loops from being accessed in custom context functions. 768
- Fix a bug that caused scoped blocks from accessing special loop variables. 1088
- Update the template globals when calling
Environment.get_template(globals=...)even if the template was already loaded. 295- Do not raise an error for undefined filters in unexecuted if-statements and conditional expressions. 842
- Add
is filterandis testtests to test if a name is a registered filter or test. This allows checking if a filter is available in a template before using it. Test functions can be decorated with@pass_environment,@pass_eval_context, or@pass_context. 842, 1248- Support
pgettextandnpgettext(message contexts) in i18n extension. 441- The
|indentfilter'swidthargument can be a string to indent by. 1167- The parser understands hex, octal, and binary integer literals. 1170
Undefined.__contains__(in) raises anUndefinedErrorinstead of aTypeError. 1198Undefinedis iterable in an async environment. 1294NativeEnvironmentsupports async mode. 1362- Template rendering only treats
\n,\r\nand\ras line breaks. Other characters are left unchanged. 769, 952, 1313|groupbyfilter takes an optionaldefaultargument. 1359- The function and filter decorators have been renamed and unified. The old names are deprecated. 1381
pass_contextreplacescontextfunctionandcontextfilter.pass_eval_contextreplacesevalcontextfunctionandevalcontextfilterpass_environmentreplacesenvironmentfunctionandenvironmentfilter.- Async support no longer requires Jinja to patch itself. It must still be enabled with
Environment(enable_async=True). 1390- Overriding
Context.resolveis deprecated, overrideresolve_or_missinginstead. 1380
Commits
3b3e16fMerge pull request #1445 from pallets/release-3.0.14d23bfbrelease version 3.0.177674b9Merge pull request #1444 from pallets/event-loop7d0b7acuse asyncio.run94a6423Merge pull request #1442 from dannysepler/use-pathlib-in-places06c646dUse pathlib in some test places9f5db9aMerge pull request #1440 from pallets/deprecated-markupf562a4ffix deprecatedMarkupsubclassfb564a8Merge pull request #1436 from pallets/deprecated-extensionsb4d31e7show context for deprecated extensions- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) -
@dependabot use these labelswill set the current labels as the default for future PRs for this repo and language -
@dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language -
@dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language -
@dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language -
@dependabot badge mewill comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot dashboard:
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)