graphql.macro-example
graphql.macro-example copied to clipboard
fix(deps): update apollo graphql packages - abandoned
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| apollo-cache-inmemory | 1.4.2 -> 1.6.6 |
||||
| apollo-client | 2.4.12 -> 2.6.10 |
||||
| apollo-link-http | 1.5.9 -> 1.5.17 |
||||
| react-apollo | 2.4.1 -> 2.5.8 |
Release Notes
apollographql/apollo-client
v1.6.6
v1.6.5
v1.6.3
v1.6.2
v1.6.1
v1.6.0
-
Support
new InMemoryCache({ freezeResults: true })to help enforce immutability.
@benjamn in #4514 -
Allow
IntrospectionFragmentMatcherto match fragments against the rootQuery, asHeuristicFragmentMatcherdoes.
@rynobax in #4620 -
Rerential identity (
===) of arrays in cache results will now be preserved for unchanged data.
@benjamn in commit f3091d6a -
Avoid adding
__typenamefield to@clientselection sets that have been@exported as input variables.
@benjamn in #4784
v1.5.1
v1.5.0
v1.4.3
apollographql/react-apollo
v2.5.8
2.5.8 (2019-06-21)
Bug Fixes
- Makes the use of
apollo-client2.6.3'sObservableQuery.resetQueryStoreErrorsmethod optional, for people who can't update toreact-apollo's newapollo-clientpeer dep of 2.6.3. @hwillson in #3151
v2.5.7
Improvements
- Make sure
MockedProvideris using the proper CJS/ESM bundle, when referencingApolloProvider.
@jure in #3029. - Adjust the
ApolloContextdefinition to play a bit more nicely withReact.createContexttypes.
@JoviDeCroock in #3018 - The result of a mutation is now made available to the wrapped component,
when using the
graphqlHOC.
@andycarrell in #3008 - Check equality of stringified variables in the
MockLinkto improve debugging experience used byMockedProvider.
@evans in #3078
Bug Fixes
- Removed leftover
apollo-client@betapeer dep.
@brentertz in #3064 - Stop setting optional input to
null, when using thegraphqlHOC.
@ZhengYuTay in #3056 - Fix typescript error caused by
querybeing mandatory in thefetchMoresignature.
@HsuTing in #3065 - Fixes an issue that caused the
Querycomponent to get stuck in an always loading state, caused by receiving an error (meaning subsequent valid responses couldn't be handled). TheQuerycomponent can now handle an error in a response, then continue to handle a valid response afterwards.
@hwillson in #3107 - Reorder
Subscriptioncomponent code to avoid setting state on unmounted component.
@jasonpaulos in #3139 - Fix component stuck in
loadingstate fornetwork-onlyfetch policy.
@jasonpaulos in #3126
v2.5.6
Improvements
-
Both the
Querycomponent andgraphqlHOC now accept areturnPartialDataprop. This is an important new feature, that should help address a lot of open Apollo Client / React Apollo issues, so we'll explain it here with an example. Before this release, if you run a query that looks like:const GET_MEMBER = gql` query GetMember($id: ID!) { member(id: $id) { id name } } `;in one component, the results are cached, then you run a superset query like the following in another component:
const GET_MEMBER_WITH_PLANS = gql` query GetMemberWithPlans($id: ID!) { member(id: $id) { id name plans { id title duration } } } `;Apollo Client will not re-use the partial data that was cached from the first query, when it preps and displays the second component. It can't find a cache hit for the full second query, so it fires the full query over the network.
With this release, if you set a
returnPartialDataprop totrueon the second component, thedataavailable to that component will be automatically pre-loaded with the parts of the query that can be found in the cache, before the full query is fired over the network. This means you can do things like showing partial data in your components, while the rest of the data is being loaded over the network.
v2.5.5
Improvements
v2.5.4
Bug Fixes
- Fixes
Could not find "client" in the context of ApolloConsumererrors when usingMockedProvider.
@hwillson in #2907 - Ensure
Querycomponents using afetchPolicyofno-cachehave their data preserved when the components tree is re-rendered.
@hwillson in #2914
Improvements
- Documentation updates.
@afenton90 in #2932
v2.5.3
Bug Fixes
- Fixed an infinite loop caused by using
setStatein theonError/onCompletedcallbacks of theQuerycomponent.
@chenesan in #2751 - Fixed an issue that prevented good results from showing up in a
Querycomponent, after an error was received, variables were adjusted, and then the good data was fetched.
@MerzDaniel in #2718 - Fixed an issue that prevented
Querycomponent updates from firing (under certain circumstances) due to the internallastResultvalue (that's used to help prevent unnecessary re-renders) not being updated.
@Glennrs in #2840
Improvements
-
MockedProvidernow accepts achildPropsprop that can be used to pass props down to a child component.
@miachenmtl in #2482 -
onCompletedcallbacks now use a destructuring-friendly type definition.
@jozanza in #2496 -
@connectiondirectives are now properly stripped fromMockedResponse's, when usingMockedProvider.
@ajmath in #2523 -
MockedProviderhas been updated to stop setting a defaultresolversvalue of{}, which means by default Apollo Client 2.5 local resolver functionality is not enabled when mocking withMockedProvider. This allows@clientfields to be passed through the mocked link chain, like people were used to before AC 2.5. When using this default mode you will see a dev only warning message about this like:Found @client directives in query but no client resolvers were specified. You can now pass apollo-link-state resolvers to the ApolloClient constructor.
This message can be safely ignored. If you want to use
MockedProviderwith AC 2.5's new local resolver functionality, you can pass your local resolver map into theMockedProviderresolversprop.
@ajmath in #2524 -
Improvements to the
graphqlHOC generics forfetchMoreandrefetch.
@EricMcRay in #2525 -
The
ApolloProvider/ApolloConsumerimplementations have been refactored to use React 16.3's new context API.
@wzrdzl in #2540 -
All
dependenciesanddevDependencieshave been updated to their latest versions, and related Typescript changes have been applied.
@hwillson in #2873
v2.5.2
Bug Fixes
- Export
Contexttype fromtypes.tsinstead ofwalkTree.ts, to reenableimport { Context } from 'react-apollo'(which has been broken since 2.4.0).
@benjamn in #2825
Improvements
-
Add
examples/rollupto enable application-level bundle measurement and demonstrate Rollup configuration best practices.
@benjamn in #2839 -
Bundle size reductions inspired by
examples/rollupapp.
@benjamn in #2842
v2.5.1
Bug Fixes
- Make sure
MockedProviderenables Apollo Client 2.5's local state handling, and allow custom / mocked resolvers to be passed in as props, and used with the created testApolloClientinstance.
@hwillson in #2825
v2.5.0
Improvements
- Ready to be used with Apollo Client 2.5 and its new local state management
features, as well as many overall code improvements to help reduce the React
Apollo bundle size.
#2758 - A function can now be set as a
MockedResponseresultwhen usingMockedProvider, such that every time the mocked result is returned, the function is run to calculate the result. This opens up new testing possibilities, like being able to verify if a mocked result was actually requested and received by a test.
@hwillson in #2788
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
Netlify BOT
Built with commit 7fd9c20c357339514d268579cdc2fd0ecfa490fa
https://deploy-preview-26--graphqlmacro.netlify.app
Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠️ Warning: custom changes will be lost.