Jesse Rosenberger
a6872c2f6c
Publish
...
- apollo-cache-control@0.3.0-alpha.2
- apollo-datasource-rest@0.2.0-alpha.2
- apollo-datasource@0.2.0-alpha.2
- apollo-engine-reporting@0.1.0-alpha.2
- apollo-server-cache-memcached@0.2.0-alpha.2
- apollo-server-cache-redis@0.2.0-alpha.2
- apollo-server-caching@0.2.0-alpha.2
- apollo-server-cloud-functions@2.2.0-alpha.2
- apollo-server-cloudflare@2.2.0-alpha.2
- apollo-server-core@2.2.0-alpha.2
- apollo-server-express@2.2.0-alpha.2
- apollo-server-hapi@2.2.0-alpha.2
- apollo-server-integration-testsuite@2.2.0-alpha.2
- apollo-server-koa@2.2.0-alpha.2
- apollo-server-lambda@2.2.0-alpha.2
- apollo-server-micro@2.2.0-alpha.2
- apollo-server-plugin-base@0.1.0-alpha.2
- apollo-server-testing@2.2.0-alpha.2
- apollo-server@2.2.0-alpha.2
- apollo-tracing@0.3.0-alpha.2
- graphql-extensions@0.3.0-alpha.2
2018-11-05 11:45:46 -08:00
Jesse Rosenberger
5b83883233
Publish
...
- apollo-cache-control@0.3.0-alpha.1
- apollo-datasource-rest@0.2.0-alpha.1
- apollo-datasource@0.2.0-alpha.1
- apollo-engine-reporting-protobuf@0.1.0-alpha.1
- apollo-engine-reporting@0.1.0-alpha.1
- apollo-server-cache-memcached@0.2.0-alpha.1
- apollo-server-cache-redis@0.2.0-alpha.1
- apollo-server-caching@0.2.0-alpha.1
- apollo-server-cloud-functions@2.2.0-alpha.1
- apollo-server-cloudflare@2.2.0-alpha.1
- apollo-server-core@2.2.0-alpha.1
- apollo-server-env@2.1.0-alpha.1
- apollo-server-express@2.2.0-alpha.1
- apollo-server-hapi@2.2.0-alpha.1
- apollo-server-integration-testsuite@2.2.0-alpha.1
- apollo-server-koa@2.2.0-alpha.1
- apollo-server-lambda@2.2.0-alpha.1
- apollo-server-micro@2.2.0-alpha.1
- apollo-server-plugin-base@0.1.0-alpha.1
- apollo-server@2.2.0-alpha.1
- apollo-tracing@0.3.0-alpha.1
- graphql-extensions@0.3.0-alpha.1
2018-10-26 21:28:15 +03:00
Jan Hartmann
458bc71ead
Enables parsing of application/hal+json
as JSON in RESTDataSource
( #1853 )
2018-10-26 05:14:00 +02:00
Jesse Rosenberger
9a69ad3f3a
Merge branch 'master' into testing-improvements
2018-10-12 14:58:04 +03:00
Martijn Walraven
4fac07b8f1
Consistently leave out explicit tsconfig.json
when referring to TypeScript project
2018-10-12 13:34:07 +02:00
Martijn Walraven
ad3562a335
Replace {}
with Object.create(null)
in jest.config.js
2018-10-12 13:00:13 +02:00
Martijn Walraven
68b2c691f8
Move test tsconfig.json
files under __tests__
to support editors
...
The TypeScript language server looks for `tsconfig.json` and doesn't take project references into account when resolving the config for a file.
See https://github.com/Microsoft/TypeScript/issues/27372 .
2018-10-11 23:10:45 +02:00
Martijn Walraven
3cf067349b
Fix some dependencies in tsconfig.test.json
files
2018-10-11 23:10:45 +02:00
Martijn Walraven
0491af858d
Avoid use of object spread in Jest config files to support Node 6
2018-10-11 23:10:09 +02:00
Martijn Walraven
787846c64b
Fix apollo-server-env
mock
2018-10-11 14:43:29 +02:00
Martijn Walraven
6796ff310b
Add paths config for shared __mocks__ to avoid relative imports
2018-10-11 08:20:49 +02:00
Martijn Walraven
f5d5981ffc
Add TypeScript and Jest projects for tests in individual packages
2018-10-11 04:33:23 +02:00
Jesse Rosenberger
dec2b94a0e
Publish
...
- apollo-cache-control@0.3.0-alpha.0
- apollo-datasource-rest@0.2.0-alpha.0
- apollo-datasource@0.2.0-alpha.0
- apollo-engine-reporting-protobuf@0.1.0-alpha.0
- apollo-engine-reporting@0.1.0-alpha.0
- apollo-server-cache-memcached@0.2.0-alpha.0
- apollo-server-cache-redis@0.2.0-alpha.0
- apollo-server-caching@0.2.0-alpha.0
- apollo-server-cloud-functions@2.2.0-alpha.0
- apollo-server-cloudflare@2.2.0-alpha.0
- apollo-server-core@2.2.0-alpha.0
- apollo-server-env@2.1.0-alpha.0
- apollo-server-errors@2.1.0-alpha.0
- apollo-server-express@2.2.0-alpha.0
- apollo-server-hapi@2.2.0-alpha.0
- apollo-server-integration-testsuite@2.2.0-alpha.0
- apollo-server-koa@2.2.0-alpha.0
- apollo-server-lambda@2.2.0-alpha.0
- apollo-server-micro@2.2.0-alpha.0
- apollo-server-plugin-base@0.1.0-alpha.0
- apollo-server@2.2.0-alpha.0
- apollo-tracing@0.3.0-alpha.0
- graphql-extensions@0.3.0-alpha.0
2018-10-10 22:30:54 +03:00
Martijn Walraven
11a13cd3dd
Remove apollo-server-env as a project reference
...
We can't use `apollo-server-env` as a project reference because that requires `composite: true`, and that implies `declaration: true`, which doesn't work for `apollo-server-env` because we need to write our own declaration files for re-exported imports.
This commit also removes `apollo-engine-reporting-protobuf` as a reference, which errored out because it doesn't actually contain any TypeScript code.
2018-10-05 23:05:49 +02:00
Martijn Walraven
8932091e67
Add root level tsconfig.json as entry point
2018-10-05 21:48:49 +02:00
Martijn Walraven
1aee215e68
Switch to tsc --build and remove run scripts from packages
2018-10-05 17:48:34 +02:00
Martijn Walraven
fcaa6ad79d
Enable TypeScript project references
2018-10-05 17:47:29 +02:00
Martijn Walraven
b80a8f050c
Publish
...
- apollo-cache-control@0.2.3
- apollo-datasource-rest@0.1.5
- apollo-datasource@0.1.3
- apollo-engine-reporting@0.0.3
- apollo-server-cache-memcached@0.1.3
- apollo-server-cache-redis@0.1.3
- apollo-server-cloud-functions@2.0.2
- apollo-server-cloudflare@2.0.3
- apollo-server-core@2.0.5
- apollo-server-env@2.0.3
- apollo-server-express@2.0.5
- apollo-server-hapi@2.0.5
- apollo-server-integration-testsuite@2.0.5
- apollo-server-koa@2.0.5
- apollo-server-lambda@2.0.5
- apollo-server-micro@2.0.5
- apollo-server@2.0.6
- apollo-tracing@0.2.3
- graphql-extensions@0.1.3
2018-09-03 15:06:00 +02: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
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
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
06e31c3249
Remove per-package test
, coverage
and circle
scripts
2018-08-11 16:45:03 +02: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
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
9acb67fa4e
chore(deps): update dependency @types/jest to v23.3.1
2018-07-27 05:59:21 +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
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
Martijn Walraven
cf8c8b80ce
Allow overrides to lower the TTL
2018-07-18 17:32:24 -07:00
Martijn Walraven
19dbc36436
Publish
...
- apollo-datasource-rest@0.1.0-rc.12
- apollo-server@2.0.0-rc.12
- apollo-server-express@2.0.0-rc.12
- apollo-server-koa@2.0.0-rc.12
2018-07-18 08:45:24 -07:00
Martijn Walraven
3308b897d4
Make overridden TTL trump all headers
2018-07-17 21:12:26 -07:00
Martijn Walraven
eeeea09ce5
Publish
...
- apollo-cache-control@0.2.0-rc.4
- apollo-datasource-rest@0.1.0-rc.11
- apollo-datasource@0.1.0-rc.11
- apollo-engine-reporting@0.0.0-rc.5
- apollo-server-caching@0.1.0-rc.11
- apollo-server-cloudflare@2.0.0-rc.11
- apollo-server-core@2.0.0-rc.11
- apollo-server-env@2.0.0-rc.11
- apollo-server-errors@2.0.0-rc.11
- apollo-server-express@2.0.0-rc.11
- apollo-server-hapi@2.0.0-rc.11
- apollo-server-integration-testsuite@2.0.0-rc.11
- apollo-server-koa@2.0.0-rc.11
- apollo-server-lambda@2.0.0-xrc.11
- apollo-server-memcached@0.1.0-rc.11
- apollo-server-micro@2.0.0-rc.11
- apollo-server-redis@0.1.0-rc.11
- apollo-server@2.0.0-rc.11
- apollo-tracing@0.2.0-rc.4
- graphql-extensions@0.1.0-rc.5
2018-07-17 16:11:33 -07:00
Martijn Walraven
16ea9f95b6
Still use TTL override * 2 for responses that can be revalidated
2018-07-17 15:58:25 -07:00
Martijn Walraven
52c9c04c5d
Ignore cache control header when overriding TTL
2018-07-17 15:51:03 -07:00
Evans Hauser
9518c0ff1a
Publish
...
- apollo-cache-control@0.2.0-rc.3
- apollo-datasource-rest@0.1.0-rc.10
- apollo-datasource@0.1.0-rc.10
- apollo-engine-reporting@0.0.0-rc.4
- apollo-server-caching@0.1.0-rc.10
- apollo-server-cloudflare@2.0.0-rc.10
- apollo-server-core@2.0.0-rc.10
- apollo-server-env@2.0.0-rc.10
- apollo-server-errors@2.0.0-rc.10
- apollo-server-express@2.0.0-rc.10
- apollo-server-hapi@2.0.0-rc.10
- apollo-server-integration-testsuite@2.0.0-rc.10
- apollo-server-koa@2.0.0-rc.10
- apollo-server-lambda@2.0.0-xrc.10
- apollo-server-memcached@0.1.0-rc.10
- apollo-server-micro@2.0.0-rc.10
- apollo-server-redis@0.1.0-rc.10
- apollo-server@2.0.0-rc.10
- apollo-tracing@0.2.0-rc.3
- graphql-extensions@0.1.0-rc.4
2018-07-17 10:55:45 -07:00
Evans Hauser
0144d4b2db
Publish
...
- apollo-cache-control@0.2.0-rc.2
- apollo-datasource-rest@0.1.0-rc.9
- apollo-datasource@0.1.0-rc.9
- apollo-engine-reporting@0.0.0-rc.3
- apollo-server-caching@0.1.0-rc.9
- apollo-server-cloudflare@2.0.0-rc.9
- apollo-server-core@2.0.0-rc.9
- apollo-server-env@2.0.0-rc.9
- apollo-server-errors@2.0.0-rc.9
- apollo-server-express@2.0.0-rc.9
- apollo-server-hapi@2.0.0-rc.9
- apollo-server-integration-testsuite@2.0.0-rc.9
- apollo-server-koa@2.0.0-rc.9
- apollo-server-lambda@2.0.0-xrc.9
- apollo-server-memcached@0.1.0-rc.9
- apollo-server-micro@2.0.0-rc.9
- apollo-server-redis@0.1.0-rc.9
- apollo-server@2.0.0-rc.9
- apollo-tracing@0.2.0-rc.2
- graphql-extensions@0.1.0-rc.3
2018-07-17 10:44:15 -07:00
Renovate Bot
1d34f1065a
chore(deps): update dependency @types/jest to v23.3.0
2018-07-17 05:42:38 +00:00
Martijn Walraven
ce38b63cfa
Fix CachePolicy typing
2018-07-16 18:43:54 -07:00
Martijn Walraven
4aa21b75a7
Allow specifying cacheOptions per-request or in a data source method
2018-07-16 18:43:54 -07:00
Martijn Walraven
2592060375
Interpret paths with a leading slash relative to the base URL
2018-07-16 18:43:54 -07:00
Martijn Walraven
15705b9919
Pass in DataSourceConfig object instead of positional args
2018-07-16 18:43:54 -07:00