| 1 |
Changelog |
| 2 |
========= |
| 3 |
|
| 4 |
0.10.1 (2021-12-08) |
| 5 |
----------------- |
| 6 |
|
| 7 |
- bug fix: in "a._" the "._" part was incorrectly recognized as a float, by bram |
| 8 |
|
| 9 |
0.10 (2021-12-08) |
| 10 |
----------------- |
| 11 |
|
| 12 |
- bug fix: baron is now able to parse "class A(b, c=d): pass" by bram |
| 13 |
- some project cleaned and integration of tox with good pratices like flake8 and check-manifest |
| 14 |
- bug fix for missing edge case in inner formatting by EhsanKia https://github.com/PyCQA/baron/pull/156 |
| 15 |
- complet support for float with underscores in them by tamentis https://github.com/PyCQA/baron/pull/157 |
| 16 |
- bug fix for failure of parsing of "{**a}" by wavenator https://github.com/PyCQA/baron/pull/161 |
| 17 |
|
| 18 |
0.9 (2019-02-01) |
| 19 |
---------------- |
| 20 |
|
| 21 |
First version of full python 3.7 grammar support. |
| 22 |
|
| 23 |
- BREAKING CHANGE: annotations are now member of {def,list,dict}_argument to flatten the data structure |
| 24 |
- add support for ... in from import by bram |
| 25 |
- add support for return annotation by bram |
| 26 |
- add support for exec function by bram |
| 27 |
- add support for variable annotation https://github.com/PyCQA/baron/pull/145 by scottbelden and additional work by bram |
| 28 |
- add support for *var expressions in tuple assignment by bram |
| 29 |
- add support for raise from https://github.com/PyCQA/baron/pull/120 by odcinek with additional work by bram |
| 30 |
- add support for arglist usage in class definition inheritence by bram |
| 31 |
- bug fix by https://github.com/PyCQA/baron/pull/126/commits/91e839a228293698cc755a7f28afeca2669cb66e kyleatmakrs |
| 32 |
|
| 33 |
0.8 (2018-10-29) |
| 34 |
---------------- |
| 35 |
|
| 36 |
- add typed parameters support https://github.com/PyCQA/baron/pull/140 by Scott Belden and and additional work by bram |
| 37 |
|
| 38 |
0.7 (2018-08-21) |
| 39 |
---------------- |
| 40 |
|
| 41 |
- fix line continuation https://github.com/PyCQA/baron/pull/92 by ibizaman |
| 42 |
- handle corrupt cache file situation https://github.com/PyCQA/baron/pull/76 by ryu2 |
| 43 |
- fix special crashing edge case in indentation marker https://github.com/PyCQA/bar by Ahuge |
| 44 |
- fixed incorrect tokenization case "d*e-1". Fixes #85 https://github.com/PyCQA/baron/pull/107 by boxed |
| 45 |
- fix endl handling inside groupings by kyleatmakrs (extracted from https://github.com/PyCQA/baron/pull/126) |
| 46 |
|
| 47 |
Python 3: |
| 48 |
- python 3 parsing extracted from https://github.com/PyCQA/baron/pull/126 |
| 49 |
- support ellipsis https://github.com/PyCQA/baron/pull/121 by odcinek |
| 50 |
- support matrix operator https://github.com/PyCQA/baron/pull/117 by odcinek |
| 51 |
- support f-strings https://github.com/PyCQA/baron/pull/110 by odcinek |
| 52 |
- support numeric literals https://github.com/PyCQA/baron/pull/111 by odcinek |
| 53 |
- support nonlocal statement https://github.com/PyCQA/baron/pull/112 by odcinek |
| 54 |
- support keyword only markers https://github.com/PyCQA/baron/pull/108 by boxed |
| 55 |
- support yield from statement https://github.com/PyCQA/baron/pull/113 by odcinek and additional work by bram |
| 56 |
- support async/await statements https://github.com/PyCQA/baron/pull/114 by odcinek and additional work by bram |
| 57 |
|
| 58 |
0.6.6 (2017-06-12) |
| 59 |
------------------ |
| 60 |
|
| 61 |
- fix situation where a deindented comment between a if and elif/else broken |
| 62 |
parsing, see https://github.com/PyCQA/baron/issues/87 |
| 63 |
- around 35-40% to 75% parsing speed improvment on big files by duncf |
| 64 |
https://github.com/PyCQA/baron/pull/99 |
| 65 |
|
| 66 |
0.6.5 (2017-01-26) |
| 67 |
------------------ |
| 68 |
|
| 69 |
- fix previous regression fix was broken |
| 70 |
|
| 71 |
0.6.4 (2017-01-14) |
| 72 |
------------------ |
| 73 |
|
| 74 |
- fix regression in case a comment follow the ":" of a if/def/other |
| 75 |
|
| 76 |
0.6.3 (2017-01-02) |
| 77 |
------------------ |
| 78 |
|
| 79 |
- group formatting at start of file or preceded by space with comment |
| 80 |
|
| 81 |
0.6.2 (2016-03-18) |
| 82 |
------------------ |
| 83 |
|
| 84 |
- fix race condition when generating parser cache file |
| 85 |
- make all user-facing errors inherit from the same BaronError class |
| 86 |
- fix: dotted_name and float_exponant_complex were missing from |
| 87 |
nodes_rendering_order |
| 88 |
|
| 89 |
0.6.1 (2015-01-31) |
| 90 |
------------------ |
| 91 |
|
| 92 |
- fix: the string was having a greedy behavior on grouping the string tokens |
| 93 |
surrounding it (for string chains), this ends up creating an inconsistancy in |
| 94 |
the way string was grouped in general |
| 95 |
- fix: better number parsing handling, everything isn't fixed yet |
| 96 |
- make all (expected) errors inherit from the same BaronError class |
| 97 |
- fix: parsing fails correctly if a quoted string is not closed |
| 98 |
|
| 99 |
0.6 (2014-12-11) |
| 100 |
---------------- |
| 101 |
|
| 102 |
- FST structure modification: def_argument_tuple is no more and all arguments |
| 103 |
now have a coherent structure: |
| 104 |
* def_argument node name attribute has been renamed to target, like in assign |
| 105 |
* target attribute now points to a dict, not to a string |
| 106 |
* old name -> string are now target -> name_node |
| 107 |
* def_argument_tuple is now a def_argument where target points to a tuple |
| 108 |
* this specific tuple will only has name and comma and tuple members (no more |
| 109 |
def_argument for name) |
| 110 |
- new node: long, before int and long where merged but that was causing problems |
| 111 |
|
| 112 |
0.5 (2014-11-10) |
| 113 |
---------------- |
| 114 |
|
| 115 |
- rename "funcdef" node to "def" node to be way more intuitive. |
| 116 |
|
| 117 |
0.4 (2014-09-29) |
| 118 |
---------------- |
| 119 |
|
| 120 |
- new rendering type in the nodes_rendering_order dictionary: string. This |
| 121 |
remove an ambiguity where a key could be pointing to a dict or a string, thus |
| 122 |
forcing third party tools to do guessing. |
| 123 |
|
| 124 |
0.3.1 (2014-09-04) |
| 125 |
------------------ |
| 126 |
|
| 127 |
- setup.py wasn't working if wheel wasn't used because the CHANGELOG file |
| 128 |
wasn't included in the MANIFEST.in |
| 129 |
|
| 130 |
0.3 (2014-08-21) |
| 131 |
---------------- |
| 132 |
|
| 133 |
- path becomes a simple list and is easier to deal with |
| 134 |
- bounding box allows you to know the left most and right most position |
| 135 |
of a node see https://baron.readthedocs.io/en/latest/#bounding-box |
| 136 |
- redbaron is classified as supporting python3 |
| 137 |
https://github.com/PyCQA/baron/pull/51 |
| 138 |
- ensure than when a key is a string, it's empty value is an empty string and |
| 139 |
not None to avoid breaking libs that use introspection to guess the type of |
| 140 |
the key |
| 141 |
- key renaming in the FST: "delimiteur" -> "delimiter" |
| 142 |
- name_as_name and dotted_as_name node don't have the "as" key anymore as it |
| 143 |
was useless (it can be deduce from the state of the "target" key) |
| 144 |
- dotted_name node doesn't exist anymore, its existance was unjustified. In |
| 145 |
import, from_import and decorator node, it has been replaced from a key to a |
| 146 |
dict (with only a list inside of it) to a simple list. |
| 147 |
- dumps now accept a strict boolean argument to check the validity of the FST |
| 148 |
on dumping, but this isn't that much a public feature and should probably be |
| 149 |
changed of API in the futur |
| 150 |
- name_as_name and dotted_as_name empty value for target is now an empty string |
| 151 |
and not None since this is a string type key |
| 152 |
- boundingbox now includes the newlines at the end of a node |
| 153 |
- all raised exceptions inherit from a common base exception to ease try/catch |
| 154 |
constructions |
| 155 |
- Position's left and right functions become properties and thus |
| 156 |
attributes |
| 157 |
- Position objects can be compared to other Position objects or any |
| 158 |
iterables |
| 159 |
- make_position and make_bounding_box functions are deleted in favor of |
| 160 |
always using the corresponding class' constructor |
| 161 |
|
| 162 |
0.2 (2014-06-11) |
| 163 |
---------------- |
| 164 |
|
| 165 |
- Baron now provides documentation on https://baron.readthedocs.io |
| 166 |
- feature: baron now run in python3 (*but* doesn't implement the full python3 |
| 167 |
grammar yet) by Pierre Penninckx https://github.com/ibizaman |
| 168 |
- feature: drop the usage of ast.py to find print_function, this allow any |
| 169 |
version of python to parse any other version of python also by Pierre |
| 170 |
Penninckx |
| 171 |
- fix: rare bug where a comment end up being confused as an indentation level |
| 172 |
- 2 new helpers: show_file and show_node, see https://baron.readthedocs.io/en/latest/#show-file |
| 173 |
and https://baron.readthedocs.io/en/latest/#show-node |
| 174 |
- new dictionary that provides the informations on how to render a FST node: |
| 175 |
nodes_rendering_order see https://baron.readthedocs.io/en/latest/#rendering-the-fst |
| 176 |
- new utilities to find a node, see https://baron.readthedocs.io/en/latest/#locate-a-node |
| 177 |
- new generic class that provide templates to work on the FST see |
| 178 |
https://baron.readthedocs.io/en/latest/#rendering-the-fst |
| 179 |
|
| 180 |
0.1.3 (2014-04-13) |
| 181 |
------------------ |
| 182 |
|
| 183 |
- set sugar syntaxic notation wasn't handled by the dumper (apparently no one |
| 184 |
use this on pypi top 100) |
| 185 |
|
| 186 |
0.1.2 (2014-04-08) |
| 187 |
------------------ |
| 188 |
|
| 189 |
- baron.dumps now accept a single FST node, it was only working with a list of |
| 190 |
FST nodes |
| 191 |
- don't add a endl node at the end if not present in the input string |
| 192 |
- de-uniformise call_arguments and function_arguments node, this is just |
| 193 |
creating more problems that anything else |
| 194 |
- fix https://github.com/PyCQA/redbaron/issues/4 |
| 195 |
- fix the fact that baron can't parse "{1,}" (but "{1}" is working) |
| 196 |
|
| 197 |
0.1.1 (2014-03-23) |
| 198 |
------------------ |
| 199 |
|
| 200 |
- It appears that I don't know how to write MANIFEST.in correctly |
| 201 |
|
| 202 |
|
| 203 |
0.1 (2014-03-22) |
| 204 |
---------------- |
| 205 |
|
| 206 |
- Init |