aws / aws/aws-sdk-js-codemod

[Feature]: Support named import of DocumentClient from deep path

Open
#689 0 comments 2 reactions 0 assignees View on GitHub
enhancement p3
Dominant language
TypeScript
Stars
89
Forks
13
Avg merge
9h 59m
Merged PRs (30d)
1

Description

### Self-service

- [ ] I'd be willing to implement this feature

### Problem

Transformation of named import of DocumentClient from deep path is not supported

```js
import { DocumentClient } from "aws-sdk/clients/dynamodb";
const documentClient = new DocumentClient({ region: "us-west-2" });
```

### Solution

Support transformation of named import of DocumentClient from deep path

### Alternatives

N/A

### Additional context

Production uses: https://github.com/search?q=repo%3Awebiny%2Fwebiny-js%20%22aws-sdk%2Fclients%2Fdynamodb%22&type=code

Contributor guide

Open the contributing guide

Research direction

Start by locating the transformation that handles named imports from AWS SDK client paths and compare its behavior with the documented aws-sdk/clients/dynamodb example. Done means the named DocumentClient import from that deep path is transformed correctly without breaking the shown usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, javascript, typescript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.