Changelog
### 3.0.0
```
-------------
Unreleased
- Drop support for Python 3.7 and 3.8.
- Use modern packaging metadata with ``pyproject.toml`` instead of ``setup.cfg``.
:pr:`348`
- Change ``distutils`` imports to ``setuptools``. :pr:`399`
- Use deferred evaluation of annotations. :pr:`400`
- Update signatures for ``Markup`` methods to match ``str`` signatures. Use
positional-only arguments. :pr:`400`
- Some ``str`` methods on ``Markup`` no longer escape their argument:
``strip``, ``lstrip``, ``rstrip``, ``removeprefix``, ``removesuffix``,
``partition``, and ``rpartition``; ``replace`` only escapes its ``new``
argument. These methods are conceptually linked to search methods such as
``in``, ``find``, and ``index``, which already do not escape their argument.
:issue:`401`
- The ``__version__`` attribute is deprecated. Use feature detection, or
``importlib.metadata.version("markupsafe")``, instead. :pr:`402`
- Speed up escaping plain strings by 40%. :pr:`434`
- Simplify speedups implementation. :pr:`437`
```
### 2.1.5
```
-------------
Released 2024-02-02
- Fix ``striptags`` not collapsing spaces. :issue:`417`
```
### 2.1.4
```
-------------
Released 2024-01-19
- Don't use regular expressions for ``striptags``, avoiding a performance
issue. :pr:`413`
```
### 2.1.3
```
-------------
Released 2023-06-02
- Implement ``format_map``, ``casefold``, ``removeprefix``, and ``removesuffix``
methods. :issue:`370`
- Fix static typing for basic ``str`` methods on ``Markup``. :issue:`358`
- Use ``Self`` for annotating return types. :pr:`379`
```
### 2.1.2
```
-------------
Released 2023-01-17
- Fix ``striptags`` not stripping tags containing newlines.
:issue:`310`
```
### 2.1.1
```
-------------
Released 2022-03-14
- Avoid ambiguous regex matches in ``striptags``. :pr:`293`
```
### 2.1.0
```
-------------
Released 2022-02-17
- Drop support for Python 3.6. :pr:`262`
- Remove ``soft_unicode``, which was previously deprecated. Use
``soft_str`` instead. :pr:`261`
- Raise error on missing single placeholder during string
interpolation. :issue:`225`
- Disable speedups module for GraalPython. :issue:`277`
```
Links
- PyPI: https://pypi.org/project/markupsafe
- Changelog: https://data.safetycli.com/changelogs/markupsafe/
This PR updates markupsafe from 2.0.1 to 3.0.0.
Changelog
### 3.0.0 ``` ------------- Unreleased - Drop support for Python 3.7 and 3.8. - Use modern packaging metadata with ``pyproject.toml`` instead of ``setup.cfg``. :pr:`348` - Change ``distutils`` imports to ``setuptools``. :pr:`399` - Use deferred evaluation of annotations. :pr:`400` - Update signatures for ``Markup`` methods to match ``str`` signatures. Use positional-only arguments. :pr:`400` - Some ``str`` methods on ``Markup`` no longer escape their argument: ``strip``, ``lstrip``, ``rstrip``, ``removeprefix``, ``removesuffix``, ``partition``, and ``rpartition``; ``replace`` only escapes its ``new`` argument. These methods are conceptually linked to search methods such as ``in``, ``find``, and ``index``, which already do not escape their argument. :issue:`401` - The ``__version__`` attribute is deprecated. Use feature detection, or ``importlib.metadata.version("markupsafe")``, instead. :pr:`402` - Speed up escaping plain strings by 40%. :pr:`434` - Simplify speedups implementation. :pr:`437` ``` ### 2.1.5 ``` ------------- Released 2024-02-02 - Fix ``striptags`` not collapsing spaces. :issue:`417` ``` ### 2.1.4 ``` ------------- Released 2024-01-19 - Don't use regular expressions for ``striptags``, avoiding a performance issue. :pr:`413` ``` ### 2.1.3 ``` ------------- Released 2023-06-02 - Implement ``format_map``, ``casefold``, ``removeprefix``, and ``removesuffix`` methods. :issue:`370` - Fix static typing for basic ``str`` methods on ``Markup``. :issue:`358` - Use ``Self`` for annotating return types. :pr:`379` ``` ### 2.1.2 ``` ------------- Released 2023-01-17 - Fix ``striptags`` not stripping tags containing newlines. :issue:`310` ``` ### 2.1.1 ``` ------------- Released 2022-03-14 - Avoid ambiguous regex matches in ``striptags``. :pr:`293` ``` ### 2.1.0 ``` ------------- Released 2022-02-17 - Drop support for Python 3.6. :pr:`262` - Remove ``soft_unicode``, which was previously deprecated. Use ``soft_str`` instead. :pr:`261` - Raise error on missing single placeholder during string interpolation. :issue:`225` - Disable speedups module for GraalPython. :issue:`277` ```Links
- PyPI: https://pypi.org/project/markupsafe - Changelog: https://data.safetycli.com/changelogs/markupsafe/