Skip to content

Commit

Permalink
fix(util-user-agent-*): not to update version to 3.x.x
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP committed Dec 15, 2020
1 parent 38dc3dc commit a219dd1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/util-user-agent-browser/src/index.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export const defaultUserAgent = ({
serviceId,
clientVersion,
}: DefaultUserAgentOptions): Provider<UserAgent> => async () => {
// TODO: remove this post GA and version changed to 3.x.x
clientVersion = clientVersion.replace(/^1\./, "3.");
const sections: UserAgent = [
// sdk-metadata
["aws-sdk-js", clientVersion],
// os-metadata
["os/other"],
// language-metadata
Expand Down
2 changes: 0 additions & 2 deletions packages/util-user-agent-browser/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ export const defaultUserAgent = ({
serviceId,
clientVersion,
}: DefaultUserAgentOptions): Provider<UserAgent> => async () => {
// TODO: remove this post GA and version changed to 3.x.x
clientVersion = clientVersion.replace(/^1\./, "3.");
const parsedUA = window?.navigator?.userAgent ? parse(window.navigator.userAgent) : undefined;
const sections: UserAgent = [
// sdk-metadata
Expand Down
2 changes: 0 additions & 2 deletions packages/util-user-agent-node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ export const defaultUserAgent = ({
serviceId,
clientVersion,
}: DefaultUserAgentOptions): Provider<UserAgent> => async () => {
// TODO: remove this post GA and version changed to 3.x.x
clientVersion = clientVersion.replace(/^1\./, "3.");
const sections: UserAgent = [
// sdk-metadata
["aws-sdk-js", clientVersion],
Expand Down

0 comments on commit a219dd1

Please sign in to comment.