graphql-code-generator-community icon indicating copy to clipboard operation
graphql-code-generator-community copied to clipboard

Underlying package is deprectated (camel-case)

Open clostao opened this issue 9 months ago • 1 comments

Which packages are impacted by your issue?

@graphql-codegen/typescript-react-apollo

Describe the bug

Underlying dependency (camel-case) has been marked as a deprecated consequentially yarn would block the installation of the package:

These are the logs of our CI/CD where we get a consistent error installing this package.

This is our tree of deps (only showing branches including camel-case):

npm ls camel-case
└─┬ [email protected] -> ./frontend
  ├─┬ @graphql-codegen/[email protected]
  │ └─┬ [email protected]
  │   └─┬ [email protected]
  │     └── [email protected]
  └─┬ [email protected]
    └─┬ @graphql-codegen/[email protected]
      └─┬ @graphql-tools/[email protected]
        └── [email protected] deduped

The solution is to update change-case-all version

Your Example Website or App

https://github.com/autonomys/auto-drive/actions/runs/14201291127/workflow

Steps to Reproduce the Bug or Issue

  1. Clone repo
  2. yarn install

Expected behavior

To get the package installed.

Screenshots or Videos

No response

Platform

  • OS: Linux
  • NodeJS: v20
  • graphql version: [e.g. 16.9.0]
  • @graphql-codegen/* version(s): [e.g. 4.3.2]

Codegen Config File

No response

Additional context

As it stands in the deprecation message of camel-case package an alternative to use is change-case

clostao avatar Apr 01 '25 18:04 clostao

UPDATE:

It's easily solved with this commit in my downstream.

The package 'change-case-all' has updated its underlying dep to 'change-case' removing the deprecated dependency.

Once I got permission I'll open the PR for merging this

clostao avatar Apr 01 '25 19:04 clostao