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