Skip to content

Commit 0ac0564

Browse files
patdmctrevor-scheer
authored andcommitted
Expand peer dependency range of apollo-graphql to include 0.12.x and 0.13.x. (#1076)
* support the same graphql dependency range as apollo-server * Further expand acceptable `graphql` `peerDependencies` range to include 0.12.x. This further expands upon @patdmc's expansion of the `graphql` peer dependency to also include the `0.12.x` versions as well, thus matching precisely with that of `apollo-server-core`: https://github.com/apollographql/apollo-server/blob/17257a2f097e3e84892426c1e78dc819e67117ad/packages/apollo-server-core/package.json#L48-L50 Since this package is depended on by `apollo-engine-reporting`, which is depended on by `apollo-server-core`, we should completely align the desired `graphql` version requirements until the time comes where we make the same reduction in the `graphql` peer dependency range within `apollo-server-core`: While that time will come soon, it's not here yet.
1 parent 0565165 commit 0ac0564

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- Add missing dependency `@oclif/errors` [#1068](https://github.com/apollographql/apollo-tooling/pull/1068)
99
- The keyword "type" is escaped when generating scala.js via client:codegen [#1066](https://github.com/apollographql/apollo-tooling/pull/1066)
1010
- Include targetUrl in the output of the `service:check` command [#1072](https://github.com/apollographql/apollo-tooling/pull/1072)
11+
- Expand the `graphql` peer dependency range of `apollo-graphql` to also include `0.13.x` and `0.12.x` in addition to `14.x`, since the `apollo-graphql` package is relied upon by `apollo-server-core` which specifies those requirements itself. [#1076](https://github.com/apollographql/apollo-tooling/pull/1076)
1112
- Import apollo-env utility types directly instead of treating them as globals [#1074](https://github.com/apollographql/apollo-tooling/pull/1074)
1213
- `apollo-codegen-flow`
1314
- Add missing dependencies `@babel/generator`, `common-tags` [#1071](https://github.com/apollographql/apollo-tooling/pull/1071)

packages/apollo-graphql/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"lodash.sortby": "^4.7.0"
1515
},
1616
"peerDependencies": {
17-
"graphql": "^14.0.2"
17+
"graphql": "^0.12.0 || ^0.13.0 || ^14.0.0"
1818
},
1919
"jest": {
2020
"preset": "ts-jest",

0 commit comments

Comments
 (0)