Debian Codegraph @

HISTORY.md

raw
1 # History
2
3 ## 3.19 (2026-08-XX)
4
5 - Restore the `std3_rules` option, which had no effect since changes
6 to UTS #46 processing in Unicode 16. Note that `uts46_remap()`
7 defaults to enabling STD3 rules, so direct callers will see input
8 containing non-LDH ASCII characters rejected again.
9 - Performance improvements to UTS #46 mapping, particularly for
10 ASCII-only domains.
11 - Test on free-threaded CPython with the GIL disabled and document
12 thread safety.
13 - Expose the Unicode version of the generated tables as
14 `idna.unicode_version`, and show it in `idna --version`.
15 - Add `code`, `text`, `codepoint` and `position` attributes to
16 `IDNAError` so that the failed rule and the offending character can
17 be identified without parsing the exception message.
18 - The deprecated `transitional` argument to `encode()` and
19 `uts46_remap()` is now completely ignored, and gives a deprecation warning
20 for the latter.
21 - Reject A-labels that are not the canonical Punycode encoding of
22 their U-label.
23 - Fix CONTEXTJ violations raising `IDNAError` instead of
24 `InvalidCodepointContext`.
25 - Consistently raise `IDNAError` for empty labels and non-ASCII bytes
26 passed to label helper functions and the incremental codec.
27 - Add property-based tests, extended fuzzing targets, coverage
28 measurement, and CI checks that the data tables match the generator
29 output.
30 - Various code quality and tooling improvements.
31
32 Thanks to stefan6419846, LouieLuNZ, and Salvatore Corvaglia for
33 contributions to this release.
34
35 ## 3.18 (2026-06-02)
36
37 - When decoding a domain, add a `display` argument that will pass
38 through invalid labels rather than raising an exception.
39
40 ## 3.17 (2026-05-28)
41
42 - Substantial 75% reduction in memory usage through new data
43 structures and some optimization in processing speed.
44 - Added a general 1024-character input length cap to the public
45 validation, conversion, and codec entry points. This is well above
46 any legitimate domain or label and guards against pathological
47 inputs.
48
49 ## 3.16 (2026-05-22)
50
51 - Add a command-line interface (`python -m idna`, also available as
52 the `idna` script). Encodes or decodes one or more domains supplied
53 as arguments or on standard input, with options to select A-label
54 or U-label output and control error handling.
55 - Raise the minimum supported Python version to 3.9
56 - Various code quality improvements
57
58 ## 3.15 (2026-05-12)
59
60 - Enforce DNS-length cap on individual labels early in `check_label`,
61 short-circuiting contextual-rule processing for oversized input
62 while staying compatible with UTS 46 usage.
63 - Tidy core helpers: hoist bidi category sets to module-level
64 frozensets (avoiding per-codepoint list construction), simplify
65 length checks, and reuse the shared `_unicode_dots_re` from
66 `idna.core` in the codec module.
67 - Use `raise ... from err` for proper exception chaining and
68 switch internal string formatting to f-strings.
69 - Allow `flit_core` 4.x in the build backend.
70 - Expand the ruff lint set (flake8-bugbear, flake8-simplify,
71 pyupgrade, perflint) and apply the surfaced fixes; pin lint CI
72 to Python 3.14.
73 - Add Dependabot configuration for GitHub Actions.
74 - Convert README and HISTORY from reStructuredText to Markdown.
75 - Reference CVE-2026-45409 for the 3.14 advisory in place of the
76 initial GHSA identifier.
77
78 Thanks to Felix Yan, Stan Ulbrych, and metsw24-max for
79 contributions to this release.
80
81 ## 3.14 (2026-05-10)
82
83 - Removed opportunity to process long inputs into quadratic
84 time by rejecting oversize inputs up-front. Closes a bypass
85 of the CVE-2024-3651 mitigation. [CVE-2026-45409]
86
87 Thanks to Stan Ulbrych for reporting the issue.
88
89 ## 3.13 (2026-04-22)
90
91 - Correct classification error for codepoint U+A7F1
92
93 ## 3.12 (2026-04-21)
94
95 - Update to Unicode 17.0.0.
96 - Issue a deprecation warning for the transitional argument.
97 - Added lazy-loading to provide some performance improvements.
98 - Removed vestiges of code related to Python 2 support, including
99 segmentation of data structures specific to Jython.
100
101 Thanks to Rodrigo Nogueira for contributions to this release.
102
103 ## 3.11 (2025-10-12)
104
105 - Update to Unicode 16.0.0, including significant changes to UTS46
106 processing. As a result of Unicode ending support for it, transitional
107 processing no longer has an effect and returns the same result.
108 - Add support for Python 3.14, lowest supported version is Python 3.8.
109 - Various updates to packaging, including PEP 740 support.
110
111 ## 3.10 (2024-09-15)
112
113 - Reverted to Unicode 15.1.0 data. Unicode 16 has some significant changes
114 to UTS46 processing that will require more work to properly implement.
115
116 ## 3.9 (2024-09-13)
117
118 - Update to Unicode 16.0.0
119 - Deprecate setup.cfg in favour of pyproject.toml
120 - Use ruff for code formatting
121
122 Thanks to Waket Zheng for contributions to this release.
123
124 ## 3.8 (2024-08-23)
125
126 - Fix regression where IDNAError exception was not being produced for
127 certain inputs.
128 - Add support for Python 3.13, drop support for Python 3.5 as it is no
129 longer testable.
130 - Documentation improvements
131 - Updates to package testing using Github actions
132
133 Thanks to Hugo van Kemenade for contributions to this release.
134
135 ## 3.7 (2024-04-11)
136
137 - Fix issue where specially crafted inputs to encode() could
138 take exceptionally long amount of time to process. [CVE-2024-3651]
139
140 Thanks to Guido Vranken for reporting the issue.
141
142 ## 3.6 (2023-11-25)
143
144 - Fix regression to include tests in source distribution.
145
146 ## 3.5 (2023-11-24)
147
148 - Update to Unicode 15.1.0
149 - String codec name is now "idna2008" as overriding the system codec
150 "idna" was not working.
151 - Fix typing error for codec encoding
152 - "setup.cfg" has been added for this release due to some downstream
153 lack of adherence to PEP 517. Should be removed in a future release
154 so please prepare accordingly.
155 - Removed reliance on a symlink for the "idna-data" tool to comport
156 with PEP 517 and the Python Packaging User Guide for sdist archives.
157 - Added security reporting protocol for project
158
159 Thanks Jon Ribbens, Diogo Teles Sant'Anna, Wu Tingfeng for contributions
160 to this release.
161
162 ## 3.4 (2022-09-14)
163
164 - Update to Unicode 15.0.0
165 - Migrate to pyproject.toml for build information (PEP 621)
166 - Correct another instance where generic exception was raised instead of
167 IDNAError for malformed input
168 - Source distribution uses zeroized file ownership for improved
169 reproducibility
170
171 Thanks to Seth Michael Larson for contributions to this release.
172
173 ## 3.3 (2021-10-13)
174
175 - Update to Unicode 14.0.0
176 - Update to in-line type annotations
177 - Throw IDNAError exception correctly for some malformed input
178 - Advertise support for Python 3.10
179 - Improve testing regime on Github
180 - Fix Russian typo in documentation
181
182 Thanks to Jon Defresne, Hugo van Kemenade, Seth Michael Larson,
183 Patrick Ventuzelo and Boris Verhovsky for contributions to this
184 release.
185
186 ## 3.2 (2021-05-29)
187
188 - Add type hints (Thanks, Seth Michael Larson!)
189 - Remove support for Python 3.4
190
191 ## 3.1 (2021-01-04)
192
193 - Ensure license is included in package (Thanks, Julien Schueller)
194 - No longer mark wheel has universal (Thanks, Matthieu Darbois)
195 - Test on PowerPC using Travis CI
196
197 ## 3.0 (2021-01-01)
198
199 - Python 2 is no longer supported (the 2.x branch supports Python 2,
200 use "idna<3" in your requirements file if you need Python 2 support)
201 - Support for V2 UTS 46 test vectors.
202
203 ## 2.10 (2020-06-27)
204
205 - Update to Unicode 13.0.0.
206 - Throws a more specific exception if "xn--" is provided as a label.
207 - This is expected to be the last version that supports Python 2.
208
209 ## 2.9 (2020-02-16)
210
211 - Update to Unicode 12.1.0.
212 - Prohibit A-labels ending with a hyphen (Thanks, Julien Bernard!)
213 - Future-proofing: Test on Python 3.7 and 3.8, don't immediately
214 fail should Python 4 come along.
215 - Made BSD 3-clause license clearer
216
217 ## 2.8 (2018-12-04)
218
219 - Update to Unicode 11.0.0.
220 - Provide more specific exceptions for some malformed labels.
221
222 ## 2.7 (2018-06-10)
223
224 - Update to Unicode 10.0.0.
225 - No longer accepts dot-prefixed domains (e.g. ".example") as valid.
226 This is to be more conformant with the UTS 46 spec. Users should
227 strip dot prefixes from domains before processing.
228
229 ## 2.6 (2017-08-08)
230
231 - Allows generation of IDNA and UTS 46 table data for different
232 versions of Unicode, by deriving properties directly from
233 Unicode data.
234 - Ability to generate RFC 5892/IANA-style table data
235 - Diagnostic output of IDNA-related Unicode properties and
236 derived calculations for a given codepoint
237 - Support for idna.__version__ to report version
238 - Support for idna.idnadata.__version__ and
239 idna.uts46data.__version__ to report Unicode version of
240 underlying IDNA and UTS 46 data respectively.
241
242 ## 2.5 (2017-03-07)
243
244 - Fix bug with Katakana middle dot context-rule (Thanks, Greg
245 Shikhman.)
246
247 ## 2.4 (2017-03-01)
248
249 - Restore IDNAError to be a subclass of UnicodeError, as some users of
250 this library are only looking for the latter to catch invalid strings.
251
252 ## 2.3 (2017-02-28)
253
254 - Fix bugs relating to deriving IDNAError from UnicodeError.
255 - More memory footprint improvements (Thanks, Alex Gaynor)
256
257 ## 2.2 (2016-12-21)
258
259 - Made some changes to the UTS 46 data that should allow Jython to get around
260 64kb Java class limits. (Thanks, John A. Booth and Marcin Płonka.)
261 - In Python 2.6, skip two tests that rely on data not present in that
262 Python version's unicodedata module.
263 - Use relative imports to help downstream users.
264
265 ## 2.1 (2016-03-20)
266
267 - Memory consumption optimizations. The library should consume significantly
268 less memory through smarter data structures being used to represent
269 relevant Unicode properties. Many thanks to Shivaram Lingamneni for this
270 patch.
271 - Patches to make library work better with Python 2.6. The core library
272 currently works however the unit testing does not. (Thanks, Robert
273 Buchholz)
274 - Better affix all Unicode codepoint properties to a specific version.
275
276 ## 2.0 (2015-05-18)
277
278 - Added support for Unicode IDNA Compatibility Processing (aka Unicode
279 Technical Standard #46). Big thanks to Jon Ribbens who contributed this
280 functionality.
281
282 ## 1.1 (2015-01-27)
283
284 - Use IDNA properties from Unicode 6.3.0. Internet Architecture Board (IAB)
285 issued statement recommending against the use of Unicode 7.0.0 until
286 issues relating to U+08A1 codepoint are resolved. See http://goo.gl/Ed1n0K
287 - Identify some cases when label would be too longer to be a legal DNS name
288 and raise an exception. (Thanks, Ed Lewis)
289
290 ## 1.0 (2014-10-12)
291
292 - Update IDNA properties for Unicode 7.0.0.
293
294 ## 0.9 (2014-07-18)
295
296 - Fix issue with non-UTF-8 environments reading the README file
297 now that it contains non-ASCII. (Thanks, Tom Prince)
298 - Codec functions are useful, so they are separated into their own
299 module, rather than just existing for compatibility reasons.
300 - Add LICENSE file.
301
302 ## 0.8 (2014-07-09)
303
304 - Added MANIFEST.in for correct source distribution compilation.
305
306 ## 0.7 (2014-07-09)
307
308 - Filled out missing tests for various functions.
309 - Fix bug in CONTEXTO validation for Greek lower numeral sign (U+0375)
310 - Fix bug in CONTEXTO validation for Japanese middle dot (U+30FB)
311 - Improved documentation
312 - Move designation to Stable
313
314 ## 0.6 (2014-04-29)
315
316 - Minor improvements to Python 3 support, tests (Thanks, Derek Wilson)
317
318 ## 0.5 (2014-02-05)
319
320 - Update IDNA properties for Unicode 6.3.0.
321
322 ## 0.4 (2014-01-07)
323
324 - Fix trove classifier for Python 3. (Thanks, Hynek Schlawack)
325
326 ## 0.3 (2013-07-18)
327
328 - Ported to Python 3.
329
330 ## 0.2 (2013-07-16)
331
332 - Improve packaging.
333 - More conformant, passes all relevant tests in the Unicode TR46 test suite.
334
335 ## 0.1 (2013-05-27)
336
337 - First proof-of-concept version.