Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lambda lazy load #2278

Closed
wants to merge 77 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
23b5b32
feat(fastify): Integrate apollo-fastify plugin #626
addityasingh Oct 2, 2018
c9bf990
Merge branch 'master' into as-integrate-fastify-plugin
addityasingh Oct 3, 2018
f004237
feat(fastify): Fix review comments and broken tests, build #626
addityasingh Oct 3, 2018
69b619b
feat(fastify): Fix test #626
addityasingh Oct 3, 2018
aebbcf2
feat(fastify): Remove local package #626
addityasingh Oct 3, 2018
dd432e7
feat(fastify): Add fastify package to workspace #626
addityasingh Oct 3, 2018
be5907a
Merge branch 'master' into as-integrate-fastify-plugin
addityasingh Oct 7, 2018
4f5509d
feat(fastify): Update package lock #626
addityasingh Oct 7, 2018
55f2975
feat(fastify): Update package lock with latest install #626
addityasingh Oct 7, 2018
d78d51a
feat: Update package lock #636
addityasingh Oct 11, 2018
a7b5dc7
Merge branch 'master' into as-integrate-fastify-plugin
addityasingh Oct 11, 2018
82afdf2
Merge branch 'master' into as-integrate-fastify-plugin
addityasingh Oct 15, 2018
3d99e3b
Merge branch 'master' into as-integrate-fastify-plugin
addityasingh Nov 13, 2018
c4a8b58
feat: Update tsconfig #636
addityasingh Nov 13, 2018
2a74353
feat: Remove overriding tsc compile command #636
addityasingh Nov 14, 2018
efb835b
Merge branch 'master' into as-integrate-fastify-plugin
addityasingh Nov 14, 2018
9d22b2f
feat: Add jest config #636
addityasingh Nov 14, 2018
8901556
feat: Fix linting issue#636
addityasingh Nov 14, 2018
2977562
feat: Add tsconfig for fastify tests #636
addityasingh Nov 14, 2018
615a994
Merge branch 'master' into as-integrate-fastify-plugin
addityasingh Nov 14, 2018
3fea803
Merge branch 'master' into release-vNEXT
abernix Dec 13, 2018
ccd974d
Merge branch 'master' into release-vNEXT
abernix Dec 18, 2018
bacdeae
feat(fastify) Apollo Fastify server integration resolve #626
rkorrelboom Nov 15, 2018
a1d2b74
feat(fastify) Use createHandler instead of applyMiddleware #626
rkorrelboom Nov 17, 2018
88ff161
feat(fastify) Fix integration test for node 10 #626
rkorrelboom Nov 17, 2018
fb023a5
feat(fastify) Update README's with fastify createHandler interface #626
rkorrelboom Nov 17, 2018
482cdad
feat(fastify) Implement the fastify createHandler as a synchronous me…
rkorrelboom Nov 19, 2018
fa621c6
(fastify) Tweaks to re-align with the parallel work in #2054.
abernix Dec 4, 2018
99bf841
(fastify): Use port 9999 rather than 8888 for tests. Because Gatsby.
abernix Dec 4, 2018
5987384
(fastify) Remove duplicative assertion in upload initialization.
abernix Dec 4, 2018
05158d3
(fastify) Implement fastify upload middleware
rkorrelboom Jan 2, 2019
94e9a07
(fastify) Fix linting issues
rkorrelboom Jan 2, 2019
6ebb60a
(fastify) Update package-lock
rkorrelboom Jan 2, 2019
a14eddf
Merge branch 'release-2.4.0' into HEAD
abernix Jan 23, 2019
a849cf9
Merge branch 'pull-1760' into re-stage-pr-1971
abernix Feb 8, 2019
b4df18b
Merge branch 'master' into re-stage-pr-1971
abernix Feb 8, 2019
b752e2c
lazy load unused lambda packages in core
Feb 5, 2019
8b99aff
chore(deps): update dependency @types/node to v10.12.25 (#2300)
renovate[bot] Feb 12, 2019
73a450c
chore(deps): update dependency lerna to v3.11.1 (#2301)
renovate[bot] Feb 12, 2019
96351a4
Remove unused lodash dependency. (#2303)
benjamn Feb 12, 2019
543b9c8
Require apollo-engine-reporting only if EngineReportingAgent used. (#…
benjamn Feb 12, 2019
e3070a5
Correct Azure Functions type definitions (#2287)
jmshal Feb 12, 2019
bf12001
Await on graphql.execute() before calling executionDidEnd handler (AS…
cheapsteak Feb 12, 2019
3f7a7f3
Avoid importing entire crypto dependency tree if not in Node.js. (#2304)
benjamn Feb 12, 2019
b89de26
Allow passing parseOptions to ApolloServerBase constructor. (#2289)
benjamn Feb 12, 2019
a46560b
Update CHANGELOG.md for changes included in version 2.4.1.
benjamn Feb 12, 2019
f65c0fc
Update package-lock.json after adding sha.js and removing lodash.
benjamn Feb 12, 2019
4116b2f
Publish
benjamn Feb 12, 2019
fa5e299
chore(deps): update dependency @types/graphql to v14.0.6 (#2309)
renovate[bot] Feb 13, 2019
e0b60b2
chore(deps): update dependency @types/node to v10.12.26 (#2310)
renovate[bot] Feb 13, 2019
4d017c0
chore(deps): update dependency codecov to v3.2.0 (#2311)
renovate[bot] Feb 13, 2019
5918e18
Follow-up #2298 with regression test (#2308)
cheapsteak Feb 13, 2019
b84770c
Update `package-lock.json` to fix type errors and solidify #2217.
abernix Feb 13, 2019
a5f26eb
Update `package-lock.json` to add `optional` dependencies.
abernix Feb 13, 2019
27eb191
Additional `package-lock.json` changes.
abernix Feb 13, 2019
e770958
Update to `[email protected]`, even for nested dependencies.
abernix Feb 13, 2019
8c71adf
azure-functions: Add missing test configuration files. (#2312)
abernix Feb 13, 2019
67c281f
chore(deps): update dependency @types/jest to v24 (#2228)
renovate[bot] Feb 13, 2019
bb21951
chore(deps): update dependency jest-matcher-utils to v24 (#2229)
renovate[bot] Feb 13, 2019
02ded39
chore(deps): update dependency @types/graphql to v14.0.7 (#2317)
renovate[bot] Feb 14, 2019
180557c
chore(deps): update dependency @types/jest to v24.0.4 (#2318)
renovate[bot] Feb 14, 2019
c84c1c7
chore(deps): update dependency @types/lodash to v4.14.121 (#2319)
renovate[bot] Feb 14, 2019
967061b
chore(deps): update dependency @types/lodash.sortby to v4.7.5 (#2320)
renovate[bot] Feb 14, 2019
3498121
chore(deps): update dependency @types/memcached to v2.2.6 (#2321)
renovate[bot] Feb 14, 2019
4f24edc
Migrate apollo-graphql package to apollo-tooling repo (#2316)
trevor-scheer Feb 14, 2019
14c88c6
chore(deps): update dependency lint-staged to v8.1.4 (#2322)
renovate[bot] Feb 14, 2019
0c83e7b
Update `CHANGELOG.md` to put #2316 into `vNEXT`, not v2.4.1 where it …
abernix Feb 14, 2019
8ac2884
Merge branch 'master' into re-stage-pr-1971
abernix Feb 14, 2019
be90c68
Update `package-lock.json` for `apollo-server-fastify`.
abernix Feb 14, 2019
8f204f4
Align `apollo-server-fastify`'s version in preparation for publishing.
abernix Feb 14, 2019
fce72b2
Update `CHANGELOG.md` for `apollo-server-fastify` release.
abernix Feb 14, 2019
f988a30
Publish
abernix Feb 14, 2019
939918a
Merge pull request #2280 from apollographql/re-stage-pr-1971
abernix Feb 14, 2019
5719cd4
Update `CHANGELOG.md` in preparation for v2.4.2 release.
abernix Feb 14, 2019
c1669c3
Publish
abernix Feb 14, 2019
d7ed89a
lazy load unused lambda packages in core
Feb 5, 2019
6910143
Merge branch 'lambda_lazy_load' of github.com:tyrsius/apollo-server i…
Feb 14, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,28 @@

### vNEXT

### v2.4.2

- `apollo-server-fastify` is now on Apollo Server and lives within the `apollo-server` repository. This is being introduced in a _patch_ version, however it's a _major_ version bump from the last time `apollo-server-fastify` was published under `1.0.2`. [PR #1971](https://github.com/apollostack/apollo-server/pull/1971)
- Move `apollo-graphql` package to the `apollo-tooling` repository [PR #2316](https://github.com/apollographql/apollo-server/pull/2316)

### v2.4.1

- Fix inaccurate total duration in apollo-tracing [PR #2298](https://github.com/apollographql/apollo-server/pull/2298)
- Avoid importing entire `crypto` dependency tree if not in Node.js. [PR #2304](https://github.com/apollographql/apollo-server/pull/2304)
- Allow passing `parseOptions` to `ApolloServerBase` constructor. [PR #2289](https://github.com/apollographql/apollo-server/pull/2289)
- Rename `azureFunctions.d.ts` to `azureFunctions.ts`. [PR #2287](https://github.com/apollographql/apollo-server/pull/2287)
- Require `apollo-engine-reporting` only if `EngineReportingAgent` used. [PR #2305](https://github.com/apollographql/apollo-server/pull/2305)

### v2.4.0

- Implement an in-memory cache store to save parsed and validated documents and provide performance benefits for repeat executions of the same document. [PR #2111](https://github.com/apollographql/apollo-server/pull/2111) (`>=2.4.0-alpha.0`)
- Fix: Serialize arrays as JSON on fetch in `RESTDataSource`. [PR #2219](https://github.com/apollographql/apollo-server/pull/2219)
- Fix: The `privateHeaders` configuration for `apollo-engine-reporting` now allows headers to be specified using any case and lower-cases them prior to comparison. [PR #2276](https://github.com/apollographql/apollo-server/pull/2276)
- Fix broken `apollo-server-azure-functions` TypeScript definitions. [PR #2287](https://github.com/apollographql/apollo-server/pull/2287)
- Fix: Skip loading `util.promifisy` polyfil in node >= 8 [PR #2278](https://github.com/apollographql/apollo-server/pull/2278)
- Lazy load `apollo-engine-reporting` and `subscriptions-transport-ws` in core [PR #2278](https://github.com/apollographql/apollo-server/pull/2278)
- disable `apollo-upload` in when running in AWS Lambda [PR #2278](https://github.com/apollographql/apollo-server/pull/2278)

### v2.3.3

Expand Down
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ Often times, Apollo Server needs to be run with a particular integration. To sta
- `apollo-server-express`
- `apollo-server-koa`
- `apollo-server-hapi`
- `apollo-server-fastify`
- `apollo-server-lambda`
- `apollo-server-azure-functions`
- `apollo-server-cloud-functions`
Expand Down Expand Up @@ -235,6 +236,25 @@ new ApolloServer({
})
```

## Fastify

```js
const { ApolloServer, gql } = require('apollo-server-fastify');
const { typeDefs, resolvers } = require('./module');

const server = new ApolloServer({
typeDefs,
resolvers,
});

const app = require('fastify')();

(async function () {
app.register(server.createHandler());
await app.listen(3000);
})();
```

### AWS Lambda

Apollo Server can be run on Lambda and deployed with AWS Serverless Application Model (SAM). It requires an API Gateway with Lambda Proxy Integration.
Expand Down
2 changes: 1 addition & 1 deletion jest.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
// We don't want to match `apollo-server-env` and
// `apollo-engine-reporting-protobuf`, because these don't depend on
// compilation but need to be initialized from as parto of `prepare`.
'^(?!apollo-server-env|apollo-engine-reporting-protobuf)(apollo-(?:server|graphql|datasource|cache-control|tracing|engine)[^/]*|graphql-extensions)(?:/dist)?((?:/.*)|$)': '<rootDir>/../../packages/$1/src$2'
'^(?!apollo-server-env|apollo-engine-reporting-protobuf)(apollo-(?:server|datasource|cache-control|tracing|engine)[^/]*|graphql-extensions)(?:/dist)?((?:/.*)|$)': '<rootDir>/../../packages/$1/src$2'
},
clearMocks: true,
globals: {
Expand Down
Loading