question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upgrade graphql to ^15.1.0

See original GitHub issue

Hello,

Would you mind releasing a new version with graphql dependency bump to ^15.1.0? Signature for GraphQLScalarType was changed in 15.1.0 and currently peer dependency declaration results in conflict.

Here are release notes for 15.1.0

Thank you! 🙇

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jaydensericcommented, Aug 18, 2020

graphql is unlikely to publish a breaking change in a minor release in violation of semver, but to be sure everything works with the latest version I updated the dev dependencies and ran all the tests successfully.

@mkorablin

However your own library depends on graphql@15.0.0

Perhaps you’re confused. My library (I guess you were referring to graphql-upload?) only has a graphql peer dependency, it’s not a dependency; see for yourself:

https://unpkg.com/graphql-upload@11.0.0/package.json

@Daavidaviid

How would one solve this quickly

You don’t wan’t multiple versions of graphql in your node_modules, so best thing to do is to run npm outdated, then update all your dependencies, then delete your package-lock.json, do a fresh npm install to deeply install the most up to date packages as possible, then run npm ls graphql to list all the versions of graphql installed, and what package is installing them.

Probably your project dependencies just need updating, but if a third party package is pulling in an older version of graphql (normally that happens when they “pin” dependencies by not using ^, a big antipattern) you need to figure out if a newer version of that package is available that doesn’t have the problem, or else raise an issue/PR to fix it.

Most packages in the graphql ecosystem have graphql as a peer dependency (instead of a regular dependency) specifically to avoid the multiple version headaches you’re apparently experiencing; your project’s package.json should be the source of truth with a particular graphql version as a dependency.

1reaction
mishakorablincommented, Aug 18, 2020

@jaydenseric peer dependency allows to install @graphql@15.1.0. However your own library depends on graphql@15.0.0 and your definition for GraphQLUpload uses GraphQLScalarType from version 15.0.0 This results in conflict when trying to pass GraphQLUpload to resolvers that expect GraphQLScalarType that matches version 15.1.0.

In short, your peer dependency is only until 15.0.0 and 15.1.0 breaks, the change in 15.1.0 in graphql library wasn’t backwards compatible.

Read more comments on GitHub >

github_iconTop Results From Across the Web

graphql
A Query Language and Runtime which can target any service.. Latest version: 16.6.0, last published: 4 months ago. Start using graphql in ...
Read more >
Version-specific upgrade instructions - GitLab Docs
Review this page for upgrade instructions for your version. These steps accompany the general steps for upgrading Geo sites.
Read more >
Upgrading GitLab
In GitLab 15.1.0, we are switching Rails ActiveSupport::Digest to use ... Unauthenticated requests to the ciConfig GraphQL field are no longer supported.
Read more >
A quick glance at Recoil
We will use Todo app with GraphQL API backend from my old featured ... On change of that atom, the filtered selector updates...
Read more >
graphql 15.1.0 vulnerabilities
Learn more about known graphql 15.1.0 vulnerabilities and licenses detected.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found