Skip to content

Commit f3bb632

Browse files
committed
chore: Migrate away from deprecated dependencies
1 parent f3589b4 commit f3bb632

20 files changed

+9014
-8686
lines changed

package-lock.json

Lines changed: 8931 additions & 8652 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@
116116
},
117117
"dependencies": {
118118
"@aws-crypto/sha256-js": "^2.0.2",
119-
"@aws-sdk/fetch-http-handler": "^3.36.0",
120-
"@aws-sdk/protocol-http": "^3.36.0",
121119
"@aws-sdk/querystring-builder": "^3.36.0",
122-
"@aws-sdk/signature-v4": "^3.36.0",
123-
"@aws-sdk/util-hex-encoding": "^3.36.0",
124120
"@babel/runtime": "^7.16.0",
121+
"@smithy/fetch-http-handler": "^4.1.0",
122+
"@smithy/protocol-http": "^4.1.6",
123+
"@smithy/signature-v4": "^4.2.2",
124+
"@smithy/util-hex-encoding": "^3.0.0",
125125
"shimmer": "^1.2.1",
126126
"ua-parser-js": "^1.0.33",
127127
"uuid": "^9.0.0",

src/dispatch/Authentication.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { CognitoIdentityClient } from './CognitoIdentityClient';
22
import { Config } from '../orchestration/Orchestration';
33
import { AwsCredentialIdentity } from '@aws-sdk/types';
4-
import { FetchHttpHandler } from '@aws-sdk/fetch-http-handler';
4+
import { FetchHttpHandler } from '@smithy/fetch-http-handler';
55
import { CRED_KEY, CRED_RENEW_MS } from '../utils/constants';
66

77
export abstract class Authentication {

src/dispatch/BasicAuthentication.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Config } from '../orchestration/Orchestration';
22
import { AwsCredentialIdentity } from '@aws-sdk/types';
3-
import { FetchHttpHandler } from '@aws-sdk/fetch-http-handler';
3+
import { FetchHttpHandler } from '@smithy/fetch-http-handler';
44
import { StsClient } from './StsClient';
55
import { Authentication } from './Authentication';
66

src/dispatch/BeaconHttpHandler.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { HttpHandler, HttpRequest, HttpResponse } from '@aws-sdk/protocol-http';
1+
import { HttpHandler, HttpRequest, HttpResponse } from '@smithy/protocol-http';
22
import { buildQueryString } from '@aws-sdk/querystring-builder';
33

44
export class BeaconHttpHandler implements HttpHandler {
@@ -15,6 +15,14 @@ export class BeaconHttpHandler implements HttpHandler {
1515
});
1616
}
1717

18+
updateHttpClientConfig(_key: never, _value: never): void {
19+
// No-op: Customize if needed
20+
}
21+
22+
httpHandlerConfigs(): Record<string, never> {
23+
return {};
24+
}
25+
1826
private sendBeacon(signedRequest: HttpRequest) {
1927
let path = signedRequest.path;
2028
if (signedRequest.query) {

src/dispatch/CognitoIdentityClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable no-underscore-dangle */
2-
import { HttpHandler, HttpRequest } from '@aws-sdk/protocol-http';
2+
import { HttpHandler, HttpRequest } from '@smithy/protocol-http';
33
import { AwsCredentialIdentity } from '@aws-sdk/types';
44
import { responseToJson } from './utils';
55
import { IDENTITY_KEY } from '../utils/constants';

src/dispatch/DataPlaneClient.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { toHex } from '@aws-sdk/util-hex-encoding';
2-
import { SignatureV4 } from '@aws-sdk/signature-v4';
1+
import { toHex } from '@smithy/util-hex-encoding';
2+
import { SignatureV4 } from '@smithy/signature-v4';
33
import {
44
AwsCredentialIdentityProvider,
55
AwsCredentialIdentity,
@@ -8,7 +8,7 @@ import {
88
HeaderBag
99
} from '@aws-sdk/types';
1010
import { Sha256 } from '@aws-crypto/sha256-js';
11-
import { HttpHandler, HttpRequest } from '@aws-sdk/protocol-http';
11+
import { HttpHandler, HttpRequest } from '@smithy/protocol-http';
1212
import {
1313
AppMonitorDetails,
1414
PutRumEventsRequest,

src/dispatch/FetchHttpHandler.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { HttpHandler, HttpRequest, HttpResponse } from '@aws-sdk/protocol-http';
1+
import { HttpHandler, HttpRequest, HttpResponse } from '@smithy/protocol-http';
22
import { buildQueryString } from '@aws-sdk/querystring-builder';
33
import { HeaderBag, HttpHandlerOptions } from '@aws-sdk/types';
44

@@ -135,4 +135,12 @@ export class FetchHttpHandler implements HttpHandler {
135135
}
136136
return Promise.race(raceOfPromises);
137137
}
138+
139+
updateHttpClientConfig(_key: never, _value: never): void {
140+
// No-op: Customize if needed
141+
}
142+
143+
httpHandlerConfigs(): Record<string, never> {
144+
return {};
145+
}
138146
}

src/dispatch/RetryHttpHandler.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { HttpHandler, HttpRequest, HttpResponse } from '@aws-sdk/protocol-http';
1+
import { HttpHandler, HttpRequest, HttpResponse } from '@smithy/protocol-http';
22
import { is2xx, is429, is5xx } from '../plugins/utils/http-utils';
33

44
export type BackoffFunction = (retry: number) => number;
@@ -57,4 +57,12 @@ export class RetryHttpHandler implements HttpHandler {
5757
setTimeout(resolve, milliseconds)
5858
);
5959
}
60+
61+
updateHttpClientConfig(_key: never, _value: never): void {
62+
// No-op: Customize if needed
63+
}
64+
65+
httpHandlerConfigs(): Record<string, never> {
66+
return {};
67+
}
6068
}

src/dispatch/StsClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { HttpHandler, HttpRequest } from '@aws-sdk/protocol-http';
1+
import { HttpHandler, HttpRequest } from '@smithy/protocol-http';
22
import { CognitoIdentityClientConfig } from './CognitoIdentityClient';
33
import { AwsCredentialIdentity } from '@aws-sdk/types';
44
import { responseToString } from './utils';

0 commit comments

Comments
 (0)