renovate[bot]
fa5e299d1a
chore(deps): update dependency @types/graphql to v14.0.6 ( #2309 )
2019-02-13 04:15:39 +00:00
Ben Newman
4116b2ff4a
Publish
...
- apollo-engine-reporting@1.0.1
- apollo-server-azure-functions@2.4.1
- apollo-server-cloud-functions@2.4.1
- apollo-server-cloudflare@2.4.1
- apollo-server-core@2.4.1
- apollo-server-express@2.4.1
- apollo-server-hapi@2.4.1
- apollo-server-integration-testsuite@2.4.1
- apollo-server-koa@2.4.1
- apollo-server-lambda@2.4.1
- apollo-server-micro@2.4.1
- apollo-server-plugin-base@0.3.1
- apollo-server-testing@2.4.1
- apollo-server@2.4.1
- graphql-extensions@0.5.1
2019-02-12 16:34:47 -05:00
Ben Newman
f65c0fcd5f
Update package-lock.json after adding sha.js and removing lodash.
2019-02-12 16:23:40 -05:00
Ben Newman
a46560b05e
Update CHANGELOG.md for changes included in version 2.4.1.
2019-02-12 16:08:47 -05:00
Ben Newman
b89de2675b
Allow passing parseOptions to ApolloServerBase constructor. ( #2289 )
2019-02-12 14:09:12 -05:00
Ben Newman
3f7a7f3d67
Avoid importing entire crypto dependency tree if not in Node.js. ( #2304 )
...
The apollo-server-core package uses Node's built-in crypto module only to
create SHA-256 and -512 hashes.
When we're actually running in Node, the native crypto library is clearly
the best way to create these hashes, not least because we can assume it
will be available without having to bundle it first.
Outside of Node (such as in React Native apps), bundlers tend to fall back
on the crypto-browserify polyfill, which comprises more than a hundred
separate modules. Importing this polyfill at runtime (likely during
application startup) takes precious time and memory, even though almost
all of it is unused.
Since we only need to create SHA hashes, we can import the much smaller
sha.js library in non-Node environments, which happens to be what
crypto-browserify uses for SHA hashing, and is a widely used npm package
in its own right: https://www.npmjs.com/package/sha.js .
2019-02-12 14:07:42 -05:00
Chang Wang
bf120018bf
Await on graphql.execute() before calling executionDidEnd handler (AS-59) ( #2298 )
...
* Wait on graphql.execute() before calling end handler
* Update changelog
2019-02-12 20:34:56 +02:00
Jacob Marshall
e3070a51d6
Correct Azure Functions type definitions ( #2287 )
...
* Rename azureFunctions.d.ts to azureFunctions.ts
See https://github.com/apollographql/apollo-server/issues/2085#issuecomment-449686772
* Update CHANGELOG.md
2019-02-12 18:28:12 +02:00
Ben Newman
543b9c8432
Require apollo-engine-reporting only if EngineReportingAgent used. ( #2305 )
...
When getEngineServiceId does not return a truthy value, we can save memory
and startup time by avoiding importing apollo-engine-reporting, which
(among its other dependencies) imports the protobuf.js implementation.
2019-02-12 11:21:07 -05:00
Ben Newman
96351a4db6
Remove unused lodash dependency. ( #2303 )
...
The only usage of lodash was removed by @martijnwalraven in commit
a09d514e59
.
2019-02-12 17:44:22 +02:00
renovate[bot]
73a450c335
chore(deps): update dependency lerna to v3.11.1 ( #2301 )
2019-02-12 05:21:31 +00:00
renovate[bot]
8b99aff0f0
chore(deps): update dependency @types/node to v10.12.25 ( #2300 )
2019-02-12 04:20:14 +00:00
renovate[bot]
f3760c6c6d
chore(deps): update dependency @types/node-fetch to v2.1.6 ( #2292 )
2019-02-09 05:21:23 +00:00
renovate[bot]
a6704cba6e
chore(deps): update dependency @types/node to v10.12.24 ( #2291 )
2019-02-09 04:24:15 +00:00
Jesse Rosenberger
cb584fad25
Merge pull request #2290 from apollographql/revert-2283-renovate/aws-lambda-8.x
...
Revert "chore(deps): update dependency @types/aws-lambda to v8.10.19"
2019-02-08 22:17:17 +02:00
Jesse Rosenberger
61fb8bc6b7
Disable Renovate "automerge".
2019-02-08 22:14:02 +02:00
Jesse Rosenberger
67ddcc9f82
Revert "chore(deps): update dependency @types/aws-lambda to v8.10.19 ( #2283 )"
...
This reverts commit b493b09d64
.
2019-02-08 22:12:24 +02:00
Jesse Rosenberger
b4df18b31a
Merge branch 'master' into re-stage-pr-1971
2019-02-08 12:48:41 +02:00
Jesse Rosenberger
a849cf9ba2
Merge branch 'pull-1760' into re-stage-pr-1971
2019-02-08 12:41:55 +02:00
Jesse Rosenberger
5065360cdb
Update CHANGELOG.md to remove vNEXT
from v2.4.0 header.
...
This was inadvertently left in place as I didn't run into the usual
merge-conflict that I usually do on the CHANGELOG.md which is my natural
ergonomic which usually leads me to fixing it. Apologies!
2019-02-08 12:17:57 +02:00
renovate[bot]
0c98fbdcff
chore(deps): update dependency typescript to v3.3.3 ( #2286 )
2019-02-08 07:18:32 +00:00
renovate[bot]
e685a421c4
chore(deps): update dependency lerna to v3.11.0 ( #2285 )
2019-02-08 06:20:21 +00:00
renovate[bot]
40d97a7929
chore(deps): update dependency @types/node to v10.12.23 ( #2284 )
2019-02-08 05:19:58 +00:00
renovate[bot]
b493b09d64
chore(deps): update dependency @types/aws-lambda to v8.10.19 ( #2283 )
2019-02-08 04:23:20 +00:00
Jesse Rosenberger
a3222ece11
Publish
...
- apollo-cache-control@0.5.0
- apollo-datasource-rest@0.3.0
- apollo-datasource@0.3.0
- apollo-engine-reporting@1.0.0
- apollo-graphql@0.1.0
- apollo-server-azure-functions@2.4.0
- apollo-server-cache-memcached@0.3.0
- apollo-server-cache-redis@0.3.0
- apollo-server-caching@0.3.0
- apollo-server-cloud-functions@2.4.0
- apollo-server-cloudflare@2.4.0
- apollo-server-core@2.4.0
- apollo-server-express@2.4.0
- apollo-server-hapi@2.4.0
- apollo-server-integration-testsuite@2.4.0
- apollo-server-koa@2.4.0
- apollo-server-lambda@2.4.0
- apollo-server-micro@2.4.0
- apollo-server-plugin-base@0.3.0
- apollo-server-testing@2.4.0
- apollo-server@2.4.0
- apollo-tracing@0.5.0
- graphql-extensions@0.5.0
2019-02-07 14:08:23 +02:00
Jesse Rosenberger
c5b71f876d
Merge pull request #2215 from apollographql/release-2.4.0
...
Release 2.4.0
2019-02-07 13:28:26 +02:00
Jesse Rosenberger
f74610b290
Publish
...
- apollo-cache-control@0.5.0-alpha.3
- apollo-datasource-rest@0.3.0-alpha.3
- apollo-engine-reporting@1.0.0-alpha.3
- apollo-graphql@0.0.1-alpha.1
- apollo-server-azure-functions@2.4.0-alpha.4
- apollo-server-cloud-functions@2.4.0-alpha.4
- apollo-server-cloudflare@2.4.0-alpha.4
- apollo-server-core@2.4.0-alpha.4
- apollo-server-express@2.4.0-alpha.4
- apollo-server-hapi@2.4.0-alpha.4
- apollo-server-integration-testsuite@2.4.0-alpha.4
- apollo-server-koa@2.4.0-alpha.4
- apollo-server-lambda@2.4.0-alpha.4
- apollo-server-micro@2.4.0-alpha.4
- apollo-server-plugin-base@0.3.0-alpha.4
- apollo-server-testing@2.4.0-alpha.4
- apollo-server@2.4.0-alpha.4
- apollo-tracing@0.5.0-alpha.3
- graphql-extensions@0.5.0-alpha.4
2019-02-07 13:01:14 +02:00
Jesse Rosenberger
44358efa9b
Adjust CHANGELOG.md entry for #2111 .
2019-02-07 12:56:33 +02:00
Jesse Rosenberger
e971bdf8b4
TEMP: Revert "feat(Fastify) Apollo server Fastify integration #626 ( #1971 )"
...
This TEMPORARILY reverts commit 069110b353
,
which was the result of the work done in #1971 by @rkorrelboom.
Unfortunately, we need to put this on ice while we wait for movement on a
package naming conflict. The dialog surrounding this is under way, as
I've explained in the PR:
https://github.com/apollographql/apollo-server/pull/1971#issuecomment-456817749
I'm excited to re-land this in an upcoming version, but there's no reason to
block the 2.4.0 release for it right now.
I will open a new PR with the work from #1971 in due time.
2019-02-07 12:56:03 +02:00
Jesse Rosenberger
f4dc9130a3
Remove blank line in CHANGELOG.md from merge.
2019-02-07 12:41:36 +02:00
Jesse Rosenberger
60b8bca6da
Merge branch 'master' into release-2.4.0
2019-02-07 12:40:37 +02:00
Jesse Rosenberger
ce4e504f00
Merge pull request #2276 from apollographql/abernix/allow-any-case-for-privateHeaders
...
Compare Engine reporting's `privateHeaders` case-insensitively, as documented.
2019-02-07 12:36:29 +02:00
Jesse Rosenberger
4c1b56aca0
Update CHANGELOG.md
2019-02-07 11:44:26 +02:00
Jesse Rosenberger
5ee9845537
Compare Engine reporting's privateHeaders
case-insensitively, as documented.
...
The documentation for `privateHeaders`[[0]] suggests that it is
case-insensitive. While that statement is true, and the incoming header is
lower-cased before checking it against the `privateHeaders` configuration,
it assumed that the headers in the `privateHeaders` object were specified in
lower-case.
This changes the comparison to lower-case both sides prior to determining
equality.
[0]: https://github.com/apollographql/apollo-server/blob/abb8dc58/packages/apollo-engine-reporting/src/agent.ts#L67-L70
Fixes: https://github.com/apollographql/apollo-server/issues/2273
2019-02-06 12:50:10 +02:00
Jesse Rosenberger
3dfbfcc0d8
Use Array.isArray
rather than typeof
... === 'object'
to check Arrayness.
2019-02-06 12:24:01 +02:00
Jesse Rosenberger
5666235119
Merge branch 'master' into release-2.4.0
2019-02-06 12:06:02 +02:00
Daniel Beck
7b1f6ddeb1
Note that schema stitching and file uploads are incompatible. ( #2272 )
2019-02-06 11:55:26 +02:00
Jesse Rosenberger
8b1b3d795b
Fix: Serialize arrays as JSON on fetch in RESTDataSource ( #2219 )
...
Fixes issue introduced in https://github.com/apollographql/apollo-server/pull/1125 and logged in https://github.com/apollographql/apollo-server/issues/2186 and https://github.com/apollographql/apollo-server/issues/2196 .
Arrays are valid JSON per spec: https://tools.ietf.org/html/rfc7159
2019-02-05 14:28:44 +02:00
Jesse Rosenberger
f99ebd373b
Set apollo-datasource-rest
version back to v0.2.2.
...
Lerna will take care of this on publishing.
2019-02-05 13:11:43 +02:00
Chris Airey
e8e49026dd
Serialize arrays as JSON on fetch in RESTDataSource
2019-02-05 03:38:21 -05:00
renovate[bot]
e571f72f93
chore(deps): update dependency hapi to v17.8.4 ( #2271 )
2019-02-05 05:23:06 +00:00
renovate[bot]
b31d6a6961
chore(deps): update dependency @types/jest to v23.3.14 ( #2270 )
2019-02-05 04:19:42 +00:00
Jesse Rosenberger
4b8dc7c556
Update package-lock.json
to finish #2217 .
2019-02-04 18:14:56 +02:00
Dennis Johnson
95949971d4
chore(deps): update dependency @types/koa-bodyparser to a valid 4.2.1… ( #2217 )
...
… version
This PR should hopefully correct some typing issues we are currently facing.
The problem:
- this package references v5.0.1 for @types/koa-bodyparser
- when we start our server that also uses koa-bodyparser for non-graphql routes, the type for koa.Request sets the "body" field to:
```
declare module "koa" {
interface Request {
body: {} | null | undefined;
rawBody: {} | null | undefined;
}
}
```
Which breaks our type defs for koa-bodyparser as we actually want "body" to be set to "any."
The v5.0.1 that was originally placed here is no longer "latest" and they have published a new v4 version that has the correct typing for koa-bodyparser (setting body to any). - https://www.npmjs.com/package/@types/koa-bodyparser
<!--
Thanks for filing a pull request on GraphQL Server!
Please look at the following checklist to ensure that your PR
can be accepted quickly:
-->
TODO:
* [ ] Update CHANGELOG.md with your change (include reference to issue & this PR)
* [x] Make sure all of the significant new logic is covered by tests
* [x] Rebase your changes on master so that they can be merged easily
* [x] Make sure all tests and linter rules pass
2019-02-04 18:10:07 +02:00
Jesse Rosenberger
d0998e7e28
Merge remote-tracking branch 'origin/master' into release-2.4.0
2019-02-04 17:22:15 +02:00
Jesse Rosenberger
6853b5238c
docs: Fix misspelling of "example".
...
Follows-up #2231 .
2019-02-04 15:05:20 +02:00
Bill Fienberg
60794ecad0
Fix grammar error (missing preposition) ( #2231 )
...
*Before*: allows the addition custom
*After*: allows the addition of custom
2019-02-04 15:04:37 +02:00
renovate[bot]
b206057456
chore(deps): update dependency prettier to v1.16.4 ( #2268 )
2019-02-04 12:20:22 +00:00
Jesse Rosenberger
060ec62cd1
Merge pull request #2259 from apollographql/abernix/engine-signatures-to-apollo-graphql
...
Move `apollo-engine-reporting` signatures into `apollo-graphql`.
2019-02-04 13:05:12 +02:00
renovate[bot]
79ccf888da
chore(deps): update dependency lint-staged to v8.1.3 ( #2267 )
2019-02-04 10:20:54 +00:00