-
Notifications
You must be signed in to change notification settings - Fork 103
Description
Environment information
npx ampx info output:
(Replace this line with your actual output — run `npx ampx info` in your project.)
The issue appears on:
- macOS (Apple Silicon)
- Node v25.2.1
- npm 11.6.2
- @aws-amplify/backend-cli 1.8.0
Multiple deprecated dependency chains originate from Amplify’s backend toolchain and model generation plugins, independent of project code.
Describe the bug
Installing or updating dependencies in a project that uses @aws-amplify/backend-cli results in a large number of deprecated, unsupported, and in some cases unsafe dependency warnings.
All deprecated packages originate from Amplify’s backend CLI toolchain and related plugins (modelgen, form generator, GraphQL types generator).
These include:
[email protected](memory leak, unmaintained)[email protected](deprecated, unsupported)[email protected](deprecated)[email protected](no longer maintained; major performance issues)@babel/plugin-proposal-class-properties(obsolete)@babel/plugin-proposal-object-rest-spread(obsolete)[email protected](deprecated)
This results in dozens of warnings during npm install and impacts CI, security scanning tools, and developer experience.
These warnings cannot be resolved from the consuming project because the deprecated dependencies are deeply nested inside Amplify’s dependency graph.
Reproduction steps
-
Create or open any project that uses:
- @aws-amplify/backend-cli
- Amplify form generator
- Amplify modelgen
- Amplify GraphQL types generator
-
Run:
npm install
or
npm update
or any dependency update script. -
Observe warnings such as:
npm WARN deprecated [email protected]
npm WARN deprecated [email protected]
npm WARN deprecated [email protected]
npm WARN deprecated [email protected]
npm WARN deprecated [email protected]
npm WARN deprecated @babel/plugin-proposal-class-properties
npm WARN deprecated @babel/plugin-proposal-object-rest-spread -
Run:
npm ls inflight
npm ls glob@7
npm ls rimraf@3
npm ls core-js@2
npm ls node-domexception
npm ls @babel/plugin-proposal-class-properties -
The dependency trace reveals that all deprecated packages come from the Amplify toolchain.
Dependency trace example:
[email protected]:
@aws-amplify/backend-cli
└─ @aws-amplify/form-generator
└─ @aws-amplify/appsync-modelgen-plugin
└─ @graphql-codegen/visitor-plugin-common
└─ @graphql-tools/relay-operation-optimizer
└─ @ardatan/relay-compiler
└─ [email protected]
└─ [email protected]
[email protected] and [email protected]:
@aws-amplify/model-generator
└─ @aws-amplify/graphql-types-generator
└─ [email protected]
└─ [email protected]
[email protected]:
@aws-amplify/backend-cli
└─ @aws-amplify/form-generator
└─ node-fetch@3
└─ fetch-blob
└─ node-domexception
Deprecated Babel proposal plugins:
@aws-amplify/appsync-modelgen-plugin
└─ relay-compiler@12
└─ babel-preset-fbjs
├─ @babel/plugin-proposal-class-properties
└─ @babel/plugin-proposal-object-rest-spread