Skip to content

Releases: woohoolabs/harmony

3.0.1

13 Jun 19:17
Compare
Choose a tag to compare

ADDED:

  • Getters for MethodNotAllowed, MiddlewareNotExists and RouteNotFound exceptions
  • Exception message for MethodNotAllowed and RouteNotFound exceptions

3.0.0

22 May 13:15
Compare
Choose a tag to compare

ADDED:

  • Support for conditional middleware
  • Some basic built-in conditions (e.g.: ExactPathCondition)
  • Support for PHPUnit 5.0

CHANGED:

  • #8: Use StyleCI for CS checks
  • #9: Improved Travis config
  • Middleware returning null will throw MiddlewareWrongReturnType
  • Providing an ID for middleware became optional
  • Exception names became shorter
  • A MiddlewareNotFound exception will be thrown when removing a non-existent middleware with Harmony::removeMiddleware()
  • Renamed MiddlewareInterface to HarmonyMiddlewareInterface

FIXED:

  • @return PHPDoc comments for middleware were missing
  • DiactorosResponderMiddleware uses SapiEmitter by default
  • DiactorosResponderMiddleware used to be only usable as a final middleware

2.3.1

06 Mar 10:09
Compare
Choose a tag to compare

CHANGED:

  • #7: Removed unnecessary terminated property
  • Improved tests

2.3.0

01 Mar 14:36
Compare
Choose a tag to compare

CHANGED:

  • #5: Return a Response object for all the middlewares
  • Deprecated middlewares returning null
  • Middlewares must return a ResponseInterface instance, otherwise an exception will be thrown
  • Running tests on PHP 5.6 (code style) and PHP 7 (PHPUnit) instead of PHP 5.5 and PHP 5.6
  • Improved test coverage

2.2.0

16 Dec 19:37
Compare
Choose a tag to compare

The release contains breaking changes

ADDED:

  • Support for multiple final middlewares
  • Configuration option for DiactorosResponderMiddleware to not respond when headers have already been sent
  • Added middlewares to support output buffering
  • Example application

CHANGED:

  • Final middlewares are integrated with the normal ones

FIXED:

  • PHP version constraint in composer.json to correctly support PHP 7

2.1.0

06 Nov 21:09
Compare
Choose a tag to compare

CHANGED:

  • Made the ServerRequestInterface attribute name storing the request handler configurable
  • Simplified router definition of invokable controller classes
  • Improved and more extensive documentation

FIXED:

  • Made default middlewares compatible with other frameworks

2.0.1

27 Aug 21:26
Compare
Choose a tag to compare

FIXED:

  • Final middlewares could invoke all the remaining middlewares

2.0.0

16 Jul 20:40
Compare
Choose a tag to compare
Fixed dispatcher check

2.0.0-beta1

09 Jul 12:04
Compare
Choose a tag to compare
2.0.0-beta1 Pre-release
Pre-release
Fixed typo

1.0.1

28 Jun 19:12
Compare
Choose a tag to compare
Updated changelog for 1.0.1