You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance ServerSentEventGenerator with new methods and detailed documentation
- Added `executeScript` method to run JavaScript in the client browser with options for auto-removal and custom attributes.
- Introduced `removeElements` and `removeSignals` methods for convenient removal of DOM elements and signals, respectively.
- Updated documentation for `patchElements` and `patchSignals` methods with usage examples and detailed parameter descriptions.
- Refactored event handling in tests to utilize new methods, improving clarity and consistency across implementations.
- Updated README.md documentation to reflect all changes above.
Copy file name to clipboardExpand all lines: README.md
+58-2Lines changed: 58 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
8
8
A TypeScript SDK for building reactive web applications with [Datastar](https://github.com/starfederation/datastar).
9
9
10
-
Implements the [SDK spec](../README.md) and exposes an abstract ServerSentEventGenerator class that can be used to implement runtime specific classes. NodeJS and web standard runtimes are currently implemented.
10
+
Implements the [SDK spec](https://github.com/starfederation/datastar/blob/develop/sdk/README.md) and exposes an abstract ServerSentEventGenerator class that can be used to implement runtime specific classes. NodeJS and web standard runtimes are currently implemented.
11
11
12
12
Currently it only exposes an http1 server, if you want http2 I recommend you use a reverse proxy until http2 support is added.
13
13
@@ -169,6 +169,59 @@ Patches HTML elements into the client DOM.
0 commit comments