@aws-sdk/lib-dynamodb 3.648.0 → 3.650.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
@@ -784,10 +784,16 @@ var UpdateCommand = _UpdateCommand;
784
784
 
785
785
  var _DynamoDBDocumentClient = class _DynamoDBDocumentClient extends import_smithy_client.Client {
786
786
  constructor(client, translateConfig) {
787
+ var _a;
787
788
  super(client.config);
788
789
  this.config = client.config;
789
790
  this.config.translateConfig = translateConfig;
790
791
  this.middlewareStack = client.middlewareStack;
792
+ if ((_a = this.config) == null ? void 0 : _a.cacheMiddleware) {
793
+ throw new Error(
794
+ "@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the DynamoDBDocumentClient. This option must be set to false."
795
+ );
796
+ }
791
797
  }
792
798
  static from(client, translateConfig) {
793
799
  return new _DynamoDBDocumentClient(client, translateConfig);
@@ -6,6 +6,10 @@ export class DynamoDBDocumentClient extends __Client {
6
6
  this.config = client.config;
7
7
  this.config.translateConfig = translateConfig;
8
8
  this.middlewareStack = client.middlewareStack;
9
+ if (this.config?.cacheMiddleware) {
10
+ throw new Error("@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the" +
11
+ " DynamoDBDocumentClient. This option must be set to false.");
12
+ }
9
13
  }
10
14
  static from(client, translateConfig) {
11
15
  return new DynamoDBDocumentClient(client, translateConfig);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/lib-dynamodb",
3
- "version": "3.648.0",
3
+ "version": "3.650.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",
@@ -26,17 +26,17 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/util-dynamodb": "3.648.0",
30
- "@smithy/core": "^2.4.0",
31
- "@smithy/smithy-client": "^3.2.0",
32
- "@smithy/types": "^3.3.0",
29
+ "@aws-sdk/util-dynamodb": "3.650.0",
30
+ "@smithy/core": "^2.4.1",
31
+ "@smithy/smithy-client": "^3.3.0",
32
+ "@smithy/types": "^3.4.0",
33
33
  "tslib": "^2.6.2"
34
34
  },
35
35
  "peerDependencies": {
36
- "@aws-sdk/client-dynamodb": "^3.648.0"
36
+ "@aws-sdk/client-dynamodb": "^3.650.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@aws-sdk/client-dynamodb": "3.648.0",
39
+ "@aws-sdk/client-dynamodb": "3.650.0",
40
40
  "@tsconfig/recommended": "1.0.1",
41
41
  "@types/node": "^16.18.96",
42
42
  "concurrently": "7.0.0",