Martijn Walraven
c5892f6fcd
Disable failing file upload test
2018-06-11 13:59:04 +02:00
Martijn Walraven
4a068cff74
Add engines field with node >= 8 in package.json
2018-06-11 13:21:51 +02:00
Martijn Walraven
1e1b49ec29
Update devDependencies, including typescript
2018-06-11 12:13:03 +02:00
Evans Hauser
4c6352aad7
v2.0.0-beta.5
2018-06-07 14:50:13 -07:00
Evans Hauser
8601919ad9
server,express,hapi: bump graphql-playground and express type versions
2018-06-06 12:03:21 -07:00
Evans Hauser
b07b9e8e8b
core,express: export gql tag directly to align with client
2018-06-06 11:02:01 -07:00
Evans Hauser
5079246bc4
apollo-server,core,hapi,express: bump package to newest beta.4
2018-06-04 10:16:54 -07:00
Evans Hauser
1e70a446b2
Enable Apollo Server 2 to have async context + test ( #1129 )
...
* core: add test for context as async function
* core,express: add support and test of context as async function
2018-06-04 09:46:55 -07:00
David Glasser
836616bd04
Turn on noUnusedLocals and noUnusedParameters ( #1126 )
2018-06-01 15:16:16 -07:00
Evans Hauser
db3316cbac
Merge branch 'version-2' into refactor-2.0
2018-06-01 13:36:34 -07:00
Evans Hauser
4405405321
hapi,express: fix graphql playground subscriptitionPath argument for typing
2018-06-01 12:34:49 -07:00
Evans Hauser
ec7394d1b3
apollo-server,core,hapi,express: bump package to newest beta
2018-06-01 12:34:49 -07:00
David Glasser
66189657b3
Rename ApolloServer.request to graphQLServerOptionsForRequest
2018-05-31 00:14:59 -07:00
Evans Hauser
63d0f72115
core: error resurfacing for merged schemas that hide errors in a CombineErrors
2018-05-30 22:40:27 -07:00
Evans Hauser
c5ba902277
express: add fallback for file uploads middleware if not enabled
2018-05-30 22:38:37 -07:00
Evans Hauser
4609ee94a5
core: evaluate context per request and differ error until caught in runQuery
2018-05-30 16:02:48 -07:00
Evans Hauser
da316908d2
runQuery accepts Request object that variants create ( #1108 )
...
* core: runQuery accepts Request object that integrations create
* core: add changelog for Requst in runQuery
* adonis: correct request object passed to runQuery
* core: change convertHttpMessageToRequest to convertNodeHttpToRequest
2018-05-29 21:37:38 -07:00
Evans Hauser
5412885cc0
apollo-server 2: uploads as schema enhancement fulfilled in registerServer ( #1071 )
...
* apollo-server-core: add file upload hooks and configuration
* apollo-server-core: make requestOptions and fileUploadsConfig public fields in ApolloServerBase
* apollo-server-express: initial fileuploads middleware
* apollo-server-hapi: initial file uploads middleware
* core: remove fileuploads from constructor and add merge capabilities
* express: add fileuploads to registerServer and single test
* hapi: add fileuploads schema merge to registerServer
* express: add check for EPIPE and ignore it due to upload server issue
* core: add scalar Upload to server construction
2018-05-29 15:58:52 -07:00
Evans Hauser
43d545f8ab
apollo-server-core: add request object to runHttpQuery for access to headers ( #1096 )
2018-05-24 15:43:17 -07:00
Evans Hauser
5b98a075b8
apollo-server-express: move import of apollo-server in tests to a require
2018-05-24 14:27:06 -07:00
Evans Hauser
9342658ac8
apollo-server-express: remove circular devDependeny on apollo-server for tests
2018-05-24 14:14:36 -07:00
Evans Hauser
f1fa8ade8a
apollo-server-express: tests constructor, registerServer options, and basic queries
2018-05-23 23:09:17 -07:00
Evans Hauser
1f784636d9
apollo-server: move health check into variant's registerServer call
2018-05-22 21:58:37 -07:00
Evans Hauser
712a562858
package.json: beta.2 for apollo-server, beta.1 for core/express, beta.0 for hapi
2018-05-22 11:16:59 -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
Evans Hauser
138a0b55f2
build: readd @types/node and type configuration for tsconfig
2018-05-20 21:05:11 -07:00
Evans Hauser
aad7c39001
build: update dependencies and remove extra node typings
2018-05-20 03:52:54 -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
db47867ccb
apollo-server-core: move subscriptions out of constructor into listen function
2018-05-11 15:54:24 -07:00
Evans Hauser
d08f862063
apollo-server-express: add bodyParserConfig option to the listen method to configure bodyParser
2018-05-11 15:54:23 -07:00
Evans Hauser
7dee30095e
apollo-server-express: fix tests to include error code
2018-05-11 15:53:18 -07:00
James Baxley
aaac1c8ff8
initial full beta
2018-05-11 15:53:16 -07:00
James Baxley
a55336598c
cloudflare
2018-05-11 15:53:14 -07:00
James Baxley
68dec79529
clean up and move pieces around
2018-05-11 15:53:14 -07:00
Evans Hauser
541476f3be
accept non application/json for simple get requests with ?query=
2018-05-11 15:53:11 -07:00
Evans Hauser
05fd515d5c
default apollo-server offers graphiql at all endpoints if request not application/json
2018-05-11 15:53:11 -07:00
Evans Hauser
cb09fef524
Errors: latest codes and add exports to the apollo-server package
2018-05-11 15:53:10 -07:00
Evans Hauser
0e68e2ec4f
errors: send stack in debug, codes, make ApolloErrors
2018-05-11 15:53:07 -07:00
Renovate Bot
d8fecdc5c8
chore(deps): update dependency @types/body-parser to v1.17.0
2018-04-25 08:02:19 +00:00
David Glasser
b32e89c060
v1.3.6
2018-04-24 11:35:14 -07:00
Jesse Rosenberger
9d0e7b6866
v1.3.5
2018-04-18 16:10:04 +03:00
Jesse Rosenberger
0a103ef5bd
Stop violating types by returning assertions from Mocha tests. ( #972 )
...
This change was introduced by the changes in apollographql/apollo-server#802
but first showed its head in apollographql/apollo-server#908 . The reason that
violations in new type definitions aren't being found until subsequent PRs
isn't entirely clear but, ignoring that CI-related annoyance, the problem
itself here is very concrete.
It traces back to a major version update to `@types/mocha` via [Exhibit A],
which makes it unacceptable to return anything besides a `Promise` or
_nothing_ from a Mocha test factory.
I agree with this change in principle, since generally speaking there can be
multiple `expect` statements in each test and there is no particular reason
that the last one's value should be getting returned as Mocha doesn't do
anything functional with it.
More than anything, this seems like an artifact of an ESLint rule which
mandated that the last value in a function be returned, à la CoffeeScript or
other languages.
This will fix the failing tests on apollographql/apollo-server#908 and other
PRs currently in-flight.
Exhibit A: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/24301
2018-04-18 15:37:47 +03:00
Jesse Rosenberger
f8ca710279
Use named arrow functions for all middlewares, including GraphiQL.
...
As originally reported in [0], this should make debugging performance issues
easier, since the name of the function will be properly displayed/shown in
flame-graphs.
[0]: https://github.com/apollographql/apollo-server/pull/827
2018-04-18 10:41:04 +03:00
Olivier Tassinari
e5e543b125
Use a named function for the middleware over an anonymous
...
It's making the investigation of performance issues easier.
2018-04-18 10:41:04 +03:00
Renovate Bot
38be32b4fc
chore(deps): update dependency @types/connect to v3.4.32
2018-04-17 07:21:05 +00:00
Jesse Rosenberger
c2bba6b867
Convert Buffer.byteLength
to string before assigning to Content-Length
. ( #956 )
...
This change seems necessary in order to meet the new type definitions for
`res.setHeader` which mandate that the argument be a string, or an array of
strings. Those type definitions were introduced via the `@types/node@9`
series of typing updates provided in [0], [1], [2].
With any luck, this will fix the failures being exhibited in CircleCI
tests[3] after we landed those typing updates.
[0]: https://github.com/apollographql/apollo-server/pull/907
[1]: https://github.com/apollographql/apollo-server/pull/927
[2]: https://github.com/apollographql/apollo-server/pull/939
[3]: https://circleci.com/gh/apollographql/apollo-server/1587
2018-04-11 11:17:55 +03:00
David Glasser
d4751e2f04
Update status badges for Circle correctly
2018-03-28 14:03:32 -07:00
David Glasser
80bce88b5b
Update status badges for Circle
2018-03-28 14:01:46 -07:00
David Glasser
bd2504e04b
v1.3.4
2018-03-28 13:57:11 -07:00