From 93c38ff4d416f0950ccb8d6ef03740a7b3e740a9 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Thu, 6 May 2021 18:34:29 +0200 Subject: [PATCH] Create 5.0-to-5.1.md --- .github/migrations/5.0-to-5.1.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/migrations/5.0-to-5.1.md diff --git a/.github/migrations/5.0-to-5.1.md b/.github/migrations/5.0-to-5.1.md new file mode 100644 index 000000000..e41740c9e --- /dev/null +++ b/.github/migrations/5.0-to-5.1.md @@ -0,0 +1,17 @@ +# ASF V5.0 -> V5.1 + +## Plugins + +### `SelectElementNodes(...)`, `SelectNodes(...)` + +Previously returned `List`, now returns `IEnumerable` + +https://github.com/JustArchiNET/ArchiSteamFarm/commit/65dc5def01b4208dd019685c8724d88f82d2902f + +#### Proper solution + +Use `IEnumerable` where you've previously used `List`. If you're just enumerating over results, you don't need a full collection, we didn't need it anywhere in ASF code when doing this change. + +#### Alternative solution + +Just call `.ToList()` on the result yourself.