aws / aws-sdk-js-codemod

Codemod scripts to update AWS SDK for JavaScript APIs.
MIT No Attribution
73 stars 10 forks source link

[Bug]: The client type is not transformed by codemod #826

Closed trivikr closed 7 months ago

trivikr commented 7 months ago

Self-service

Describe the bug

The client type is not transformed by codemod

Steps to reproduce

import { StepFunctions } from "aws-sdk";

let client: StepFunctions;
client = new StepFunctions();

Observed behavior

import { StepFunctions } from "aws-sdk";

import { SFN } from "@aws-sdk/client-sfn";

let client: StepFunctions;
client = new SFN();

Expected behavior

import { SFN } from "@aws-sdk/client-sfn";

let client: SFN;
client = new SFN();

Environment

aws-sdk-js-codemod: 1.2.5
- jscodeshift: 0.15.2
- recast: 0.23.4

Additional context

No response

trivikr commented 7 months ago

This applies to only the clients whose names are different in v2 and v3.

github-actions[bot] commented 6 months ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.