Releases: pallets/markupsafe
3.0.2
This is the MarkupSafe 3.0.2 fix release, which fixes bugs but does not otherwise change behavior and should not result in breaking changes.
PyPI: https://pypi.org/project/MarkupSafe/3.0.2/
Changes: https://markupsafe.palletsprojects.com/en/stable/changes/#version-3-0-2
Milestone: https://github.com/pallets/markupsafe/milestone/14?closed=1
3.0.1
This is the MarkupSafe 3.0.1 fix release, which fixes bugs but does not otherwise change behavior and should not result in breaking changes.
PyPI: https://pypi.org/project/MarkupSafe/3.0.1/
Changes: https://markupsafe.palletsprojects.com/en/stable/changes/#version-3-0-1
Milestone: https://github.com/pallets/markupsafe/milestone/13?closed=1
3.0.0
This is the MarkupSafe 3.0.0 feature release. A feature release may include new features, remove previously deprecated code, add new deprecations, or introduce potentially breaking changes. The 3.0.x branch is now the supported fix branch, the 2.1.x branch will become a tag marking the end of support for that branch. We encourage everyone to upgrade, and to use a tool such as pip-tools to pin all dependencies and control upgrades. Test with warnings treated as errors to be able to adapt to deprecation warnings early.
PyPI: https://pypi.org/project/MarkupSafe/3.0.0/
Changes: https://markupsafe.palletsprojects.com/en/stable/changes/#version-3-0-0
Milestone: https://github.com/pallets/markupsafe/milestone/10?closed=1
- Support Python 3.13 and its experimental free-threaded build. #461
- Drop support for Python 3.7 and 3.8.
- Use modern packaging metadata with
pyproject.toml
instead ofsetup.cfg
. #348 - Change
distutils
imports tosetuptools
. #399 - Use deferred evaluation of annotations. #400
- Update signatures for
Markup
methods to matchstr
signatures. Use positional-only arguments. #400 - Some
str
methods onMarkup
no longer escape their argument:strip
,lstrip
,rstrip
,removeprefix
,removesuffix
,partition
, andrpartition
;replace
only escapes itsnew
argument. These methods are conceptually linked to search methods such asin
,find
, andindex
, which already do not escape their argument. #401 - The
__version__
attribute is deprecated. Use feature detection, orimportlib.metadata.version("markupsafe")
, instead. #402 - Speed up escaping plain strings by 40%. #434
- Simplify speedups implementation. #437
2.1.5
This is a fix release for the 2.1.x feature release branch. It fixes bugs but does not otherwise change behavior and should not result in breaking changes.
Fixes a regression in striptags
behavior from 2.14. Spaces are now collapsed correctly.
2.1.4
This is a fix release for the 2.1.x feature release branch. It fixes bugs but does not otherwise change behavior and should not result in breaking changes.
-
Improves performance of the
Markup.striptags
method for large input. -
Changes: https://markupsafe.palletsprojects.com/en/stable/changes/#version-2-1-4
-
Milestone: https://github.com/pallets/markupsafe/milestone/11?closed=1
2.1.3
This is a fix release for the 2.1.x feature branch.
2.1.2
This is the first release to provide wheels for Python 3.11. An SLSA provenance file is also generated, and is available to download from the GitHub release page.