Skip to content

Releases: peteroupc/CBOR

CBOR version 2.4.2

16 Feb 04:29
Compare
Choose a tag to compare

Version 2.4.2:

[Download CBOR Library in C#](http://sourceforge.net/projects/petero-cbor/files/v2.4.2/CBOR version 2.4.2.zip/download)

CBOR version 2.4.1

15 Feb 19:36
Compare
Choose a tag to compare

In version 2.4.1:

[Download CBOR Library in C#](http://sourceforge.net/projects/petero-cbor/files/v2.4.1/CBOR version 2.4.1.zip/download)

CBOR version 2.4.0

11 Feb 18:29
Compare
Choose a tag to compare
  • The arbitrary-precision classes in this library are being replaced
    with a new library (called PeterO.Numbers in C#). As a result, most
    of the methods in the existing classes are obsolete. This affects the
    classes BigInteger, ExtendedDecimal, ExtendedFloat, ExtendedRational,
    Rounding, PrecisionContext, and TrapException. 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 as EInteger and EDecimal. 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

[Download CBOR Library in C#](http://sourceforge.net/projects/petero-cbor/files/v2.4.0/CBOR version 2.4.0.zip/download)

CBOR version 2.3.1

14 Dec 14:16
Compare
Choose a tag to compare

In version 2.3.1:

  • Fixed NuGet package
  • No changes of note in the Java version

[Download CBOR Library in C#](http://sourceforge.net/projects/petero-cbor/files/v2.3.1/CBOR version 2.3.1.zip/download)

CBOR version 2.3.0

12 Dec 23:59
Compare
Choose a tag to compare

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

22 Apr 11:54
Compare
Choose a tag to compare

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

21 Nov 01:03
Compare
Choose a tag to compare

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

01 Oct 12:04
Compare
Choose a tag to compare

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

22 Jun 20:22
Compare
Choose a tag to compare

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

16 Jun 18:50
Compare
Choose a tag to compare

In version 1.2:

  • The WriteJSON and WriteToJSON methods were added to CBORObject
  • Bugs were fixed in the Set and Add methods of CBORObject