Commit graph

299 commits

Author SHA1 Message Date
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
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
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
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
5666235119
Merge branch 'master' into release-2.4.0 2019-02-06 12:06:02 +02: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
Jesse Rosenberger
d0998e7e28
Merge remote-tracking branch 'origin/master' into release-2.4.0 2019-02-04 17:22:15 +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
renovate[bot]
316137f084
chore(deps): update dependency lerna to v3.10.8 (#2262) 2019-02-02 06:14:48 +00:00
renovate[bot]
babb774bfe
chore(deps): update dependency apollo-link-http to v1.5.11 (#2261) 2019-02-02 05:16:16 +00:00
renovate[bot]
16f2f155b8
chore(deps): update dependency apollo-link to v1.2.8 (#2260) 2019-02-02 04:16:24 +00:00
Jesse Rosenberger
21c274870f
Use lodash.sortby modularly, rather than all of lodash.
Currently, the only place that we use `lodash` in the entire `apollo-server`
repository is to utilize the `sortBy` function in this signature generation.

Looking at the bundle stats, it appears that lodash represents 7.1% of the
`apollo-server` package.  We're a server, so bundle size is generally less
of a concern, but it's still not to be ignored, particularly as we move into
worker environments.  More pressingly though, since this package will be
utilized by the `apollo` CLI, we'll be shaving precious download time off
the invocation of `npx apollo` if we can get this down.

By switching to the modular package (but still depending on `@types/lodash`
for _just_ the `ListIteratee` type — which we only need in development — we
should be able to trim 55.4kB minified (19.1kB minified+gzip'd) off the
`apollo-server` build.

cc @trevor-scheer @jbaxleyiii @martijnwalraven
2019-02-01 20:40:14 +02:00
Jesse Rosenberger
e565226370
Move apollo-engine-reporting signature calculations to new apollo-graphql.
Many of these signature calculation functions are now utilized in tools or
helpers which are not directly related to `apollo-server` functionality,
including various aspects of the `apollo` CLI which live within
`apollo-tooling`.

Currently, because of `apollo`'s dependency on `apollo-engine-reporting` for
this signature, this requires bringing in the entire dependency tree which
`apollo-server-core` relies on since `apollo-engine-reporting` depends on
`apollo-server-core`.

By moving this into this new `apollo-graphql` utility library, we're able to
trim that rather hefty dependency tree and drastically reduce the download
for running, say, `npx apollo`.
2019-02-01 19:03:59 +02:00
Jesse Rosenberger
1a3ac9b4a0
Move Apollo Engine signatures into apollo-graphql. 2019-02-01 18:43:04 +02:00
Jesse Rosenberger
e55f231291
Setup the foundation for a new apollo-graphql utility library.
As of this commit, this package provides nothing!
2019-02-01 18:20:59 +02:00
Jesse Rosenberger
5bcf06a1b8
Update package-lock.json with >=npm@6.6.0 to fix optional flapping.
Hopefully!
2019-02-01 16:34:28 +02:00
Jesse Rosenberger
21c4c11a18
Merge remote-tracking branch 'public/master' into release-2.4.0 2019-02-01 14:00:59 +02:00
renovate[bot]
7dc854935d
chore(deps): update dependency @types/node to v10.12.21 (#2256) 2019-02-01 07:17:13 +00:00
renovate[bot]
76862f67e4
chore(deps): update dependency typescript to v3.3.1 (#2255) 2019-02-01 05:17:56 +00:00
renovate[bot]
455c7ebc86
chore(deps): update dependency hapi to v17.8.3 (#2254) 2019-02-01 04:15:35 +00:00
Trevor Scheer
b64895ddec
Add apollo-server-core to deps in apollo-engine-reporting (#2248)
* Add apollo-server-core to deps in apollo-engine-reporting

* Add reference to requestPipelineAPI
2019-01-31 08:59:36 -08:00
renovate[bot]
c561b02e99
chore(deps): update dependency prettier to v1.16.3 (#2251) 2019-01-31 06:19:07 +00:00
renovate[bot]
671453ef53
chore(deps): update dependency @types/node-fetch to v2.1.5 (#2250) 2019-01-31 04:55:26 +00:00
renovate[bot]
57433c456d
chore(deps): update dependency @types/node to v10.12.20 (#2249) 2019-01-31 04:19:43 +00:00
renovate[bot]
0ba70f97b0
chore(deps): update dependency prettier to v1.16.2 (#2245) 2019-01-30 10:27:42 +00:00
Jesse Rosenberger
03283f9ad3
Merge branch 'master' into release-2.4.0 2019-01-29 12:10:13 +02:00
renovate[bot]
25028e3678
chore(deps): update dependency @types/node to v10.12.19 (#2238) 2019-01-29 05:21:43 +00:00
renovate[bot]
78512662eb
chore(deps): update dependency @types/aws-lambda to v8.10.18 (#2237) 2019-01-29 04:21:16 +00:00
renovate[bot]
7a9cdbbd7d
chore(deps): update dependency lint-staged to v8.1.1 (#2236) 2019-01-29 03:19:50 +00:00
renovate[bot]
82674bf129
chore(deps): update dependency koa to v2.7.0 (#2233) 2019-01-28 11:09:34 +00:00
Jesse Rosenberger
02ebad271e
Update package-lock.json to (hopefully) fix optional dependency flapping.
Thanks to npm@6.6.0!
2019-01-25 20:30:27 +02:00
Jesse Rosenberger
dc46e58525
Update low-severity merge (devDependency) to satiate npm audit fix. 2019-01-25 20:26:58 +02:00
renovate[bot]
ef4d8c081c
chore(deps): update dependency redis-mock to v0.43.0 (#2226) 2019-01-25 05:25:54 +00:00
renovate[bot]
14ec9aaab9
chore(deps): update dependency graphql-tools to v4.0.4 (#2225) 2019-01-25 04:24:31 +00:00
renovate[bot]
948afd82de
chore(deps): update dependency ws to v6.1.3 (#2221) 2019-01-24 08:49:39 +00:00
renovate[bot]
e0c6a3547e
chore(deps): update dependency yup to v0.26.10 (#2220) 2019-01-24 04:23:02 +00:00
renovate[bot]
117ea3042b chore(deps): update dependency prettier to v1.16.1 (#2203)
This PR contains the following updates:

| Package | Type | Update | Change | References |
|---|---|---|---|---|
| prettier | devDependencies | minor | `1.15.3` -> `1.16.1` | [homepage](https://prettier.io), [source](https://togithub.com/prettier/prettier) |

---

### Release Notes

<details>
<summary>prettier/prettier</summary>

### [`v1.16.1`](https://togithub.com/prettier/prettier/blob/master/CHANGELOG.md#&#8203;1161)

[Compare Source](https://togithub.com/prettier/prettier/compare/1.16.0...1.16.1)

[diff](https://togithub.com/prettier/prettier/compare/1.16.0...1.16.1)

-   JavaScript: Do not format functions with arguments as react hooks ([#&#8203;5778] by [@&#8203;SimenB])

    The formatting added in Prettier 1.16 would format any function receiving an
    arrow function and an array literal to match React Hook's documentation.
    Prettier will now format this the same as before that change if the arrow
    function receives any arguments.

    <!-- prettier-ignore -->

    ```js
    // Input
    ["red", "white", "blue", "black", "hotpink", "rebeccapurple"].reduce(
      (allColors, color) => {
        return allColors.concat(color);
      },
      []
    );

    // Output (Prettier 1.16.0)
    ["red", "white", "blue", "black", "hotpink", "rebeccapurple"].reduce((
      allColors,
      color
    ) => {
      return allColors.concat(color);
    }, []);

    // Output (Prettier 1.16.1)
    ["red", "white", "blue", "black", "hotpink", "rebeccapurple"].reduce(
      (allColors, color) => {
        return allColors.concat(color);
      },
      []
    );
    ```

-   JavaScript: Add necessary parentheses for decorators ([#&#8203;5785] by [@&#8203;ikatyang])

    Parentheses for decorators with nested call expressions are optional for legacy decorators
    but they're required for decorators in the current [proposal](https://tc39.github.io/proposal-decorators/#sec-syntax).

    <!-- prettier-ignore -->

    ```js
    // Input
    class X {
      @&#8203;(computed().volatile())
      prop
    }

    // Output (Prettier 1.16.0)
    class X {
      @&#8203;computed().volatile()
      prop
    }

    // Output (Prettier 1.16.1)
    class X {
      @&#8203;(computed().volatile())
      prop
    }
    ```

-   TypeScript: Stable parentheses for function type in the return type of arrow function ([#&#8203;5790] by [@&#8203;ikatyang])

    There's a regression introduced in 1.16 that
    parentheses for function type in the return type of arrow function were kept adding/removing.
    Their parentheses are always printed now.

    <!-- prettier-ignore -->

    ```ts
    // Input
    const foo = (): (() => void) => (): void => null;
    const bar = (): () => void => (): void => null;

    // First Output (Prettier 1.16.0)
    const foo = (): () => void => (): void => null;
    const bar = (): (() => void) => (): void => null;

    // Second Output (Prettier 1.16.0)
    const foo = (): (() => void) => (): void => null;
    const bar = (): () => void => (): void => null;

    // Output (Prettier 1.16.1)
    const foo = (): (() => void) => (): void => null;
    const bar = (): (() => void) => (): void => null;
    ```

-   MDX: Correctly recognize inline JSX ([#&#8203;5783] by [@&#8203;ikatyang])

    Previously, some inline JSXs are wrongly recognized as block HTML/JSX,
    which causes unexpected behaviors. This issue is now fixed.

    <!-- prettier-ignore -->

    ```md
    <!-- Input -->
    _foo <InlineJSX /> bar_

    <!-- Output (Prettier 1.16.0) -->
    _foo

    <InlineJSX /> bar_

    <!-- Output (Prettier 1.16.1) -->
    _foo <InlineJSX /> bar_
    ```

[@&#8203;ikatyang]: https://togithub.com/ikatyang

[@&#8203;simenb]: https://togithub.com/SimenB

[#&#8203;5778]: https://togithub.com/prettier/prettier/pull/5778

[#&#8203;5783]: https://togithub.com/prettier/prettier/pull/5783

[#&#8203;5785]: https://togithub.com/prettier/prettier/pull/5785

[#&#8203;5790]: https://togithub.com/prettier/prettier/pull/5790

### [`v1.16.0`](https://togithub.com/prettier/prettier/blob/master/CHANGELOG.md#&#8203;1160)

[Compare Source](https://togithub.com/prettier/prettier/compare/1.15.3...1.16.0)

[diff](https://togithub.com/prettier/prettier/compare/1.15.3...1.16.0)

🔗 [Release Notes](https://prettier.io/blog/2019/01/20/1.16.0.html)

</details>

---

### Renovate configuration

📅 **Schedule**: "after 6pm every weekday,before 5am 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.

---

 - [ ] <!-- renovate-rebase -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://togithub.com/marketplace/renovate). View repository job log [here](https://renovatebot.com/dashboard#apollographql/apollo-server).
2019-01-23 17:46:53 +02:00
Remy
069110b353 feat(Fastify) Apollo server Fastify integration #626 (#1971)
* feat(fastify) Apollo Fastify server integration resolve #626

* feat(fastify) Use createHandler instead of applyMiddleware #626

* feat(fastify) Fix integration test for node 10 #626

* feat(fastify) Update README's with fastify createHandler interface #626

* feat(fastify) Implement the fastify createHandler as a synchronous method #626

* (fastify) Tweaks to re-align with the parallel work in #2054.

* (fastify): Use port 9999 rather than 8888 for tests.  Because Gatsby.

This specific port per integration is pretty brittle to begin with, but it
does work.  Currently, the fact that it works is facilitated by the fact
that most people don't use 5555 (Hapi) and 6666 (Express) for anything.

That said, the ever-popular Gatsby uses 8888 by default, so let's use 9999!

* (fastify) Remove duplicative assertion in upload initialization.

* (fastify) Implement fastify upload middleware

* (fastify) Fix linting issues

* (fastify) Update package-lock
2019-01-23 15:43:47 +02:00
renovate[bot]
ab632ea38c
chore(deps): update dependency lerna to v3.10.7 (#2214) 2019-01-23 12:26:42 +00:00
renovate[bot]
120762f014
chore(deps): update dependency @types/koa-router to v7.0.39 (#2213) 2019-01-23 11:30:16 +00:00
renovate[bot]
f09a334f03
chore(deps): update dependency @types/hapi to v17.8.5 (#2212) 2019-01-23 10:28:13 +00:00