Skip to content

version 0.6.0

Compare
Choose a tag to compare
@nyamsprod nyamsprod released this 12 Nov 11:09
· 268 commits to master since this release

Added

  • The Container, MemberList, MemberOrderedMap, ParameterAccess interfaces.
  • OrderedList and InnerList implement the MemberList interface.
  • Parameters and Dictionnary implement the MemberOrderedMap interface.
  • The InvalidArgument exception.
  • Token::value is a readonly property.
  • Item::value method returns the decoded value of an Item (returns value can be float|int|string|bool).
  • Item::fromToken, Item::fromDecodedByteSequence , Item::fromEncodedByteSequence to ease Item creation.
  • Item::withValue to ease Item value update.
  • Parser methods also accepts Stringable objects.

Fixed

  • None.

Deprecated

  • None

Removed

  • [BC Break] __set_state implementation in all objects.
  • [BC Break] Token no longer implements the StructuredField interface.
  • [BC Break] Token::toHttpValue is removed; use the Item class to serialize a Token.
  • [BC Break] Token::toString is removed use its readonly property instead Token::value.
  • [BC Break] ByteSequence no longer implements the StructuredField interface.
  • [BC Break] ByteSequence::toHttpValue is removed; use the Item class to serialize a ByteSequence.
  • [BC Break] ::sanitize method is removed use Parameters::clear method instead if needed.
  • [BC Break] isEmpty method is removed use hasMembers method instead.
  • [BC Break] Parameters::value use Item::value method instead.
  • [BC Break] Parameters::values use Parameters::getIterator instead.
  • [BC Break] Item::value public readonly property use Item::value method instead.
  • [BC Break] Item::parameters public readonly property use Item::parameters method instead.
  • [BC Break] InnerList::parameters public readonly property use InnerList::parameters method instead.