Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
Add an optional peer dependency to react-apollo (#3278)
Browse files Browse the repository at this point in the history
* Add an optional peer dependency to react-apollo

`@types/react` should be an optional peer dependency of react-apollo.

Related issue pnpm/pnpm#1928

* Add `@types/react` peer dep to all entry points

* Remove support for yarn only features

* Changelog update
  • Loading branch information
zkochan authored and hwillson committed Aug 13, 2019
1 parent 5f9058d commit da470c6
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Changelog.md
Expand Up @@ -17,6 +17,8 @@
[@hwillson](https://github.com/hwillson) in [#3334](https://github.com/apollographql/react-apollo/pull/3334)
- Export `MockedProviderProps` and `MockedProviderState` from `@apollo/react-testing`. <br/>
[@hwillson](https://github.com/hwillson) in [#3337](https://github.com/apollographql/react-apollo/pull/3337)
- Add `@types/react` as a peer dep, to address potential TS compilation errors when using `ApolloProvider`. <br/>
[@zkochan](https://github.com/zkochan) in [#3278](https://github.com/apollographql/react-apollo/pull/3278)

## 3.0.0 (2019-08-06)

Expand Down
1 change: 1 addition & 0 deletions packages/all/package.json
Expand Up @@ -33,6 +33,7 @@
"deploy": "npm publish"
},
"peerDependencies": {
"@types/react": "^16.8.0",
"apollo-client": "^2.6.4",
"graphql": "^14.3.1",
"react": "^16.8.0",
Expand Down
1 change: 1 addition & 0 deletions packages/common/package.json
Expand Up @@ -32,6 +32,7 @@
"test:umd": "npm run build && npx jest --config ../../config/jest.umd.config.js --testPathPattern packages/common"
},
"peerDependencies": {
"@types/react": "^16.8.0",
"apollo-client": "^2.6.4",
"apollo-utilities": "^1.3.2",
"graphql": "^14.3.1",
Expand Down
1 change: 1 addition & 0 deletions packages/components/package.json
Expand Up @@ -36,6 +36,7 @@
"test:umd": "npm run build && npx jest --config ../../config/jest.umd.config.js --testPathPattern packages/components"
},
"peerDependencies": {
"@types/react": "^16.8.0",
"apollo-cache": "^1.3.2",
"apollo-client": "^2.6.4",
"apollo-link": "^1.2.12",
Expand Down
1 change: 1 addition & 0 deletions packages/hoc/package.json
Expand Up @@ -36,6 +36,7 @@
"test:umd": "npm run build && npx jest --config ../../config/jest.umd.config.js --testPathPattern packages/hoc"
},
"peerDependencies": {
"@types/react": "^16.8.0",
"apollo-client": "^2.6.4",
"graphql": "^14.3.1",
"react": "^16.8.0",
Expand Down
1 change: 1 addition & 0 deletions packages/hooks/package.json
Expand Up @@ -36,6 +36,7 @@
"test:umd": "npm run build && npx jest --config ../../config/jest.umd.config.js --testPathPattern packages/hooks"
},
"peerDependencies": {
"@types/react": "^16.8.0",
"apollo-client": "^2.6.4",
"graphql": "^14.3.1",
"react": "^16.8.0",
Expand Down

0 comments on commit da470c6

Please sign in to comment.