What's new in 3.0.0?
This update
This update brings Bun 1.3.0 (and 1.2.22) compatibility to ZilaWS while modifying how syncing cookies work. ZilaWS 2.3.0 also fixes an issue in previous versions where, if the server called a waiter on a client, there was a chance that the called waiter was not yet registered on the client. This is why, from this version, the creation of ZilaConnection instances on the client side has changed.
Server side
- Bun runtime support with automatic server wrapper selection
- New cookie syncing system via the
/zilaws/cookieSyncHTTP endpoint cookieSyncAllowedOriginsandsessionTokenCookieNameserver settingsreusePortoption for Bun load-balancingallowSelfSignedHTTPS option
Client side
- Register message handlers before calling
connectToby creating aZilaConnectionfirst - Cookie changes from the server propagate automatically; call
syncCookies()when the browser changesdocument.cookie onCookieSynclocal event replacesonCookieSetandonCookieDelete
Other additions
- Added automated browser unit tests to the client package