fix(core)!: $(...).[last,first,all]() defaulting to the first output instead of the output that connects the nodes (#9760)

This commit is contained in:
Danny Martini
2024-06-19 15:10:30 +02:00
committed by GitHub
parent 77bf16667b
commit 4ac9266820
5 changed files with 244 additions and 14 deletions

View File

@@ -2,6 +2,18 @@
This list shows all the versions which include breaking changes and how to upgrade.
## 1.47.0
### What changed?
Calling `$(...).last()` (or `$(...).first()` or `$(...).all()` respectively) without arguments is returning the the last item (or first or all items) of the output that connects the two nodes. Before it was returning the item/items of the first output of that node.
### When is action necessary?
If you are using `$(...).last()` (or `$(...).first()` or `$(...)all()` respectively) without arguments for nodes that have multiple outputs (e.g. `If`, `Switch`, `Compare Datasets`, etc.) and you want it to default to the first output. In that case change it to `$(...).last(0)` (or `first` or `all` respectively).
This does not affect the Array functions `[].last()`, `[].first()`.
## 1.40.0
### What changed?