@aws-sdk/dynamodb-codec 3.973.38 → 3.973.39

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
@@ -1,6 +1,6 @@
1
- const { JsonCodec, JsonShapeSerializer, JsonShapeDeserializer, JsonCodec2, JsonShapeDeserializer2, JsonShapeSerializer2 } = require("@aws-sdk/core/protocols");
1
+ const { JsonCodec, JsonShapeSerializer, JsonShapeDeserializer, JsonCodec2, JsonShapeSerializer2, JsonShapeDeserializer2 } = require("@aws-sdk/core/protocols");
2
2
  const { NormalizedSchema } = require("@smithy/core/schema");
3
- const { toBase64, fromBase64, toUtf8 } = require("@smithy/core/serde");
3
+ const { toBase64, fromBase64 } = require("@smithy/core/serde");
4
4
 
5
5
  class DynamoDBJsonCodec extends JsonCodec {
6
6
  constructor() {
@@ -236,11 +236,6 @@ class DynamoDBJsonShapeSerializer2 extends JsonShapeSerializer2 {
236
236
  this.writeAscii("}");
237
237
  }
238
238
  }
239
- class DynamoDBStringShapeSerializer2 extends DynamoDBJsonShapeSerializer2 {
240
- flush() {
241
- return (this.serdeContext?.utf8Encoder ?? toUtf8)(super.flush());
242
- }
243
- }
244
239
  class DynamoDBJsonShapeDeserializer2 extends JsonShapeDeserializer2 {
245
240
  _read(schema, value) {
246
241
  const ns = NormalizedSchema.of(schema);
@@ -283,7 +278,7 @@ class DynamoDBJsonCodec2 extends JsonCodec2 {
283
278
  });
284
279
  }
285
280
  createSerializer() {
286
- const serializer = new DynamoDBStringShapeSerializer2(this.settings);
281
+ const serializer = new DynamoDBJsonShapeSerializer2(this.settings);
287
282
  serializer.setSerdeContext(this.serdeContext);
288
283
  return serializer;
289
284
  }
@@ -1,6 +1,6 @@
1
1
  import { JsonCodec2, JsonShapeDeserializer2, JsonShapeSerializer2 } from "@aws-sdk/core/protocols";
2
2
  import { NormalizedSchema } from "@smithy/core/schema";
3
- import { fromBase64, toBase64, toUtf8 } from "@smithy/core/serde";
3
+ import { fromBase64, toBase64 } from "@smithy/core/serde";
4
4
  const ATTRIBUTE_VALUE = "com.amazonaws.dynamodb#AttributeValue";
5
5
  class DynamoDBJsonShapeSerializer2 extends JsonShapeSerializer2 {
6
6
  writeValue(schema, value, container) {
@@ -120,11 +120,6 @@ class DynamoDBJsonShapeSerializer2 extends JsonShapeSerializer2 {
120
120
  this.writeAscii("}");
121
121
  }
122
122
  }
123
- class DynamoDBStringShapeSerializer2 extends DynamoDBJsonShapeSerializer2 {
124
- flush() {
125
- return (this.serdeContext?.utf8Encoder ?? toUtf8)(super.flush());
126
- }
127
- }
128
123
  class DynamoDBJsonShapeDeserializer2 extends JsonShapeDeserializer2 {
129
124
  _read(schema, value) {
130
125
  const ns = NormalizedSchema.of(schema);
@@ -167,7 +162,7 @@ export class DynamoDBJsonCodec2 extends JsonCodec2 {
167
162
  });
168
163
  }
169
164
  createSerializer() {
170
- const serializer = new DynamoDBStringShapeSerializer2(this.settings);
165
+ const serializer = new DynamoDBJsonShapeSerializer2(this.settings);
171
166
  serializer.setSerdeContext(this.serdeContext);
172
167
  return serializer;
173
168
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/dynamodb-codec",
3
- "version": "3.973.38",
3
+ "version": "3.973.39",
4
4
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/dynamodb-codec",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -38,7 +38,7 @@
38
38
  "test:watch": "yarn g:vitest watch"
39
39
  },
40
40
  "dependencies": {
41
- "@aws-sdk/core": "^3.977.3",
41
+ "@aws-sdk/core": "^3.977.4",
42
42
  "@smithy/core": "^3.31.1",
43
43
  "@smithy/types": "^4.16.1",
44
44
  "tslib": "^2.6.2"