Skip to content

Commit 1305d28

Browse files
author
Michael Wittwer
committed
feat(aws-sdk-v3): [WIP] update imports to new version of aws-sdk@3
leaves a lot of ts compile errors behind, this is only the start
1 parent 63db83b commit 1305d28

File tree

72 files changed

+10542
-8678
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+10542
-8678
lines changed

package-lock.json

Lines changed: 10469 additions & 8604 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@
5555
"tslint:custom-rule:test": "tslint --test ./tools/tslint/test"
5656
},
5757
"devDependencies": {
58+
"@aws-sdk/client-dynamodb": "^3.252.0",
5859
"@commitlint/cli": "^17.4.2",
5960
"@commitlint/config-conventional": "^17.4.2",
6061
"@commitlint/prompt-cli": "^17.4.2",
6162
"@types/jest": "^29.2.5",
6263
"@types/node": "^18.11.18",
63-
"aws-sdk": "^2.401.0",
6464
"colors": "^1.4.0",
6565
"coveralls": "^3.1.1",
6666
"husky": "^8.0.0",
@@ -81,7 +81,7 @@
8181
"typescript": "^4.9.4"
8282
},
8383
"peerDependencies": {
84-
"aws-sdk": "^2.401.0",
84+
"@aws-sdk/client-dynamodb": "^3.252.0",
8585
"reflect-metadata": "^0.1.12",
8686
"tslib": "^2.0.0"
8787
},

src/decorator/impl/index/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @module decorators
33
*/
4-
import * as DynamoDB from 'aws-sdk/clients/dynamodb'
4+
import * as DynamoDB from '@aws-sdk/client-dynamodb'
55
import { PropertyMetadata } from '../../metadata/property-metadata.model'
66
import { initOrUpdateProperty } from '../property/init-or-update-property.function'
77
import { KEY_PROPERTY } from '../property/key-property.const'

src/decorator/impl/model/model.decorator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @module decorators
33
*/
4-
import * as DynamoDB from 'aws-sdk/clients/dynamodb'
4+
import * as DynamoDB from '@aws-sdk/client-dynamodb'
55
import { kebabCase } from '../../../helper/kebab-case.function'
66
import { ModelMetadata } from '../../metadata/model-metadata.model'
77
import { PropertyMetadata } from '../../metadata/property-metadata.model'

src/decorator/metadata/property-metadata.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @module metadata
33
*/
4-
import * as DynamoDB from 'aws-sdk/clients/dynamodb'
4+
import * as DynamoDB from '@aws-sdk/client-dynamodb'
55
import { MapperForType } from '../../mapper/for-type/base.mapper'
66
import { Attribute } from '../../mapper/type/attribute.type'
77
import { ModelConstructor } from '../../model/model-constructor'

src/dynamo/batchget/batch-get-full.response.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
// tslint:disable-next-line:interface-over-type-literal
6-
import * as DynamoDB from 'aws-sdk/clients/dynamodb'
6+
import * as DynamoDB from '@aws-sdk/client-dynamodb'
77
import { BatchGetResponse } from './batch-get.response'
88

99
/**

src/dynamo/batchget/batch-get-utils.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as DynamoDB from 'aws-sdk/clients/dynamodb'
1+
import * as DynamoDB from '@aws-sdk/client-dynamodb'
22
import { DynamoDbWrapper } from '../dynamo-db-wrapper'
33
import { batchGetItemsFetchAll, combineBatchGetResponses, hasUnprocessedKeys } from './batch-get-utils'
44

src/dynamo/batchget/batch-get-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @module multi-model-requests/batch-get
33
*/
4-
import * as DynamoDB from 'aws-sdk/clients/dynamodb'
4+
import * as DynamoDB from '@aws-sdk/client-dynamodb'
55
import { promiseDelay } from '../../helper/promise-delay.function'
66
import { DynamoDbWrapper } from '../dynamo-db-wrapper'
77

src/dynamo/batchget/batch-get.request.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// tslint:disable:no-non-null-assertion
2-
import * as DynamoDB from 'aws-sdk/clients/dynamodb'
2+
import * as DynamoDB from '@aws-sdk/client-dynamodb'
33
import { Organization, SimpleWithCompositePartitionKeyModel, SimpleWithPartitionKeyModel } from '../../../test/models'
44
import { toDb } from '../../mapper/mapper'
55
import { Attributes } from '../../mapper/type/attribute.type'

src/dynamo/batchget/batch-get.request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @module multi-model-requests/batch-get
33
*/
4-
import * as DynamoDB from 'aws-sdk/clients/dynamodb'
4+
import * as DynamoDB from '@aws-sdk/client-dynamodb'
55
import { metadataForModel } from '../../decorator/metadata/metadata-for-model.function'
66
import { randomExponentialBackoffTimer } from '../../helper/random-exponential-backoff-timer.generator'
77
import { createToKeyFn, fromDb } from '../../mapper/mapper'

0 commit comments

Comments
 (0)