124 Commits
Author SHA1 Message Date
James Baxley 0ea299625a skip flaky test 2017-11-09 09:21:00 -05:00
David Glasser a883178ba8 Forward-port #1181 to 2.0 (#1330)
* Skip should prevent options from call in componentWillReceiveProps

Identical to #1181 which didn't make it to 2.0.

Test fails because it uses networkInterface. Next commit will fix for 2.0 API.

* Update test to apollo-client 2.0
2017-11-09 09:19:52 -05:00
James Baxley bf52614198 fix test 2017-10-24 10:36:50 -07:00
James Baxley 0240c41f67 added test for rerender of mutation and nested variables, export getDataFromTree on the client 2017-10-20 07:11:44 -07:00
James Baxley a28d865870 new rc start 2017-10-20 06:24:09 -07:00
James Baxley 010eebdd33 2.0 🎉 2017-09-28 16:54:42 -04:00
James Baxley 22e8a30fc3 initial 2.0 start 2017-09-27 00:39:11 -04:00
James Baxley b2b9f30a50 added premptive test for variable changes 2017-09-26 22:42:46 -04:00
James Baxley da566bf28b Upgrades (#1146)
* version bumps

* upgrade everything but flow

* changelog
2017-09-26 21:57:15 -04:00
James Baxley 1b28d92cf1 1007 (#1027)
* use up to date props for options, fixes #1005

* changelog

* handle componenDidMount refetch call
2017-08-24 13:59:41 -04:00
James Baxley 89d3310810 1005 (#1025)
* use up to date props for options, fixes #1005

* changelog

* spelling
2017-08-24 13:51:31 -04:00
James Baxley 6fea64b75e Query recyler (#1024)
* Fix issue from broken deploy

* remove old packages

* Remove 2.0 support

* ensure recycler is present before using it

* added test for optional recycler

* handle edge case for danger

* remove npm deploys on ci

* updated script for local deploy
2017-08-24 10:43:14 -04:00
James Baxley 5b0ec98aa8 Support 2.0 (#980)
* Fix issue from broken deploy

* suppor the 2.0 by checking initStore existence
2017-08-13 14:59:51 -04:00
Roman Coedo 93ba6ee34e Client scoped query recyclers (#513) (#876) 2017-08-13 14:32:40 -04:00
Andrew Kennedy 7308d20068 MockNetworkInterface match mock requests regardless of variable order (#973)
* MockNetworkInterface match regardless of variable order

* update changelog
2017-08-13 14:21:31 -04:00
Koen Punt 742e9b26f0 move from string ref to callback ref (#908)
* move from string ref to callback ref

since string refs are legacy
https://facebook.github.io/react/docs/refs-and-the-dom.html#legacy-api-string-refs

* update changelog

* fix tests
2017-08-01 12:12:19 -04:00
Andriy Komm d2bac9276e Fix/804 (#865)
* test for #804

* fix for #804

* changelog for #804
2017-07-19 08:44:50 -04:00
James Baxley 4b048f523f Hotfix react native hoist statics (#859)
* prevent options from being run when skip is present, update dep

* update changelog

* update changelog spelling

* comment out flaky test for now

* update test dir in dangerfile

* update danger file [ci skip]
2017-07-17 16:49:52 -04:00
James Baxley 8af4384ad2 run prettier on all files (#819) 2017-07-05 15:51:20 -04:00
Jonas Faber 23d131a7ec Add support for client in options (#729)
* add support for client in options

Adds support for client in graphql HoC to support usecases with more than one ApolloClient

* Client is no longer required in context because it can get passed via options.

* Dont use calculateOptions if using a mutation.

Because it checks if variables are present

* Use mapProps instead of calcluateOptions for componentWillReceiveProps.

* Update client if client props change.

* Skip-Test now no longer expects option.client to be not accesed.

* Add test for client in options.

* Update Changelog.md
2017-07-05 11:40:08 -04:00
James Baxley ddd3d8faab recycled query teardown (#740)
* increase setTimeout for intermittent test failre

* remove query before creating new observable

* add note about order until I can think how to test it

* don't create new observable during recyle

* Update package.json
2017-06-02 08:13:13 -04:00
James Baxley 999bab6d4a increase setTimeout for intermittent test failre (#739) 2017-05-31 23:58:51 -04:00
James Baxley 7cc8d2285e increased strictness of types (#695)
* increased strictness of typescript types

* add mutation to default child props

* lock ts version to greater than 2.3.0 and set state to be {}

* fix lint error

* lock jest to 19 for now

* added flow typings! TODO remove AC typings after they are tested and merged

* more strict types for server code and a few flow tweaks

* support bundled flow types

* change options name to fix AC collision and add flow smoke test

* lock RN versions

* version bump uglify

* fix uglify command
2017-05-29 22:59:53 -04:00
James Baxley 64ddd42a1d Revert "Revert "make testing more accessible with smaller files"" (#685)
* Revert "Revert "make testing more accessible with smaller files (#682)" (#684)"

This reverts commit dc077243ca.

* update 1.2.1 of apollo-client

* remove uneccessary expect statement
2017-05-05 22:18:20 -04:00
James Baxley dc077243ca Revert "make testing more accessible with smaller files (#682)" (#684)
This reverts commit 55c393db2f.
2017-05-03 23:30:14 -04:00
James Baxley 55c393db2f make testing more accessible with smaller files (#682) 2017-05-03 21:06:23 -04:00
Jacob Kristhammar e12fbb170c Use standby fetchPolicy for recycled queries (#671)
* Add skeleton for failing refetchQueries testcase (WIP)

* Update test case for refetching recycled queries

* Update testcase assertions

* Use standby fetchPolicy for recycled queries

* Remove irrelevant comments

* Update apollo-client version
2017-05-03 17:29:47 -04:00
James Baxley f6139148ec shouldComponentUpdate perf (#665)
* removed unneeded should component update and cleaned up test

* update changelog
2017-04-28 22:32:57 -04:00
Stephen Potter 574636d1c7 Merge branch 'master' into include-cached-data-in-child-error-data 2017-04-14 10:09:51 -04:00
Derek P Sifford 3a03b09b98 convert React.PropTypes to "prop-types" module 2017-04-13 10:31:55 -04:00
Stephen Poter bd71c547cb Added tests and fixed merging of getLastResult's root object instead of 'data' 2017-04-10 12:35:00 -04:00
Jacob Kristhammar 897f0e4814 Merge branch 'master' into master 2017-03-31 08:28:31 +02:00
Jonas Helfer da0e3060e9 Comment out broken test 2017-03-30 08:44:07 -07:00
Jacob Kristhammar c9d20c0050 Merge branch 'master' into master 2017-03-30 08:28:12 +02:00
Jonas Helfer 1dc30e7deb Update Apollo Client dependency 2017-03-27 16:02:46 -07:00
Jonas Helfer dcef97ca23 fix test that failed due to default dataIdFromObject 2017-03-22 18:28:00 -07:00
Wout Mertens be22dc225a ApolloProvider: don't override store if not passed (#550)
* ApolloProvider: don't override store if not passed

* Add changelog entry
2017-03-21 12:01:49 -04:00
Jonas Helfer e87240b5d0 Update queries.test.tsx 2017-03-19 18:08:02 -07:00
Jacob Kristhammar f653cd3daa Restore ObserableQuery options when reusing after recycled 2017-03-17 20:13:22 +01:00
Jacob Kristhammar b6ff87f2da Update test case to detect option change after recycle 2017-03-17 19:17:06 +01:00
Caleb Meredith 0729a033c4 add better test and fix errors 2017-03-17 10:57:32 -04:00
Wyatt McBain c18528c8af Failing tests for refetch 2017-03-16 16:31:02 -04:00
Wyatt McBain c36f3aaaf2 Add child test 2017-03-15 20:54:49 -04:00
Wyatt McBain 16149712cf Requested PR changes
* Requested ApolloProvider changes
* Add tests
2017-03-15 20:54:49 -04:00
Jacob Kristhammar e1bbde939a Add more tests 2017-03-13 19:10:12 +01:00
Caleb Meredith d39b3c1d1c Update queries.test.tsx 2017-03-13 13:53:28 -04:00
Caleb Meredith 9777716b95 Update queries.test.tsx 2017-03-13 13:53:14 -04:00
Jacob Kristhammar 9722637204 never fetch recycled queries on network interface 2017-03-13 18:46:26 +01:00
Jonas Helfer 187256aecc update tests to use fetchPolicy and set notifyOnNetworkStatusChange 2017-03-09 17:25:49 -08:00
Caleb Meredith 3b84354957 Update queries.test.tsx 2017-03-03 10:18:56 -05:00