Evans Hauser
9dd1fec766
Mocha to Jest Test Conversion ( #1453 )
...
* import jest
* remove mocha, chai, sinon
* fix JSON parsing for package.json
* replace import mocha, chai, sinon with jest
* add jest as test npm script
* remove dependency on mocha types
* errors: remove unused jest tests
* move tests to __tests__ folders
* add jest types to root tsconfig
* fix tsconfig include excludes
* .to.equal -> toEqual
* .true -> .toBe(true)
* .to.deep.equal -> .toEqual
* .to.exist -> .toBeDefined()
* .to.contain -> .toMatch
* .to.match -> .toMatch
* to.be.undefined -> .toBeUndefined()
* not.toBeDefined -> .toBeUndefined
* bring integration test up to date with past changes
* remove message from expect
* .null -> .toBe(null)
* expect.fail -> done.fail
* callsFake -> jest.fn
* mocha mock calls -> jest
* .not.to.exist -> .toBeUndefined()
* callCount -> mocks.calls.length
* returns -> jest.fn()
* .equals -> .toEqual
* fix relative imports
* remove string in expects and place as comment
* remove Fibers from runQuery
* restore -> mockRestore
* before -> beforeAll
* after -> afterAll
* fix async_hooks test and Promise await
* remove jest from testsuite package json
* remove unnecessary apollo-server-env setup
* add start of cloudflare tests
* this.timeout -> timeout argument
* express: fix relative require
* import gql tag properly
* .to.throw -> .toThrow
* .to.be.instanceof -> .toBeInstanceOf
* remove console log check test
* done(Error) -> done.fail(Error)
* done -> done.fail
* change port numbers, since jest runs in parallel
* fix toBeUndefined for null checks
* make engine port unique in testsuite
* make data source rest endpoint port unique
* add coverage scripts
* travis npm script -> cricle script
* make engine port random
* change ports to not conflict across integrations
* increase node version for apollo-server-hapi
* add node versioning to prevent hapi tests from running
* move jest dependencies to the root package.json
* make hapi port unique
* fix port reference in hapi tests
2018-07-31 15:40:03 -07:00
Evans Hauser
04e0d5bce0
Publish
...
- apollo-cache-control@0.2.0
- apollo-datasource-rest@0.1.0
- apollo-datasource@0.1.0
- apollo-engine-reporting@0.0.0
- apollo-server-cache-memcached@0.1.0
- apollo-server-cache-redis@0.1.0
- apollo-server-caching@0.1.0
- apollo-server-cloudflare@2.0.0-rc.12
- apollo-server-core@2.0.0
- apollo-server-env@2.0.0
- apollo-server-errors@2.0.0
- apollo-server-express@2.0.0
- apollo-server-hapi@2.0.0
- apollo-server-integration-testsuite@2.0.0
- apollo-server-koa@2.0.0
- apollo-server-lambda@2.0.0
- apollo-server-micro@2.0.0
- apollo-server@2.0.0
- apollo-tracing@0.2.0
- graphql-extensions@0.1.0
2018-07-19 12:49:55 -07:00
Martijn Walraven
eeeea09ce5
Publish
...
- apollo-cache-control@0.2.0-rc.4
- apollo-datasource-rest@0.1.0-rc.11
- apollo-datasource@0.1.0-rc.11
- apollo-engine-reporting@0.0.0-rc.5
- apollo-server-caching@0.1.0-rc.11
- apollo-server-cloudflare@2.0.0-rc.11
- apollo-server-core@2.0.0-rc.11
- apollo-server-env@2.0.0-rc.11
- apollo-server-errors@2.0.0-rc.11
- apollo-server-express@2.0.0-rc.11
- apollo-server-hapi@2.0.0-rc.11
- apollo-server-integration-testsuite@2.0.0-rc.11
- apollo-server-koa@2.0.0-rc.11
- apollo-server-lambda@2.0.0-xrc.11
- apollo-server-memcached@0.1.0-rc.11
- apollo-server-micro@2.0.0-rc.11
- apollo-server-redis@0.1.0-rc.11
- apollo-server@2.0.0-rc.11
- apollo-tracing@0.2.0-rc.4
- graphql-extensions@0.1.0-rc.5
2018-07-17 16:11:33 -07:00
Evans Hauser
9518c0ff1a
Publish
...
- apollo-cache-control@0.2.0-rc.3
- apollo-datasource-rest@0.1.0-rc.10
- apollo-datasource@0.1.0-rc.10
- apollo-engine-reporting@0.0.0-rc.4
- apollo-server-caching@0.1.0-rc.10
- apollo-server-cloudflare@2.0.0-rc.10
- apollo-server-core@2.0.0-rc.10
- apollo-server-env@2.0.0-rc.10
- apollo-server-errors@2.0.0-rc.10
- apollo-server-express@2.0.0-rc.10
- apollo-server-hapi@2.0.0-rc.10
- apollo-server-integration-testsuite@2.0.0-rc.10
- apollo-server-koa@2.0.0-rc.10
- apollo-server-lambda@2.0.0-xrc.10
- apollo-server-memcached@0.1.0-rc.10
- apollo-server-micro@2.0.0-rc.10
- apollo-server-redis@0.1.0-rc.10
- apollo-server@2.0.0-rc.10
- apollo-tracing@0.2.0-rc.3
- graphql-extensions@0.1.0-rc.4
2018-07-17 10:55:45 -07:00
Evans Hauser
0144d4b2db
Publish
...
- apollo-cache-control@0.2.0-rc.2
- apollo-datasource-rest@0.1.0-rc.9
- apollo-datasource@0.1.0-rc.9
- apollo-engine-reporting@0.0.0-rc.3
- apollo-server-caching@0.1.0-rc.9
- apollo-server-cloudflare@2.0.0-rc.9
- apollo-server-core@2.0.0-rc.9
- apollo-server-env@2.0.0-rc.9
- apollo-server-errors@2.0.0-rc.9
- apollo-server-express@2.0.0-rc.9
- apollo-server-hapi@2.0.0-rc.9
- apollo-server-integration-testsuite@2.0.0-rc.9
- apollo-server-koa@2.0.0-rc.9
- apollo-server-lambda@2.0.0-xrc.9
- apollo-server-memcached@0.1.0-rc.9
- apollo-server-micro@2.0.0-rc.9
- apollo-server-redis@0.1.0-rc.9
- apollo-server@2.0.0-rc.9
- apollo-tracing@0.2.0-rc.2
- graphql-extensions@0.1.0-rc.3
2018-07-17 10:44:15 -07:00
Evans Hauser
e04a570f7e
pin internal dependencies ( #1361 )
2018-07-16 16:15:10 -07:00
Evans Hauser
fa6c973f36
Fix and Export Extension and Playground Types ( #1360 )
...
* export playground types
* make playground configuration recursively partial
2018-07-16 15:49:20 -07:00
renovate[bot]
3b3c50a1ab
chore(deps): pin dependencies ( #1346 )
2018-07-16 09:56:51 -07:00
Evans Hauser
db6fdd32f1
Publish
...
- apollo-cache-control@0.2.0-rc.1
- apollo-datasource-rest@2.0.0-rc.8
- apollo-datasource@2.0.0-rc.8
- apollo-engine-reporting@0.0.0-rc.2
- apollo-server-caching@2.0.0-rc.8
- apollo-server-cloudflare@2.0.0-rc.8
- apollo-server-core@2.0.0-rc.8
- apollo-server-env@2.0.0-rc.8
- apollo-server-errors@2.0.0-rc.8
- apollo-server-express@2.0.0-rc.8
- apollo-server-hapi@2.0.0-rc.8
- apollo-server-integration-testsuite@2.0.0-rc.8
- apollo-server-koa@2.0.0-rc.8
- apollo-server-lambda@2.0.0-xrc.8
- apollo-server-memcached@2.0.0-rc.8
- apollo-server-micro@2.0.0-rc.8
- apollo-server-redis@2.0.0-rc.8
- apollo-server@2.0.0-rc.8
- apollo-tracing@0.2.0-rc.1
- graphql-extensions@0.1.0-rc.2
2018-07-13 17:49:39 -07:00
Adam Zionts
11b867114e
Move gui
option into constructor and use playground
( #1297 )
...
* Add a wider diversity of `gui` options
Although I know we want to remain less tied to the GraphQL Playground
GUI options, we definitely want to support a wider variety of options to
be passed in. This adds support for specifying partial options either
statically or dynamically for the gui, which can be extended to allow
for a wider array of guis than only GraphQL playground.
* Add boolean option and configuration for tabs
* move gui setting into ApolloServer Constructor
* document playground configuration in the constructor
* update playground types and fixed micro + koa integrations
* change gui to playground
* docs: change gui to playground
* fix logic for playground creation
2018-07-11 15:42:00 -07:00
Prosper Otemuyiwa
61b4939327
Enable GraphQLUpload for Apollo Server 2.0 ( #1322 )
...
* export GraphQLUpload
* fix GraphQLScalar typing
2018-07-10 05:36:34 +01:00
Evans Hauser
13b796fe34
Publish
...
- apollo-cache-control@0.2.0-rc.0
- apollo-datasource-rest@2.0.0-rc.7
- apollo-engine-reporting@0.0.0-rc.1
- apollo-server-caching@2.0.0-rc.7
- apollo-server-cloudflare@2.0.0-rc.7
- apollo-server-core@2.0.0-rc.7
- apollo-server-env@2.0.0-rc.7
- apollo-server-errors@2.0.0-rc.7
- apollo-server-express@2.0.0-rc.7
- apollo-server-hapi@2.0.0-rc.7
- apollo-server-integration-testsuite@2.0.0-rc.7
- apollo-server-koa@2.0.0-rc.7
- apollo-server-lambda@2.0.0-rc.7
- apollo-server-memcached@2.0.0-rc.7
- apollo-server-micro@2.0.0-rc.7
- apollo-server-redis@2.0.0-rc.7
- apollo-server@2.0.0-rc.7
- apollo-tracing@0.2.0-rc.0
- graphql-extensions@0.1.0-rc.1
2018-07-09 19:32:59 -07:00
Hugh Willson
c356bcf3f2
Apollo Server 2 Micro integration ( #1279 )
...
* Initial basic Micro integration
* Wire up health check capabilities
* Add playground support; Refactoring
* Add custom path support
* Add file upload support
* Add subscription support
* Documentation and formatting updates
* Wire up tests
* Add Node 10 workaround for file upload testing
* Code review changes (docs, naming, formatting)
* Adjust exports to line up with other integrations
* micro: add graphql to npm install and lines to highlight in docs
2018-07-05 11:40:15 -07:00
David Glasser
40f9a4982f
Remove packages for frameworks that don't yet support 2.0
...
Previously, we were planning to offer two kinds of APIs in "Apollo Server 2":
middleware functions just like in 1.0, and the new ApolloServer class. We have
not yet implemented ApolloServer for all of our supported web frameworks, so
this meant that the 2.0 version of modules such as apollo-server-koa (which does
not yet have an ApolloServer class) offered very little benefits over
apollo-server-koa@1.0 (as most of the benefits of 2.0 come from ApolloServer).
This is confusing. We are going to improve the current registerServer API so
that there's no real benefit to using a separately-exported middleware directly
rather than creating an ApolloServer and applying it to your web framework. So
the AS 2.0 API will just be ApolloServer. This means it doesn't make sense for
us to publish 2.x versions of the packages that don't yet support this API.
So this commit removes support for the following web frameworks: Adonis, Azure
Functions, Koa, Lambda, Micro, and Restify. (We leave in place Express, Hapi,
and Cloudflare workers.)
This isn't because we don't like these frameworks and don't want them to work
with Apollo Server 2.0! We would love to see each package resurrected and an
ApolloServer implementation built, either during this current 2.x beta phase or
after the official 2.0 release. Deleting these packages for now makes it more
clear which frameworks support 2.0 and which don't, rather than existing in a
state where apollo-server-express@2 has ApolloServer and apollo-server-koa@2
does not.
2018-06-13 13:45:10 -07:00
David Glasser
519b6fd056
v2.0.0-beta.9
2018-06-13 11:47:30 -07:00
Evans Hauser
db8eba871f
v2.0.0-beta.8
2018-06-12 17:54:55 -07:00
David Glasser
df8e487368
v2.0.0-beta.7
2018-06-11 18:45:23 -07:00
David Glasser
3e93524ac3
v2.0.0-beta.6
2018-06-11 15:54:01 -07:00
Martijn Walraven
e4164c8892
Enable esModuleInterop and fix imports
...
See https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html
2018-06-11 14:25:59 +02:00
Martijn Walraven
4a068cff74
Add engines field with node >= 8 in package.json
2018-06-11 13:21:51 +02:00
Evans Hauser
4c6352aad7
v2.0.0-beta.5
2018-06-07 14:50:13 -07:00
Evans Hauser
5079246bc4
apollo-server,core,hapi,express: bump package to newest beta.4
2018-06-04 10:16:54 -07:00
David Glasser
836616bd04
Turn on noUnusedLocals and noUnusedParameters ( #1126 )
2018-06-01 15:16:16 -07:00
Evans Hauser
ec7394d1b3
apollo-server,core,hapi,express: bump package to newest beta
2018-06-01 12:34:49 -07:00
Evans Hauser
da316908d2
runQuery accepts Request object that variants create ( #1108 )
...
* core: runQuery accepts Request object that integrations create
* core: add changelog for Requst in runQuery
* adonis: correct request object passed to runQuery
* core: change convertHttpMessageToRequest to convertNodeHttpToRequest
2018-05-29 21:37:38 -07:00
Evans Hauser
43d545f8ab
apollo-server-core: add request object to runHttpQuery for access to headers ( #1096 )
2018-05-24 15:43:17 -07:00
Evans Hauser
712a562858
package.json: beta.2 for apollo-server, beta.1 for core/express, beta.0 for hapi
2018-05-22 11:16:59 -07:00
David Glasser
ae3fc36da0
Update all apollo-server-core dependencies
2018-05-21 20:27:57 -07:00
Evans Hauser
84e763358e
package.json: remove node and graphql types from root and unnecessary variants
2018-05-21 15:31:57 -07:00
Evans Hauser
072aef410b
tsconfig: remove typeRoots from tsconfig and automatic retreival of node types
2018-05-21 15:29:37 -07:00
David Glasser
b32e89c060
v1.3.6
2018-04-24 11:35:14 -07:00
Jesse Rosenberger
9d0e7b6866
v1.3.5
2018-04-18 16:10:04 +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
David Glasser
d4751e2f04
Update status badges for Circle correctly
2018-03-28 14:03:32 -07:00
David Glasser
80bce88b5b
Update status badges for Circle
2018-03-28 14:01:46 -07:00
David Glasser
bd2504e04b
v1.3.4
2018-03-28 13:57:11 -07:00
Renovate Bot
273d5349b4
chore(deps): update dependency @types/graphql to v0.12.7
2018-03-28 07:03:40 +00:00
David Glasser
0f7c1c53b4
Update CHANGELOG for all releases back to v1.1.3 ( #915 )
...
There were many missing releases and bullet points as well as inaccurate
ones. For example, it was impossible to figure out that users of Hapi 16 who
want to use Apollo Cache Control needed to use precisely version 1.2.0 of
apollo-server-hapi (which wasn't even mentioned).
Link to CHANGELOG from all READMEs. Add READMEs for the graphql-server-*
packages. Add an explanation of our versioning system to the top of
CHANGELOG.md.
2018-03-27 09:22:13 -07:00
Jesse Rosenberger
19d04ff7f7
v1.3.3
2018-03-26 17:20:44 +03:00
Renovate Bot
a4e2e3e893
chore(deps): update dependency @types/graphql to v0.12.6
2018-03-23 07:02:17 +00:00
renovate[bot]
5eae20e92f
chore(deps): update dependency @types/graphql to v0.12.5 ( #887 )
2018-03-16 14:06:15 +02:00
Renovate Bot
d50b6b6fb2
chore(deps): update dependency graphql to v0.13.1
2018-03-13 16:01:14 +00:00
Sashko Stubailo
281392c3f0
Update to graphql@0.12 ( #726 )
...
* Update peer deps and tests for 0.12
* v1.3.2
2018-03-13 17:10:37 +02:00
Laurin Quast
df51fd90da
Setup prettier ( #724 )
...
* Setup prettier and precommit hooks
* Format code with prettier
* Use husky because it works...
* Move prettier config to .prettierrc file
* Implement fixing markdown file formatting when running lint-fix script
* Format markdown files
* Add .json file formatting
* Fixes json file formatting
* Add pretteir linting step
* Remove tslint
* Use gitignore for prettier
* Fix linting errors
* Ignore submodule folder
2018-01-08 15:08:01 -08:00
Martijn Walraven
6685ecb458
v1.3.1
2017-12-18 07:34:48 +01:00
Renovate Bot
0c439cb35f
chore(deps): update dependency @types/graphql to v0.11.7
2017-12-12 20:31:42 +00:00
Martijn Walraven
9ba34306ed
v1.3.0
2017-12-12 09:45:49 +01:00
Sashko Stubailo
93f052352c
Docs improvements ( #692 )
...
* Freshen up title page
* Improve homepage further
* File a PR!
* Try adding express README to sidebar
* Add READMEs to docs
* Add example page, overhaul setup
* More stuff
* Fix all old URLs
* Eliminate all mentions of graphql-server
* Fix azure functions shit
2017-12-11 23:11:11 -08:00
Tung Vu
4264114e20
chore: update peerDependencies version for micro ( #671 )
2017-12-04 14:42:31 +01:00
Martijn Walraven
3fecfcd321
v1.2.0
2017-10-24 09:14:51 -07:00