Skip to content
@dg dg
Compare
Choose a tag to compare
  • Encoder: uses more readable single quote strings
  • Node::getSubNodes() changed to IteratorAggregate generator,
  • Traverser: added DontTraverseChildren & StopTraversal, $enter and $leave callbacks
  • Node: added $startLine & $endLine
  • Node: startPos & endPos renamed to startTokenPos & endTokenPos
  • cs, constants are PascalCase
@dg dg
Compare
Choose a tag to compare
  • ArrayNode::$indentation usage fixed #63
  • ArrayNode split to BlockArrayNode & InlineArrayNode
  • InlineArrayNode: added property $bracket
  • fixed tests
@dg dg
Compare
Choose a tag to compare
  • added Neon linter
  • added Neon::decodeFile()
  • Neon::decode() no longer removes BOM (BC break)
  • Neon::encode() $flags replaced with parameters
  • Neon, Encoder: added $indentation
  • Traverser: can return different nodes
@dg dg
Compare
Choose a tag to compare
  • completely rewritten parser
  • generates AST
  • added Traverser
  • encoder uses AST
@dg dg
Compare
Choose a tag to compare
  • uses mb_string when iconv is not available
  • improved PHP doc
@dg dg
Compare
Choose a tag to compare
  • Decoder: fixed \s in unicode, replaced with \n\t_
  • Encoder: removed duplicated code (#54)

For the details you can have a look at the diff.

@dg dg
Compare
Choose a tag to compare
  • now supports only UTF-8 mode and throws exception on invalid input (BC break)
  • syntax \xAA is deprecated in favor of \uAAAA (BC break)
  • Encoder: encodes multiline strings in """ format
@dg dg
Compare
Choose a tag to compare
  • Encoder: correctly encodes numeric strings
  • Decoder: date-time is not decoded in keys #48

For the details you can have a look at the diff.

@dg dg
Compare
Choose a tag to compare
  • Encoder: correctly encodes numeric strings
  • Decoder: date-time is not decoded in keys #48
  • Encoder: json_encode() error is escalated to exception

For the details you can have a look at the diff.

@dg dg
Compare
Choose a tag to compare
  • Encoder: json_encode() error is escalated to exception
  • Single quoted string accepts double '' to express one quote #45

For the details you can have a look at the diff.