neon

🍸 Encodes and decodes NEON file format.

OTHER License

Downloads
45.5M
Stars
887
Committers
15

Bot releases are visible (Hide)

neon - Released version 3.4.1 Latest Release

Published by dg about 1 year ago

  • support for PHP 8.3
  • syntax: allowed tab as separator for dashed-blocks
  • INF & NAN encoding throws an exception #69
neon - Released version 3.4.0

Published by dg almost 2 years ago

  • requires PHP 8.0
  • removed deprecated syntax on/off & \x** (BC break)
neon - Released version 3.3.3

Published by dg over 2 years ago

  • 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
neon - Released version 3.3.2

Published by dg almost 3 years ago

  • ArrayNode::$indentation usage fixed #63
  • ArrayNode split to BlockArrayNode & InlineArrayNode
  • InlineArrayNode: added property $bracket
  • fixed tests
neon - Released version 3.3.1

Published by dg almost 3 years ago

  • 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
neon - Released version 3.3.0

Published by dg almost 3 years ago

  • completely rewritten parser
  • generates AST
  • added Traverser
  • encoder uses AST
neon - Released version 3.2.2

Published by dg over 3 years ago

  • uses mb_string when iconv is not available
  • improved PHP doc
neon - Released version 3.2.1

Published by dg about 4 years ago

  • 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.

neon - Released version 3.2.0

Published by dg over 4 years ago

  • 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
neon - Released version 3.1.2

Published by dg over 4 years ago

  • 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.

neon - Released version 3.0.1

Published by dg over 4 years ago

  • 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.

neon - Released version 3.1.1

Published by dg over 4 years ago

  • 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.

neon - Released version 3.1.0

Published by dg almost 5 years ago

  • requires PHP 7.1
  • Literal cannot begin with a character : when it follows after '" to improve JSON compatibility (syntax BC break)
  • Literal cannot begin with a character - or : followed by =[{( (syntax BC break)
  • Neon syntax: deprecated keywords on/off (#41)
  • Nette syntax: literals can begins with ! (#42)
  • removed neon.php
neon - Released version 3.0.0 🎉

Published by dg over 5 years ago

  • requires PHP 7.0
  • uses declare(strict_types=1)
  • uses PHP 7.0 scalar and return type hints
  • some classes & members marked as final (BC break)
  • Entity: $value is mandatory
neon - Released version 2.4.3

Published by dg over 6 years ago

  • type fixes, coding style

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

neon - Released version 2.4.2

Published by dg over 7 years ago

  • supports PHP up to 7.2
  • coding style: fixes, lowercase true/false/null

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

neon - Released version 2.4.1

Published by dg almost 8 years ago

  • Decoder: every regexp are possessive #36
  • Entity: added __set_state() support #35

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

neon - Released version 2.4.0

Published by dg over 8 years ago

  • requires PHP 5.6
  • added support for multilines strings nette/nette#1375
  • Decoder: added support for octal 0o777 and binary 0b11001 numbers #31
  • Decoder: generates DateTimeImmutable instead of DateTime (BC break)
  • Decoder: refactoring, added some constants

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

neon - Released version 2.3.5

Published by dg over 8 years ago

  • Decoder: fixed datetime regexp #29
  • Decoder: some regexps changed to constants

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

neon - Released version 2.3.4

Published by dg over 8 years ago

  • Decoder: fixed entity value conversion in the entity chain

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