Upgrade graphql to ^15.1.0
See original GitHub issueHello,
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:
- Created 3 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
Perhaps you’re confused. My library (I guess you were referring to
graphql-upload
?) only has agraphql
peer dependency, it’s not adependency
; see for yourself:https://unpkg.com/graphql-upload@11.0.0/package.json
@Daavidaviid
You don’t wan’t multiple versions of
graphql
in yournode_modules
, so best thing to do is to runnpm outdated
, then update all your dependencies, then delete yourpackage-lock.json
, do a freshnpm install
to deeply install the most up to date packages as possible, then runnpm ls graphql
to list all the versions ofgraphql
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 havegraphql
as a peer dependency (instead of a regular dependency) specifically to avoid the multiple version headaches you’re apparently experiencing; your project’spackage.json
should be the source of truth with a particulargraphql
version as a dependency.@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
usesGraphQLScalarType
from version 15.0.0 This results in conflict when trying to passGraphQLUpload
to resolvers that expectGraphQLScalarType
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.