213 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
Matt b52b017e52 initialize state to null if not when not set (#1310)
* initialize state to null if not set by components constructor, fixes #1249

* add changelog
2017-10-31 12:51:29 -07:00
Mouad Debbar f814f602bb include SSR improvements 2017-10-24 10:57:58 -07:00
Curtis Layne cf6e3a7b29 support arrays in ssr 2017-10-24 10:44:13 -07: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 2d3b10d96f Revert "Upgraded to 0.54.1 Flow" (#1125)
* Revert "Added variables types with Typescript (#997)"

This reverts commit edaacf9478.

* Revert "Upgraded to 0.54.1 Flow (#1002)"

This reverts commit c2b352151a.
2017-09-22 13:19:22 -04:00
Mathieu Masy edaacf9478 Added variables types with Typescript (#997)
* Added variables types with Typescript

* Fixed test with correct input type

* Updated changelog
2017-09-22 08:54:22 -04:00
Max Gordon c2b352151a Upgraded to 0.54.1 Flow (#1002)
* Upgraded to 0.53.1 Flow
Flow passes tests

* Added more examples
Also added comments explaining some of the oddities that can occur

* OwnProps should be an exact type used with spread
https://github.com/facebook/flow/issues/4586

* Added some tests using the  syntax

* Fixed order

* Updated flow to 0.54.1 and re-added the graphql that got lost for unkown reason

* Update package.json
2017-09-22 08:54:12 -04:00
Deokseong Kim 11058f390a false when one of shallowEqual arguments is falsy value (#1111)
* false when one of arguments is falsy value

* add change log
2017-09-22 08:20:00 -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
James Baxley abf4347acf fix exports (#925)
* fix exports

* update changelog
2017-08-01 12:15:43 -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
James Baxley 795a9bebd9 Flow exports (#919)
* update typings

* version bump
2017-07-31 21:36:55 -04:00
James Baxley 14121ea90c Flow to ts (#877)
* change type name to match ts

* update version

* back compat types

* update signature for classes and include a test
2017-07-21 10:53:14 -04:00
James Baxley 71c47b88ae Flow defaults (#873)
* start work on shipping flow types by default

* add back in dev deps

* update permissions on deploy script

* update shell script

* fix src dir

* clean up dir structure

* fix paths again

* update travis file

* version bump
2017-07-20 14:23:14 -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 8ee56e94d9 fix typescript usage (#862)
* fix typescript usage

* updated changelog

* add issue information to changelog

* Version bump

* update dangerfile
2017-07-17 21:59:00 -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
Jan Amann 1452b3cbf9 Fix server side rendering when using the cache-and-network fetchPolicy (#688)
* Fix server side rendering when using the ‘cache-and-network’ `fetchPolicy`.

* Updated changelog.
2017-05-04 08:13:35 -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