Commit graph

1081 commits

Author SHA1 Message Date
Jesse Rosenberger
e4d1b6a3a7
Update meteor-theme-hexo to 1.0.9. 2018-05-02 18:07:04 -07:00
Jesse Rosenberger
6f50769d4f
Temporarily remove version 2. 2018-05-02 18:06:31 -07:00
Jesse Rosenberger
ffae5aa4b0
Merge branch 'abernix/versioned-netlify-redirects' 2018-05-02 18:02:07 -07:00
Jesse Rosenberger
9c19dec4bd
Update hexo-versioned-netlify-deploys to 1.0.7.
Hopefully for the last time!
2018-05-01 21:37:16 -07:00
Jesse Rosenberger
f871d32b70
Start ignoring _redirects again, since it's dynamically generated. 2018-05-01 21:37:16 -07:00
Jesse Rosenberger
063edd7b05
Update hexo-versioned-netlify-redirects to 1.0.6. 2018-05-01 21:37:16 -07:00
Jesse Rosenberger
5a2034ea9d
Update hexo-versioned-netlify-redirects to 1.0.5. 2018-05-01 21:37:16 -07:00
Jesse Rosenberger
fbe56d8846
Update hexo-versioned-netlify-redirects to 1.0.4.
Follows-up on 07efd96d15f93f3e30fd63942d75ce65e26eb672.
2018-05-01 21:37:16 -07:00
Jesse Rosenberger
0ccf214161
Update hexo-versioned-netlify-redirects to 1.0.3.
In order to include the changes from
https://github.com/meteor/hexo-versioned-netlify-redirects/pull/1, which
should properly handle the sub-path roots of this Hexo deployment.
2018-05-01 21:37:16 -07:00
Jesse Rosenberger
b9d49ae723
Enable version support via Netlify redirects.
This uses `hexo-versioned-netlify-redirects`[0], a package I wrote just for
this purpose (on Meteor) a few months back.

With any luck, this will do the trick for Apollo too.

[0]: https://github.com/meteor/hexo-versioned-netlify-redirects
2018-05-01 21:37:16 -07:00
Jesse Rosenberger
b2691adaa4
docs: Add v2 to the versions property in _config.yml.
This should enable the dropdown box in the sidebar of the documentation.
Currently, that sidebar will be a terrible color, since it has never
appeared on Apollo documentation before and nobody has ever defined style on
it.  That'll have to be fixed in the theme itself[0].

