George Fu

Results 216 comments of George Fu

We don't guarantee the writability of our package index objects. Importing from dist-cjs is also not supported. I suggest you do a full module mockImpl, e.g. ```ts jest.mock("@...", () =>...

If you add this line to your application before SDK operations, that should get you past this error. Add this: ```js import "@aws-sdk/util-endpoints"; // ESM // or require("@aws-sdk/util-endpoints"); // CJS...

This issue should be fixed in the latest version of the SDK without needing to explicitly import util-endpoints. The change we made was to make the registration of the additional...

The versions containing this fix are v3.540.0 and higher.

please create a separate issue including reproduction step. Including your package-lock.json and build configuration would be helpful, since the problem can be quite specific to a certain build and package...

This is a favorite topic of mine. I have worked on improvements in this area such as https://github.com/awslabs/smithy-typescript/pull/576, which I plan to also apply to JSON protocols like your example....

https://github.com/aws/aws-sdk-js-v3/pull/4544 contributed towards this JSON serde optimization: https://github.com/aws/aws-sdk-js-v3/pull/4625

recent (2023 Q4 / 2024 Q1) PRs reducing generated code size: https://github.com/smithy-lang/smithy-typescript/pull/1107 https://github.com/aws/aws-sdk-js-v3/pull/5566 https://github.com/aws/aws-sdk-js-v3/pull/5567 https://github.com/smithy-lang/smithy-typescript/pull/1108 https://github.com/smithy-lang/smithy-typescript/pull/1114 https://github.com/aws/aws-sdk-js-v3/pull/5590 https://github.com/smithy-lang/smithy-typescript/pull/1115 https://github.com/smithy-lang/smithy-typescript/pull/1118 https://github.com/smithy-lang/smithy-typescript/pull/1120 https://github.com/aws/aws-sdk-js-v3/pull/5604

closing this because it is being addressed in a continuous manner