Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Chore]Update aws-sdk dependencies to latest possible #13665

Merged
merged 20 commits into from
Aug 2, 2024

Conversation

ashika112
Copy link
Member

@ashika112 ashika112 commented Jul 30, 2024

Description of changes

Update aws-sdk dependencies to latest (3.621.0) possible

Issue #, if available

Fixes: #13670

Description of how you validated changes

  • Unit test
  • Integ test
  • Manual testing

Checklist

  • PR description included
  • yarn test passes
  • Unit Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

Checklist for repo maintainers

  • Verify E2E tests for existing workflows are working as expected or add E2E tests for newly added workflows
  • New source file paths included in this PR have been added to CODEOWNERS, if appropriate

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ashika112 ashika112 marked this pull request as ready for review August 2, 2024 16:52
@ashika112 ashika112 requested review from a team as code owners August 2, 2024 16:52
@@ -164,7 +168,7 @@ export class AmazonAIConvertPredictionsProvider {
const synthesizeSpeechCommand = new SynthesizeSpeechCommand({
OutputFormat: 'mp3',
Text: input.textToSpeech?.source?.text,
VoiceId: voiceId,
VoiceId: voiceId as SynthesizeSpeechInput['VoiceId'],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All these casting is required since SDK updated the types to be stricter than before and this avoids breaking change and anything outside of this will throw an error from API itself

stocaaro
stocaaro previously approved these changes Aug 2, 2024
Copy link
Member

@stocaaro stocaaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Added a couple comments around data specific updates that where needed with the data-schema version update that had some quality of life cx improvements that refined types.

@@ -195,79 +195,6 @@ describe('server generateClient', () => {
);
});

test('can list with sort direction (ascending)', async () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

Confirm that this test is not relevant without using compound keys for sorting, which should be tested by data-schema directly instead of indirectly through this abstraction.

@@ -296,7 +223,9 @@ describe('server generateClient', () => {
config: config,
});

const mockContextSpec = {};
const mockContextSpec = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

Type changed from any to specific type, which breaks this test, but the type would be required for a customers app to work.

Copy link
Contributor

@jimblanc jimblanc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

package.json Show resolved Hide resolved
@ashika112
Copy link
Member Author

Performing yarn why and yarn audit post this fix,

$ yarn why fast-xml-parser

=> Found "[email protected]"
info Reasons this module exists
   - "_project_#@react-native-community#cli-platform-ios" depends on it
   - Hoisted from "_project_#@react-native-community#cli-platform-ios#fast-xml-parser"
   - Hoisted from "_project_#@aws-amplify#storage#fast-xml-parser"
   - Hoisted from "_project_#@aws-amplify#predictions#@aws-sdk#client-comprehend#@aws-sdk#core#fast-xml-parser"
   - Hoisted from "_project_#@aws-amplify#react-native#react-native#@react-native-community#cli#@react-native-community#cli-doctor#@react-native-community#cli-platform-ios#fast-xml-parser"

$ yarn audit

yarn audit v1.22.21
warning Resolution field "[email protected]" is incompatible with requested version "path-scurry@^1.10.1"
warning Resolution field "[email protected]" is incompatible with requested version "[email protected]"
warning Resolution field "[email protected]" is incompatible with requested version "minipass@^4.2.4"
warning Resolution field "[email protected]" is incompatible with requested version "[email protected]"
warning Resolution field "[email protected]" is incompatible with requested version "[email protected]"
warning Resolution field "[email protected]" is incompatible with requested version "[email protected]"
warning Resolution field "[email protected]" is incompatible with requested version "minipass@^4.2.4"
(node:71870) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
0 vulnerabilities found - Packages audited: 2290
✨  Done in 0.67s

Copy link

@esauerbo esauerbo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ashika112 ashika112 merged commit f24805a into aws-amplify:main Aug 2, 2024
30 checks passed
@ashika112 ashika112 deleted the chore/update-aws-sdk branch August 2, 2024 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

V6 fix: bump fast-xml-parser to v4.4.1 for V6
4 participants