yamerl

YAML 1.2 and JSON parser in pure Erlang

BSD-2-CLAUSE License

Downloads
18.2M
Stars
204
Committers
17

Bot releases are visible (Hide)

yamerl - yamerl 0.10.0 Latest Release

Published by dumbbell over 2 years ago

Changes

  • Add option {keep_duplicate_keys, boolean()} to keep duplicate keys in the construction of mappings (#52, #53), thanks to @flurin.

Availability

In addition to this GitHub repository, yamerl is available as an Hex.pm package, with online documentation:

yamerl - yamerl 0.9.0

Published by dumbbell almost 3 years ago

Changes

  • Implement key deduplication in the construction of mappings, both when using proplists and maps (#39, #40), thanks to @slezakattack.
  • Report a parsing error if a block collection is unfinished when the end of the document is reached; e.g. when a ] or } character is missing (#43, #50).
  • Fix parsing of indented block scalar when they are finished by a document or directives end marker (#41, #51).
  • Fix several typos (#47), thanks to @kianmeng.
  • Update Rebar configuration to work with recent versions.

Also, the CI was switched from Travis to GitHub Actions.

Thank you to all contributors for their reports & patches!

Availability

In addition to this GitHub repository, yamerl is available as an Hex.pm package, with online documentation:

yamerl - yamerl 0.8.1

Published by dumbbell almost 4 years ago

Changes

  • Fix Dialyzer warnings with the #unfinished_node{} record (see #42), thanks to @xinz.

Availability

In addition to this GitHub repository, yamerl is available as an Hex.pm package, with online documentation:

yamerl - yamerl 0.8.0

Published by dumbbell over 4 years ago

Changes

  • Add support for base64-encoded binaries (see #35).
  • Fix tagging of flow collection (see #34).

Availability

In addition to this GitHub repository, yamerl is available as an Hex.pm package, with online documentation:

yamerl - yamerl 0.7.0

Published by dumbbell over 4 years ago

Changes

  • Load the appropriate modules when a document indicates it follows YAML 1.1. Before, YAML 1.2 core schema modules would always be used, except if the caller explicitely set the schema to yaml11.

    Another consequence of this change is that multiple documents in a single stream should be parsed according to their YAML version if they specify a different one.

  • yamerl_constr takes a new option, ignore_unrecognized_tags, to ignore unrecognized tags (!) and construct a term as if the node was a plain untagged node.

Availability

In addition to this GitHub repository, yamerl is available as an Hex.pm package, with online documentation:

yamerl - yamerl 0.6.0

Published by dumbbell almost 7 years ago

Changes

  • Add a {map_node_format, proplist | map} to choose how YAML maps should be formatted (see #23).
  • Fix a typo in a yamerl_parsing_error record: unpected_token -> unexpected_token (see #21).

Availability

In addition to this GitHub repository, yamerl is available as an Hex.pm package, with online documentation:

yamerl - yamerl 0.5.0

Published by dumbbell over 7 years ago

Changes

  • Fixed an infinite loop when there is no character (e.g. a newline) after a document (...) or directive (---) end indicator (see #18).
  • Improved "Getting started" documentation, in particular for Elixir users.
  • Removed base2_to_integer/2 and base60_to_integer/3 from yamerl_node_int because this format is not supported by this syntax (see commit 91c75e33a363ba278e267688c0795cc26c1b07ad).
  • Exclude base*_to_integer() from the public API of this module (see commit 3d13c91ebc4503b88eb61b188b7ec32158d3ab01).

Availability

In addition to this GitHub repository, yamerl is available as an Hex.pm package, with online documentation:

yamerl - yamerl 0.4.0

Published by dumbbell almost 8 years ago

Changes

  • The build system was switched from Automake to Rebar 3 (#15). It should be easier for users to build, test and contribute to yamerl.

    About testing, the testsuite is now plain EUnit modules, as opposed to generated EUnit modules with Automake.

  • The documentation was moved from plain Markdown to regular EDoc. This should make users of some IDE easier with integrated documentation.

Availability

In addition to this GitHub repository, yamerl is available as an Hex.pm package, with online documentation:

yamerl - yamerl 0.3.3

Published by dumbbell almost 8 years ago

Changes

  • Fixed an infinite loop when parsing a block mapping such as test: (without a newline character at the end). See #14.
  • Added documentation generation using mix docs. This was a required step for Hex.pm.

Availability

In addition to this GitHub repository, yamerl is available as an Hex.pm package, with online documentation: