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

deps: Update "aws-sdk" to v2.1692.0 #6340

Merged
merged 1 commit into from
Jan 22, 2025
Merged

Conversation

valerena
Copy link
Contributor

@valerena valerena commented Jan 11, 2025

Update aws-sdk to v2.1692.0

The Response class in AWS SDK changed the signature of the nextPage method, so some tests that were mocking this method had to be updated accordingly (changing the response from undefined to null).

The definition changed from

    nextPage(callback?: (err: E, data: D) => void): Request<D, E>|void;

(callback optional, can return void)

To

    nextPage(): Request<D, E> | null;
    nextPage(callback: (err: E, data: D) => void): void;

(can return null if no callback. only when a callback is passed returns void)

Problem

The version of the AWSK SDK v2 was outdated 1.5 years, so some newer functionality was not available.

Solution

Update the version of aws-sdk package to the latest version.


  • Treat all work as PUBLIC. Private feature/x branches will not be squash-merged at release time.
  • Your code changes must meet the guidelines in CONTRIBUTING.md.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

The `Response` class in AWS SDK changed the signature of the `nextPage` method,
so some tests that were mocking this method had to be updated accordingly
(changing the response from `undefined` to `null`).
@valerena valerena marked this pull request as ready for review January 13, 2025 18:15
@valerena valerena requested a review from a team as a code owner January 13, 2025 18:15
@justinmk3 justinmk3 merged commit f4e0893 into aws:master Jan 22, 2025
26 checks passed
kevluu-aws pushed a commit to kevluu-aws/aws-toolkit-vscode that referenced this pull request Jan 23, 2025
## Problem
The version of the AWSK SDK v2 was outdated 1.5 years, so some newer
functionality was not available.

## Solution
Update the version of `aws-sdk` package to the latest version.

The `Response` class in AWS SDK changed the signature of the `nextPage`
method, so some tests that were mocking this method had to be updated
accordingly (changing the response from `undefined` to `null`).

The definition changed from 
```
    nextPage(callback?: (err: E, data: D) => void): Request<D, E>|void;
```
(callback optional, can return `void`)

To 
```
    nextPage(): Request<D, E> | null;
    nextPage(callback: (err: E, data: D) => void): void;
```
(can return `null` if no callback. only when a callback is passed
returns `void`)
chungjac pushed a commit to chungjac/aws-toolkit-vscode that referenced this pull request Jan 24, 2025
## Problem
The version of the AWSK SDK v2 was outdated 1.5 years, so some newer
functionality was not available.

## Solution
Update the version of `aws-sdk` package to the latest version.

The `Response` class in AWS SDK changed the signature of the `nextPage`
method, so some tests that were mocking this method had to be updated
accordingly (changing the response from `undefined` to `null`).

The definition changed from 
```
    nextPage(callback?: (err: E, data: D) => void): Request<D, E>|void;
```
(callback optional, can return `void`)

To 
```
    nextPage(): Request<D, E> | null;
    nextPage(callback: (err: E, data: D) => void): void;
```
(can return `null` if no callback. only when a callback is passed
returns `void`)
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.

2 participants