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