Commit graph

972 commits

Author SHA1 Message Date
Jim (_nderscore)
412be208c1 Fixed GraphQL Playground with custom configuration in production. (#1495)
* Fixed support for GraphQL Playground with custom configuration in production environments.

* Updated logic in `createPlaygroundOptions` to cast the `playground` option to a boolean
  if it is defined. Fall back to `isDev` logic only if undefined.
* Updated unit test for partial graphql playground options to emulate a 'production'
  environment, mimicking the scenario that was broken before.

* Add PR #1495 to CHANGELOG.

* Restore partial playground options test when no `NODE_ENV`
2018-08-14 10:43:52 -07:00
Robin van der Vleuten
989481fea8 Allow additional Hapi route options to be passed (#1384)
* Allow additional route options to be passed

* Updated changelog with PR
2018-08-14 10:26:13 -07:00
Sashko Stubailo
8ca7380347 Look in event.path first when selecting endpoint for GraphQL Playground on Lambda, and check for null (#1527)
* Look in event.path first, and check for null

See here: https://docs.aws.amazon.com/lambda/latest/dg/eventsources.html#eventsources-api-gateway-request

* Add to changelog
2018-08-13 15:58:23 -04:00
Martijn Walraven
fec517d06c Add Object.entries polyfill 2018-08-11 16:45:03 +02:00
Martijn Walraven
2369b06be2 Use strict top-level tsconfig and fix type issues or override per-package 2018-08-11 16:45:03 +02:00
Martijn Walraven
40bc73f61f Remove per-package Jest config and replace with single top-level config 2018-08-11 16:45:03 +02:00
Martijn Walraven
f40e419e75 Fix testRegex in apollo-datasource 2018-08-11 16:45:03 +02:00
Martijn Walraven
0d89fa7cde Make sure package.json includes clean script 2018-08-11 16:45:03 +02:00
Martijn Walraven
94b131a28e Change outdated dependency to file specifier 2018-08-11 16:45:03 +02:00
Martijn Walraven
c049792057 Fix setupFiles reference in Jest config 2018-08-11 16:45:03 +02:00
Martijn Walraven
ef4d5e4f95 Switch to using file specifiers and root level dev dependencies only 2018-08-11 16:45:03 +02:00
Martijn Walraven
ea6faf770a Replace prepublish scripts with prepare 2018-08-11 16:45:03 +02:00
Martijn Walraven
7cc9dac08d Use @apollographql/graphql-playground-html in apollo-server-micro 2018-08-11 16:45:03 +02:00
Martijn Walraven
e61333aa1c Remove package local .gitignore files 2018-08-11 16:45:03 +02:00
Martijn Walraven
167aa6aec7 Remove stray CircleCI config 2018-08-11 16:45:03 +02:00
Martijn Walraven
83e29cf0c4 Update package-lock.json 2018-08-11 16:45:03 +02:00
Martijn Walraven
06e31c3249 Remove per-package test, coverage and circle scripts 2018-08-11 16:45:03 +02:00
Martijn Walraven
943b91a564 Don't ignore package-lock.json 2018-08-11 16:45:03 +02:00
Renovate Bot
d00c01a84d chore(deps): update dependency request to v2.88.0 2018-08-11 04:29:47 +00:00
Renovate Bot
260ab80838 chore(deps): update dependency @types/node to v10.5.7 2018-08-10 13:53:15 +00:00
Renovate Bot
dfa92be140 chore(deps): update dependency @types/graphql to v0.13.4 2018-08-10 08:05:00 +00:00
Renovate Bot
cac8cc87d6 chore(deps): update dependency @types/aws-lambda to v8.10.11 2018-08-10 05:52:15 +00:00
Renovate Bot
1b7758532b chore(deps): update dependency yup to v0.26.2 2018-08-10 03:27:18 +00:00
Renovate Bot
47a1db3142 chore(deps): update dependency @types/lodash to v4.14.116 2018-08-03 06:19:19 +00:00
Renovate Bot
8b4a2f0a73 chore(deps): update dependency graphql-tools to v3.1.1 2018-08-03 04:02:13 +00:00
Renovate Bot
e79e708772 chore(deps): update dependency hapi to v17.5.3 2018-08-02 08:21:42 +00:00
Renovate Bot
4a16c461f4 chore(deps): update dependency @types/aws-lambda to v8.10.10 2018-08-02 06:15:53 +00:00
Renovate Bot
e4108fba4f chore(deps): update dependency graphql-tools to v3.1.0 2018-08-02 05:04:40 +00:00
Renovate Bot
62be6ff78d chore(deps): update dependency @types/node to v10.5.5 2018-08-01 12:43:22 +00: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
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
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
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
Renovate Bot
46bd6fcb19 chore(deps): update dependency @types/node to v10.5.3 2018-07-25 07:26:16 +00:00