[0]: https://github.com/meteor/meteor-theme-hexo
2018-05-01 21:37:16 -07:00
Renovate Bot
c53d742d07 chore(deps): update dependency sinon to v5.0.2 2018-05-01 12:02:25 +00:00
Renovate Bot
a04eb903b9 chore(deps): update dependency @types/node to v9.6.8 2018-05-01 07:01:06 +00:00
renovate[bot]
1154351aef chore(deps): update dependency sinon to v5 (#1010) 2018-04-30 16:51:54 -07:00
renovate[bot]
1244ce984c
chore(deps): update dependency hapi to v17.4.0 (#1009) 2018-04-30 08:36:18 +00:00
Renovate Bot
c847bed76c chore(deps): update dependency koa to v2.5.1 2018-04-27 11:02:33 +00:00
Renovate Bot
db244357cc chore(deps): update dependency @types/node to v9.6.7 2018-04-27 09:02:43 +00:00
Renovate Bot
55ac510562 chore(deps): update dependency @types/aws-lambda to v8.10.3 2018-04-27 07:02:24 +00:00
Brian Dennis
12fae6caec docs: Fix typo in lambda package README (#999) 2018-04-27 08:48:13 +03:00
Renovate Bot
91d630f6a6 chore(deps): update dependency @adonisjs/bodyparser to v2.0.3 2018-04-26 12:02:39 +00:00
Renovate Bot
c43d9bda04 chore(deps): update dependency remap-istanbul to v0.11.1 2018-04-26 07:02:11 +00:00
Renovate Bot
297e501231 chore(deps): update dependency lerna to v2.11.0 2018-04-25 11:02:21 +00:00
Renovate Bot
3815aa63cf chore(deps): update dependency @types/koa-router to v7.0.28 2018-04-25 09:46:24 +00:00
Renovate Bot
d8fecdc5c8 chore(deps): update dependency @types/body-parser to v1.17.0 2018-04-25 08:02:19 +00:00
Renovate Bot
363171bff2 chore(deps): update dependency @types/aws-lambda to v8.10.2 2018-04-25 06:52:23 +00:00
David Glasser
b32e89c060 v1.3.6 2018-04-24 11:35:14 -07:00
David Glasser
8bd1ad0a6d CHANGELOG update 2018-04-24 11:32:30 -07:00
Jesse Rosenberger
5d7e281aa1
Pin npm to 5, at least for the time-being. (#984)
npm 6 deprecates support for Node.js 4, which is still LTS until the end of
the week.

It's probably best to take a moment and ensure that npm@6 is actually
working as we desire too, so this is just to make sure that we don't end up
with a bunch of PRs that need to be re-based/re-tested, which seems to
already be happening.
2018-04-24 16:55:52 +03:00
David Glasser
e2df79d06c core: return PersistedQueryNotSupported for Apollo Persisted Queries (#982)
Apollo Persisted Queries is a standard for sending queries as short hashes
instead of full strings, designed to work well with GET requests. It is
implemented by servers including the Apollo Engine Proxy, and by the
apollo-link-persisted-query client.

A common configuration is to set up persisted queries on production servers but
not in development. It is still convenient to leave apollo-link-persisted-query
always on, though. While apollo-link-persisted-query can detect that servers
don't support PQs, it works better if the server actually says it doesn't
support the PQ, instead of trying to process a request without a query and
potentially printing a confusing stack trace.  This commit makes apollo-server
directly return PersistedQueryNotSupported instead of allowing confusing stack
traces to occur.
2018-04-24 06:29:07 -04:00
Renovate Bot
d74f5e78e6 chore(deps): update dependency @types/chai to v4.1.3 2018-04-21 06:56:11 +00:00
Renovate Bot
591b0f2cae chore(deps): update dependency typescript to v2.8.3 2018-04-20 10:02:15 +00:00
Renovate Bot
cc579227c8 chore(deps): update dependency @types/node to v9.6.6 2018-04-20 08:02:16 +00:00
Renovate Bot
64a01c94f8 chore(deps): update dependency @types/mocha to v5.2.0 2018-04-20 06:48:48 +00:00
Renovate Bot
5bebbf12b1 chore(deps): update dependency mocha to v5.1.1 2018-04-19 07:06:26 +00:00
Jesse Rosenberger
9d0e7b6866
v1.3.5 2018-04-18 16:10:04 +03:00
Jesse Rosenberger
6cddeaf463
Update CHANGELOG.md prior to v1.3.5 release. 2018-04-18 16:06:29 +03:00
David Glasser
cbb2b22570 core: fix HttpQueryRequest typing (#834)
This field generally gets used in `any` contexts, so the error didn't cause any compilation failures.
2018-04-18 16:00:44 +03:00
renovate[bot]
625bf7ba8e chore(deps): update dependency mocha to v5.1.0 (#908) 2018-04-18 15:47:39 +03:00
Steve Rice
083a1ee60e Avoid TypeError when querystring is present, but query missing (#964)
The express-graphql reference implementation [provides a check]
(2e27a73358/src/index.js (L201-L208))
to protect against cases where a GET request is made that does not
have a `query` parameter where the GraphQL query would be present.

Without this guard, graphql-js's `parse` will return `undefined`
for the `DocumentNode` since it has no document to read. Subsequently
passing this to `isQueryOperation` results in a `TypeError`, because
we are providing `undefined` where `getOperationAst` [expects to get
a DocumentNode](5fe39262a3/src/utilities/getOperationAST.js (L19)).

A new test file is added for `runHttpQuery`, as one previously did
not seem to exist.
2018-04-18 15:38:57 +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
4cbaf4652d
Prettier for one change in #919. 2018-04-18 15:18:30 +03:00
renovate[bot]
0b235db2a3 chore(deps): update dependency @types/aws-lambda to v8 (#961) 2018-04-18 14:23:21 +03:00
Jamie Talbot
f387a1c824 Tighter context typing for GraphQLServerOptions (#919) 2018-04-18 14:16:45 +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
Jesse Rosenberger
0c6b1bd358
Remove dev-dependency on npm-check-updates. (#959)
It appears that the intention of including `npm-check-updates` in this
repository was to provide an easy way to update dependent packages from the
console.  This was originally introduced in [Ref 0].

Unfortunately, the `npm-check-updates` package has an explicit dependency on
`npm@3`, which means that it includes the entire `npm` in its
`node_modules`.

I originally observed this when analyzing the test failures in [Ref 1] and
[Ref 2] which indicated (in its npm error) that the npm version was v3.10.10.

The explanation for this is relatively straight-forward: Older versions of
npm uses an nested tree of `node_modules` directories while newer versions
hoist `node_modules` (i.e. flatten) to the highest location possible and
only nesting dependencies to meet conflicting version constraints.

Unfortunately, that means that once `npm@3` was installed by the newer
`npm@5` as a dependency of `npm-check-updates`, it was hoisted to the
top-level `node_modules` directory, exposing `npm@3` to `npm-scripts` which
directly call `npm` commands on the nested packages, as is done on this
monorepo (with, for example the `postinstall` script which runs `npm run
compile` in each of the server middleware packages). :face_palm:

Overall, this package doesn't seem to provide enough value for us to
continue to include it, especially since we have Renovate - coupled with the
same information being available from `npm outdated` and `npm update`
commands.  I'm not sure why we would want to install newer versions than our
"package.json" allows.

Futhermore, looking at the issue tracker on `npm-check-updates`, I'm
assuming this is the reason I've seen "`dezalgo`" install errors [Ref 3] on
this repository recently and _possibly_ even a bizarrely corrupted npm cache
I encountered recently (though admittedly, that could be a stretch).

See also: [Ref 4].

[Ref 0]: https://github.com/apollographql/apollo-server/commit/d7ca07f7
[Ref 1]: https://circleci.com/gh/apollographql/apollo-server/1915
[Ref 2]: https://app.netlify.com/sites/apollo-server-docs/deploys/5acdd3b7
[Ref 3]: https://github.com/tjunnone/npm-check-updates/issues/420
[Ref 4]: https://github.com/tjunnone/npm-check-updates/issues/423
2018-04-17 22:59:00 +03:00
Jelle Breuer
0261870eb7 adonis: Set Content-type to application/json on response (#842)
* Set Content_Type to application/json on response

* Added changelog entry

* fixed styling
2018-04-17 21:49:26 +03:00
Michael Golfi
3dc9719268 Azure Functions now returns correct response body (#753)
* Added fixes to apolloAzureFunctions.js and sample functions for the GraphQL API and GraphiQL

* Added issue and pr details to changelog

* Maintain use of `context.done()`, but use `isRaw` instead.

Per the Azure documentation regarding the response object available at:

https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-node#response-object

* Switch Azure example to use CommonJS rather than native ESM exports.
2018-04-17 21:39:06 +03:00
Renovate Bot
c87cce9a2b chore(deps): update dependency prettier to v1.12.1 2018-04-17 16:02:50 +00:00
Renovate Bot
05222b121b chore(deps): update dependency lerna to v2.10.2 2018-04-17 14:02:35 +00:00