Commit graph

2009 commits

Author SHA1 Message Date
Renovate Bot
62be6ff78d chore(deps): update dependency @types/node to v10.5.5 2018-08-01 12:43:22 +00:00
Martijn Walraven
f86be33a65 Remove no longer needed tests.js 2018-08-01 10:15:18 +02:00
Martijn Walraven
04cf5795d5 Standardize on "types" and move it after "main" in package.json 2018-08-01 10:13:16 +02:00
Martijn Walraven
9d053d6c93 Remove deprecated "typescript"/"definition" from package.json
This was only used by https://github.com/DefinitelyTyped/tsd, and hasn't been required since TypeScript 1.6.
2018-08-01 10:09:36 +02:00
Renovate Bot
fd43223ac7 chore(deps): update dependency subscriptions-transport-ws to v0.9.14 2018-08-01 00:50:38 +00:00
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
Renovate Bot
e77701c772 chore(deps): update dependency jest to v23.4.2 2018-07-31 02:18:27 +00:00
Jesse Rosenberger
85b97b6f0c docs: Correct path for GraphQL Playground. (#1427)
* docs: Correct path for GraphQL Playground.

This corrects the documentation which incorrectly stated that the message on the console would include `http://localhost:4000/graphql`.

While the `/graphql` URL will also serve the GraphQL Playground, it's only working as a by-product of of `/graphql` being included within the (higher) `/` path. (That is to say that `/any-url` would also respond!).

* [squash] Tweak per feedback.

cc @evans
2018-07-30 15:49:25 -07:00
Renovate Bot
6710575e6f chore(deps): update dependency prettier to v1.14.0 2018-07-30 09:40:27 +00:00
Renovate Bot
7f19fc239e chore(deps): update dependency @types/node to v10.5.4 2018-07-28 10:17:15 +00:00
Renovate Bot
4ce11f63a0 chore(deps): update dependency @types/lodash to v4.14.115 2018-07-28 08:07:16 +00:00
Renovate Bot
9cdc42ea76 chore(deps): update dependency @types/aws-lambda to v8.10.9 2018-07-28 06:22:17 +00:00
Renovate Bot
428d619728 chore(deps): update dependency @types/koa-router to v7.0.31 2018-07-28 04:38:01 +00:00
Wout Mertens
11abffb8ce express, koa: don't continue past playground render (#1436)
* server-express: don't continue past playground

* koa: remove extra next call after playground

* update changelog with remove next
2018-07-27 17:13:23 -07:00
Max Nachlinger
0b76e9ef00 Hapi: Pass toolkit to context function (#1407)
* Fix for #1382

* fix typo in changelog

* Added a few tests proving the response toolkit is passed into the context function
2018-07-27 16:49:55 -07:00
Prosper Otemuyiwa
e514cdfd4c
Cleanup subscriptions link (#1437)
* Remove graphql-subscriptions link from the sidebar

* Add graphql-subscriptions docs link under Subscriptions Feature
2018-07-27 16:47:34 +02:00
Martijn Walraven
3ba9bb91a4 Publish
- apollo-datasource-rest@0.1.1
2018-07-27 13:59:58 +02:00
Martijn Walraven
c502d678ae Remove memoized results when performing non-GET requests
Closes #1408.
2018-07-27 13:53:22 +02:00
Martijn Walraven
5f20676beb Only deduplicate and cache GET requests
Closes #1399.
2018-07-27 13:39:00 +02:00
Renovate Bot
3ba5440743 chore(deps): update dependency @types/lodash to v4.14.114 2018-07-27 08:01:50 +00:00
Renovate Bot
9acb67fa4e chore(deps): update dependency @types/jest to v23.3.1 2018-07-27 05:59:21 +00:00
Evans Hauser
37d20cfe66
Import engine reporting protobuf and fix reporting readme (#1429)
* Initial revision

* Ensure dist directory exists

* Add envrc for direnv users.

* protobufjs is a runtime dependency

* 0.0.0-beta.2

* update reports.proto with FullTracesReport

* 0.0.0-beta.3

* depend on @types/long

* 0.0.0-beta.4

* instead, do not use long

* 0.0.0-beta.5

* Add Details.variablesJson

* 0.0.0-beta.6

* comment-only update to new field

* 0.0.0-beta.7

* update a-e-reporting readme to reflect production ready state

* update changelog the engine reporting

* reporting-protobuf: prepare -> prepublish
2018-07-26 17:39:11 -07:00
Alireza Ahmadi
e91142d474 Remove unused test block in apollo-server-koa tests (#1409) 2018-07-26 14:17:16 -07:00
Mohamed Nimir
a700a3350b Fixed Wrong Header at unions-interfaces (#1425)
Fixed header at L#78 from `Intersection` to `Interface`
2018-07-26 14:15:58 -07:00
Martin Eboh
4f28b14745 Fix typo in scalars-enums.md (#1432)
Fixed a typo!
2018-07-26 14:14:40 -07:00
Martin Eboh
ff22b0210a Fix typo in subscriptions.md (#1431)
Fixed a typo!
2018-07-26 14:14:03 -07:00
Jesse Rosenberger
79191397fa docs: Remove @rc dist-tag from apollo-server-express README.md. (#1428)
It is no longer necessary to use the `rc` dist-tag when installing the `apollo-server-express` integration.
2018-07-26 12:20:27 -07:00
Renovate Bot
47dcfdb460 chore(deps): update dependency @types/hapi to v17.0.16 2018-07-26 05:05:32 +00:00
Sam Horton
16cd16d91a clarify typedefs API (#1389)
Add more accurate type information and example of using `typeDefs` in the `ApolloServer` constructor.
2018-07-25 22:40:32 +02:00
David Baumgold
2cf6617dbb Consistent lists in CHANGELOG.md (#1418)
Because VS Code likes to auto-format files
2018-07-25 15:39:22 +02:00
Renovate Bot
46bd6fcb19 chore(deps): update dependency @types/node to v10.5.3 2018-07-25 07:26:16 +00:00
Renovate Bot
2b1933bf5f chore(deps): update dependency redis-mock to v0.29.0 2018-07-24 06:19:29 +00:00
Renovate Bot
bfdc20ac91 chore(deps): update dependency @types/lodash to v4.14.113 2018-07-24 04:38:52 +00:00
Renovate Bot
6e0fe2483e chore(deps): update dependency sinon to v6.1.4 2018-07-23 11:52:01 +00:00
Renovate Bot
a78f13a8e0 chore(deps): update dependency node-fetch to v2.2.0 2018-07-23 09:49:42 +00:00
Renovate Bot
385f3ffb0b chore(deps): update dependency @types/aws-lambda to v8.10.8 2018-07-21 05:30:59 +00:00
Renovate Bot
c53ee5bb60 chore(deps): update dependency yup to v0.26.0 2018-07-21 03:07:05 +00:00
Martijn Walraven
95768ddc22 Fix error handling in RESTDataSource 2018-07-20 09:53:13 -07:00
Renovate Bot
496b686240 chore(deps): update dependency ts-jest to v23 2018-07-19 18:28:54 -07:00
Jesse Rosenberger
e9ed926052
docs: Remove leftover Git merge conflict delineation.
Fixes my bad from daf6ffefa1.
2018-07-19 15:17:07 -07:00
Jesse Rosenberger
daf6ffefa1
docs: Fix link to "GraphQL Playground" in "What's new?" guide. 2018-07-19 15:01:11 -07:00
Jesse Rosenberger
67e047887f
docs: fix link to "Fetching data with resolvers.". 2018-07-19 15:00:24 -07:00
Jesse Rosenberger
3ce81e2c00
docs: Fix link to makeExecutableSchema. 2018-07-19 15:00:24 -07:00
Jesse Rosenberger
820908ce77
docs: Remove intro paragraph about the "What's new?" page.
I don't think we need to explain what the "What's new" page is about in so many words.
2018-07-19 14:50:54 -07:00
Jesse Rosenberger
a4b6114bbb
docs: Move the instructions for migrating into the 2.0 section.
Most eyes will go to this section, so it seems best to include these important instructions there.
2018-07-19 14:45:35 -07:00
Jesse Rosenberger
836654d6ca
docs: Correct the structure of the whats-new.md.
This corrects the headings to be properly tiered/nested within each other, rather than having "2.0" at the same level as its features.

It also makes some slight wording changes, but more are to follow.
2018-07-19 14:24:44 -07:00
Jesse Rosenberger
4dda3b7140
docs: Remove reference to rc (release candidate) dist-tag.
Apollo Server 2.0 is now officially released and published to the `latest` tag!
2018-07-19 14:04:45 -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
Prosper Otemuyiwa
ca35b9fe1c Docs: Remove all RC references in Apollo Server 2 documentation (#1377)
* Remove rc from getting-started

* Remove rc from migration engine

* Remove RC references from migration 2 dot

* Remove rc references

* Remove RC references and correct spellings

* Remove RC references from Essentials

* Remove all RC references
2018-07-19 12:44:02 -07:00
Jesse Rosenberger
b3c80f3b2e
docs: Hyphenate "in-memory". 2018-07-19 10:52:58 -07:00