Skip to content

Releases: littensy/reflex

🩹 4.3.1

28 Nov 22:35
Compare
Choose a tag to compare

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

22 Nov 22:47
Compare
Choose a tag to compare

What's Changed

Full Changelog: v4.2.2...v4.3.0

🔧 4.2.2

29 Sep 22:53
Compare
Choose a tag to compare

Full Changelog: v4.2.1...v4.2.2

🔧 4.2.1

26 Sep 21:48
Compare
Choose a tag to compare

What's Changed

  • fix: no as const for selector dependencies by @littensy in #23

Full Changelog: v4.2.0...v4.2.1

📡 4.2.0

29 Jul 02:12
Compare
Choose a tag to compare

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 to 0, 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's options.hydrate function.

Full Changelog: v4.1.0...v4.2.0

🔐 v4.1.0

18 Jul 19:28
Compare
Choose a tag to compare

This release introduces beforeDispatch and beforeHydrate for filtering actions and state before broadcasting to specific players.

See the updated broadcaster guide →

✨ What's Changed

  • 🔐 Add broadcaster filter options by @littensy in #21
  • ⏱️ Increase default hydrateRate to 60 seconds

Full Changelog: v4.0.0...v4.1.0

🛰️ v4.0.0

17 Jul 04:52
Compare
Choose a tag to compare

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

17 Jul 01:14
Compare
Choose a tag to compare

✨ What's Changed

🎉 New Contributors

Full Changelog: v3.4.1...v3.5.0

📘 v3.4.1

12 Jul 22:49
Compare
Choose a tag to compare

This release fixes a bug with observe in the types for Roblox-TS.

🐛 Fixes

  • Items inferred by observe should not be nullable 601baa1

🔮 v3.4.0

30 Jun 04:35
Compare
Choose a tag to compare

This release adds more functionality to observe and introduces observeWhile!

✨ What's New

  • 🔮 Pass index to the discriminator and Observer in observe c50d315
  • ⏱️ Add observeWhile for using an Observer while a condition is met a423eb5

🐛 Fixes

  • The Producer type's state defaults to any