Skip to content

3.0.0

Compare
Choose a tag to compare
@gabyvs gabyvs released this 31 Jan 04:04
· 33 commits to master since this release

3.0.0 (2017-01-30)

Breaking Changes

  • ClientObserver Removed observe() method and made this class injectable so components can directly access its new clientEvents stream. Checkout the example in the comments of the file clientObserver.ts
  • Repository Removed observe() method. SinceClientObserver is now injectable, users should inject it and access its publicly exposed clientEvents stream.
  • ObservableClient Removed observe() method. SinceClientObserver is now injectable, users should inject it and access its publicly exposed clientEvents stream.
  • ClientMock Now get/post/put/delete methods run asynchronously. If you had tests that used the mock and were relying on it being synchronous, they will break.

Features

  • ObservableClient Dependency on ClientObserver now optional. If provided, will provide event stream to spy on network calls
  • ObservableClientBase Split base functionality of ObservableClient into a base class which has no dependency on ContextService (via ApiRoutes). This is useful if you want to use the ClientObserver, but will not be using Repository (it requires ObservableClient) or ApiRoutes.
  • Progress/ProgressService By default, progress bar does not restart on each ajax call.
  • Progress/ProgressService Added optional restartOnAjax attribute which, when passed, restarts the progress bar on each spied call. This affords you complete control over the progress bar by filtering the client events which are sent to the ProgressService in your app.
  • ContextService Added public userEmail getter.

Bug Fixes

  • Client Fix bug where an empty string as response body would cause JS error.