1
1
# Change Log
2
2
3
- ## Unreleased
3
+ ## 24.3.0
4
4
5
5
### Highlights
6
6
7
- <!-- Include any especially major or disruptive changes here -->
8
-
9
7
This release is a milestone: it fixes Black's first CVE security vulnerability. If you
10
8
run Black on untrusted input, or if you habitually put thousands of leading tab
11
9
characters in your docstrings, you are strongly encouraged to upgrade immediately to fix
@@ -16,56 +14,24 @@ incorrect changes to certain f-strings that are valid in Python 3.12 and higher.
16
14
17
15
### Stable style
18
16
19
- <!-- Changes that affect Black's stable style -->
20
-
21
17
- Don't move comments along with delimiters, which could cause crashes (#4248 )
22
18
- Strengthen AST safety check to catch more unsafe changes to strings. Previous versions
23
19
of Black would incorrectly format the contents of certain unusual f-strings containing
24
20
nested strings with the same quote type. Now, Black will crash on such strings until
25
21
support for the new f-string syntax is implemented. (#4270 )
26
- - Fixed a bug where line-ranges exceeding the last code line would not work as expected
22
+ - Fix a bug where line-ranges exceeding the last code line would not work as expected
27
23
(#4273 )
28
24
29
- ### Preview style
30
-
31
- <!-- Changes that affect Black's preview style -->
32
-
33
- ### Configuration
34
-
35
- <!-- Changes to how Black can be configured -->
36
-
37
- ### Packaging
38
-
39
- <!-- Changes to how Black is packaged, such as dependency requirements -->
40
-
41
- ### Parser
42
-
43
- <!-- Changes to the parser or to version autodetection -->
44
-
45
25
### Performance
46
26
47
27
- Fix catastrophic performance on docstrings that contain large numbers of leading tab
48
28
characters. This fixes
49
29
[ CVE-2024 -21503] ( https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-21503 ) .
50
30
(#4278 )
51
31
52
- ### Output
53
-
54
- <!-- Changes to Black's terminal output and error messages -->
55
-
56
- ### _ Blackd_
57
-
58
- <!-- Changes to blackd -->
59
-
60
- ### Integrations
61
-
62
- <!-- For example, Docker, GitHub Actions, pre-commit, editors -->
63
-
64
32
### Documentation
65
33
66
34
- Note what happens when ` --check ` is used with ` --quiet ` (#4236 )
67
- <!-- Major changes to documentation and policies. Small docs changes
68
- don't need a changelog entry. -->
69
35
70
36
## 24.2.0
71
37
0 commit comments