react-apollo v2.1.0-alpha.0 Release Notes

    • ๐Ÿ†• NEW FEATURES

      • Added <Query /> component #1398
      • Add <ApolloConsumer /> component #1399 #1484
      • Added support for Preact when using getDataFromTree #1561
    • ๐Ÿ’ฅ BREAKING CHANGES [Removal of deprecated code]

    • ๐Ÿ’ฅ BREAKING CHANGES [TypeScript and Flow only]

      • typescript - graphql parameterized types streamlined for a) full typing; and b) ease of use; and c) consistency. New parameterized is: graphql<TProps,TData, TGraphQLVariables, TChildProps> where none are required and full typing only requires the first three params (TChildProps can be derived). #1402
      • Rename type ProviderProps to ApolloProviderProps #1467
      • Rename getDataFromTree type QueryResult to QueryTreeResult #1467
      • Rename type QueryProps to GraphqlQueryControls #1467 #1478
    • ๐Ÿ›  Fixes and Improvements

      • Fixed bug where link error prevents future requests
      • Fixed stack traces on non chrome browsers #1568
      • Fixed bug #1412 where the MockedProvider ignored variables when doing matching. This is potentially breaking because tests could break for which the variables don't match #1501
      • Update all dependencies, scripts' usage, prettier and typescript setup #1402
      • Tests are now linted and verified valid typescript #1402
      • Typescript - updated types for consistency and potential to pass through all types e.g. TProps, TData, TGraphQLVariables #1402
      • Typescript - added ChildDataProps and ChildMutateProps for optional stronger typed usage version of ChildProps #1402
      • Typescript - fix graphql HOC inference #1402
      • Made prettier solely responsible for formatting, removed all formatting linting rules from tslint #1452
      • Convert Query.test to tsx and parameterize types for Query #1462
      • Remove copied shallowEqual code and delegate to fbjs #1465
      • Update rollup configurations, refine package exports #1467
      • Removed unused gzip script #1468
      • Minify umd and ensure umd name consistency #1469
      • Converted test/test-utils/test-utils.test.js to test/test-utils.test.tsx #1475
      • Updates to examples/typescript #1471
      • Mutation test cleanup #1480
      • Removed react-native from the test suite #1451
      • Add client to Query's QueryResult #1488
      • Disregard falsy elements when walking tree in SSR #1495
      • Removed the key variables from the render prop result in the <Query /> #1497
      • Added <Subscription /> component #1483
      • Render callback should be typed with TData #1519