CHANGELOG 6.41 KB
Newer Older
Laurent Peuch's avatar
Laurent Peuch committed
1
2
3
Changelog
=========

4
0.7 (unreleased)
Laurent Peuch's avatar
Laurent Peuch committed
5
6
7
8
------------------

- fix line continuation https://github.com/PyCQA/baron/pull/92 by ibizaman
- handle corrupt cache file situation https://github.com/PyCQA/baron/pull/76 by ryu2
Laurent Peuch's avatar
Laurent Peuch committed
9
10
- fix special crashing edge case in indentation marker https://github.com/PyCQA/bar by Ahuge
- fixed incorrect tokenization case "d*e-1". Fixes #85 https://github.com/PyCQA/baron/pull/107 by boxed
Laurent Peuch's avatar
Laurent Peuch committed
11

12
13
Python 3 parsing:
- support ellipsis https://github.com/PyCQA/baron/pull/121 by odcinek
Laurent Peuch's avatar
Laurent Peuch committed
14
- support matrix operator https://github.com/PyCQA/baron/pull/117 by odcinek
15
- support f-strings https://github.com/PyCQA/baron/pull/110 by odcinek
16
- support numeric literals https://github.com/PyCQA/baron/pull/111 by odcinek
17
- support nonlocal statement https://github.com/PyCQA/baron/pull/112 by odcinek
18

Laurent Peuch's avatar
Laurent Peuch committed
19
0.6.6 (2017-06-12)
Laurent Peuch's avatar
Laurent Peuch committed
20
21
22
23
------------------

- fix situation where a deindented comment between a if and elif/else broken
  parsing, see https://github.com/PyCQA/baron/issues/87
Laurent Peuch's avatar
Laurent Peuch committed
24
- around 35-40% to 75% parsing speed improvment on big files by duncf
Laurent Peuch's avatar
Laurent Peuch committed
25
26
  https://github.com/PyCQA/baron/pull/99

Laurent Peuch's avatar
Laurent Peuch committed
27
28
29
30
31
0.6.5 (2017-01-26)
------------------

- fix previous regression fix was broken

Laurent Peuch's avatar
Laurent Peuch committed
32
33
34
35
36
0.6.4 (2017-01-14)
------------------

- fix regression in case a comment follow the ":" of a if/def/other

Laurent Peuch's avatar
Laurent Peuch committed
37
0.6.3 (2017-01-02)
38
------------------
Laurent Peuch's avatar
Laurent Peuch committed
39

40
41
42
- group formatting at start of file or preceded by space with comment

0.6.2 (2016-03-18)
Laurent Peuch's avatar
Laurent Peuch committed
43
------------------
44

45
- fix race condition when generating parser cache file
46
- make all user-facing errors inherit from the same BaronError class
Laurent Peuch's avatar
Laurent Peuch committed
47
48
- fix: dotted_name and float_exponant_complex were missing from
  nodes_rendering_order
49

Laurent Peuch's avatar
Laurent Peuch committed
50
0.6.1 (2015-01-31)
Laurent Peuch's avatar
Laurent Peuch committed
51
52
53
54
55
------------------

- fix: the string was having a greedy behavior on grouping the string tokens
  surrounding it (for string chains), this ends up creating an inconsistancy in
  the way string was grouped in general
Laurent Peuch's avatar
Laurent Peuch committed
56
- fix: better number parsing handling, everything isn't fixed yet
57
- make all (expected) errors inherit from the same BaronError class
58
- fix: parsing fails correctly if a quoted string is not closed
Laurent Peuch's avatar
Laurent Peuch committed
59

Laurent Peuch's avatar
Laurent Peuch committed
60
0.6 (2014-12-11)
Laurent Peuch's avatar
Laurent Peuch committed
61
62
63
64
65
66
67
68
69
70
----------------

- FST structure modification: def_argument_tuple is no more and all arguments
  now have a coherent structure:
  * def_argument node name attribute has been renamed to target, like in assign
  * target attribute now points to a dict, not to a string
  * old name -> string are now target -> name_node
  * def_argument_tuple is now a def_argument where target points to a tuple
  * this specific tuple will only has name and comma and tuple members (no more
    def_argument for name)
Laurent Peuch's avatar
Laurent Peuch committed
71
- new node: long, before int and long where merged but that was causing problems
Laurent Peuch's avatar
Laurent Peuch committed
72

73
0.5 (2014-11-10)
Laurent Peuch's avatar
Laurent Peuch committed
74
75
76
77
----------------

- rename "funcdef" node to "def" node to be way more intuitive.

Laurent Peuch's avatar
Laurent Peuch committed
78
0.4 (2014-09-29)
79
80
81
82
83
84
----------------

- new rendering type in the nodes_rendering_order dictionary: string. This
  remove an ambiguity where a key could be pointing to a dict or a string, thus
  forcing third party tools to do guessing.

85
86
87
88
89
90
0.3.1 (2014-09-04)
------------------

- setup.py wasn't working if wheel wasn't used because the CHANGELOG file
  wasn't included in the MANIFEST.in

