Commit graph

252 commits

Author SHA1 Message Date
Renovate Bot
297e501231 chore(deps): update dependency lerna to v2.11.0 2018-04-25 11:02:21 +00:00
Renovate Bot
d74f5e78e6 chore(deps): update dependency @types/chai to v4.1.3 2018-04-21 06:56:11 +00:00
Renovate Bot
591b0f2cae chore(deps): update dependency typescript to v2.8.3 2018-04-20 10:02:15 +00:00
Renovate Bot
cc579227c8 chore(deps): update dependency @types/node to v9.6.6 2018-04-20 08:02:16 +00:00
Renovate Bot
64a01c94f8 chore(deps): update dependency @types/mocha to v5.2.0 2018-04-20 06:48:48 +00:00
Renovate Bot
5bebbf12b1 chore(deps): update dependency mocha to v5.1.1 2018-04-19 07:06:26 +00:00
renovate[bot]
625bf7ba8e chore(deps): update dependency mocha to v5.1.0 (#908) 2018-04-18 15:47:39 +03:00
Jesse Rosenberger
0c6b1bd358
Remove dev-dependency on npm-check-updates. (#959)
It appears that the intention of including `npm-check-updates` in this
repository was to provide an easy way to update dependent packages from the
console.  This was originally introduced in [Ref 0].

Unfortunately, the `npm-check-updates` package has an explicit dependency on
`npm@3`, which means that it includes the entire `npm` in its
`node_modules`.

I originally observed this when analyzing the test failures in [Ref 1] and
[Ref 2] which indicated (in its npm error) that the npm version was v3.10.10.

The explanation for this is relatively straight-forward: Older versions of
npm uses an nested tree of `node_modules` directories while newer versions
hoist `node_modules` (i.e. flatten) to the highest location possible and
only nesting dependencies to meet conflicting version constraints.

Unfortunately, that means that once `npm@3` was installed by the newer
`npm@5` as a dependency of `npm-check-updates`, it was hoisted to the
top-level `node_modules` directory, exposing `npm@3` to `npm-scripts` which
directly call `npm` commands on the nested packages, as is done on this
monorepo (with, for example the `postinstall` script which runs `npm run
compile` in each of the server middleware packages). :face_palm:

Overall, this package doesn't seem to provide enough value for us to
continue to include it, especially since we have Renovate - coupled with the
same information being available from `npm outdated` and `npm update`
commands.  I'm not sure why we would want to install newer versions than our
"package.json" allows.

Futhermore, looking at the issue tracker on `npm-check-updates`, I'm
assuming this is the reason I've seen "`dezalgo`" install errors [Ref 3] on
this repository recently and _possibly_ even a bizarrely corrupted npm cache
I encountered recently (though admittedly, that could be a stretch).

See also: [Ref 4].

[Ref 0]: https://github.com/apollographql/apollo-server/commit/d7ca07f7
[Ref 1]: https://circleci.com/gh/apollographql/apollo-server/1915
[Ref 2]: https://app.netlify.com/sites/apollo-server-docs/deploys/5acdd3b7
[Ref 3]: https://github.com/tjunnone/npm-check-updates/issues/420
[Ref 4]: https://github.com/tjunnone/npm-check-updates/issues/423
2018-04-17 22:59:00 +03:00
Renovate Bot
c87cce9a2b chore(deps): update dependency prettier to v1.12.1 2018-04-17 16:02:50 +00:00
Renovate Bot
05222b121b chore(deps): update dependency lerna to v2.10.2 2018-04-17 14:02:35 +00:00
Renovate Bot
e1cfd83124 chore(deps): update dependency @types/node to v9.6.5 2018-04-14 07:02:46 +00:00
Renovate Bot
6306f82d2f chore(deps): update dependency prettier to v1.12.0 2018-04-12 06:47:07 +00:00
Renovate Bot
85f0bf8fff chore(deps): update dependency lerna to v2.10.1 2018-04-11 11:03:02 +00:00
Renovate Bot
a8c2af0aa1 chore(deps): update dependency @types/node to v9.6.4 2018-04-11 08:08:44 +00:00
Renovate Bot
4db35ab966 chore(deps): update dependency lerna to v2.10.0 2018-04-09 05:01:50 +00:00
Renovate Bot
aa3bca919a chore(deps): update dependency @types/node to v9.6.2 2018-04-04 06:40:18 +00:00
Renovate Bot
7492aebeb0 chore(deps): update dependency sinon to v4.5.0 2018-03-31 08:04:19 +00:00
Renovate Bot
ed7d504591 chore(deps): update dependency lerna to v2.9.1 2018-03-30 06:04:44 +00:00
Renovate Bot
adea7faa45 chore(deps): update dependency @types/node to v9.6.1 2018-03-29 07:14:41 +00:00
David Glasser
7d1165f1e0
All: allow cacheControl: {defaultMaxAge: 5}. (#922) 2018-03-28 13:56:22 -07:00
Renovate Bot
f59accf425 chore(deps): update dependency sinon to v4.4.10 2018-03-28 11:23:54 +00:00
Renovate Bot
ebf892f8cc chore(deps): update dependency typescript to v2.8.1 2018-03-28 09:01:57 +00:00
Renovate Bot
d8b09fbba0 chore(deps): update dependency sinon to v4.4.9 2018-03-27 08:02:28 +00:00
Jesse Rosenberger
ba45c990fd
Be more specific as to which files are run with lint-staged.
Ignoring the fact that the `.js*` was already _inclusive_ of `*.json`, we no
longer want `*.json` files linted (see [0] for more information), and I'm
not even sure why we would want to cover `*.md` rather than just `*.md`
(planning for a future markdown format?).

[0]: d4becdf6be
2018-03-26 17:16:17 +03:00
Renovate Bot
c941702253 chore(deps): update dependency @types/node to v9.6.0 2018-03-23 08:02:26 +00:00
Renovate Bot
e8058f812d chore(deps): update dependency sinon to v4.4.8 2018-03-22 07:03:34 +00:00
Renovate Bot
13b1d0803d chore(deps): update dependency remap-istanbul to v0.11.0 2018-03-17 10:00:56 +00:00
renovate[bot]
1bf6d1939f chore(deps): update dependency graphql to v0.13.2 (#891) 2018-03-17 11:35:52 +02:00
renovate[bot]
a3045fedcb chore(deps): update dependency sinon to v4.4.6 (#890) 2018-03-16 14:20:51 +02:00
renovate[bot]
709f6c227b chore(deps): pin dependency lint-staged to v6.1.1 (#879)
* chore(deps): update dependency lint-staged to v6.1.1

* Keep pinned versions + ensure `lint-staged` remains pre-7.x.

Follows-up on 17eab2d25c.

But makes sure that RenovateApp doesn't update this on our behalf.

Ref: https://renovateapp.com/docs/configuration-reference/configuration-options#allowedversions
2018-03-16 12:44:30 +02:00
Jesse Rosenberger
721ee0ce37
Further remove .json from prettier-ing.
Follow up on apollographql/apollo-server#886.

Ref: d4becdf6be
2018-03-16 11:09:15 +02:00
Jesse Rosenberger
d4becdf6be
Stop prettier-ing JSON files. (#886)
With a lack of comments and a fairly strict structure, it's arguable if JSON
files were ever meant to be pretty, but the method we're using right now is
a bit futile, especially considering that tools that we use to automatically
update JSON (specifically, package.json) don't run prettier themselves.

The most problematic rule is the 80 characters line limit.

Lines in JSON can be wrapped in, at most, one place: after the colon in the
key.  This means that as soon as a single npm-script declaration exceeds the
line-length rule a second time, it can't be wrapped again, resulting in a
violation of the very rule being enforced.

Clearly, I've always thought that prettying JSON is a bit silly, but the
straw that broke the camel's back here is automated package.json changes by
bots which update the repository via their automated PRs.

Perhaps in a day where the JavaScript package manifest finds a new file
extension (.js?, .yaml, .toml?), it will be able to reap the glitz and glamour
of being eloquently formatted, but until then we'll have to use long-line
wrapping in our editors.

...or shorten our npm scripts.
2018-03-16 10:47:08 +02:00
renovate[bot]
17eab2d25c chore(deps): pin lint-staged to v6.x range (#840)
* Pin `lint-staged` to maintain Node.js 4 support.

The newer version of `lint-staged` (v7) drops support for Node.js 4, a version of Node.js which is still under Maintenance LTS support and therefore we still need to test against.  Since this npm would be used in our Node.js 4 test matrix, it's imperative that we not jump to v7.
2018-03-13 18:10:34 +02:00
Renovate Bot
d50b6b6fb2 chore(deps): update dependency graphql to v0.13.1 2018-03-13 16:01:14 +00:00
Sashko Stubailo
281392c3f0 Update to graphql@0.12 (#726)
* Update peer deps and tests for 0.12
* v1.3.2
2018-03-13 17:10:37 +02:00
Jesse Rosenberger
b0ac2015a7
Stop running prettier in Travis tests.
Primarily because the results that prettier is giving on Travis are not the
same as those that are exhibited locally.  Namely, the result of running the
`npm run lint` command locally returns different files than on TravisCI.

This makes it almost entirely impossible to determine what is wrong with the
files.  It's likely enough that it's running in post-commit, but I'd be
happy to re-introduce this commit if someone can figure out what is wrong!

For now though, it's interfering with the ability to merge PRs.

As another option, perhaps CircleCI workflows would allow us to have
separate fail badges for Lint tests rather than testing the linting in every
Node.js version of the build matrix and polluting the true success and
failure of the unarguably more important tests themselves (rather than the
formatting of the code which is being tested).
2018-03-13 15:44:25 +02:00
renovate[bot]
792d6d1542 chore(deps): update dependency sinon to v4.4.4 (#875) 2018-03-13 15:25:34 +02:00
renovate[bot]
2ac6057f8a chore(deps): update dependency mocha to v5 (#776) 2018-03-13 15:24:21 +02:00
renovate[bot]
8b961eba24 chore(deps): update dependency prettier to v1.11.1 (#846) 2018-03-13 11:54:27 +02:00
renovate[bot]
2fa4f77b51 chore(deps): update dependency @types/node to v9 (#820) 2018-03-12 18:17:05 +02:00
Renovate Bot
b395a52962 chore(deps): update dependency sinon to v4.4.3 2018-03-12 07:31:52 +00:00
Renovate Bot
cc3ac4db9c chore(deps): update dependency @types/node to v8.9.5 2018-03-09 07:00:42 +00:00
Renovate Bot
7104b7224e chore(deps): update dependency @types/sinon to v4.3.0 2018-03-01 08:11:22 +00:00
Renovate Bot
5d073c20af chore(deps): update dependency npm-check-updates to v2.14.1 2018-02-28 13:22:12 +00:00
Renovate Bot
cb0bfb90d3 chore(deps): update dependency @types/sinon to v4.1.4 2018-02-27 08:00:45 +00:00
Renovate Bot
cf099518c0 chore(deps): update dependency sinon to v4.4.2 2018-02-26 10:02:31 +00:00
Renovate Bot
b7127da0c7 chore(deps): update dependency sinon to v4.4.0 2018-02-23 11:00:51 +00:00
Renovate Bot
5b901204ab chore(deps): update dependency lint-staged to v6.1.1 2018-02-17 07:15:44 +00:00
Renovate Bot
15202a7f4b chore(deps): update dependency typescript to v2.7.2 2018-02-16 08:00:58 +00:00
Renovate Bot
10fbf62fb2 chore(deps): update dependency lerna to v2.9.0 2018-02-15 09:01:07 +00:00