Migrate @aws-sdk/* packages that moved to @smithy/*

Proprietary

49 @aws-sdk/* packages, among them node-http-handler, protocol-http, signature-v4, smithy-client, fetch-http-handler, abort-controller and the util-* and middleware-* packages, are deprecated: from 3.363.0 each only re-exports the @smithy/* package of the same name, and its last release pins an old major of it. Points their imports, requires and mocks at the @smithy/* packages, which export the same names, and swaps each dependency at the release the project's Node.js runs, regenerating the lock file. An @aws-sdk/* client declared below 3.363.0 is raised to a release on the @smithy/* packages. Where the behavior changes, the code is adapted: a NodeHttpHandler's requestTimeout, an idle-socket timeout before @smithy/node-http-handler 4.4.0, becomes socketTimeout, and the maxAttempts of a client raised past 3.362.0, which made one attempt more, is raised by one.

org.openrewrite.node.migrate.aws-sdk-smithy.migrate-aws-sdk-packages-to-smithy
mod run . --recipe=org.openrewrite.node.migrate.aws-sdk-smithy.migrate-aws-sdk-packages-to-smithy

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.