Bump jinja2 from 2.11.2 to 3.0.1
Bumps jinja2 from 2.11.2 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!
🎉
- 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
Markup
subclass, #1401.3.0.0rc1
2.11.3
This contains a fix for a speed issue with the
urlize
filter.urlize
is likely to be called on untrusted user input. For certain inputs some of the regular expressions used to parse the text could take a very long time due to backtracking. As part of the fix, the email matching became slightly stricter. The various speedups apply tourlize
in general, not just the specific input cases.
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. :issue:
1426
- Fix some types that weren't available in Python 3.6.0. :issue:
1433
- The deprecation warning for unneeded
autoescape
andwith_
extensions shows more relevant context. :issue:1429
- Fixed calling deprecated
jinja2.Markup
without an argument. Usemarkupsafe.Markup
instead. :issue:1438
- Calling sync
render
for an async template usesasyncio.run
on Python >= 3.7. This fixes a deprecation that Python 3.10 introduces. :issue:1443
Version 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 :pep:
451
API to load templates with :class:~loaders.PackageLoader
. :issue:1168
- Fix a bug that caused imported macros to not have access to the current template's globals. :issue:
688
- Add ability to ignore
trim_blocks
using+%}
. :issue:1036
- Fix a bug that caused custom async-only filters to fail with constant input. :issue:
1279
- Fix UndefinedError incorrectly being thrown on an undefined variable instead of
Undefined
being returned onNativeEnvironment
on Python 3.10. :issue:1335
- Blocks can be marked as
required
. They must be overridden at some point, but not necessarily by the direct child. :issue:1147
- Deprecate the
autoescape
andwith
extensions, they are built-in to the compiler. :issue:1203
- The
urlize
filter 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://
. :issue:522, 827, 1172
,🇵🇷 1195
- Filters that get attributes, such as
map
andgroupby
, can
... (truncated)
Commits
-
3b3e16f
Merge pull request #1445 from pallets/release-3.0.1 -
4d23bfb
release version 3.0.1 -
77674b9
Merge pull request #1444 from pallets/event-loop -
7d0b7ac
use asyncio.run -
94a6423
Merge pull request #1442 from dannysepler/use-pathlib-in-places -
06c646d
Use pathlib in some test places -
9f5db9a
Merge pull request #1440 from pallets/deprecated-markup -
f562a4f
fix deprecatedMarkup
subclass -
fb564a8
Merge pull request #1436 from pallets/deprecated-extensions -
b4d31e7
show context for deprecated extensions - Additional commits viewable in compare view