Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump react-apollo from 2.0.4 to 2.1.4 #297

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot-preview[bot]
Copy link

Bumps react-apollo from 2.0.4 to 2.1.4.

Release notes

Sourced from react-apollo's releases.

Final 2.1 beta!

2.1.0-beta.3

  • Refactored and removed old graphql implementation in favor of new components
  • Removed QueryRecycler!! :yay:
  • Added query, mutation, and subscription higher order components
  • Aded <Subscription /> to the public API
  • Added prop-types validation to the <Query />, <Subscription /> and <ApolloConsumer /> component #1587
  • Added <Mutation /> component #1520
  • HoC props result-mapping function now receives prior return value as second argument.
  • Fix errorPolicy when 'all' not passing data and errors
  • Fix bundles and run test suite on all shippable code

Note Formal docs coming soon!

2.1 Beta!

This beta is the incredible work of rosskevin, excitement-engineer, and leoasis who took the roadmap and made it a better reality! Docs are coming ASAP for this alpha but here is the changelog as a start. You can also checkout a quick example while we get the upgrade guide in order:

Edit React Apollo 2.1 example

New Query Component

This component allows you to fetch data by just rendering it! You will get all the data, results and loading information as a parameter in a render prop in the children. Here's an example:

import gql from 'graphql-tag';
import { Query } from 'react-apollo';

const query = gql`
  query SomeQuery {
    foo {
      bar
      baz
    }
  }
`;
function MyComponent() {
  return (
    <Query query={query}>
      {(result) => {
        if (result.loading) return <Loading />;
        if (result.error) return <Error error={error} />;
         
        const { data } = result;
        
        return <h1>Hello {data.foo.bar} {data.foo.baz}!</h1>;
      })
    </Query>
</table> ... (truncated)
Changelog

Sourced from react-apollo's changelog.

2.1.4

  • Adds __typename for queries made with MockProvider and MockLink

2.1.3

  • Fixed issue where refetch was not possible after SSR
  • Fixed overly resubscribing from Subscription and allow passing function to determine shouldResubscribe

2.1.2

  • Simplified the MockedProvider API #1882
  • Fixed test-utils export

2.1.1

  • Fix uneccesary rerender on cache hit

2.1.0

  • Officially release new components!

2.1.0-rc.5

  • Turn back on TypeScript definitions

2.1.0-rc.4

  • Fix regression on refetchQueries #1794
  • Added a new called prop for mutations #1775
  • Fix inconsistency in naming of subscription document prop #1774

2.1.0-rc.3

  • remove .mjs support

2.1.0-rc.2

  • attempt to fix .mjs support for create react app

2.1.0-rc.1

  • Fix default values being set as falsy in options merging
  • Remove console.error call for unhandled errors for query-hoc (but keep in place for graphql hoc for backwards compat)
  • Ensure context can be passed as props

2.1.0-rc.0

  • bad build
... (truncated)
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot ignore this [minor|major] version will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use [this|these] label[s] will set the current labels as the default for future PRs for this repo and language

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Finally, you can contact us by mentioning @dependabot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant