wtgtybhertgeghgtwtg
ccba8c87da
Switch json-stable-stringify
to fast-json-stable-stringify
. ( #2065 )
...
* refactor: switch `json-stable-stringify` to `fast-json-stable-stringify`
* chore: drop `@types/json-stable-stringify`
* Update CHANGELOG.md for #2065 .
2018-12-19 20:06:17 +02:00
renovate[bot]
bb2fc6d862
chore(deps): update dependency husky to v1.3.0 ( #2116 )
2018-12-19 05:25:38 +00:00
renovate[bot]
4add1c3a74
chore(deps): update dependency @types/node to v10.12.17 ( #2115 )
2018-12-19 04:24:45 +00:00
renovate[bot]
6dfd6a3b70
chore(deps): update dependency @types/hapi to v17.8.2 ( #2114 )
2018-12-19 03:24:50 +00:00
renovate[bot]
eeb54a41c6
chore(deps): update dependency @types/aws-lambda to v8.10.16 ( #2113 )
2018-12-19 02:46:07 +00:00
renovate[bot]
a8980494bf
chore(deps): update dependency tslint to v5.12.0 ( #2112 )
2018-12-19 02:41:09 +00:00
Jesse Rosenberger
8a1f99916d
Merge pull request #2109 from apollographql/abernix/caching-tweak-prep-two
...
Improve InMemoryLRUCache implementation.
2018-12-18 11:15:00 +02:00
Jesse Rosenberger
fa63116cd7
Merge branch 'master' into abernix/caching-tweak-prep-two
2018-12-18 11:13:26 +02:00
Jesse Rosenberger
2b50e149b0
caching: InMemoryLRUCache support for ttl
, much like Redis/Memcached.
...
This also re-enables the Expiration tests for this library, though I think I
will continue to leave the testsuite decomposed into more granular methods
for readability and future growth.
Note that this doesn't implement the same default `300` second TTL as the
other Memcache and Redis implementations currently do (a very debatable
default we should re-consider in the future).
2018-12-18 10:55:38 +02:00
Jesse Rosenberger
098c893990
nit: Use the term value
rather than data
for Key + *Value* stores.
...
Super nitty, but they are KeyValue stores, not KeyData stores.
2018-12-18 10:55:37 +02:00
Jesse Rosenberger
c7f6b43234
tests: Change apollo-server-caching
test-suite to support InMemoryLRUCache.
2018-12-18 10:55:36 +02:00
Jesse Rosenberger
d53f361c54
cache: Implement flush
method for InMemoryLRUCache
.
...
This implements the `flush` method, which is currently supported by both
Memcached and Redis, into the `InMemoryLRUCCache` cache.
2018-12-18 10:55:36 +02:00
Jesse Rosenberger
f3981b76a4
Adjust InMemoryLRUCache
to allow non-string values via generics.
...
While it is certainly our current implementation, I'm not sure that the true
spirit of an in-memory key-value store is to only map strings to other strings.
While enforcing `<string, string>` might be necessary for some distributed
cache stores, it seems we shouldn't enforce it for `InMemoryLRUCache`.
By changing the `KeyValueCache` to default to `string` but allow other
options, we can allow the user to decide exactly how the RHS of this store
should be typed.
This does require a bit more flexible implementation of the `length`
calculator which is used for cache ejection, but that implementation will
become immediately useful when we start storing parsed ASTs in this KV store.
2018-12-18 10:55:35 +02:00
Jesse Rosenberger
8ad2bdda75
Merge pull request #2108 from apollographql/abernix/caching-tweak-prep
...
chores: Request pipeline readability/DRYing.
2018-12-18 10:54:43 +02:00
Jesse Rosenberger
5a50e1bab2
chore: DRY-up the error response logic with a sendErrorResponse
helper.
...
Introduces a helper function to DRY-up the increasingly-repeated pattern of
sending an error response in the event of request errors.
2018-12-18 10:43:19 +02:00
Jesse Rosenberger
705615828f
chore: Effectively identical but more intuitive path for validationDidEnd
.
...
Rather than crutching on the `return`, this logic reads more concisely with
a full `if` / `else` pattern.
I say this because two people looked at it and weren't immediately aware,
which really shouldn't be the case from such a brief piece of code.
2018-12-18 10:43:18 +02:00
Jesse Rosenberger
89d20b39db
chore: Simplify logic for caching persisted query asynchronously.
...
This method is so large this was just low-hanging fruit along a path of
potential opportunities.
2018-12-18 10:43:18 +02:00
Jesse Rosenberger
6b47f6f3e6
chore: DRY-up runQuery
test interface via Pick'd GraphQLOptions
. ( #2107 )
...
This test harness is intended to be relatively temporary, but it seems
fruitful to start picking from where these types are already defined rather
than re-implementing them in multiple places.
This change came up in a larger feature implementation and should otherwise be
a no-op but was worth surfacing as its own commit in case that feature never
lands.
2018-12-18 10:42:33 +02:00
Jesse Rosenberger
7797dcc5ab
Update CHANGELOG.md
2018-12-17 13:21:03 +02:00
Jesse Rosenberger
0bf209a5fb
Update CHANGELOG.md
...
For increased awareness: https://github.com/apollographql/apollo-server/issues/2099
2018-12-17 13:20:12 +02:00
renovate[bot]
9b8c8b05a0
chore(deps): update dependency apollo-link-http to v1.5.9 ( #2102 )
2018-12-15 05:31:08 +00:00
renovate[bot]
5ca283def9
chore(deps): update dependency apollo-link to v1.2.6 ( #2101 )
2018-12-15 04:33:47 +00:00
renovate[bot]
3ed765f455
chore(deps): update dependency husky to v1.2.1 ( #2098 )
2018-12-14 08:27:58 +00:00
renovate[bot]
1a32362307
chore(deps): update dependency apollo-link-http to v1.5.8 ( #2097 )
2018-12-14 07:18:25 +00:00
renovate[bot]
e179d8a1c0
chore(deps): update dependency apollo-link to v1.2.5 ( #2096 )
2018-12-14 06:27:22 +00:00
renovate[bot]
9fe5b853a6
chore(deps): update dependency @types/node to v10.12.15 ( #2095 )
2018-12-14 05:34:03 +00:00
renovate[bot]
e948c6f8ef
chore(deps): update dependency @types/hapi to v17.8.1 ( #2094 )
2018-12-14 04:30:06 +00:00
Jesse Rosenberger
cf95cf7881
Publish
...
- apollo-server-azure-functions@2.3.1
- apollo-server-cloud-functions@2.3.1
- apollo-server-cloudflare@2.3.1
- apollo-server-core@2.3.1
- apollo-server-express@2.3.1
- apollo-server-hapi@2.3.1
- apollo-server-integration-testsuite@2.3.1
- apollo-server-koa@2.3.1
- apollo-server-lambda@2.3.1
- apollo-server-micro@2.3.1
- apollo-server-plugin-base@0.2.1
- apollo-server-testing@2.3.1
- apollo-server@2.3.1
- graphql-extensions@0.4.1
2018-12-13 21:07:29 +02:00
Jesse Rosenberger
27e98a5598
Update CHANGELOG.md prior to releasing v2.3.1.
...
Closes: https://github.com/apollographql/apollo-server/issues/2092
Fixed by: ccf935f976
2018-12-13 20:55:55 +02:00
Martijn Walraven
ccf935f976
Move graphql-upload
types to core package and add reference
2018-12-13 19:34:44 +01:00
Jesse Rosenberger
34322a6523
tests: Use an empty subscriptionsPath
when asserting subscriptions eq false.
...
This fixes a TypeScript `TypeError` which was encountered after the
`@types/ws` typings were updated[[1]] to more correctly identify valid URLs.
The error exhibited on CI[[2] was:
TypeError [ERR_INVALID_URL]: Invalid URL: ws://localhost:6666undefined
This had been previously reverted[[3]] but was auto-merged again for a
reason I don't quite have time to investigate right now, though I suspect
it's something I'll be able to prevent in the future with a bit more care.
[1]: https://github.com/apollographql/apollo-server/pull/1992
[2]: https://circleci.com/gh/apollographql/apollo-server/22416
[3]: https://github.com/apollographql/apollo-server/pull/2006
cc @martijnwalraven
2018-12-13 16:38:22 +02:00
Jesse Rosenberger
71dff3e336
Revert "Revert "chore(deps): update dependency ws to v6.1.2 ( #1992 )""
...
This reverts commit 5e09e8a97a
.
2018-12-13 16:35:28 +02:00
Kornel Dubieniecki
c03fe79e33
Make gql example consistent and easier to read ( #2087 )
...
Hey guys,
I've noticed that some of the gql examples are indented differently than the rest and I think that consistent indentation and formatting makes it easier to read and comprehend.
Let me know what you think, thanks.
2018-12-13 15:55:04 +02:00
Jesse Rosenberger
3545c32e2a
Publish
...
- apollo-cache-control@0.4.0
- apollo-engine-reporting-protobuf@0.2.0
- apollo-engine-reporting@0.2.0
- apollo-server-azure-functions@2.3.0
- apollo-server-cloud-functions@2.3.0
- apollo-server-cloudflare@2.3.0
- apollo-server-core@2.3.0
- apollo-server-express@2.3.0
- apollo-server-hapi@2.3.0
- apollo-server-integration-testsuite@2.3.0
- apollo-server-koa@2.3.0
- apollo-server-lambda@2.3.0
- apollo-server-micro@2.3.0
- apollo-server-plugin-base@0.2.0
- apollo-server-testing@2.3.0
- apollo-server@2.3.0
- apollo-tracing@0.4.0
- graphql-extensions@0.4.0
2018-12-13 15:29:53 +02:00
Jesse Rosenberger
522cd6bf75
Update CHANGELOG.md for 2.3.0 release.
...
Also removes inadvertent 2.2.7-alpha.0 leftover from merge.
2018-12-13 15:28:12 +02:00
Jesse Rosenberger
ad42402954
Merge branch 'release-vNEXT'
2018-12-13 15:26:32 +02:00
Jesse Rosenberger
5e09e8a97a
Revert "chore(deps): update dependency ws to v6.1.2 ( #1992 )"
...
This reverts commit 36ac4e4b79
.
2018-12-13 15:23:06 +02:00
renovate[bot]
36ac4e4b79
chore(deps): update dependency ws to v6.1.2 ( #1992 )
2018-12-13 13:10:49 +00:00
Jesse Rosenberger
d7e7834633
Publish
...
- apollo-cache-control@0.3.4
- apollo-engine-reporting-protobuf@0.1.1
- apollo-engine-reporting@0.1.4
- apollo-server-azure-functions@2.2.7
- apollo-server-cloud-functions@2.2.7
- apollo-server-cloudflare@2.2.7
- apollo-server-core@2.2.7
- apollo-server-express@2.2.7
- apollo-server-hapi@2.2.7
- apollo-server-integration-testsuite@2.2.7
- apollo-server-koa@2.2.7
- apollo-server-lambda@2.2.7
- apollo-server-micro@2.2.7
- apollo-server-plugin-base@0.1.7
- apollo-server-testing@2.2.7
- apollo-server@2.2.7
- apollo-tracing@0.3.4
- graphql-extensions@0.3.7
2018-12-13 15:02:16 +02:00
Jesse Rosenberger
458b4f192d
Merge branch 'release-2.2.7'
2018-12-13 14:54:40 +02:00
Jesse Rosenberger
b9f01c45a5
Update CHANGELOG.md for 2.2.7 release.
2018-12-13 14:52:28 +02:00
renovate[bot]
44aebe49d9
chore(deps): update dependency @types/node to v10.12.14 ( #2091 )
2018-12-13 04:27:54 +00:00
renovate[bot]
2b67ae882e
chore(deps): update dependency lerna to v3.6.0 ( #2076 )
2018-12-08 05:45:12 +00:00
renovate[bot]
1a796c30e1
chore(deps): update dependency typescript to v3.2.2 ( #2073 )
2018-12-07 08:40:34 +00:00
renovate[bot]
cfd531c3bc
chore(deps): update dependency redis-mock to v0.41.0 ( #2072 )
2018-12-07 07:24:47 +00:00
renovate[bot]
3e64994d61
chore(deps): update dependency meteor-promise to v0.8.7 ( #2071 )
2018-12-07 06:56:52 +00:00
Jesse Rosenberger
4b1894c3d2
Update renovate.json
...
Per the log output on https://renovatebot.com/dashboard#github/apollographql/apollo-server/31879651
2018-12-05 17:53:45 +02:00
renovate[bot]
d6fcaed545
chore(deps): update dependency @types/lodash to v4.14.119 ( #2066 )
2018-12-05 06:41:00 +00:00
Jesse Rosenberger
ef31818629
Publish
...
- apollo-cache-control@0.4.0-alpha.0
- apollo-engine-reporting-protobuf@0.2.0-alpha.0
- apollo-engine-reporting@0.2.0-alpha.0
- apollo-server-azure-functions@2.3.0-alpha.0
- apollo-server-cloud-functions@2.3.0-alpha.0
- apollo-server-cloudflare@2.3.0-alpha.0
- apollo-server-core@2.3.0-alpha.0
- apollo-server-express@2.3.0-alpha.0
- apollo-server-hapi@2.3.0-alpha.0
- apollo-server-integration-testsuite@2.3.0-alpha.0
- apollo-server-koa@2.3.0-alpha.0
- apollo-server-lambda@2.3.0-alpha.0
- apollo-server-micro@2.3.0-alpha.0
- apollo-server-plugin-base@0.2.0-alpha.0
- apollo-server-testing@2.3.0-alpha.0
- apollo-server@2.3.0-alpha.0
- apollo-tracing@0.4.0-alpha.0
- graphql-extensions@0.4.0-alpha.0
2018-12-04 21:12:30 +02:00
Jesse Rosenberger
b5c516c04d
Merge pull request #2054 from apollographql/abernix/throw-when-uploads-on-pre-node-8.5
...
Upgrade to graphql-upload v8, dropping upload support for Node.js v6.
2018-12-04 14:30:26 +02:00