Debian Codegraph @

CHANGES.rst

raw
1 Version 3.0.3
2 -------------
3
4 Released 2025-09-27
5
6 - ``__version__`` raises ``DeprecationWarning`` instead of ``UserWarning``.
7 :issue:`487`
8 - Adopt multi-phase initialisation (:pep:`489`) for the C extension.
9 :issue:`494`
10 - Build Windows ARM64 wheels. :issue:`485`
11 - Build Python 3.14 wheels. :issue:`503`
12 - Build riscv64 wheels. :issue:`505`
13
14
15 Version 3.0.2
16 -------------
17
18 Released 2024-10-18
19
20 - Fix compatibility when ``__str__`` returns a ``str`` subclass. :issue:`472`
21 - Build requires setuptools >= 70.1. :issue:`475`
22
23
24 Version 3.0.1
25 -------------
26
27 Released 2024-10-08
28
29 - Address compiler warnings that became errors in GCC 14. :issue:`466`
30 - Fix compatibility with proxy objects. :issue:`467`
31
32
33 Version 3.0.0
34 -------------
35
36 Released 2024-10-07
37
38 - Support Python 3.13 and its experimental free-threaded build. :pr:`461`
39 - Drop support for Python 3.7 and 3.8.
40 - Use modern packaging metadata with ``pyproject.toml`` instead of ``setup.cfg``.
41 :pr:`348`
42 - Change ``distutils`` imports to ``setuptools``. :pr:`399`
43 - Use deferred evaluation of annotations. :pr:`400`
44 - Update signatures for ``Markup`` methods to match ``str`` signatures. Use
45 positional-only arguments. :pr:`400`
46 - Some ``str`` methods on ``Markup`` no longer escape their argument:
47 ``strip``, ``lstrip``, ``rstrip``, ``removeprefix``, ``removesuffix``,
48 ``partition``, and ``rpartition``; ``replace`` only escapes its ``new``
49 argument. These methods are conceptually linked to search methods such as
50 ``in``, ``find``, and ``index``, which already do not escape their argument.
51 :issue:`401`
52 - The ``__version__`` attribute is deprecated. Use feature detection, or
53 ``importlib.metadata.version("markupsafe")``, instead. :pr:`402`
54 - Speed up escaping plain strings by 40%. :pr:`434`
55 - Simplify speedups implementation. :pr:`437`
56
57
58 Version 2.1.5
59 -------------
60
61 Released 2024-02-02
62
63 - Fix ``striptags`` not collapsing spaces. :issue:`417`
64
65
66 Version 2.1.4
67 -------------
68
69 Released 2024-01-19
70
71 - Don't use regular expressions for ``striptags``, avoiding a performance
72 issue. :pr:`413`
73
74
75 Version 2.1.3
76 -------------
77
78 Released 2023-06-02
79
80 - Implement ``format_map``, ``casefold``, ``removeprefix``, and ``removesuffix``
81 methods. :issue:`370`
82 - Fix static typing for basic ``str`` methods on ``Markup``. :issue:`358`
83 - Use ``Self`` for annotating return types. :pr:`379`
84
85
86 Version 2.1.2
87 -------------
88
89 Released 2023-01-17
90
91 - Fix ``striptags`` not stripping tags containing newlines.
92 :issue:`310`
93
94
95 Version 2.1.1
96 -------------
97
98 Released 2022-03-14
99
100 - Avoid ambiguous regex matches in ``striptags``. :pr:`293`
101
102
103 Version 2.1.0
104 -------------
105
106 Released 2022-02-17
107
108 - Drop support for Python 3.6. :pr:`262`
109 - Remove ``soft_unicode``, which was previously deprecated. Use
110 ``soft_str`` instead. :pr:`261`
111 - Raise error on missing single placeholder during string
112 interpolation. :issue:`225`
113 - Disable speedups module for GraalPython. :issue:`277`
114
115
116 Version 2.0.1
117 -------------
118
119 Released 2021-05-18
120
121 - Mark top-level names as exported so type checking understands
122 imports in user projects. :pr:`215`
123 - Fix some types that weren't available in Python 3.6.0. :pr:`215`
124
125
126 Version 2.0.0
127 -------------
128
129 Released 2021-05-11
130
131 - Drop Python 2.7, 3.4, and 3.5 support.
132 - ``Markup.unescape`` uses :func:`html.unescape` to support HTML5
133 character references. :pr:`117`
134 - Add type annotations for static typing tools. :pr:`149`
135
136
137 Version 1.1.1
138 -------------
139
140 Released 2019-02-23
141
142 - Fix segfault when ``__html__`` method raises an exception when using
143 the C speedups. The exception is now propagated correctly. :pr:`109`
144
145
146 Version 1.1.0
147 -------------
148
149 Released 2018-11-05
150
151 - Drop support for Python 2.6 and 3.3.
152 - Build wheels for Linux, Mac, and Windows, allowing systems without
153 a compiler to take advantage of the C extension speedups. :pr:`104`
154 - Use newer CPython API on Python 3, resulting in a 1.5x speedup.
155 :pr:`64`
156 - ``escape`` wraps ``__html__`` result in ``Markup``, consistent with
157 documented behavior. :pr:`69`
158
159
160 Version 1.0
161 -----------
162
163 Released 2017-03-07
164
165 - Fixed custom types not invoking ``__unicode__`` when used with
166 ``format()``.
167 - Added ``__version__`` module attribute.
168 - Improve unescape code to leave lone ampersands alone.
169
170
171 Version 0.18
172 ------------
173
174 Released 2013-05-22
175
176 - Fixed ``__mul__`` and string splitting on Python 3.
177
178
179 Version 0.17
180 ------------
181
182 Released 2013-05-21
183
184 - Fixed a bug with broken interpolation on tuples.
185
186
187 Version 0.16
188 ------------
189
190 Released 2013-05-20
191
192 - Improved Python 3 Support and removed 2to3.
193 - Removed support for Python 3.2 and 2.5.
194
195
196 Version 0.15
197 ------------
198
199 Released 2011-07-20
200
201 - Fixed a typo that caused the library to fail to install on pypy and
202 jython.
203
204
205 Version 0.14
206 ------------
207
208 Released 2011-07-20
209
210 - Release fix for 0.13.
211
212
213 Version 0.13
214 ------------
215
216 Released 2011-07-20
217
218 - Do not attempt to compile extension for PyPy or Jython.
219 - Work around some 64bit Windows issues.
220
221
222 Version 0.12
223 ------------
224
225 Released 2011-02-17
226
227 - Improved PyPy compatibility.