React v0.3.0 Release Notes

Release Date: 2013-04-14 // about 11 years ago
    • BC break: [EventLoop] New timers API (@nrk)
    • ๐Ÿšš BC break: [EventLoop] Remove check on return value from stream callbacks (@nrk)
    • ๐Ÿšš BC break: [HttpClient] Socket connection handling moved to new SocketClient component
    • ๐Ÿ”‹ Feature: [SocketClient] New SocketClient component extracted from HttpClient (@clue)
    • ๐Ÿ”‹ Feature: [Stream] Factory method for BufferedSink

    EventLoop

    The timer callback now receives a Timer instance, with the following
    ๐Ÿ‘‰ useful methods:

    • cancel
    • isActive
    • setData($data)
    • getData

    And some other less common ones. These are prefered over
    LoopInterface::cancelTimer and LoopInterface::isTimerActive.

    You can no longer return a boolean from a periodic timer callback to abort
    it.

    HttpClient

    ๐Ÿšš HttpClient\*ConnectionManager has been moved to SocketClient\*Connector,
    and the getConnection method has been renamed to create.

    Before:

    $connectionManager->getConnection($host, $port);

    After:

    $connector->create($host, $port);