dynamodb-oop icon indicating copy to clipboard operation
dynamodb-oop copied to clipboard

Support AWS SDK v3

Open markw351 opened this issue 3 years ago • 2 comments

Instead of the entire aws-sdk library, we should be able to...

const { DynamoDB } = require("@aws-sdk/client-dynamodb")
const $db = new DynamoDB({ region: 'us-west-2' })
const DynamodbFactory = require('@awspilot/dynamodb')
const dynamodb = new DynamodbFactory($db)

markw351 avatar Mar 21 '21 00:03 markw351

Hi Mark,

Indeed @awspilot/dynamodb v2.x does not work with AWS SDK v3, feature releases of @awspilot/dynamodb ( v3.x ) will use AWS SDK v3.

Switching to AWS SDK v3 doesn't seem like a big rewrite I just found myself confortable with the v2 and there was no request for v3 yet

Thanks for mentioning it and I'll leave this issue open until there's a v3 😄

adrianpraja avatar Mar 23 '21 16:03 adrianpraja

Hi @adrianpraja

As AWS' note below, any chance we could get a v3 of @awspilot/dynamodb

NOTE: We are formalizing our plans to enter AWS SDK for JavaScript (v2) into maintenance mode in 2023.

Please migrate your code to use AWS SDK for JavaScript (v3).
For more information, check the migration guide at https://a.co/7PzMCcy

cheers

Mark

markw351 avatar May 02 '23 05:05 markw351