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