@aws-sdk/lib-dynamodb 3.846.0 → 3.850.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/dist-cjs/index.js CHANGED
@@ -148,8 +148,18 @@ var DynamoDBDocumentClientCommand = class extends import_smithy_client.Command {
148
148
  this.clientCommand.middlewareStack.addRelativeTo(
149
149
  (next, context) => async (args) => {
150
150
  (0, import_core.setFeature)(context, "DDB_MAPPER", "d");
151
- args.input = marshallInput(args.input, this.inputKeyNodes, marshallOptions3);
152
- return next(args);
151
+ return next({
152
+ ...args,
153
+ /**
154
+ * We overwrite `args.input` at this middleware, but do not
155
+ * mutate the args object itself, which is initially the Command instance.
156
+ *
157
+ * The reason for this is to prevent mutations to the Command instance's inputs
158
+ * from being carried over if the Command instance is reused in a new
159
+ * request.
160
+ */
161
+ input: marshallInput(args.input, this.inputKeyNodes, marshallOptions3)
162
+ });
153
163
  },
154
164
  {
155
165
  name: "DocumentMarshall",
@@ -8,8 +8,10 @@ export class DynamoDBDocumentClientCommand extends $Command {
8
8
  unmarshallOptions.convertWithoutMapWrapper = unmarshallOptions.convertWithoutMapWrapper ?? true;
9
9
  this.clientCommand.middlewareStack.addRelativeTo((next, context) => async (args) => {
10
10
  setFeature(context, "DDB_MAPPER", "d");
11
- args.input = marshallInput(args.input, this.inputKeyNodes, marshallOptions);
12
- return next(args);
11
+ return next({
12
+ ...args,
13
+ input: marshallInput(args.input, this.inputKeyNodes, marshallOptions),
14
+ });
13
15
  }, {
14
16
  name: "DocumentMarshall",
15
17
  relation: "before",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/lib-dynamodb",
3
- "version": "3.846.0",
3
+ "version": "3.850.0",
4
4
  "description": "The document client simplifies working with items in Amazon DynamoDB by abstracting away the notion of attribute values.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -15,9 +15,11 @@
15
15
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
16
16
  "extract:docs": "api-extractor run --local",
17
17
  "test": "yarn g:vitest run",
18
- "test:e2e": "yarn g:vitest run -c vitest.config.e2e.ts --mode development",
19
18
  "test:watch": "yarn g:vitest watch",
20
- "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.ts"
19
+ "test:e2e": "yarn g:vitest run -c vitest.config.e2e.ts --mode development",
20
+ "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.ts",
21
+ "test:integration": "yarn g:vitest run -c vitest.config.integ.ts --mode development",
22
+ "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts"
21
23
  },
22
24
  "engines": {
23
25
  "node": ">=18.0.0"
@@ -29,17 +31,17 @@
29
31
  "license": "Apache-2.0",
30
32
  "dependencies": {
31
33
  "@aws-sdk/core": "3.846.0",
32
- "@aws-sdk/util-dynamodb": "3.846.0",
34
+ "@aws-sdk/util-dynamodb": "3.848.0",
33
35
  "@smithy/core": "^3.7.0",
34
36
  "@smithy/smithy-client": "^4.4.7",
35
37
  "@smithy/types": "^4.3.1",
36
38
  "tslib": "^2.6.2"
37
39
  },
38
40
  "peerDependencies": {
39
- "@aws-sdk/client-dynamodb": "^3.846.0"
41
+ "@aws-sdk/client-dynamodb": "^3.848.0"
40
42
  },
41
43
  "devDependencies": {
42
- "@aws-sdk/client-dynamodb": "3.846.0",
44
+ "@aws-sdk/client-dynamodb": "3.848.0",
43
45
  "@tsconfig/recommended": "1.0.1",
44
46
  "@types/node": "^18.19.69",
45
47
  "concurrently": "7.0.0",