]> Cypherpunks.ru repositories - pyderasn.git/blob - doc/news.rst
Fix SequenceOf/SetOf BoundsError raising
[pyderasn.git] / doc / news.rst
1 News
2 ====
3
4 .. _release3.12:
5
6 3.12
7 ----
8 * Fix possible uncaught TypeError in Py2 with zero bytes inside the value.
9 * Fix SequenceOf/SetOf raising BoundsError instead of DecodeError.
10
11 .. _release3.11:
12
13 3.11
14 ----
15 * Fix uncaught UTCTime/GeneralizedTime decode error when dealing with
16   non ASCII-encoded values
17
18 .. _release3.10:
19
20 3.10
21 ----
22 * Fix long-standing bug with explicitly tagged objects inside the
23   Choice. If Choice had explicitly tagged value, then its ``.tlvlen``
24   reports the size without taking value's explicit tag in advance
25 * Add ``.fulllen`` and ``.fulloffset`` properties for all objects
26
27 .. _release3.9:
28
29 3.9
30 ---
31 * SEQUENCE's values are printed with field's name. Previously there was
32   the following output::
33
34     AlgorithmIdentifier SEQUENCE[OBJECT IDENTIFIER 1.3.14.3.2.26, [UNIV 5] ANY 0500 OPTIONAL]
35
36   now it is::
37
38     AlgorithmIdentifier SEQUENCE[algorithm: OBJECT IDENTIFIER 1.3.14.3.2.26; parameters: [UNIV 5] ANY 0500 OPTIONAL]
39 * Fixed EOC (Unicode character) repr printing issues under Python2
40
41 .. _release3.8:
42
43 3.8
44 ---
45 BER's EOC is explicitly shown during pprinting. Following notation::
46
47       15-2 [0,0,1576]-4  . content: [0] EXPLICIT [UNIV 16] ANY
48
49 is replaced with::
50
51       15-2∞ [0,0,1576]∞  . content: [0] EXPLICIT [UNIV 16] ANY
52     [...]
53     1587    [1,1,   0]   . content:  BER EOC
54     1589    [1,1,   0]   . content: EXPLICIT BER EOC
55
56 .. _release3.7:
57
58 3.7
59 ---
60 * BER decoding support
61 * BitString's ''H notation support
62 * ``termcolor`` package is included in the tarball
63
64 .. _release3.6:
65
66 3.6
67 ---
68 * Ability to set values during Sequence initialization
69
70 .. _release3.5:
71
72 3.5
73 ---
74 * Fix TagMismatch exception completeness during Choice and Set decoding.
75   Previously we will loose offset and decode_path information about
76   concrete TagMismatched entity
77
78 .. _release3.4:
79
80 3.4
81 ---
82 * Strict NumericString's value sanitation
83 * Invalid encoding in string types will raise ``DecodeError`` exception,
84   instead of ``Unicode*Error``
85 * Fixed DecodePathDefBy workability with Python 2.x
86
87 .. _release3.3:
88
89 3.3
90 ---
91 * Fix nasty BitString decoding bug: it could fail when data follows
92   encoded BitString value. There weren't any problems when BitString is
93   at the end of Sequence
94
95 .. _release3.2:
96
97 3.2
98 ---
99 * Slightly corrected colours, now visible on white background
100
101 .. _release3.1:
102
103 3.1
104 ---
105 * Fix bug related to DecodeError showing with DecodePathDefBy entities
106 * Respect ``NO_COLOR`` environment variable
107
108 .. _release3.0:
109
110 3.0
111 ---
112 * :py:func:`pyderasn.decode_path_defby` is replaced with
113   :py:class:`pyderasn.DecodePathDefBy`
114 * Ability to turn colourized terminal output by calling
115   ``pprint(..., with_colours=True)``. You will need
116   `termcolor package <https://pypi.org/project/termcolor/>`__
117
118 .. _release2.1:
119
120 2.1
121 ---
122 * Fixed invalid offset calculation when dealing with DEFINED BY objects
123   having explicit tags
124
125 .. _release2.0:
126
127 2.0
128 ---
129 * BIT STRINGs can also be :ref:`DEFINED BY <definedby>`
130 * Decoding process can be governed with optional :ref:`ctx <ctx>`
131   keyword argument to ``decode()`` method
132 * :ref:`defines_by_path <defines_by_path_ctx>` option is now
133   :ref:`decode context <ctx>` option, not a keyword argument
134 * Ability to do :ref:`strict validation <strict_default_existence_ctx>`
135   of defaulted values met in sequence, raising an exception
136
137 .. _release1.6:
138
139 1.6
140 ---
141 Ability to skip specified number of bytes (``--skip``) in command line
142 utility.
143
144 .. _release1.5:
145
146 1.5
147 ---
148 * Generic decoder's scheme and pretty printer
149   (:py:func:`pyderasn.generic_decoder`) can be used in libraries
150 * Ability to specify :ref:`defines_by_path <defines_by_path_ctx>`
151   during command line invocation
152
153 .. _release1.4:
154
155 1.4
156 ---
157 Ability to automatically decode :ref:`DEFINED BY <definedby>` fields
158 inside SEQUENCEs.
159
160 .. _release1.3:
161
162 1.3
163 ---
164 Removed ``__lt__``/``__eq__`` from base class, as pylint likes it.
165
166 .. _release1.2:
167
168 1.2
169 ---
170 Full rich comparison operators added.
171
172
173 .. _release1.1:
174
175 1.1
176 ---
177 Trivial README addition.
178
179 .. _release1.0:
180
181 1.0
182 ---
183 Initial release.