Martijn Walraven
0f6594ae8e
Don't skip APQs if no query is passed in
2018-10-09 21:37:29 +02:00
Martijn Walraven
59bc1c9318
Fix some request pipeline types
2018-10-09 21:35:51 +02:00
Martijn Walraven
e40f4a2b9b
Add additional lifecycle hooks and allow returning didEnd handlers
2018-10-09 17:29:21 +02:00
Martijn Walraven
5b1760d78a
Update graphql-subscriptions
dependency to 1.0.0 in all packages
2018-10-09 12:18:25 +02:00
Martijn Walraven
960810c3f2
Remove jest
types from tsconfig.base
and add it to test configs
2018-10-09 12:02:11 +02:00
Martijn Walraven
f4234ca9c8
Move Jest configuration from package.json
to jest.config.js
2018-10-09 11:44:16 +02:00
Martijn Walraven
02b645b347
Update graphql-subscriptions
dependency to 1.0.0
2018-10-09 11:42:00 +02:00
Martijn Walraven
b7c9a6d8fe
Add @types/ws
and update ws
dependency
2018-10-09 11:38:46 +02:00
Martijn Walraven
b5715410fb
Merge remote-tracking branch 'origin/master' into abernix/re-new-request-pipeline
2018-10-09 11:30:16 +02:00
renovate[bot]
ebe8b39d3b
chore(deps): update dependency graphql-tools to v4 ( #1771 )
2018-10-09 11:27:59 +02:00
renovate[bot]
5c115a17f1
chore(deps): update dependency @types/redis to v2.8.7 ( #1785 )
2018-10-09 11:21:30 +02:00
renovate[bot]
f29ec2ef56
chore(deps): update dependency @types/node to v10.11.5 ( #1784 )
2018-10-09 11:20:41 +02:00
renovate[bot]
87cdcc3ebf
chore(deps): update dependency @types/jest to v23.3.4 ( #1783 )
2018-10-09 11:19:56 +02:00
Renovate Bot
bf603653a0
chore(deps): update dependency @types/graphql to v14.0.2
2018-10-09 09:02:21 +00:00
Martijn Walraven
428430c1dd
Enable strict typing for apollo-server-express and fix issues
2018-10-08 21:50:44 +02:00
Martijn Walraven
00e9838c66
Move shared type definitions to top-level types
directory
2018-10-08 21:15:55 +02:00
Renovate Bot
f920f5f610
chore(deps): update dependency ts-jest to v23.10.4
2018-10-08 13:58:53 +00:00
Martijn Walraven
f3e46ca861
Make ApolloServerPlugin#serverWillStart
async
2018-10-08 14:32:16 +02:00
Martijn Walraven
a12673a432
WIP of passing through plugins
to pipeline and calling lifecycle methods
2018-10-08 14:25:32 +02:00
Martijn Walraven
f11914ac71
Type plugin definitions and invoke serverWillStart
with service context
2018-10-08 13:50:47 +02:00
Jesse Rosenberger
65088d030b
Merge pull request #1772 from apollographql/typescript-project-references
...
Use TypeScript project references
2018-10-08 12:36:04 +03:00
Martijn Walraven
c28e3e2087
Add note about http
property in GraphQLRequest
needing to be optional
2018-10-08 11:16:47 +02:00
Martijn Walraven
ba61960430
Clean up passing throughhttp
property in GraphQLResponse
2018-10-08 11:03:01 +02:00
Martijn Walraven
10e12e8b55
Add compile:clean run script to clean compiler output
2018-10-07 18:23:56 +02:00
Martijn Walraven
5281f3f98f
Introduce request context and refactor pipeline code
2018-10-07 18:23:27 +02:00
Martijn Walraven
f4d3a37f78
Fix failing tests by passing in structured engine apiKey
...
Since activating the EngineReportingAgent is now dependent on being able to extract an engineServiceId from the API key, tests need to specify one that follows the expected structure.
2018-10-06 08:39:39 +02:00
Martijn Walraven
231c7f1ece
Add watch and test:watch run scripts
2018-10-06 08:35:46 +02:00
Martijn Walraven
e928adfdfc
Simplify plugin API and fix circular dependency issues
...
We compile `requestPipelineAPI.ts` as a separate TypeScript project to avoid circular dependency issues from the `apollo-server-plugin-base` package depending on the types in `apollo-server-core`.
2018-10-06 06:59:32 +02:00
Martijn Walraven
482a32008d
Fix new type error in TypeScript 3.1 with explicit cast
2018-10-06 04:56:19 +02:00
Martijn Walraven
282ea7e022
Merge remote-tracking branch 'origin/typescript-project-references' into abernix/re-new-request-pipeline
2018-10-06 03:49:36 +02:00
Martijn Walraven
6654c0d1b7
Remove unused configuration options from tsconfig.test.json
2018-10-06 00:04:03 +02:00
Martijn Walraven
669b35c328
Upgrade ts-jest and fix config
2018-10-05 23:43:46 +02:00
Martijn Walraven
11a13cd3dd
Remove apollo-server-env as a project reference
...
We can't use `apollo-server-env` as a project reference because that requires `composite: true`, and that implies `declaration: true`, which doesn't work for `apollo-server-env` because we need to write our own declaration files for re-exported imports.
This commit also removes `apollo-engine-reporting-protobuf` as a reference, which errored out because it doesn't actually contain any TypeScript code.
2018-10-05 23:05:49 +02:00
Martijn Walraven
8932091e67
Add root level tsconfig.json as entry point
2018-10-05 21:48:49 +02:00
Martijn Walraven
1aee215e68
Switch to tsc --build and remove run scripts from packages
2018-10-05 17:48:34 +02:00
Martijn Walraven
fcaa6ad79d
Enable TypeScript project references
2018-10-05 17:47:29 +02:00
Martijn Walraven
5d03ae1650
Update to TypeScript 3.1
2018-10-05 17:18:13 +02:00
Martijn Walraven
f051c7cb80
Add comment about cloning the context
2018-10-05 16:30:21 +02:00
Jesse Rosenberger
aeabb861c5
Merge remote-tracking branch 'public/master' into abernix/re-new-request-pipeline
2018-10-05 16:43:00 +03:00
Jesse Rosenberger
d7d7b0babd
Merge branch 'abernix/plugin-base' into abernix/re-new-request-pipeline
2018-10-05 16:27:34 +03:00
Jesse Rosenberger
0ebf8900a0
Have npm run clean
also remove the root node_modules
.
...
...Because clean is clean!
2018-10-05 16:23:27 +03:00
Jesse Rosenberger
6ea82405ad
Add apollo-server-plugin-base
to the monorepo's root package{-lock}?.json
.
2018-10-05 16:12:05 +03:00
Martijn Walraven
87463582ed
Fix cacheControl property in Config and GraphQLServerOptions
...
While cacheControl can take a boolean when passing it in to ApolloServer as part of a Config, these will be converted to default options before passing them on as options.
2018-10-05 14:33:32 +02:00
Jesse Rosenberger
68f50cd09c
Import specifically createHash
, rather than * as crypto
from crypto
.
...
This silences the deprecation messages which have been showing up in recent
local development on the new request pipeline work. e.g.:
> ```
> [DEP0010] DeprecationWarning: crypto.createCredentials is deprecated.
> Use tls.createSecureContext instead.
> [DEP0011] DeprecationWarning:
> crypto.Credentials is deprecated. Use tls.SecureContext instead.
> ```
2018-10-05 13:12:10 +02:00
Jesse Rosenberger
07a9493996
Merge remote-tracking branch 'origin/abernix/re-new-request-pipeline' into HEAD
2018-10-05 13:51:33 +03:00
Martijn Walraven
d80209e4aa
Fix typing of context property in GraphQLServerOptions
...
The actual resolving of the context happens in ApolloServer#graphQLServerOptions, but errors thrown while doing that are currently converted to a throwing function.
2018-10-05 09:48:58 +02:00
Martijn Walraven
891d62983a
Refactor runHttpQuery and extract cache policy computation into CacheControlExtension
2018-10-05 09:08:12 +02:00
Jesse Rosenberger
2479473664
Introduce basic plugin and limited API to apollo-server-core
.
2018-10-04 23:25:42 +03:00
Jesse Rosenberger
1ec383db36
Introduce a method to simplify the Engine service identifier.
2018-10-04 23:25:42 +03:00
Jesse Rosenberger
94a146a07e
Introduce a apollo-server-plugin-base
as a foundation for plugins.
2018-10-04 23:25:42 +03:00