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