RxPHP v2.0.0 Release Notes

Release Date: 2017-03-21 // about 7 years ago
  • ๐Ÿ”„ Changes and Additions

    • โž• Added global static Scheduler class that allows setting scheduler factory callables
    • โฑ Schedulers are now passed in during Observable construction or into operators as needed
    • โฑ Static Observable constructors and operators will get scheduler from global static Scheduler if not specified
    • PHP 7 is required
    • ๐Ÿšš HHVM support was removed
    • All files now declare(strict_types=1)
    • ๐Ÿ‘ป ObserverInterface::onError now takes a Throwable parameter instead of Exception
    • ๐Ÿ—„ subscribeCallback has been deprecated in favor of subscribe which now takes callables or an ObserverInterface implementation
    • ๐Ÿ—„ doOnNext and doOnEach have been deprecated in favor of do and follows the same syntax as subscribe
    • ๐Ÿ—„ catchError has been deprecated in favor of catch
    • ๐Ÿ—„ just has been deprecated in favor of of
    • ๐Ÿ—„ emptyObservable has been deprecated in favor of empty
    • โœ… switchLatest has been deprecated in favor of switch
    • Observable is now abstract and requires subclasses to define _subscribe
    • โž• Added toPromise and fromPromise operators
    • โœ… Marble tests are now supported
    • โฑ timeout now throws TimeoutException to allow detection of timeouts down stream
    • Parameter and return types have been added