Commit graph

2481 commits

Author SHA1 Message Date
Jesse Rosenberger
0b1f887db2
Lower version of apollo-server-azure-functions to publish correct version via lerna. 2018-11-06 16:02:39 -08:00
Michael Watson
6c87cbc291 Correct name of Azure implementation to match original name. (#1926) 2018-11-06 13:46:33 -08:00
Jesse Rosenberger
79fe6bf0bf
Publish
- apollo-server-azure-function@2.2.0-alpha.4
 - apollo-server-cloud-functions@2.2.0-alpha.4
 - apollo-server-cloudflare@2.2.0-alpha.4
 - apollo-server-core@2.2.0-alpha.4
 - apollo-server-express@2.2.0-alpha.4
 - apollo-server-hapi@2.2.0-alpha.4
 - apollo-server-integration-testsuite@2.2.0-alpha.4
 - apollo-server-koa@2.2.0-alpha.4
 - apollo-server-lambda@2.2.0-alpha.4
 - apollo-server-micro@2.2.0-alpha.4
 - apollo-server-plugin-base@0.1.0-alpha.4
 - apollo-server-testing@2.2.0-alpha.4
 - apollo-server@2.2.0-alpha.4
 - graphql-extensions@0.3.0-alpha.4
2018-11-06 11:33:35 -08:00
Jesse Rosenberger
52f210dcdd
Bump apollo-server-azure-functions to 2.2.0-alpha.3 to align versions. 2018-11-06 11:32:03 -08:00
Leonid Buneev
5b64cf9160 apollo-server-azure-function v2 implementation. (#1753)
Closes #1752.
2018-11-06 11:28:25 -08:00
Jesse Rosenberger
c757fe5522
Merge branch 'abernix/plugin-factory-function-not-class' 2018-11-06 10:19:11 -08:00
Jesse Rosenberger
25cbd3ad61
Don't require a plugin to subclass ApolloServerPlugin.
To avoid problems frequently associated with subclassing, and the possible
versioning ergonomics of subclassing the wrong version, this changes the
plugin infrastructure to no longer require subclassing the abstract class.
2018-11-06 10:01:52 -08:00
Renovate Bot
1acacf09a2 chore(deps): update dependency node-fetch to v2.2.1 2018-11-06 17:09:33 +00:00
Renovate Bot
b1664cdff0 chore(deps): update dependency hapi to v17.7.0 2018-11-06 11:54:10 +00:00
Renovate Bot
9dcd09948b chore(deps): update dependency @types/lodash to v4.14.118 2018-11-06 09:28:57 +00:00
Renovate Bot
cecf58da1c chore(deps): update dependency @types/koa-router to v7.0.33 2018-11-06 07:33:59 +00:00
Jesse Rosenberger
5ca4c07bd5
Publish
- apollo-cache-control@0.3.0-alpha.3
 - apollo-engine-reporting-protobuf@0.1.0-alpha.3
 - apollo-engine-reporting@0.1.0-alpha.3
 - apollo-server-cloud-functions@2.2.0-alpha.3
 - apollo-server-cloudflare@2.2.0-alpha.3
 - apollo-server-core@2.2.0-alpha.3
 - apollo-server-express@2.2.0-alpha.3
 - apollo-server-hapi@2.2.0-alpha.3
 - apollo-server-integration-testsuite@2.2.0-alpha.3
 - apollo-server-koa@2.2.0-alpha.3
 - apollo-server-lambda@2.2.0-alpha.3
 - apollo-server-micro@2.2.0-alpha.3
 - apollo-server-plugin-base@0.1.0-alpha.3
 - apollo-server-testing@2.2.0-alpha.3
 - apollo-server@2.2.0-alpha.3
 - apollo-tracing@0.3.0-alpha.3
 - graphql-extensions@0.3.0-alpha.3
2018-11-05 21:36:39 -08:00
Jesse Rosenberger
58711be91a
Bump apollo-engine-reporting-protobuf to align prerelease version suffix. 2018-11-05 21:22:20 -08:00
James Baxley
3d69124340 change clientId => clientReportingId and schemaBranch => schemaTag (#1921)
@abernix this should be a lot more clear 👍
2018-11-05 21:18:25 -08:00
Jesse Rosenberger
a6872c2f6c
Publish
- apollo-cache-control@0.3.0-alpha.2
 - apollo-datasource-rest@0.2.0-alpha.2
 - apollo-datasource@0.2.0-alpha.2
 - apollo-engine-reporting@0.1.0-alpha.2
 - apollo-server-cache-memcached@0.2.0-alpha.2
 - apollo-server-cache-redis@0.2.0-alpha.2
 - apollo-server-caching@0.2.0-alpha.2
 - apollo-server-cloud-functions@2.2.0-alpha.2
 - apollo-server-cloudflare@2.2.0-alpha.2
 - apollo-server-core@2.2.0-alpha.2
 - apollo-server-express@2.2.0-alpha.2
 - apollo-server-hapi@2.2.0-alpha.2
 - apollo-server-integration-testsuite@2.2.0-alpha.2
 - apollo-server-koa@2.2.0-alpha.2
 - apollo-server-lambda@2.2.0-alpha.2
 - apollo-server-micro@2.2.0-alpha.2
 - apollo-server-plugin-base@0.1.0-alpha.2
 - apollo-server-testing@2.2.0-alpha.2
 - apollo-server@2.2.0-alpha.2
 - apollo-tracing@0.3.0-alpha.2
 - graphql-extensions@0.3.0-alpha.2
2018-11-05 11:45:46 -08:00
Jesse Rosenberger
c5e1760894
Adjust apollo-server-testing to start at 2.2.0-alpha.2. 2018-11-05 11:43:15 -08:00
Jesse Rosenberger
d7d4495b7b
(perf) Stop adding the checkOperationPlugin on every request.
This was causing the `checkOperationPlugin` to be added to the list of
plugins to be executed, thus resulting in an additional plugin pass (of the
same plugin) for each request.

1st request = 1 plugin
2nd request = 2 of the same plugin
3rd request = 3 of the same plugin

Obviously, this was not intended.
2018-11-05 11:23:26 -08:00
Jake Dawkins
e3d5be954f Introduce apollo-server-testing package. (#1909) 2018-11-05 11:22:30 -08:00
Jesse Rosenberger
422609e621
Merge pull request #1900 from apollographql/abernix/preserve-typescript-2-compat
Preserve TypeScript 2 Backwards compatibility until Semver Major
2018-11-05 07:14:45 -08:00
Renovate Bot
edbcb971e9 chore(deps): update dependency @types/request to v2.48.1 2018-11-05 13:57:26 +00:00
Jesse Rosenberger
0dfa8ed39b
(compat) Avoid TypeScript 3.x features to maintain backwards compatibility.
This mostly reverts fd34771841 along with a
number of slight adjustments to avoid other typing luxuries which were
introduced with TypeScript 3.x.

While the generic `ServerOptionFunction` types and `HandlerArguments`
generic rest argument type were certainly welcome additions to the codebase,
they present a backwards compatibility problem for consumers of Apollo
Server who have not yet made the jump to TypeScript 3.x.

With any luck, when we bump the major version of Apollo Server to 3.x, and
in accordance with semantic versioning, we'll be in the position to
straight-up revert this commit.
2018-11-05 05:24:32 -08:00
Renovate Bot
e320818218 chore(deps): update dependency hapi to v17.6.4 2018-11-03 06:25:40 +00:00
Renovate Bot
217cbaa2be chore(deps): update dependency hapi to v17.6.3 2018-11-03 03:52:29 +00:00
Renovate Bot
1553f7d43c chore(deps): update dependency husky to v1.1.3 2018-11-02 08:52:04 +00:00
Renovate Bot
aac00244c9 chore(deps): update dependency hapi to v17.6.2 2018-11-02 08:05:25 +00:00
Renovate Bot
523fb0ca41 chore(deps): update dependency @types/node to v10.12.2 2018-11-02 06:25:15 +00:00
Jake Dawkins
75b19b82f2
Clarified wording of mocking docs (#1901)
* clarified wording of mocking docs

* Update mocking.md
2018-11-01 18:27:50 -04:00
Renovate Bot
ecca162ce3 chore(deps): update dependency @types/jest to v23.3.9 2018-10-31 05:49:50 +00:00
Renovate Bot
2401272918 chore(deps): update dependency @types/aws-lambda to v8.10.15 2018-10-31 05:02:33 +00:00
Renovate Bot
06df04e1a9 chore(deps): update dependency graphql-tools to v4.0.3 2018-10-30 19:07:42 +00:00
Tomáš Szabo
abbe382785 Make mocking configuration less confusing. (#1835)
* Make mocking configuration less confusing.
Setting mocks to false will always disable mocking.

* Updated CHANGELOG
2018-10-30 09:14:12 -07:00
Jesse Rosenberger
b841ed6530
Allow 0.5% drop in codecov since it sometimes drops by tenths of percents. 2018-10-30 17:04:36 +02:00
Jesse Rosenberger
64e9099f86
Export CloudFunctionGraphQLOptionsFunction type, like other integrations.
This wasn't currently being exported, but this in-between commit will make
sure that the commit which follows this can be reverted without
inadvertently dropping this export.
2018-10-30 12:50:18 +02:00
Jesse Rosenberger
b98191c431
Avoid Function.prototype.bind when invoking createGraphQLServerOptions.
By avoiding this pattern, we can maintain better typing for users of
TypeScript 2.8, which didn't maintain typings when passing through
`Function.prototype.bind` calls.

Also, personally, this just appears to be more readable.
2018-10-30 12:34:43 +02:00
Renovate Bot
a477bf9cd4 chore(deps): update dependency @types/node to v10.12.1 2018-10-30 06:29:55 +00:00
renovate[bot]
bda1a75d80 chore(deps): update dependency redis-mock to v0.37.0 (#1895) 2018-10-29 13:44:08 +01:00
renovate[bot]
f65281417f chore(deps): update dependency @types/jest to v23.3.8 (#1894) 2018-10-29 13:43:20 +01:00
renovate[bot]
6211f8b2b1 chore(deps): pin dependency @types/json-stable-stringify to 1.0.32 (#1887) 2018-10-29 13:41:40 +01:00
Jesse Rosenberger
b3da8a4391
Update package-lock.json to use https://registry.npmjs.org URLs. 2018-10-29 11:30:24 +02:00
Andre Eberhardt
52da28d6b1 Fix apollo-server-cache delete implementation for both redis and memcached (#1891) 2018-10-29 11:25:09 +02:00
Renovate Bot
7ad765090f chore(deps): update dependency @types/request to v2.48.0 2018-10-27 03:31:01 +00:00
Jesse Rosenberger
5b83883233
Publish
- apollo-cache-control@0.3.0-alpha.1
 - apollo-datasource-rest@0.2.0-alpha.1
 - apollo-datasource@0.2.0-alpha.1
 - apollo-engine-reporting-protobuf@0.1.0-alpha.1
 - apollo-engine-reporting@0.1.0-alpha.1
 - apollo-server-cache-memcached@0.2.0-alpha.1
 - apollo-server-cache-redis@0.2.0-alpha.1
 - apollo-server-caching@0.2.0-alpha.1
 - apollo-server-cloud-functions@2.2.0-alpha.1
 - apollo-server-cloudflare@2.2.0-alpha.1
 - apollo-server-core@2.2.0-alpha.1
 - apollo-server-env@2.1.0-alpha.1
 - apollo-server-express@2.2.0-alpha.1
 - apollo-server-hapi@2.2.0-alpha.1
 - apollo-server-integration-testsuite@2.2.0-alpha.1
 - apollo-server-koa@2.2.0-alpha.1
 - apollo-server-lambda@2.2.0-alpha.1
 - apollo-server-micro@2.2.0-alpha.1
 - apollo-server-plugin-base@0.1.0-alpha.1
 - apollo-server@2.2.0-alpha.1
 - apollo-tracing@0.3.0-alpha.1
 - graphql-extensions@0.3.0-alpha.1
2018-10-26 21:28:15 +03:00
Jesse Rosenberger
5e85f4646b
Update package-lock.json.
These all look fine too me, though I'm not sure why they were so far off.
2018-10-26 20:40:31 +03:00
Jesse Rosenberger
bcfd76ceed
Add missing dependency on graphql-playground-html to apollo-server-core. 2018-10-26 20:39:23 +03:00
James Baxley
8b918e5bb6 fix failing test for default branch name 2018-10-26 20:19:30 +03:00
James Baxley
3eb0c3e79a update protobuf and remove default branch 2018-10-26 20:19:30 +03:00
James Baxley
49052b81d9 move @types/json-stable-stringify up to root 2018-10-26 20:19:30 +03:00
James Baxley
a729831d03 Support new protobuf fields in reporting
This commit supports two new concepts for reporting:

1. Client identity
2. Schema awareness

Client identity allows the GraphQLRequestContext to be mapped into
`clientId`, `clientName`, and `clientVersion` which can be used to
filter and view requests and metrics by client information.

Schema awareness introduces schema branches which allow arbitrary
strings to generate new "branches" (or variants) of a schema.
2018-10-26 20:19:30 +03:00
James Baxley
2ece27d82e Pass requestContext to GraphQLExtension requestDidStart 2018-10-26 20:19:30 +03:00
James Baxley
d10f961646 Generate schemaHash from schema
This commit adds a new field to the GraphQLServiceContext which is
a hashed representation of the schema. This is useful as a key value
to represent the schema and is sent as part of reporting to engine
when enabled
2018-10-26 20:19:30 +03:00