Commit graph

1884 commits

Author SHA1 Message Date
Evans Hauser
c9eaae6567
Merge pull request #1074 from apollographql/server-2.0/testing
Add Tests for base server functionality and fix issues with errors + subscriptions
2018-05-21 23:16:11 -07:00
Evans Hauser
ee7c99b908
tests: fix unhandled rejection log in test runner 2018-05-21 20:42:07 -07:00
Evans Hauser
40d8879fa3
apollo-server-core: runHttpQuery accepts options function with arguments 2018-05-21 20:34:51 -07:00
David Glasser
ae3fc36da0
Update all apollo-server-core dependencies 2018-05-21 20:27:57 -07:00
Evans Hauser
d935e517e6
apollo-server-core: update graphql-tools 2018-05-21 20:21:58 -07:00
Renovate Bot
4d5adaa454 chore(deps): update dependency supertest to v3.1.0 2018-05-22 03:01:59 +00:00
Renovate Bot
b8ebaf13c6 chore(deps): update dependency mocha to v5.2.0 2018-05-22 01:15:36 +00:00
Renovate Bot
f71f071073 chore(deps): update dependency koa-bodyparser to v4.2.1 2018-05-22 00:03:09 +00:00
Evans Hauser
582698c09c
package.json: update @types/graphql 2018-05-21 16:54:46 -07:00
Evans Hauser
361b661abc
lerna: add hoist option 2018-05-21 16:17:17 -07:00
Evans Hauser
2e9d4689b5
apollo-server-core: add comment about ApolloError construction 2018-05-21 16:08:32 -07:00
Evans Hauser
b568677a1c
apollo-server-azure-functions: add @types/node 2018-05-21 16:06:52 -07:00
Renovate Bot
c7cca123e2 chore(deps): update dependency body-parser to v1.18.3 2018-05-21 23:02:04 +00:00
Evans Hauser
23f5b76f10
apollo-server-core: ApolloError extends Error and implements GraphQLError 2018-05-21 15:41:36 -07:00
Evans Hauser
aea7c4e669
apollo-server-core: fix test after update typings to node 10 2018-05-21 15:37:58 -07:00
Evans Hauser
4f009777ba
apollo-server-core: fix typings on operation ast check for null ast 2018-05-21 15:33:10 -07:00
Evans Hauser
84e763358e
package.json: remove node and graphql types from root and unnecessary variants 2018-05-21 15:31:57 -07:00
Evans Hauser
072aef410b
tsconfig: remove typeRoots from tsconfig and automatic retreival of node types 2018-05-21 15:29:37 -07:00
Renovate Bot
1a2d5126f2 chore(deps): update dependency @types/restify to v5.0.8 2018-05-21 21:10:46 +00:00
Renovate Bot
bb6c3569dc chore(deps): update dependency @types/aws-lambda to v8.10.4 2018-05-21 19:02:25 +00:00
Renovate Bot
fa14b3d152 chore(deps): update dependency @types/node to v9.6.18 2018-05-21 17:02:24 +00:00
Jesse Rosenberger
d2c7945b72
tests: Stop testing Node.js 4, which has reached the end of its LTS. (#1026)
Node.js 4 will no longer be receiving any additional updates from the
Node.js foundation, as per the expected LTS schedule[0] and their blog post:

https://medium.com/the-node-js-collection/april-2018-release-updates-from-the-node-js-project-71687e1f7742

[0]: https://github.com/nodejs/LTS
2018-05-21 17:59:15 +02:00
Jesse Rosenberger
f5982b28cb
Merge pull request #1069 from petetnt/patch-1
Fix typos in setup.md
2018-05-21 16:39:10 +02:00
Evans Hauser
04006e4bb4
build: skipLibraryChecks when compiling 2018-05-20 21:05:52 -07:00
Evans Hauser
138a0b55f2
build: readd @types/node and type configuration for tsconfig 2018-05-20 21:05:11 -07:00
Evans Hauser
5749c0afec
apollo-server-core: test for starting up engine 2018-05-20 20:15:01 -07:00
Evans Hauser
6ab3a62f37
apollo-server-core: add changelog for error prototyping fixes 2018-05-20 05:43:46 -07:00
Evans Hauser
c5687aea66
apollo-server-core: await server stop and restore node env in test 2018-05-20 03:54:10 -07:00
Evans Hauser
aad7c39001
build: update dependencies and remove extra node typings 2018-05-20 03:52:54 -07:00
Evans Hauser
373522114f
apollo-server-core: add tests for ApolloServerBase basic functionality 2018-05-20 02:32:09 -07:00
Evans Hauser
a3daf7d551
apollo-server-core: keep referrence to subscriptions server and clean it up on stop 2018-05-20 02:18:32 -07:00
Evans Hauser
858216c97a
apollo-server-core: move environment checking into the constructor to enable testing 2018-05-20 02:12:43 -07:00
Evans Hauser
1ffac8b767
apollo-server-core: add instanceof error tests thanks to @JustinDSN 2018-05-20 02:10:07 -07:00
Evans Hauser
3c71f34cee
apollo-server-core: set error prototypes explicitly 2018-05-20 02:07:46 -07:00
Jesse Rosenberger
bb92f1edb6
Merge pull request #1021 from Hoishin/fix-docs
fix graphiql docs for hapi
2018-05-18 15:56:04 +02:00
hoishin
1a009c6d4d fix graphiql docs for hapi 2018-05-17 14:19:27 -06:00
Evans Hauser
8fd2c12b8f
apollo-server-core: add test for errors 2018-05-16 16:03:09 -07:00
Evans Hauser
226770819d
apollo-server-core: check for options as optional 2018-05-16 15:57:51 -07:00
Evans Hauser
8e1f3545c4
apollo-server-core: type errors returned as ApolloErrors and add ability to reference arbitrary fields 2018-05-16 14:46:33 -07:00
Pete Nykänen
4ce5188b6e
Fix typos in setup.md 2018-05-15 23:37:19 +03:00
Evans Hauser
973b096ea3
apollo-server-core: enableIntrospection -> introspection 2018-05-11 17:33:52 -07:00
Evans Hauser
0e4848d5e1
apollo-server: subscriptions options condensed to on option and ensure subscriptions path is set 2018-05-11 17:30:52 -07:00
Evans Hauser
5d279001ca
apollo-server-core: feedback from #979 to improve readability and spelling 2018-05-11 17:00:45 -07:00
Evans Hauser
ee6994b708
apollo-server-hapi: remove subscriptions boolean from register options and check subscriptionsEnabled 2018-05-11 15:54:25 -07:00
Evans Hauser
e10bf1d590
apollo-server-hapi: update README to reflect Apollo-server 2 changes 2018-05-11 15:54:25 -07:00
Evans Hauser
6b80ac96a1
apollo-server-hapi: fix graphql gui request, bind server listen, and check for autoListen: false 2018-05-11 15:54:25 -07:00
Evans Hauser
98ca26a303
apollo-server-hapi: initial implementation of apollo-server base class 2018-05-11 15:54:24 -07:00
Evans Hauser
9fa4a8a62b
docs: add parameter movement from constructor to listen to changelog 2018-05-11 15:54:24 -07:00
Evans Hauser
db47867ccb
apollo-server-core: move subscriptions out of constructor into listen function 2018-05-11 15:54:24 -07:00
Seth Madison
8072312b99
bump version of subscriptions-transport-ws for graphiql
The newer subscription client has a more forgiving default ka timeout
2018-05-11 15:54:24 -07:00