Releases: peteroupc/CBOR
CBOR version 2.4.2
Version 2.4.2:
- Really use 0.2.2 of
PeterO.Numbers
as dependency in NuGet package
[](http://sourceforge.net/projects/petero-cbor/files/v2.4.2/CBOR version 2.4.2.zip/download)
CBOR version 2.4.1
In version 2.4.1:
- C# implementation now uses version 0.2.2 of
PeterO.Numbers
[](http://sourceforge.net/projects/petero-cbor/files/v2.4.1/CBOR version 2.4.1.zip/download)
CBOR version 2.4.0
- The arbitrary-precision classes in this library are being replaced
with a new library (calledPeterO.Numbers
in C#). As a result, most
of the methods in the existing classes are obsolete. This affects the
classesBigInteger
,ExtendedDecimal
,ExtendedFloat
,ExtendedRational
,
Rounding
,PrecisionContext
, andTrapException
. Changes were made
to those classes to call the new classes, and the behavior is mostly
compatible with the previous behavior (with the notable exception
of a new dependency in the CBOR library). - After version 2.3.1, the classes in the new library were greatly changed
from what they were in version 2.3.1. Version 2.4.0 currently uses
version 0.2 of the new library, but this may change in future versions. See the
new library's release notes,
and this repository's commit history (from "version 2.3.1"
to "move big number library...") for details. - The FromObject method of the CBORObject class can now convert
arbitrary-precision number objects from the new library
appropriately, such asEInteger
andEDecimal
. However, there are
no methods that directly take or return one of those classes, for
compatibility with version 2.0. - Added Zero field and IsNegative property to the CBORObject class
- Added overloads to ReadJSON and FromJSONString in CBORObject class
- Added parameter in the ParseJSONNumber method of CBORDataUtilities
to preserve negative zeros - Added CBOR decoding option to disable duplicate keys
- Fixed JSON parsing bugs
[](http://sourceforge.net/projects/petero-cbor/files/v2.4.0/CBOR version 2.4.0.zip/download)
CBOR version 2.3.1
In version 2.3.1:
- Fixed NuGet package
- No changes of note in the Java version
[](http://sourceforge.net/projects/petero-cbor/files/v2.3.1/CBOR version 2.3.1.zip/download)
CBOR version 2.3.0
In version 2.3:
- The C# version of the library now also targets "dotnet", which should make it compatible with platform .NET runtime
environments such as the upcoming cross-platform "coreclr" runtime. - Added GetUtf8Bytes overload to DataUtilities
- Fixed line break bug when setting lenientLineBreaks to true in the PeterO.Cbor.DataUtilities.WriteUtf8 method
- In BigInteger, fixed divideAndRemainder method, added certain methods and made other methods obsolete
- Many additions to the documentation
- Other bug fixes
Full Changelog: v2.2.0...v2.3.0
CBOR version 2.2.0
In version 2.2:
- Portable Class Library compatibility expanded
- Add option to always use definite length string encoding when generating CBOR objects
CBOR version 2.1.0
In version 2.1:
- Added Ulp, Precision, MovePointLeft, MovePointRight, and ScaleToPowerOfTwo/-Ten methods to
ExtendedDecimal and ExtendedFloat - Fixed double-rounding issue with ToDouble and ToFloat methods
of ExtendedDecimal - Added Odd and OddOrZeroFiveUp rounding modes
- Added non-decimal base conversion features to BigInteger
- Other bug fixes
CBOR version 2.0.0
In version 2.0:
- Several very special characters are escaped in JSON output, such as line and paragraph
separators, and byte order marks. - BigInteger's longValue method was fixed
- BigInteger was changed to have no public constructors
- ReadJSON now supports UTF-16 and UTF-32 in addition to UTF-8
- PrecisionContext's JavaBigDecimal object was corrected.
- Fixed bugs in parsing JSON numbers in some cases
- CBORObject's one-argument Add method now adds CBORObject.Null if passed null,
rather than throwing an exception.
NOTE: In the "2.0" tag for this repository, the file DataUtilities.cs
should be copied
from the PeterO
directory to the root directory for this repository, in order for the CBORDocs
and CBORDocs2 projects to build. This issue may probably exist in other older versions
as well.
CBOR version 1.3.0
In version 1.3:
- Added a CompareToIgnoreTags method to CBORObject
- The BigInteger constructor in the C# version is deprecated
- Fixed bugs in converting from CBOR float and double to integers in some corner cases
- Fixed a bug where CBORObject's OutermostTag returns 0 instead of the correct -1 for untagged objects
- Fixed a bug where BigInteger's bitLength return value can be wrong in some corner cases
CBOR version 1.2.0
In version 1.2:
- The WriteJSON and WriteToJSON methods were added to CBORObject
- Bugs were fixed in the Set and Add methods of CBORObject