Urigo / graphql-cli

📟 Command line tool for common GraphQL development workflows

Home Page:https://graphql-cli.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dependency deprecation warning: apollo-codegen (npm)

renovate opened this issue · comments

On registry https://registry.npmjs.org/, the "latest" version (v0.20.2) of dependency apollo-codegen has the following deprecation notice:

The 'apollo-codegen' command has been replaced with the more-powerful 'apollo' CLI. Switch to 'apollo' to ensure future updates and visit https://npm.im/apollo#code-generation for more information.

Marking the latest version of an npm package as deprecated results in the entire package being considered deprecated, so contact the package author you think this is a mistake.

Affected package file(s): package.json

If you don't care about this, you can close this issue and not be warned about apollo-codegen's deprecation again. If you would like to completely disable all future deprecation warnings then add the following to your config:

"suppressNotifications": ["deprecationWarningIssues"]

This is a big issue, as it makes it impossible for us to use both graphql-cli and apollo-cli in our monorepo for backend and frontend. apollo-cli refuses to generate any code if it finds the deprecated apollo-codegen in node_modules. The only reason it is there is because of graphql-cli. Please update to the new apollo!

We've just released a new version and an alpha release channel for GraphQL CLI - 4.0.0-alpha.XXX!

We use GraphQL Code Generator as the default package for the codegen command to generate typings and code from schema using it's various plugins.
Checkout new instructions and the migration guide and we will be happy to hear your feedback.

You can still change the default package for codegen from GraphQL Code Generator to Apollo's codegen.
If you want to keep using Apollo codegen and don't know how to do that, please open a new issue so we can track it and make sure it works and that it's documented properly.

Feel free to contact us by opening an issue or using our Discord channel;
https://discord.gg/xud7bH

I've posted the wrong Discord link, this is the correct one: https://discord.gg/xud7bH9