@aws-sdk/util-dynamodb 3.36.0 → 3.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,38 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/util-dynamodb
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/util-dynamodb
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @aws-sdk/util-dynamodb
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @aws-sdk/util-dynamodb
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
6
38
|
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
|
|
7
39
|
|
|
8
40
|
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { AttributeValue } from "@aws-sdk/client-dynamodb";
|
|
2
2
|
import { marshallOptions } from "./marshall";
|
|
3
3
|
import { NativeAttributeValue } from "./models";
|
|
4
|
-
|
|
5
|
-
* Convert a JavaScript value to its equivalent DynamoDB AttributeValue type
|
|
6
|
-
*
|
|
7
|
-
* @param {NativeAttributeValue} data - The data to convert to a DynamoDB AttributeValue
|
|
8
|
-
* @param {marshallOptions} options - An optional configuration object for `convertToAttr`
|
|
9
|
-
*/
|
|
4
|
+
|
|
10
5
|
export declare const convertToAttr: (data: NativeAttributeValue, options?: marshallOptions | undefined) => AttributeValue;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { AttributeValue } from "@aws-sdk/client-dynamodb";
|
|
2
2
|
import { NativeAttributeValue } from "./models";
|
|
3
3
|
import { unmarshallOptions } from "./unmarshall";
|
|
4
|
-
|
|
5
|
-
* Convert a DynamoDB AttributeValue object to its equivalent JavaScript type.
|
|
6
|
-
*
|
|
7
|
-
* @param {AttributeValue} data - The DynamoDB record to convert to JavaScript type.
|
|
8
|
-
* @param {unmarshallOptions} options - An optional configuration object for `convertToNative`.
|
|
9
|
-
*/
|
|
4
|
+
|
|
10
5
|
export declare const convertToNative: (data: AttributeValue, options?: unmarshallOptions | undefined) => NativeAttributeValue;
|
|
@@ -1,27 +1,14 @@
|
|
|
1
1
|
import { AttributeValue } from "@aws-sdk/client-dynamodb";
|
|
2
|
-
|
|
3
|
-
* An optional configuration object for `marshall`
|
|
4
|
-
*/
|
|
2
|
+
|
|
5
3
|
export interface marshallOptions {
|
|
6
|
-
|
|
7
|
-
* Whether to automatically convert empty strings, blobs, and sets to `null`
|
|
8
|
-
*/
|
|
4
|
+
|
|
9
5
|
convertEmptyValues?: boolean;
|
|
10
|
-
|
|
11
|
-
* Whether to remove undefined values while marshalling.
|
|
12
|
-
*/
|
|
6
|
+
|
|
13
7
|
removeUndefinedValues?: boolean;
|
|
14
|
-
|
|
15
|
-
* Whether to convert typeof object to map attribute.
|
|
16
|
-
*/
|
|
8
|
+
|
|
17
9
|
convertClassInstanceToMap?: boolean;
|
|
18
10
|
}
|
|
19
|
-
|
|
20
|
-
* Convert a JavaScript object into a DynamoDB record.
|
|
21
|
-
*
|
|
22
|
-
* @param {any} data - The data to convert to a DynamoDB record
|
|
23
|
-
* @param {marshallOptions} options - An optional configuration object for `marshall`
|
|
24
|
-
*/
|
|
11
|
+
|
|
25
12
|
export declare const marshall: <T extends {
|
|
26
13
|
[K in keyof T]: any;
|
|
27
14
|
}>(data: T, options?: marshallOptions | undefined) => {
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* A interface recognizable as a numeric value that stores the underlying number
|
|
4
|
-
* as a string.
|
|
5
|
-
*
|
|
6
|
-
* Intended to be a deserialization target for the DynamoDB Document Client when
|
|
7
|
-
* the `wrapNumbers` flag is set. This allows for numeric values that lose
|
|
8
|
-
* precision when converted to JavaScript's `number` type.
|
|
9
|
-
*/
|
|
1
|
+
|
|
2
|
+
|
|
10
3
|
export interface NumberValue {
|
|
11
4
|
readonly value: string;
|
|
12
5
|
}
|
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
import { AttributeValue } from "@aws-sdk/client-dynamodb";
|
|
2
2
|
import { NativeAttributeValue } from "./models";
|
|
3
|
-
|
|
4
|
-
* An optional configuration object for `convertToNative`
|
|
5
|
-
*/
|
|
3
|
+
|
|
6
4
|
export interface unmarshallOptions {
|
|
7
|
-
|
|
8
|
-
* Whether to return numbers as a string instead of converting them to native JavaScript numbers.
|
|
9
|
-
* This allows for the safe round-trip transport of numbers of arbitrary size.
|
|
10
|
-
*/
|
|
5
|
+
|
|
11
6
|
wrapNumbers?: boolean;
|
|
12
7
|
}
|
|
13
|
-
|
|
14
|
-
* Convert a DynamoDB record into a JavaScript object.
|
|
15
|
-
*
|
|
16
|
-
* @param {any} data - The DynamoDB record
|
|
17
|
-
* @param {unmarshallOptions} options - An optional configuration object for `unmarshall`
|
|
18
|
-
*/
|
|
8
|
+
|
|
19
9
|
export declare const unmarshall: (data: {
|
|
20
10
|
[key: string]: AttributeValue;
|
|
21
11
|
}, options?: unmarshallOptions | undefined) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-dynamodb",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.39.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"tslib": "^2.3.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@aws-sdk/client-dynamodb": "3.
|
|
24
|
+
"@aws-sdk/client-dynamodb": "3.39.0",
|
|
25
25
|
"@types/jest": "^26.0.4",
|
|
26
26
|
"jest": "^26.1.0",
|
|
27
27
|
"typescript": "~4.3.5"
|