Laurent Peuch's avatar
Laurent Peuch committed
91
0.3 (2014-08-21)
92
93
----------------

Pierre Penninckx's avatar
Pierre Penninckx committed
94
95
- path becomes a simple list and is easier to deal with
- bounding box allows you to know the left most and right most position
96
  of a node see https://baron.readthedocs.io/en/latest/#bounding-box
Laurent Peuch's avatar
Laurent Peuch committed
97
- redbaron is classified as supporting python3
98
  https://github.com/PyCQA/baron/pull/51
Laurent Peuch's avatar
Laurent Peuch committed
99
100
101
102
- ensure than when a key is a string, it's empty value is an empty string and
  not None to avoid breaking libs that use introspection to guess the type of
  the key
- key renaming in the FST: "delimiteur" -> "delimiter"
Laurent Peuch's avatar
Laurent Peuch committed
103
104
- name_as_name and dotted_as_name node don't have the "as" key anymore as it
  was useless (it can be deduce from the state of the "target" key)
Laurent Peuch's avatar
Laurent Peuch committed
105
106
107
- dotted_name node doesn't exist anymore, its existance was unjustified. In
  import, from_import and decorator node, it has been replaced from a key to a
  dict (with only a list inside of it) to a simple list.
Laurent Peuch's avatar
Laurent Peuch committed
108
109
110
- dumps now accept a strict boolean argument to check the validity of the FST
  on dumping, but this isn't that much a public feature and should probably be
  changed of API in the futur
Laurent Peuch's avatar
Laurent Peuch committed
111
112
- name_as_name and dotted_as_name empty value for target is now an empty string
  and not None since this is a string type key
Pierre Penninckx's avatar
Pierre Penninckx committed
113
- boundingbox now includes the newlines at the end of a node
Pierre Penninckx's avatar
Pierre Penninckx committed
114
115
- all raised exceptions inherit from a common base exception to ease try/catch
  constructions
Pierre Penninckx's avatar
Pierre Penninckx committed
116
117
118
119
120
121
- Position's left and right functions become properties and thus
  attributes
- Position objects can be compared to other Position objects or any
  iterables
- make_position and make_bounding_box functions are deleted in favor of
  always using the corresponding class' constructor
122

Laurent Peuch's avatar
Laurent Peuch committed
123
0.2 (2014-06-11)
Laurent Peuch's avatar
Laurent Peuch committed
124
125
----------------

126
- Baron now provides documentation on https://baron.readthedocs.io
Laurent Peuch's avatar
Laurent Peuch committed
127
128
- feature: baron now run in python3 (*but* doesn't implement the full python3
  grammar yet) by Pierre Penninckx https://github.com/ibizaman
Laurent Peuch's avatar
Laurent Peuch committed
129
130
131
132
- feature: drop the usage of ast.py to find print_function, this allow any
  version of python to parse any other version of python also by Pierre
  Penninckx
- fix: rare bug where a comment end up being confused as an indentation level
133
134
- 2 new helpers: show_file and show_node, see https://baron.readthedocs.io/en/latest/#show-file
  and https://baron.readthedocs.io/en/latest/#show-node
Laurent Peuch's avatar
Laurent Peuch committed
135
- new dictionary that provides the informations on how to render a FST node:
136
137
  nodes_rendering_order see https://baron.readthedocs.io/en/latest/#rendering-the-fst
- new utilities to find a node, see https://baron.readthedocs.io/en/latest/#locate-a-node
Pierre Penninckx's avatar
Pierre Penninckx committed
138
- new generic class that provide templates to work on the FST see
139
  https://baron.readthedocs.io/en/latest/#rendering-the-fst
140

Laurent Peuch's avatar
Laurent Peuch committed
141
0.1.3 (2014-04-13)
142
143
144
145
146
------------------

- set sugar syntaxic notation wasn't handled by the dumper (apparently no one
  use this on pypi top 100)

147
0.1.2 (2014-04-08)
Laurent Peuch's avatar
Laurent Peuch committed
148
149
------------------

Laurent Peuch's avatar
Laurent Peuch committed
150
- baron.dumps now accept a single FST node, it was only working with a list of
Laurent Peuch's avatar
Laurent Peuch committed
151
  FST nodes
Laurent Peuch's avatar
Laurent Peuch committed
152
- don't add a endl node at the end if not present in the input string
Laurent Peuch's avatar
Laurent Peuch committed
153
154
- de-uniformise call_arguments and function_arguments node, this is just
  creating more problems that anything else
155
- fix https://github.com/PyCQA/redbaron/issues/4
Laurent Peuch's avatar
Laurent Peuch committed
156
- fix the fact that baron can't parse "{1,}" (but "{1}" is working)
Laurent Peuch's avatar
Laurent Peuch committed
157
158
159
160
161
162
163
164
165
166
167

0.1.1 (2014-03-23)
------------------

- It appears that I don't know how to write MANIFEST.in correctly


0.1 (2014-03-22)
----------------

- Init