Tags: aecorredor/typedorm
Tags
chore(release): 1.16.0-beta.2 [skip ci] # [1.16.0-beta.2](typedorm/typedorm@v1.16.0-beta.1...v1.16.0-beta.2) (2023-03-26) ### Features * **document-client:** expose translateConfig options to DocumentClientV3 ([03f4343](typedorm@03f4343))
chore(release): 1.16.0-beta.1 [skip ci] # [1.16.0-beta.1](typedorm/typedorm@v1.15.4-beta.1...v1.16.0-beta.1) (2023-03-08) ### Features * add schemaVersionAttribute option to enable schema versioning ([7856e29](typedorm@7856e29))
chore(release): 1.15.4 [skip ci] ## [1.15.4](typedorm/typedorm@v1.15.3...v1.15.4) (2023-02-28) ### Bug Fixes * reset changelog file ([d0c2e40](typedorm@d0c2e40))
chore(release): 1.15.4-beta.1 [skip ci] ## [1.15.4-beta.1](typedorm/typedorm@v1.15.3...v1.15.4-beta.1) (2023-02-26) ### Bug Fixes * reset changelog file ([d0c2e40](typedorm@d0c2e40))
fix(common): expose transaction exception types as public api
Sample use-case: a put method that implicitly uses transaction due to unique attribute records
```
async put(user: User): Promise<User> {
try {
const userData: TypeDormUser = await this.ormClient.create(user);
return UserDdbDao.mapTypeDormUserToUser(userData);
} catch (e) {
console.error(
`put user failed ${ JSON.stringify(user) }: `, e
);
switch (e.constructor) {
case TransactionCancelledException:
const error = (e as TransactionCancelledException);
if (error.cancellationReasons.length > 0 && error.cancellationReasons[0].code === "ConditionalCheckFailed") {
throw new ResourceAlreadyExistDataError(
`User ${ JSON.stringify(user) } already exists`
);
}
throw new InternalDataError(
JSON.stringify(error.cancellationReasons), e);
default:
throw new InternalDataError(`put user failed ${ JSON.stringify(user) }: `, e);
}
}
}
```
Merge pull request typedorm#292 from m-szaf/feature/291-Increase-Item… …s-per-Transaction-limit-to-match-AWS-limit-increase fix: Increase Items per Transaction limit to match AWS limit increase
Merge pull request typedorm#286 from slushnys/patch-1 docs: updates a typo in the guide of docs
Merge pull request typedorm#273 from typedorm/beta Release V1.15.0
Merge pull request typedorm#275 from typedorm/bugfix/252-add-dynamodb… …-v3-support-to-testing-lib [typedorm#252] add AWS SDK v3 support support to testing lib
PreviousNext