Skip to content

Commit e96c247

Browse files
committed
v2.7.7 description
1 parent 79ac177 commit e96c247

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/src/content/docs/extra/version-log.mdx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,26 @@ Logs about the changed features.
99

1010
---
1111

12+
13+
## **Version 2.7.7**
14+
15+
- Added `node.on("nodeLinkEvent", node, eventName, player, track, payload)` to handle nodelink events.
16+
17+
Example:
18+
```ts
19+
this.nodeManager.on("nodeLinkEvent", (node, event, player, track, payload) => {
20+
if (event === "SeekEvent") {
21+
console.log("new position:", payload.position);
22+
}
23+
if (event === "FiltersChangedEvent") {
24+
console.log("new filters state", payload.filters);
25+
}
26+
});
27+
```
28+
It is fully typed and generic, so you get code completion + type security based on the event Name.
29+
Why not many different events?`
30+
- This way the client does not get bloated, as nodelink is not the primary focus of this client.
31+
1232
## **Version 2.7.6**
1333

1434
More NodeLink Specific / additional features added, in case you are using NodeLink.

0 commit comments

Comments
 (0)