Commit graph

2444 commits

Author SHA1 Message Date
Jesse Rosenberger
1439ab13d4
Update Renovate Configuration: Remove ineffective limitation. (#1980)
This updates the `renovate.json` to remove a version pinning of `lint-staged` which clearly didn't work since the current version of `lint-staged` is newer than `v7`.
2018-11-16 09:56:01 +02:00
renovate[bot]
a5f8e3dbb9
chore(deps): update dependency @types/node to v10.12.9 (#1978) 2018-11-16 07:35:07 +00:00
renovate[bot]
546ddb649a
chore(deps): update dependency @types/node-fetch to v2.1.3 (#1972) 2018-11-15 20:05:26 +00:00
Peggy Rayzis
50a559ebf1
Merge pull request #1967 from apollographql/platform-cleanup
Move relevant best practices guides into server docs
2018-11-15 10:22:44 -05:00
Peggy Rayzis
8e2b999e2c
Merge branch 'master' into platform-cleanup 2018-11-15 10:21:52 -05:00
Jesse Rosenberger
c9ed4d9d2e
Apply suggestions from code review
Co-Authored-By: peggyrayzis <peggyrayzis@gmail.com>
2018-11-15 10:17:59 -05:00
Jesse Rosenberger
89c20bcc16
Add Netlify _redirects file specifically for test-utils → testing. 2018-11-15 13:12:32 +02:00
Jesse Rosenberger
3cf2d55e07
Bump generated hexo version (not hexo itself). 2018-11-15 13:12:20 +02:00
Jesse Rosenberger
05331d9a94
Update hexo-versioned-netlify-redirects to latest version.
To support having a source `_redirects` file on disk, in addition to
supporting the generated version redirects.
2018-11-15 13:11:30 +02:00
renovate[bot]
793a44077e
chore(deps): update dependency @types/koa-router to v7.0.34 (#1970) 2018-11-15 07:38:54 +00:00
renovate[bot]
57b53b93a1
chore(deps): update dependency @types/node to v10.12.8 (#1968) 2018-11-15 07:35:01 +00:00
Peggy Rayzis
6f75a473ec Add schema design guide content to unions and interfaces 2018-11-14 20:27:13 -05:00
Peggy Rayzis
7b5fa198c9 Add schema design guide content to schema essentials 2018-11-14 20:26:51 -05:00
Peggy Rayzis
d19ec3ec65 Remove related guides and outdated redirects 2018-11-14 20:26:10 -05:00
Peggy Rayzis
0ec58323e0 Add auth guide, rename testing guide 2018-11-14 20:25:38 -05:00
Peggy Rayzis
1b3e75dcbe Delete old best practices articles 2018-11-14 20:22:19 -05:00
renovate[bot]
08d9af4cce chore(deps): update dependency @types/node to v10.12.7 (#1961)
This PR contains the following updates:

| Package | Type | Update | Change | References |
|---|---|---|---|---|
| @&#8203;types/node | devDependencies | patch | `10.12.6` -> `10.12.7` | [source](https://renovatebot.com/gh/DefinitelyTyped/DefinitelyTyped) |

---

### Renovate configuration

📅 **Schedule**: "after 6pm every weekday,before 8am every weekday" in timezone America/Los_Angeles.

🚦 **Automerge**: Enabled.

♻️ **Rebasing**: Whenever PR is stale, or if you modify the PR title to begin with "`rebase!`".

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

This PR has been generated by [Renovate Bot](https://renovatebot.com/gh/marketplace/renovate). View repository job log [here](https://renovatebot.com/dashboard#apollographql/apollo-server).
2018-11-14 16:52:37 +02:00
renovate[bot]
9b86ef4a93 chore(deps): update dependency hexo-prism-plus to v1.1.0 (#1962) 2018-11-14 16:52:05 +02:00
Jesse Rosenberger
5c40bc39fb
Update CHANGELOG.md 2018-11-14 16:42:24 +02:00
Jesse Rosenberger
8f50045353
Add CHANGELOG.md entry for #1960.
cc @zionts (msg: done!)
2018-11-14 09:37:25 +02:00
Adam Zionts
e40a2e90c4
Merge pull request #1960 from apollographql/adam/18/11/client-info-default-to-headers
AER/Default to headers for client identity
2018-11-13 17:51:25 -08:00
Adam Zionts
81d9f4719e aer/Default to headers for client identity in
lolwut

Revert "lolwut"

This reverts commit 03a2e101f6c25b46f0bdaf0e7578ab03a5ed7dad.
2018-11-13 17:36:38 -08:00
renovate[bot]
34cb3ea03c
chore(deps): update dependency husky to v1.1.4 (#1958) 2018-11-13 19:34:26 +00:00
Jesse Rosenberger
47676e0cd9
Publish
- apollo-cache-control@0.3.2
 - apollo-engine-reporting@0.1.2
 - apollo-server-azure-functions@2.2.2
 - apollo-server-cloud-functions@2.2.2
 - apollo-server-cloudflare@2.2.2
 - apollo-server-core@2.2.2
 - apollo-server-express@2.2.2
 - apollo-server-hapi@2.2.2
 - apollo-server-integration-testsuite@2.2.2
 - apollo-server-koa@2.2.2
 - apollo-server-lambda@2.2.2
 - apollo-server-micro@2.2.2
 - apollo-server-plugin-base@0.1.2
 - apollo-server-testing@2.2.2
 - apollo-server@2.2.2
 - apollo-tracing@0.3.2
 - graphql-extensions@0.3.2
2018-11-13 15:58:57 +02:00
Jesse Rosenberger
629ab68172
Fix TypeScript typing and improve message in async introspection query check.
Ref: #1955
2018-11-13 15:55:03 +02:00
Jesse Rosenberger
c6da03db17
Update CHANGELOG.md prior to publishing. 2018-11-13 15:25:57 +02:00
Prosper Otemuyiwa
d278d35c32
Revert "Add Authentication and File Uploads as guides and feature (#1956)" (#1957)
This reverts commit 61f2e47108.
2018-11-13 12:22:55 +01:00
Prosper Otemuyiwa
61f2e47108
Add Authentication and File Uploads as guides and feature (#1956)
* Add File uploads as a feature

* Add authentication to server as access-control
2018-11-13 12:09:18 +01:00
Jesse Rosenberger
e90e955f80
Follow up on #1955's incorrect then-able check.
I foolishly used `O.p.hasOwnProperty` here which, while safe for checking
properties, is actually not correct since this `then` property is inherited
from `Promise.prototype.then`.

Checking if `then` is a function should be safe _enough_.

Follows-up on: #1955
2018-11-13 12:42:01 +02:00
Jesse Rosenberger
c82cdec9b5
Throw an error on asynchronous introspection query behavior. (#1955)
We expect introspection queries to behave in an synchronous manner since
they do not have any resolvers which return Promises.  This expectation
seems to also be had by `graphql-js` which utilizes `graphqlSync`, rather
than `graphql` for execution of introspection queries.  In fact, this may be
one of the entire reasons that `graphqlSync` exists: to fulfill a contract
for synchronous execution of server introspection.  The introspection tests
within `graphql-js` seem to support this theory[[0]].

Utilities which wrap GraphQL resolvers should take care to maintain the
execution dynamics of what they are wrapping, or they should avoid wrapping
introspection types entirely by checking the type with the
`isIntrospectionType` predicate function from `graphql/type`[[1]].

[0]: 787422956c/src/type/__tests__/introspection-test.js
[1]: https://github.com/graphql/graphql-js/blob/74d1e941/src/type/introspection.js#L484.
Closes: https://github.com/apollographql/apollo-server/issues/1935
2018-11-13 12:11:56 +02:00
Martijn Walraven
26d6c73950 Update @apollographql/apollo-tools dependency to 0.2.6
Fixes #1951, apollographql/apollo-tooling#687.
2018-11-13 10:02:09 +01:00
Renovate Bot
ab73e7f119 chore(deps): update dependency node-fetch to v2.3.0 2018-11-13 08:51:55 +00:00
Renovate Bot
1fc11b5807 chore(deps): update dependency @types/node to v10.12.6 2018-11-13 08:31:35 +00:00
renovate[bot]
8bf483efc5 chore(deps): update dependency meteor-theme-hexo to v2 (#1941)
This PR contains the following updates:

| Package | Type | Update | Change | References |
|---|---|---|---|---|
| meteor-theme-hexo | devDependencies | major | `1.0.16` -> `2.0.1` | [source](https://renovatebot.com/gh/meteor/meteor-theme-hexo) |

---

### Release Notes

<details>
<summary>meteor/meteor-theme-hexo</summary>

### [`v2.0.1`](https://renovatebot.com/gh/meteor/meteor-theme-hexo/compare/v1.0.16...v2.0.1)

[Compare Source](https://renovatebot.com/gh/meteor/meteor-theme-hexo/compare/v1.0.16...v2.0.1)

</details>

---

### Renovate configuration

📅 **Schedule**: "" in timezone America/Los_Angeles.

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻️ **Rebasing**: Whenever PR is stale, or if you modify the PR title to begin with "`rebase!`".

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

This PR has been generated by [Renovate Bot](https://renovatebot.com/gh/marketplace/renovate). View repository job log [here](https://renovatebot.com/dashboard#apollographql/apollo-server).
2018-11-12 10:26:16 -08:00
Evan Lucas
59af364aa3 ApolloServer: fix uploads error message (#1820)
There was a typo in the error message.
2018-11-12 06:04:11 -08:00
renovate[bot]
3ed9e4ced7 chore(deps): update dependency prettier to v1.15.2 (#1949)
* chore(deps): update dependency prettier to v1.15.2

* (lint) Fix desires of new `prettier` patch version, v1.15.2.

Ref: https://github.com/apollographql/apollo-server/pull/1949
2018-11-12 06:01:52 -08:00
Renovate Bot
48002098bc chore(deps): update dependency redis-mock to v0.39.0 2018-11-12 14:00:08 +00:00
Martijn Walraven
20eb2e9e03 Publish
- apollo-cache-control@0.3.1
 - apollo-engine-reporting@0.1.1
 - apollo-server-azure-functions@2.2.1
 - apollo-server-cloud-functions@2.2.1
 - apollo-server-cloudflare@2.2.1
 - apollo-server-core@2.2.1
 - apollo-server-express@2.2.1
 - apollo-server-hapi@2.2.1
 - apollo-server-integration-testsuite@2.2.1
 - apollo-server-koa@2.2.1
 - apollo-server-lambda@2.2.1
 - apollo-server-micro@2.2.1
 - apollo-server-plugin-base@0.1.1
 - apollo-server-testing@2.2.1
 - apollo-server@2.2.1
 - apollo-tracing@0.3.1
 - graphql-extensions@0.3.1
2018-11-12 14:26:26 +01:00
Jesse Rosenberger
b61dee310b
Add correct project references for apollo-server-cloud-functions. (#1948)
* Add correct project references for `apollo-server-cloud-functions`.

The `apollo-server-cloud-functions` has been been mis-referenced (or
referenced inconsistently) since its original inception in #1446 when its
package directory was `apollo-server-cloud-function` (singular!) and the
`package.json` referenced the plural form (`apollo-server-cloud-functions`):

https://github.com/apollographql/apollo-server/commit/724d9ff0#diff-e1d725fd66f7e9ef5251abf0437a09ca

These references have been mostly fixed in the READMEs and supporting
documentation, but the underlying monorepo directory structure has still not
been fixed, which I'm sure contributed to this module being overlooked and
unreferenced in the move to TypeScript project references in #1772.

Additionally, the lack of referencing in the monorepo's TS config has
resulted in it being broken in the most recent 2.2.0 release, as reported by
@pyros2097 and @thetre97 in: https://github.com/apollographql/apollo-server/pull/1896#issuecomment-436994955

This should fix that by properly adding the TypeScript project references.

* Sorting.
2018-11-12 05:13:04 -08:00
Jesse Rosenberger
d36eea0f84 typings: Improvements for apollo-server-testing's createTestClient. (#1943)
The `createTestClient` should receive either a `query` or a `mutation`, but
not both.
2018-11-10 20:48:43 -08:00
Evans Hauser
79e6a2ea42
Add client awareness reference api and some docs (#1927)
* Add client awareness reference api and some docs

* Reword and add default behavior to docs

* update clientReferenceId docs to be more explicit

* Update the generateClientInfo to use headers
2018-11-10 16:11:53 -08:00
Renovate Bot
87b4833926 chore(deps): update dependency koa to v2.6.2 2018-11-10 09:54:48 +00:00
Renovate Bot
1e384a1eaa chore(deps): update dependency @types/node to v10.12.5 2018-11-10 08:55:46 +00:00
Jake Dawkins
d07b4b7048 added apollo-server-testing docs (#1939)
These are docs to accompany the `apollo-server-testing` utils

<!--
  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)
* [ ] Make sure all of the significant new logic is covered by tests
* [ ] Rebase your changes on master so that they can be merged easily
* [ ] Make sure all tests and linter rules pass

<!--**Pull Request Labels**

While not necessary, you can help organize our pull requests by labeling this issue when you open it.  To add a label automatically, simply [x] mark the appropriate box below:

- [ ] feature
- [ ] blocking
- [x] docs

To add a label not listed above, simply place `/label another-label-name` on a line by itself.
-->
2018-11-09 17:30:15 -08:00
Jesse Rosenberger
95a2ee53d0
More prettier changes. 2018-11-09 16:08:58 -08:00
Jesse Rosenberger
dc20485bd5
Prettier updates from the prettier bump.
Ah yes, the subtle side-effects of an opinionated linter evolving over time.
2018-11-09 15:44:41 -08:00
Renovate Bot
8ddfd5197c chore(deps): update dependency prettier to v1.15.1 2018-11-09 17:47:50 +00:00
Martijn Walraven
e6dc87242a Update graphql-tools dependency 2018-11-09 09:41:01 -08:00
Martijn Walraven
40f3660e23 Fix relative import to use the proper apollo-tools package 2018-11-09 09:23:29 -08:00
Martijn Walraven
24d0d438c3 Remove local graphql dependency 2018-11-09 09:18:37 -08:00