Skip to content
This repository was archived by the owner on Jun 19, 2023. It is now read-only.

aws-sdk dependency #211

Open
stormsa opened this issue May 6, 2022 · 3 comments
Open

aws-sdk dependency #211

stormsa opened this issue May 6, 2022 · 3 comments

Comments

@stormsa
Copy link

stormsa commented May 6, 2022

Hello,

According to aws documentation, aws-sdk is included in lambda container :
https://docs.aws.amazon.com/lambda/latest/dg/lambda-nodejs.html
But your library also includes aws-sdk in dependencies.
Is it mandatory ? My package is 70mb larger since I use your package :-/

Can you move dependency in optionnalDependency since it's already included in lambda node runtime ?
Edit : It's seems dependency is in peerDependency but npm8 install peerdependency auto.
Can you add :
"peerDependenciesMeta": { "aws-sdk": { "optional": true } }

Thank you

@wz2b
Copy link

wz2b commented Nov 8, 2022

I'd like to know the answer to this, too ... and also if you can use the v3 API:

import {DynamoDB} from "@aws-sdk/client-dynamodb";
        const client = new DynamoDB({});
        this.mapper = new DataMapper({
            client: client
        })

gives me this:

    "errorMessage": "this.client.scan(...).promise is not a function"

and I'm not sure what to do about it.

@Berger92
Copy link

@wz2b Based on its package.json file, and the error you shared above, this library only works with v2 API.

1 similar comment
@Berger92
Copy link

@wz2b Based on its package.json file, and the error you shared above, this library only works with v2 API.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants