apollo-client v2.4.0 Release Notes

Release Date: 2018-08-17 // over 5 years ago
    • โž• Add proper error handling for subscriptions. If you have defined an error handler on your subscription observer, it will now be called when an error comes back in a result, and the next handler will be skipped (similar to how we're handling errors with mutations). Previously, the error was just passed in the result to the next handler. If you don't have an error handler defined, the previous functionality is maintained, meaning the error is passed in the result, giving the next handler a chance to deal with it. This should help address backwards compatibility (and is the reason for the minor version bumo in this release). @clayne11 in #3800
    • ๐Ÿ‘ Allow an optimistic param to be passed into ApolloClient.readQuery and ApolloClient.readFragment, that when set to true, will allow optimistic results to be returned. Is false by default. @jay1337 in #2429
    • โœ… Optimistic tests cleanup. @joshribakoff in #3713
    • ๐Ÿ“ฆ Make sure each package has its own .npmignore, so they're taken into consideration when publishing via lerna. @hwillson in #3828
    • ๐Ÿ“š Documentation updates. @toolness in #3804 @pungggi in #3798 @lorensr in #3748 @joshribakoff in #3730 @yalamber in #3819 @pschreibs85 in #3812 @msreekm in #3808 @kamaltmo in #3806 @lorensr in #3739 @brainkim in #3680