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

Apollo Server 2.0 without Docs #1063

Merged
merged 174 commits into from
Jun 1, 2018
Merged
Show file tree
Hide file tree
Changes from 103 commits
Commits
Show all changes
174 commits
Select commit Hold shift + click to select a range
bd80dd1
chore(deps): update dependency @adonisjs/bodyparser to v2.0.3
renovate-bot Apr 26, 2018
11aa855
docs: Fix typo in lambda package README (#999)
briandennis Apr 27, 2018
2750573
chore(deps): update dependency @types/aws-lambda to v8.10.3
renovate-bot Apr 27, 2018
1a0e27e
chore(deps): update dependency @types/node to v9.6.7
renovate-bot Apr 27, 2018
0fb310f
chore(deps): update dependency koa to v2.5.1
renovate-bot Apr 27, 2018
e5590e5
chore(deps): update dependency hapi to v17.4.0 (#1009)
renovate[bot] Apr 30, 2018
8915ef8
chore(deps): update dependency sinon to v5 (#1010)
renovate[bot] Apr 30, 2018
040737a
chore(deps): update dependency @types/node to v9.6.8
renovate-bot May 1, 2018
b7595b3
chore(deps): update dependency sinon to v5.0.2
renovate-bot May 1, 2018
adaad08
Temporarily remove version 2.
abernix May 3, 2018
f9d919c
chore(deps): update dependency sinon to v5.0.3
renovate-bot May 3, 2018
22d13f2
chore(deps): update dependency @types/node to v9.6.9
renovate-bot May 3, 2018
0e68e2e
errors: send stack in debug, codes, make ApolloErrors
evans Apr 18, 2018
a7a4e3d
started work on new apollo-server
Apr 3, 2018
f3bb826
move to updated API design
Apr 9, 2018
4ed7e5d
move to using express instead of micro
Apr 9, 2018
4c029b0
clean up and ui
Apr 11, 2018
e75fbf4
clean up of first pass and addition of koa
Apr 18, 2018
bdabe62
fix odd case in error handling
Apr 18, 2018
44a5412
use canary version
Apr 18, 2018
6d06a1c
allow passing engine: true and using env variables
Apr 18, 2018
b3b15e8
make graphiql root
Apr 18, 2018
de2d9dc
version bump with graphiql at root
Apr 18, 2018
35a5858
errors: change INTERNAL_ERROR to INTERNAL_SERVER_ERROR, matching http…
evans Apr 18, 2018
2bdc1fa
support all apollo-server-core options and setup build
Apr 23, 2018
59e68a2
how did a yarn lockfile get here?
Apr 23, 2018
cb09fef
Errors: latest codes and add exports to the apollo-server package
evans Apr 23, 2018
d88100a
errors: change formatError to internalFormatError and fix when user d…
evans Apr 23, 2018
4a06ca4
update from feedback
Apr 24, 2018
1fdef0c
apollo-server: npm compile uses cp to avoid breaking npm linked code
evans Apr 24, 2018
e207551
add error for passing app to nonvariant and added /graphiql callout
evans Apr 24, 2018
0992208
apollo-server: add prepublish command
evans Apr 24, 2018
93efedf
apollo-server: add health check endpoint (#992)
evans Apr 26, 2018
05fd515
default apollo-server offers graphiql at all endpoints if request not…
evans Apr 24, 2018
541476f
accept non application/json for simple get requests with ?query=
evans Apr 25, 2018
27c12d9
graphiql to a boolean and add graphqlPath to url on listen return
evans Apr 25, 2018
33e976f
apollo-server: add accepts and remove unused packages
evans Apr 25, 2018
1e3e23c
implemeted shared route for graphql ide and exection by checking requ…
evans Apr 25, 2018
1b672e5
fix default path to return /graphql rather than undefined
evans Apr 25, 2018
68a368b
shared graphql ide and execution for koa
evans Apr 25, 2018
0a77096
graphiql > gui and make content-type check only if necessary
evans Apr 25, 2018
80f96fc
apollo-server: cleared up comment on default application of middleware
evans Apr 27, 2018
21b68a8
apollo-server: comment how graphqlPath uses /graphql as default
evans Apr 27, 2018
086ac9f
apollo-server: use node's url module for path creation
evans Apr 27, 2018
a0191cc
apollo-server: factor out gui checking code
evans Apr 27, 2018
0cccdb9
root: add @types/graphql to package.json to fix cache-control compila…
evans Apr 27, 2018
720df52
apollo-server: export errors from variants
evans Apr 27, 2018
7b25a90
apollo-server: add message, location, and path to formatError
evans Apr 27, 2018
5eb23d8
apollo-server: collocation of graphql gui added to CHANGELOG
evans Apr 27, 2018
68dec79
clean up and move pieces around
May 1, 2018
a553365
cloudflare
May 1, 2018
ce7d72c
apollo-server-core: add mocks
evans May 1, 2018
1e78646
apollo-server-core: add changelog with mock
evans May 1, 2018
6b2e600
apollo-server-core: remove stack traces print and include response in…
evans May 1, 2018
52b6f76
apollo-server-core: Add changelog
evans May 1, 2018
8fdbfcd
apollo-server-core: remove unused function printStackTrace
evans May 1, 2018
cdf4c68
apollo-server-core: fix error printing and logging tests
evans May 1, 2018
6239aa9
apollo-server-core: remove merge artifact from changelog
evans May 1, 2018
16e8b17
fix header setting and error message for introspection
May 2, 2018
aaac1c8
initial full beta
May 2, 2018
f6eece6
apollo-server-core: move logging into separate file
evans May 2, 2018
2a51003
apollo-server-core: internalFormatError to formatApolloError
evans May 2, 2018
4645f20
apollo-server-core: apolloError places properties in root, so they ar…
evans May 2, 2018
a7772a0
apollo-server-core: wrap error thrown by context construction in apol…
evans May 2, 2018
e0332bb
apollo-server-core: added formatApolloError arguments to subscription…
evans May 3, 2018
75e661e
apollo-server-core: stronger typing on context in GraphQLServerOption…
evans May 3, 2018
5aeb36f
apollo-server-core: allow creation of context to be asynchronous
evans May 3, 2018
0fe53a6
apollo-server-core: capture context creation failure in GraphQL error
evans May 3, 2018
c4e3766
apollo-server-core: add check for null property in ApolloError
evans May 3, 2018
7dee300
apollo-server-express: fix tests to include error code
evans May 3, 2018
c83efac
apollo-server-integration-testsuite: fix tests for apollo-server 2
evans May 3, 2018
26c09e1
apollo-server-koa: add node types to koa
evans May 3, 2018
1f3103b
apollo-server-core: use getOwnPropertyNames to stay es5
evans May 4, 2018
26c3c07
build: remove node 4 tests
evans May 4, 2018
e18e231
chore(deps): update dependency @types/node to v9.6.11
renovate-bot May 4, 2018
e58db22
changelogs: added to root and apollo-server-core
evans May 4, 2018
95d23e7
chore(deps): update dependency @types/node to v9.6.12
renovate-bot May 5, 2018
1d6ca41
chore(deps): update dependency hexo-server to v0.3.2
renovate-bot May 5, 2018
5e3b642
chore(deps): update dependency sinon to v5.0.5
renovate-bot May 7, 2018
f6fc411
chore(deps): update dependency sinon to v5.0.6
renovate-bot May 7, 2018
98ec318
chore(deps): update dependency sinon to v5.0.7
renovate-bot May 8, 2018
2781cc8
apollo-server-core: remove unsued async from BaseServer's request fun…
evans May 8, 2018
ccb6eea
apollo-server-core: enrichError not exported and moved formatter chec…
evans May 8, 2018
8fe51be
apollo-server-core: add warning to options creation failure if debugD…
evans May 8, 2018
acae63c
apollo-server-core: remove Promise wrapping in async function return …
evans May 8, 2018
9099948
apollo-server-core: run http options allows query to be an array
evans May 8, 2018
b9858df
apollo-server-core: clarify context creation can be async in changelog
evans May 8, 2018
012f37a
engine -> engineProxy in listen, fix engineLauncherOptions, and unreq…
evans May 9, 2018
3fff064
chore(deps): update dependency @types/node to v9.6.14
renovate-bot May 9, 2018
7b78133
chore(deps): update dependency @types/sinon to v4.3.2
renovate-bot May 10, 2018
56955dc
apollo-server-core: remove extra Object assign, found by @justinanast…
evans May 11, 2018
1a34a0a
apollo-server: move registerServer call outside of disableHealthCheck…
evans May 11, 2018
e77a704
apollo-server: remove constructor modification and move extra options…
evans May 11, 2018
d08f862
apollo-server-express: add bodyParserConfig option to the listen meth…
evans May 11, 2018
6457b1a
chore(deps): update dependency @types/node to v9.6.15
renovate-bot May 11, 2018
70a09df
chore(deps): update dependency @types/sinon to v4.3.3
renovate-bot May 11, 2018
8072312
bump version of subscriptions-transport-ws for graphiql
baconz Apr 24, 2018
db47867
apollo-server-core: move subscriptions out of constructor into listen…
evans May 11, 2018
9fa4a8a
docs: add parameter movement from constructor to listen to changelog
evans May 11, 2018
98ca26a
apollo-server-hapi: initial implementation of apollo-server base class
evans May 11, 2018
6b80ac9
apollo-server-hapi: fix graphql gui request, bind server listen, and …
evans May 11, 2018
e10bf1d
apollo-server-hapi: update README to reflect Apollo-server 2 changes
evans May 11, 2018
ee6994b
apollo-server-hapi: remove subscriptions boolean from register option…
evans May 11, 2018
5d27900
apollo-server-core: feedback from #979 to improve readability and spe…
evans May 12, 2018
0e4848d
apollo-server: subscriptions options condensed to on option and ensur…
evans May 12, 2018
973b096
apollo-server-core: enableIntrospection -> introspection
evans May 12, 2018
8e1f354
apollo-server-core: type errors returned as ApolloErrors and add abil…
evans May 16, 2018
2267708
apollo-server-core: check for options as optional
evans May 16, 2018
8fd2c12
apollo-server-core: add test for errors
evans May 16, 2018
3c71f34
apollo-server-core: set error prototypes explicitly
evans May 20, 2018
1ffac8b
apollo-server-core: add instanceof error tests thanks to @JustinDSN
evans May 20, 2018
858216c
apollo-server-core: move environment checking into the constructor to…
evans May 20, 2018
a3daf7d
apollo-server-core: keep referrence to subscriptions server and clean…
evans May 20, 2018
3735221
apollo-server-core: add tests for ApolloServerBase basic functionality
evans May 20, 2018
aad7c39
build: update dependencies and remove extra node typings
evans May 20, 2018
c5687ae
apollo-server-core: await server stop and restore node env in test
evans May 20, 2018
6ab3a62
apollo-server-core: add changelog for error prototyping fixes
evans May 20, 2018
5749c0a
apollo-server-core: test for starting up engine
evans May 21, 2018
138a0b5
build: readd @types/node and type configuration for tsconfig
evans May 21, 2018
04006e4
build: skipLibraryChecks when compiling
evans May 21, 2018
072aef4
tsconfig: remove typeRoots from tsconfig and automatic retreival of n…
evans May 21, 2018
84e7633
package.json: remove node and graphql types from root and unnecessary…
evans May 21, 2018
4f00977
apollo-server-core: fix typings on operation ast check for null ast
evans May 21, 2018
aea7c4e
apollo-server-core: fix test after update typings to node 10
evans May 21, 2018
23f5b76
apollo-server-core: ApolloError extends Error and implements GraphQLE…
evans May 21, 2018
b568677
apollo-server-azure-functions: add @types/node
evans May 21, 2018
2e9d468
apollo-server-core: add comment about ApolloError construction
evans May 21, 2018
361b661
lerna: add hoist option
evans May 21, 2018
582698c
package.json: update @types/graphql
evans May 21, 2018
d935e51
apollo-server-core: update graphql-tools
evans May 22, 2018
ae3fc36
Update all apollo-server-core dependencies
glasser May 17, 2018
40d8879
apollo-server-core: runHttpQuery accepts options function with arguments
evans May 22, 2018
ee7c99b
tests: fix unhandled rejection log in test runner
evans May 22, 2018
c9eaae6
Merge pull request #1074 from apollographql/server-2.0/testing
evans May 22, 2018
57328e2
apollo-server-core: move http options under own key in listenOptions
evans May 22, 2018
dccb482
Merge pull request #1080 from apollographql/server-2.0/http-option
evans May 22, 2018
f04b76f
apollo-server-hapi: add options parameter to create a server (#1082)
evans May 22, 2018
712a562
package.json: beta.2 for apollo-server, beta.1 for core/express, beta…
evans May 22, 2018
69be8c8
apollo-server-hapi: add cors option to registerServer (#1085)
evans May 23, 2018
1f78463
apollo-server: move health check into variant's registerServer call
evans May 23, 2018
06a4bcb
apollo-server: add cors options to listen function
evans May 23, 2018
45d3614
Merge pull request #1086 from apollographql/server-2.0/healthcheck-in…
evans May 23, 2018
6b94408
apollo-server: remove registerServer config from listen (#1090)
evans May 24, 2018
3acb7c7
apollo-server: tests constructor and basic queries
evans May 24, 2018
f1fa8ad
apollo-server-express: tests constructor, registerServer options, and…
evans May 24, 2018
cc5f81f
tests: add apollo-server{,-express} tests to main test runner
evans May 24, 2018
9342658
apollo-server-express: remove circular devDependeny on apollo-server …
evans May 24, 2018
5b98a07
apollo-server-express: move import of apollo-server in tests to a req…
evans May 24, 2018
b4bad69
Merge pull request #1095 from apollographql/server-2.0/testing
evans May 24, 2018
43d545f
apollo-server-core: add request object to runHttpQuery for access to …
evans May 24, 2018
8b6b016
Be consistent about where GraphQL queries are parsed
glasser May 17, 2018
220d2ed
apollo-server-core: move query presence check to after formatParams
evans May 24, 2018
8c92c1a
integration-testsuite: add error on AST passed to server as query
evans May 24, 2018
f118ed4
apollo-server-core: add note about mutation on GET request ad-hoc error
evans May 24, 2018
1c46a32
apollo-server-core: add changelog entry for removing AST over the wire
evans May 24, 2018
447bb18
Merge pull request #1097 from apollographql/server-2.0/consistent-que…
evans May 24, 2018
5412885
apollo-server 2: uploads as schema enhancement fulfilled in registerS…
evans May 29, 2018
da31690
runQuery accepts Request object that variants create (#1108)
evans May 30, 2018
5bb652a
hapi: add new server instantiation to the readme
evans May 30, 2018
4609ee9
core: evaluate context per request and differ error until caught in r…
evans May 30, 2018
9e07cb3
core: add test around throwing Authentication error inside of context…
evans May 30, 2018
7d17f1f
core: made name non-eunumerable in ApolloError and removed extra code…
evans May 30, 2018
7cad97e
core: add tests error handling in resolvers with production env
evans May 30, 2018
c5ba902
express: add fallback for file uploads middleware if not enabled
evans May 31, 2018
63d0f72
core: error resurfacing for merged schemas that hide errors in a Comb…
evans May 31, 2018
38c8713
Merge pull request #1113 from apollographql/server-2.0/context-fix
evans May 31, 2018
2acf565
Added an option to support additional extensions
sebas5384 Apr 3, 2018
7444904
Update for graphql-extensions@0.1.0 API
glasser May 17, 2018
6618965
Rename ApolloServer.request to graphQLServerOptionsForRequest
glasser May 30, 2018
5e1b49b
basic apollo-engine-reporting integration
glasser May 31, 2018
ec7394d
apollo-server,core,hapi,express: bump package to newest beta
evans Jun 1, 2018
4405405
hapi,express: fix graphql playground subscriptitionPath argument for …
evans Jun 1, 2018
1a305eb
Merge pull request #1105 from apollographql/glasser/extensions-0.1.0
glasser Jun 1, 2018
db3316c
Merge branch 'version-2' into refactor-2.0
evans Jun 1, 2018
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
6 changes: 0 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ jobs:
# Platform tests, each with the same tests but different platform or version.
# The docker tag represents the Node.js version and the full list is available
# at https://hub.docker.com/r/circleci/node/.
Node.js 4:
docker: [ { image: 'circleci/node:4' } ]
<<: *common_test_steps

Node.js 6:
docker: [ { image: 'circleci/node:6' } ]
<<: *common_test_steps
Expand Down Expand Up @@ -79,8 +75,6 @@ workflows:
version: 2
Build and Test:
jobs:
- Node.js 4:
<<: *ignore_doc_branches
- Node.js 6:
<<: *ignore_doc_branches
- Node.js 8:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All of the packages in the `apollo-server` repo are released with the same versi

### vNEXT

* Upgrade `subscription-transport-ws` to 0.9.9 for Graphiql
* Remove tests and guaranteed support for Node 4 [PR #1024](https://github.com/apollographql/apollo-server/pull/1024)

### v1.3.6

* Recognize requests with Apollo Persisted Queries and return `PersistedQueryNotSupported` to the client instead of a confusing error. [PR #982](https://github.com/apollographql/apollo-server/pull/982)
Expand Down
1 change: 0 additions & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ subtitle: Apollo Server
description: A guide to using Apollo Server.
versions:
- '1'
- '2'
sidebar_categories:
null:
- index
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"hexo-renderer-ejs": "0.3.1",
"hexo-renderer-less": "0.2.0",
"hexo-renderer-marked": "0.3.2",
"hexo-server": "0.3.1",
"hexo-server": "0.3.2",
"meteor-theme-hexo": "1.0.9"
},
"scripts": {
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@
},
"devDependencies": {
"@types/chai": "4.1.3",
"@types/graphql": "^0.13.0",
"@types/mocha": "5.2.0",
"@types/node": "9.6.6",
"@types/sinon": "4.3.0",
"@types/node": "9.6.15",
"@types/sinon": "4.3.3",
"chai": "4.1.2",
"graphql": "0.13.2",
"husky": "0.14.3",
Expand All @@ -47,7 +48,7 @@
"prettier": "1.12.1",
"prettier-check": "2.0.0",
"remap-istanbul": "0.11.1",
"sinon": "4.5.0",
"sinon": "5.0.7",
"supertest": "3.0.0",
"supertest-as-promised": "4.0.2",
"typescript": "2.8.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/apollo-server-adonis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"apollo-server-module-graphiql": "^1.3.4"
},
"devDependencies": {
"@adonisjs/bodyparser": "2.0.2",
"@adonisjs/bodyparser": "2.0.3",
"@adonisjs/fold": "4.0.8",
"@adonisjs/framework": "4.0.31",
"@adonisjs/sink": "1.0.16",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,31 +1,35 @@
{
"name": "graphql-server-module-graphiql",
"version": "1.3.4",
"description": "GraphiQL renderer for Apollo GraphQL Server",
"name": "apollo-server-cloudflare",
"version": "1.0.0-beta.0",
"description": "Production-ready Node.js GraphQL server for Cloudflare workers",
"main": "dist/index.js",
"scripts": {
"compile": "tsc",
"prepublish": "npm run compile"
},
"repository": {
"type": "git",
"url": "https://github.com/apollographql/apollo-server/tree/master/packages/graphql-server-module-graphiql"
"url": "https://github.com/apollographql/apollo-server/tree/master/packages/apollo-server-cloudflare-workers"
},
"keywords": [
"GraphQL",
"GraphiQL",
"Apollo",
"Server",
"Cloudflare",
"Javascript"
],
"author": "Jonas Helfer <jonas@helfer.email>",
"license": "MIT",
"bugs": {
"url": "https://github.com/apollographql/apollo-server/issues"
},
"homepage": "https://github.com/apollographql/apollo-server#readme",
"dependencies": {
"apollo-server-core": "2.0.0-beta.0",
"apollo-server-module-graphiql": "^1.3.4"
},
"devDependencies": {
"@types/graphql": "0.12.7"
},
"typings": "dist/index.d.ts",
"typescript": {
"definition": "dist/index.d.ts"
Expand Down
18 changes: 18 additions & 0 deletions packages/apollo-server-cloudflare/src/ApolloServer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { graphqlCloudflare } from './cloudflareApollo';

import { ApolloServerBase } from 'apollo-server-core';

interface FetchEvent extends Event {
respondWith: (result: Promise<ResponseInit>) => void;
request: RequestInit;
}

export class ApolloServer extends ApolloServerBase {
public async listen() {
const graphql = this.request.bind(this);
addEventListener('fetch', (event: FetchEvent) => {
event.respondWith(graphqlCloudflare(graphql)(event.request));
});
return await { url: '', port: null };
}
}
67 changes: 67 additions & 0 deletions packages/apollo-server-cloudflare/src/cloudflareApollo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import * as url from 'url';
import {
GraphQLOptions,
HttpQueryError,
runHttpQuery,
} from 'apollo-server-core';
// import * as GraphiQL from 'apollo-server-module-graphiql';

// Design principles:
// - You can issue a GET or POST with your query.
// - simple, fast and secure
//

export function graphqlCloudflare(options: GraphQLOptions) {
if (!options) {
throw new Error('Apollo Server requires options.');
}

if (arguments.length > 1) {
throw new Error(
`Apollo Server expects exactly one argument, got ${arguments.length}`,
);
}

const graphqlHandler = async (req: RequestInit): Promise<Response> => {
const url = new URL((req as Request).url);
const query =
req.method === 'POST'
? await (req as Request).json()
: {
query: url.searchParams.get('query'),
variables: url.searchParams.get('variables'),
operationName: url.searchParams.get('operationName'),
extensions: url.searchParams.get('extensions'),
};

return runHttpQuery([req], {
method: req.method,
options: options,
query,
}).then(
gqlResponse =>
new Response(gqlResponse, {
status: 200,
headers: { 'content-type': 'application/json' },
}),
(error: HttpQueryError) => {
if ('HttpQueryError' !== error.name) throw error;

const res = new Response(error.message, {
status: error.statusCode,
headers: { 'content-type': 'application/json' },
});

if (error.headers) {
Object.keys(error.headers).forEach(header => {
res.headers[header] = error.headers[header];
});
}

return res;
},
);
};

return graphqlHandler;
}
2 changes: 2 additions & 0 deletions packages/apollo-server-cloudflare/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { graphqlCloudflare } from './cloudflareApollo';
export { ApolloServer } from './ApolloServer';
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"extends": "../../tsconfig",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist"
"outDir": "./dist",
"lib": ["es6", "esnext.asynciterable", "dom"],
"types": ["@types/node"]
},
"exclude": ["node_modules", "dist"]
}
9 changes: 9 additions & 0 deletions packages/apollo-server-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Changelog

### vNEXT

* `apollo-server-core`: move subscriptions options into listen [PR#1059](https://github.com/apollographql/apollo-server/pull/1059)
* `apollo-server-core`: Replace console.error with logFunction for opt-in logging [PR #1024](https://github.com/apollographql/apollo-server/pull/1024)
* `apollo-server-core`: context creation can be async and errors are formatted to include error code [PR #1024](https://github.com/apollographql/apollo-server/pull/1024)
* `apollo-server-core`: add `mocks` parameter to the base constructor(applies to all variants) [PR#1017](https://github.com/apollographql/apollo-server/pull/1017)
* `apollo-server-core`: Remove printing of stack traces with `debug` option and include response in logging function[PR#1018](https://github.com/apollographql/apollo-server/pull/1018)
15 changes: 11 additions & 4 deletions packages/apollo-server-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apollo-server-core",
"version": "1.3.6",
"version": "2.0.0-beta.0",
"description": "Core engine for Apollo GraphQL server",
"main": "dist/index.js",
"scripts": {
Expand All @@ -27,20 +27,27 @@
"devDependencies": {
"@types/fibers": "0.0.30",
"@types/graphql": "0.12.7",
"@types/node": "^9.6.1",
"@types/ws": "^4.0.2",
"apollo-engine": "^1.0.6",
"fibers": "1.0.15",
"meteor-promise": "0.8.6",
"typescript": "2.8.3"
},
"peerDependencies": {
"graphql": "^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0"
"graphql": "^0.12.0 || ^0.13.0 || ^14.0.0"
},
"typings": "dist/index.d.ts",
"typescript": {
"definition": "dist/index.d.ts"
},
"dependencies": {
"apollo-cache-control": "^0.1.0",
"apollo-cache-control": "^0.1.1",
"apollo-tracing": "^0.1.0",
"graphql-extensions": "^0.0.x"
"graphql-extensions": "^0.0.x",
"graphql-subscriptions": "^0.5.8",
"graphql-tools": "^2.23.1",
"subscriptions-transport-ws": "^0.9.7",
"ws": "^5.1.1"
}
}
Loading