Skip to content

Releases: ocaml-community/yojson

2.1.2

23 Nov 13:35
Compare
Choose a tag to compare

CHANGES:

2023-11-23

Fixed

2.1.1

10 Oct 07:44
Compare
Choose a tag to compare

CHANGES:

2023-10-10

Changed

  • Make Basic, Safe & Raw seperate compilation units that get exposed by
    the main module as suggested by @hhugo to enable JSOO to discard unused
    modules. No API changes should be observable. (#84, #167 @Leonidas-from-XIV)
  • Removed forward refs in the parser to make dead-code elimination in JSOO
    better (#168, @hhugo)

2.1.0

26 Apr 13:21
Compare
Choose a tag to compare

CHANGES:

2023-04-26

Added

2.0.2

09 Aug 14:05
Compare
Choose a tag to compare

CHANGES:

2022-08-09

Added

Removed

  • Removed undocumented and unused functions write_float_fast and
    write_std_float_fast from Yojson, Yojson.Basic and Yojson.Safe
    (@sim642, #149)

Fixed

  • Fix out-of-bounds error occurring when parsing object field names
    with atdgen parsers using map_ident or map_lexeme (@mjambon, #150)

2.0.1

28 Jun 13:11
Compare
Choose a tag to compare

CHANGES:

2022-06-28

Fixed

2.0.0

02 Jun 15:20
Compare
Choose a tag to compare

CHANGES:

Removed

  • Removed dependency on easy-format and removed pretty_format from
    Yojson, Yojson.Basic, Yojson.Safe and Yojson.Raw. (@c-cube, #90)
  • Removed dependency on biniou, simplifying the chain of dependencies. This
    changes some APIs:
    • Bi_outbuf.t in signatures is replaced with Buffer.t
    • to_outbuf becomes to_buffer and stream_to_outbuf becomes
      stream_to_buffer
      (@Leonidas-from-XIV, #74, and @gasche, #132)
  • Removed yojson-biniou library
  • Removed deprecated json type aliasing type t which has been available
    since 1.6.0 (@Leonidas-from-XIV, #100).
  • Removed json_max type (@Leonidas-from-XIV, #103)
  • Removed constraint that the "root" value being rendered (via either
    pretty_print or to_string) must be an object or array. (@cemerick, #121)
  • Removed validate_json as it only made sense if the type was called json.
    (@Leonidas-from-XIV, #137)

Add

  • Add an opam package yojson-bench to deal with benchmarks dependency
    (@tmcgilchrist, #117)
  • Add a benchmark to judge the respective performance of providing a buffer vs
    letting Yojson create an internal (#134, @Leonidas-from-XIV)
  • Add an optional suf keyword argument was added to functions that write
    serialized JSON, thus allowing NDJSON output. Most functions default to not
    adding any suffix except for to_file (#124, @panglesd) and functions
    writing sequences of values where the default is \n (#135,
    @Leonidas-from-XIV)

Change

  • The stream_from_* and stream_to_* functions now use a Seq.t instead of a
    Stream.t, and they are renamed into seq_from_* and seq_to_* (@gasche, #131).

Fix

1.7.0

14 Feb 17:00
Compare
Choose a tag to compare

CHANGES:

2019-02-14

Add

  • Add documented write_t and read_t to modules defining a JSON ast type for compatibility
    with atdgen

1.6.0

30 Jan 14:33
Compare
Choose a tag to compare

CHANGES:

2019-01-30

Deprecate

  • json types are deprecated in favor of their new t aliases, ahead of their removal in the next
    major release (#73, @Leonidas-from-XIV)

Add

1.5.0

27 Dec 16:01
Compare
Choose a tag to compare

CHANGES:

Changes

  • Use dune as a build system (#67, @Leonidas-from-XIV)
  • reraise exceptions in finish_string instead of silencing them by raising a Failure _
  • raise finalizer exceptions in from_channel and from_lexbuf readers

Fixes

  • Fix a race condition in builds (#57, @avsm)