Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): move graphql-tag to devDeps from peerDeps for typescript-react-apollo #805

Merged

Conversation

scottopherson
Copy link
Contributor

Description

graphql-tag is only used in .spec files within the typescript-react-apollo package. Similar to typescript-apollo-angular, this commit moves graphql-tag to devDependencies so package consumers aren't required to install it to remove warning:

warning " > @graphql-codegen/typescript-react-apollo@4.3.0" has unmet peer dependency "graphql-tag@^2.0.0".

Related (issue)

Closes #471

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as
    expected
  • This change requires a documentation update

How Has This Been Tested?

  • Checked that dev/build environment tasks still work as expected.
  • Checked local install of this updated package in another project repo to ensure consumers aren't broken and yarn install warning is no longer displayed.

Test Environment:

  • OS: macOS Sonoma 14.5
  • @graphql-codegen/typescript-react-apollo: 4.3.0
  • NodeJS: v20.11.1

Checklist:

  • I have followed the
    CONTRIBUTING doc and the
    style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Copy link

changeset-bot bot commented Aug 1, 2024

🦋 Changeset detected

Latest commit: 1073e08

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@graphql-codegen/typescript-react-apollo Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Collaborator

@saihaj saihaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please create a patch changeset for this and explain it so we can have it part of automated release process?

`graphql-tag` is only used in .spec files within the `typescript-react-apollo` package. Similar to `typescript-apollo-angular`, this commit moves `graphql-tag` to devDependencies so package consumers aren't required to install it to remove warning:

```
warning " > @graphql-codegen/typescript-react-apollo@4.3.0" has unmet peer dependency "graphql-tag@^2.0.0".
```

Signed-off-by: Scott Christopherson <scott@mondoo.com>
@scottopherson scottopherson force-pushed the typescript-react-apollo/rm-graphql-tag branch from 623750b to 1073e08 Compare August 6, 2024 18:06
@scottopherson
Copy link
Contributor Author

@saihaj yeah no problem

@saihaj saihaj merged commit 7df8028 into dotansimha:main Aug 7, 2024
14 checks passed
@saihaj
Copy link
Collaborator

saihaj commented Aug 7, 2024

thanks!

@github-actions github-actions bot mentioned this pull request Sep 5, 2024
@saihaj
Copy link
Collaborator

saihaj commented Sep 5, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[typescript-react-apollo] graphql-tag peer dependency is missing
2 participants