Skip to content

[dotnet] Change a list of downloadable files to IReadOnlyList#13265

Merged
titusfortner merged 2 commits intoSeleniumHQ:trunkfrom
nvborisenko:dotnet-downloadable-list
Dec 7, 2023
Merged

[dotnet] Change a list of downloadable files to IReadOnlyList#13265
titusfortner merged 2 commits intoSeleniumHQ:trunkfrom
nvborisenko:dotnet-downloadable-list

Conversation

@nvborisenko
Copy link
Member

@nvborisenko nvborisenko commented Dec 7, 2023

Description

Retrieved list should be immutable.

Motivation and Context

Fixes #13264

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@nvborisenko nvborisenko added the C-dotnet .NET Bindings label Dec 7, 2023
@titusfortner
Copy link
Member

Is this change worth breaking backwards compatibility without warning?

@nvborisenko
Copy link
Member Author

There are 2 types of breaking changes: compilation compatibility and binary compatibility. This change is related to binary compatibility (even not sure), and is not related to compilation compatibility. I suppose only 0.01% of users might be impacted.

@titusfortner titusfortner merged commit 8e75d5d into SeleniumHQ:trunk Dec 7, 2023
@nvborisenko
Copy link
Member Author

nvborisenko commented Dec 7, 2023

I lied, it is compilation level breaking change. It breaks users who wrote:

List<string> myVar = driver.GetDownloadableFiles();

@titusfortner
Copy link
Member

I see how it is. Still want to do it, or put it back?

@nvborisenko
Copy link
Member Author

nvborisenko commented Dec 7, 2023 via email

@nvborisenko nvborisenko deleted the dotnet-downloadable-list branch December 8, 2023 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-dotnet .NET Bindings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[dotnet] Change signature of GetDownloadableFiles to IEnumerable<string>?

2 participants