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 DynamoDB.DocumentClient is incorrectly transformed to DocumentClient #825

Closed trivikr closed 7 months ago

trivikr commented 7 months ago

Self-service

Describe the bug

The DynamoDB.DocumentClient is incorrectly transformed to DocumentClient

Steps to reproduce

import { DynamoDB } from "aws-sdk";

let client: DynamoDB.DocumentClient;

Observed behavior

import { DocumentClient } from "@aws-sdk/client-dynamodb";

let client: DocumentClient;

Expected behavior

import { DynamoDBDocument } from "@aws-sdk/lib-dynamodb";

let client: DynamoDBDocument;

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 happens as DocumentClient is considered as DynamoDB type by transformer.

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.