Releases: littensy/reflex
🩹 4.3.1
Fixes observers only being called for the first addition of a primitive value.
For example, if the state were set to { true, true }
, the observer would only run for one instance with the value true
, regardless of the discriminator. This release fixes that problem.
Full Changelog: v4.3.0...v4.3.1
👯 4.3.0
🔧 4.2.2
Full Changelog: v4.2.1...v4.2.2
🔧 4.2.1
📡 4.2.0
This release implements broadcast batching and an optional explicit hydration handler to reduce stress on a single remote.
✨ What's Changed
📚 API
createBroadcaster
options.dispatchRate = 0
: The rate at which the server should broadcast actions to the clients. If this is set to0
, actions are broadcast with the next server heartbeat.options.hydrate(player, state)?
: An optional custom hydration function. If provided, this function will be called instead of being implicitly handled by 'dispatch'. Useful for reducing load on a single remote if your state is large.
createBroadcastReceiver
receiver.hydrate(state)
: Hydrates the root producer with the given state. State should be received from the broadcaster'soptions.hydrate
function.
Full Changelog: v4.1.0...v4.2.0
🔐 v4.1.0
This release introduces beforeDispatch
and beforeHydrate
for filtering actions and state before broadcasting to specific players.
See the updated broadcaster guide →
✨ What's Changed
Full Changelog: v4.0.0...v4.1.0
🛰️ v4.0.0
This release addresses some broadcaster sync issues more reliably than release v3.5.0
. Most notably, we no longer use a remote function to request state, and instead trigger hydration on the server.
This is a breaking change! See the updated guide on how to set up a broadcaster and receiver.
✨ What's Changed
Full Changelog: v3.5.0...v4.0.0
📡 v3.5.0
✨ What's Changed
- 📡 Add
requestInterval
receiver option 8687144 - 📂 Support roblox-ts plugin setup by @howmanysmall in #19
🎉 New Contributors
- @howmanysmall made their first contribution in #19
Full Changelog: v3.4.1...v3.5.0