Commit graph

2009 commits

Author SHA1 Message Date
Martijn Walraven
884d44e771 Use consistent range for graphql peer dependency 2018-09-02 11:50:09 +02:00
Renovate Bot
8b2adc49ad chore(deps): update dependency graphql to v14 2018-09-02 11:50:09 +02:00
Martijn Walraven
665820ec3c Add .prettierignore 2018-09-02 09:58:49 +02:00
Renovate Bot
66ff449bcf chore(deps): pin dependencies 2018-09-01 15:27:00 +02:00
Martijn Walraven
4bb6c74eea Remove stray devDependencies from packages 2018-09-01 14:48:30 +02:00
Martijn Walraven
e7f353859e Add test:watch script 2018-09-01 14:01:29 +02:00
Martijn Walraven
1be8547125 Rename npm circle script to test:ci and don't lint 2018-09-01 13:46:36 +02:00
Martijn Walraven
a7301080b7 Remove Prettier settings from .vscode/settings.json 2018-09-01 11:54:46 +02:00
Martijn Walraven
b9876b75bf Remove forceConsistentCasingInFileNames from tsconfig.json 2018-09-01 11:51:48 +02:00
Martijn Walraven
3f595eb3de Use fly.io app env when available 2018-09-01 11:37:45 +02:00
Martijn Walraven
497b514511 Add processRequest to apollo-upload-server types 2018-09-01 11:37:45 +02:00
Martijn Walraven
ef67851997 Only require apollo-upload-server if uploads are enabled 2018-09-01 11:37:45 +02:00
Martijn Walraven
78d787908e Make apollo-server-env work with Cloudflare Workers and fly.io 2018-09-01 11:37:45 +02:00
Martijn Walraven
77064afa66 Add browser entry point to export globals from apollo-server-env 2018-09-01 11:37:45 +02:00
Martijn Walraven
d7e16a0e30 chore(deps): update dependency typescript to v3 2018-09-01 10:39:01 +02:00
Martijn Walraven
b0433e2b34 Regenerate package-lock.json 2018-09-01 10:23:34 +02:00
Yipeng Zhao
984c47d07a Use playground default settings when possible (#1516)
Playground can either use external settings or its default settings (browser settings), in incompatible ways. The original implementation of default settings here would always provide 'settings' for Playground, in turn make its own settings mechanism disabled, with consequences such as altering settings in-browser cannot work as expect. Besides, once the default settings here go different with Playground provided, it would cause other problems.

The intention here is to use Playground setting as default, while explicit passing Playground settings in Apollo server would still work with defaults defined here merged.
2018-09-01 09:50:10 +02:00
Zak Mandhro
34ece7552b Added description and sample code for enabling SSL 2018-09-01 09:41:13 +02:00
Rob Richard
8d519c0550 Update changelog 2018-09-01 09:34:38 +02:00
Rob Richard
23ee9ec53e Update default version of graphql-playground 2018-09-01 09:34:38 +02:00
xAKLx
27d65a1d6a Fix "To be successful" line 2018-09-01 09:25:30 +02:00
Martijn Walraven
6b5e6f0c69 Clean up lerna.json 2018-08-31 11:01:32 +02:00
Jesse Rosenberger
78f1754248
Merge pull request #1574 from apollographql/renovate/hexo-related
chore(deps): update dependency hexo-server to v0.3.3
2018-08-28 13:20:32 +03:00
Renovate Bot
e848353814
chore(deps): update dependency hexo-server to v0.3.3 2018-08-28 09:25:12 +00:00
Jesse Rosenberger
f9aec36cf4
Merge pull request #1589 from apollographql/abernix/add-netlify-toml-fix-docs
Add `netlify.toml` configuration to fix docs generation errors.
2018-08-28 12:20:37 +03:00
Jesse Rosenberger
d38ee1cf7d
Add the package-lock.json file for the docs/ sub-dir for reproducibility.
The documentation deployment will be less prone to transitive dependency
changes by introducing a `package-lock.json` file.
2018-08-28 12:08:13 +03:00
Jesse Rosenberger
d6921bb5e6
Introduce a netlify.toml configuration to fix docs generation on Netlify.
Without this file, Netlify was choosing to build the documentation using the
npm scripts present in the root `package.json`, rather than the `package.json`
in the `docs/` directory, as it should be.

While it's strange that this behavior just cropped up around a recent swap to
using `@apollographql/apollo-upload-server`, I suspect that the problem is
more deeply rooted than that and we were just accidentally getting away with
the past behavior - which was defined less explicitly in the Netlify UI.

Now, with this `netlify.toml` file, we can run the exact build step we need
for documentation and also gain the ability to have per-branch control over
that configuration, which has been necessary in the past.
2018-08-28 12:05:12 +03:00
Evans Hauser
2657e9b25b
Publish
- apollo-server-cloud-functions@2.0.1
 - apollo-server-cloudflare@2.0.2
 - apollo-server-core@2.0.4
 - apollo-server-express@2.0.4
 - apollo-server-hapi@2.0.4
 - apollo-server-integration-testsuite@2.0.4
 - apollo-server-koa@2.0.4
 - apollo-server-lambda@2.0.4
 - apollo-server-micro@2.0.4
 - apollo-server@2.0.5
2018-08-20 14:17:37 -07:00
Tim Griesser
99e4357537 Fix implicit any types in apollo-server-cloud-function (#1554) 2018-08-20 13:30:01 -07:00
Jesse Rosenberger
8347511db8 Switch to a fork of apollo-upload-server to fix missing core-js dependency. (#1556)
* Switch to a fork of `apollo-upload-server` to fix missing `core-js` dependency.

As reported in https://github.com/apollographql/apollo-server/issues/1542,
the `apollo-upload-server` package (v5.0.0, which `apollo-server` relies on)
is no longer able to provide a `core-js` package because of change that was
outside of its control in a Babel release.

The problem is resolved in newer versions of `apollo-upload-server`,
however, regrettably, the newer versions of that package (notably, v6 and
v7) drop support for Node.js 6 — one of two versions of Node.js that are
currently under the terms of the Node.js Foundation's Long-Term-Support
(LTS) agreements.

Since Apollo Server aims to support versions of Node.js which are under LTS
(and will drop support for Node.js 6 in April 2019, per Node.js' schedule)
the current, immediate solution is to fork the `apollo-upload-server`
package as `@apollographql/apollo-upload-server`.

With the inclusion of
https://github.com/apollographql/apollo-upload-server/pull/1, we are able to
keep supporting Node.js 6.  Without this change, every new installation
of `apollo-server`, which doesn't have a `package-lock.json` preventing
transitive dependency updates - specifically, the updates to
`@babel/runtime` versions newer than `-beta.56` - is broken.

* [squash] Update to `@apollographql/apollo-upload-server@5.0.2`.

* [squash] Update to `@apollographql/apollo-upload-server@5.0.3`.
2018-08-20 13:27:15 -07:00
Marcel Miranda Ackerman
724d9ff07d Implementation of Apollo Server 2 for Google Cloud Functions (#1446)
* Initial implementation of Apollo Server 2 for gcf

* First try at running with tests

* Updated naming

* Removed lambda mentions

* Simply use referer

* Updated README

* Updated Changelog

* Renamed gqlApollo to googleCloudApollo

* Added more details

* Removed extra check
2018-08-20 06:35:23 -04:00
Evans Hauser
ee7202efaf
update changelog to include bad build explaination 2018-08-16 15:20:11 -07:00
Evans Hauser
b794c8d684
bump apollo-server package, due to bad build 2018-08-16 12:19:22 -07:00
Evans Hauser
3e54e60ced
Publish
- apollo-server-cloudflare@2.0.1
 - apollo-server-core@2.0.3
 - apollo-server-express@2.0.3
 - apollo-server-hapi@2.0.3
 - apollo-server-integration-testsuite@2.0.3
 - apollo-server-koa@2.0.3
 - apollo-server-lambda@2.0.3
 - apollo-server-micro@2.0.3
 - apollo-server@2.0.3
2018-08-16 11:40:49 -07:00
Curtis Layne
0f17f7c50e Pass payload into the context function for subscriptions (#1513)
* Pass payload into the context function for subscriptions

The payload can be used for things like auth. You can pass a token on
the payload of the message and use it to fetch the user.

* Update CHANGELOG.md
2018-08-16 11:26:39 -07:00
Evans Hauser
efc5302930
Add option to mock the entire schema(i.e. set preserveResolvers) (#1546)
* add mockEntireSchema as configuration for preserveResolvers

* add mockEntireSchema to api reference

* add changelog
2018-08-16 11:21:13 -07:00
Dimitri Nicolas
25f568b391 Typo in doc "Migrating to v2.0" (#1538) 2018-08-16 08:48:14 -07:00
Martijn Walraven
a88574d731 Publish
- apollo-datasource-rest@0.1.4
 - apollo-server-cloudflare@2.0.0
2018-08-15 05:54:45 +02:00
Martijn Walraven
42bec5687f Only cache successful responses when overriding TTL
Fixes #1481.
2018-08-15 05:47:44 +02:00
Evans Hauser
f7b5d63d03
Publish
- apollo-cache-control@0.2.2
 - apollo-datasource-rest@0.1.3
 - apollo-datasource@0.1.2
 - apollo-engine-reporting-protobuf@0.0.1
 - apollo-engine-reporting@0.0.2
 - apollo-server-cache-memcached@0.1.2
 - apollo-server-cache-redis@0.1.2
 - apollo-server-caching@0.1.2
 - apollo-server-cloudflare@2.0.0-rc.14
 - apollo-server-core@2.0.2
 - apollo-server-env@2.0.2
 - apollo-server-errors@2.0.2
 - apollo-server-express@2.0.2
 - apollo-server-hapi@2.0.2
 - apollo-server-integration-testsuite@2.0.2
 - apollo-server-koa@2.0.2
 - apollo-server-lambda@2.0.2
 - apollo-server-micro@2.0.2
 - apollo-server@2.0.2
 - apollo-tracing@0.2.2
 - graphql-extensions@0.1.2
2018-08-14 11:49:10 -07:00
Evans Hauser
ef82add05b
Publish
- apollo-cache-control@0.2.1
 - apollo-datasource-rest@0.1.2
 - apollo-datasource@0.1.1
 - apollo-engine-reporting-protobuf@0.0.0
 - apollo-engine-reporting@0.0.1
 - apollo-server-cache-memcached@0.1.1
 - apollo-server-cache-redis@0.1.1
 - apollo-server-caching@0.1.1
 - apollo-server-cloudflare@2.0.0-rc.13
 - apollo-server-core@2.0.1
 - apollo-server-env@2.0.1
 - apollo-server-errors@2.0.1
 - apollo-server-express@2.0.1
 - apollo-server-hapi@2.0.1
 - apollo-server-integration-testsuite@2.0.1
 - apollo-server-koa@2.0.1
 - apollo-server-lambda@2.0.1
 - apollo-server-micro@2.0.1
 - apollo-server@2.0.1
 - apollo-tracing@0.2.1
 - graphql-extensions@0.1.1
2018-08-14 11:05:31 -07:00
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
cahnory
4d67c1c1fc document the way to use ApolloServer with a GraphQLSchema object (#1502)
* document the way to use ApolloServer with a GraphQLSchema object

* Add recommendation to use SDL
2018-08-14 10:33:40 -07:00
Jonas Hackenberg
9225426360 Add disabled introspection info (#1480)
Add info about disabled introspection in production
2018-08-14 10:29:04 -07:00
Evans Hauser
598a7732ab
Migration docs for schema as object (#1368)
* add migration docs for schema as object

* address feedback
2018-08-14 10:26: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
Clayton Ray
5b8acaa048 Update migration-two-dot.md (#1491) 2018-08-14 10:19:10 -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