Skip to content

Releases: willdurand/Negotiation

1.2.1

15 Jan 23:55

Choose a tag to compare

  • Fixed: return null if the Accept-header doesn’t match one of the supported mime-types

1.2.0

15 Jan 23:54

Choose a tag to compare

  • Added: AcceptHeader::isMediaRange() method

1.1.0

09 Dec 08:37

Choose a tag to compare

Split out the priority normalization logic (fixes #11) - A new method is available in the FormatNegotiator class:

/**
 * Ensure that any formats are converted to mime types.
 *
 * @param  array $priorities
 * @return array
 */
public function normalizePriorities($priorities);

1.0.3

06 Dec 16:10

Choose a tag to compare

  • Extract getMimeTypes() method in FormatNegotiator
  • Cosmetic changes
  • No parameters for LanguageNegotiator
  • Don't change case for parameters values
  • Parse parameters from the Accept header, and make them available into the AcceptHeader class

Important: in a perfect world, this should have been 1.1.0, not 1.0.3 but I made a mistake. Sorry...

1.0.2

21 Nov 10:33

Choose a tag to compare

  • Updated: documentation
  • Added: LanguageNegotiator
  • Refactored: Negotiator & FormatNegotiator
  • Fixed: rename test, add missing attributes

1.0.1

21 Nov 10:31

Choose a tag to compare

  • Fixed: LWS issue

1.0.0

27 Jul 11:34

Choose a tag to compare

First stable release.