Commit graph

1983 commits

Author SHA1 Message Date
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
Martijn Walraven
491a85871d Add top-level clean script to remove all node_modules and dist dirs 2018-08-11 16:45:03 +02:00
Martijn Walraven
14348e2913 Enable forceConsistentCasingInFileNames in tsconfig.json 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
9020b7eb25 Use caret version ranges for dev dependencies 2018-08-11 16:45:03 +02:00
Martijn Walraven
b863f206a3 Adjust Jest config for CI 2018-08-11 16:45:03 +02:00
Martijn Walraven
5b91e93336 Update dev dependencies 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
7af49892e1 Update cache key version to account for change in paths 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
8706045f20 Only depend on root package-lock.json when computing cache key 2018-08-11 16:45:03 +02:00
Martijn Walraven
26c11b842c Rename top-level package to avoid conflicts 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
809d8bccb1 Change npm cache path in .circleci 2018-08-11 16:45:03 +02:00
Martijn Walraven
cfaa1e21da Use npm ci in .circleci 2018-08-11 16:45:03 +02:00
Martijn Walraven
86d16d0afd Update package-lock.json 2018-08-11 16:45:03 +02:00
Martijn Walraven
1c8582384c Remove unused prebootstrap script 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
af5a53938d Use npm@6 in CI 2018-08-11 16:45:03 +02:00
Martijn Walraven
98572cf23f Update .circleci to cache deps based on package-lock.json 2018-08-11 16:45:03 +02:00
Martijn Walraven
5b5ac177bd Update Jest dependencies 2018-08-11 16:45:03 +02:00