Repository navigation
Prepare Signals 0.10.0 release for Blox - #59
hcollinsblox wants to merge 3 commits into
Conversation
MisterUncloaked
left a comment
There was a problem hiding this comment.
Thanks Hugh! Publishing main as 0.10.0 looks good to me for Blox. The API additions are backward compatible for existing 1- and 2-argument calls, and the hook paths cost nothing when no hook is installed. Two asks before merge: a short release note (inline), and a decision on SignalsEffectCleanup for Blox (below). CI on this head hasn't run yet (it's waiting on approval). Happy to approve once it's green.
modules/signals-flags/src/init.lua:7-8: Blox's runtime/Api.lua:15-19 relies on createEffect running the returned cleanup, and the blox-deviations rev it pins today runs it unconditionally. Here it only runs under SignalsEffectCleanup, which defaults off wherever DefineFastFlag works (lua-apps CoreScripts, for example), so Blox effects would silently skip cleanup after this bump. CI only covers the on side, since DefineFastFlag throws under rocale-cli. Is the plan to turn the flag on wherever Blox ships? And could we add a flag-off test?
modules/signals/src/Signals.lua:345-357 and :505-516 (nit, not blocking): with hooks installed, each computed eval and effect run allocates a closure, and errors come back as traceback strings, which can stack up through nested computeds. xpcall(evaluateWithScope, debug.traceback, computed, scope) avoids the closure. Maybe keep the original error value too?
modules/signals-scheduler/src/SignalsScheduler.lua:42-57 (FYI): the indexed drain looks right to me. Worth one line in the release note, since effects scheduled by effects now always run in the same batch.
| @@ -1,5 +1,5 @@ | |||
| [workspace] | |||
| version = "0.9.0" | |||
| version = "0.10.0" | |||
There was a problem hiding this comment.
Since this is what consumers see when they bump, could we add a short release note to the PR? It's a minor bump on 0.x, so breaking is fine, but it removes SignalsReact, SignalsRoblox, ResourcesReact, the root useSignalState/useSignalBinding, and SignalsFlags.SignalsReactUseMutableSource. It also adds a SignalsFlags dependency and changes the scheduler drain order (#57) without a flag. A list makes the bump easy to audit downstream.
There was a problem hiding this comment.
Added the 0.10.0 release notes to the PR description, including removed APIs and the scheduler drain change. For Blox, I added a per-effect options.cleanup override and updated Roblox/blox#43 to pass cleanup = true, so Blox does not depend on a global flag rollout. New tests exercise explicit on and off settings in every test environment; the existing default-flag tests remain. I also removed the extra closures around the profiling xpcall paths. CI is still waiting for integration environment approval.
Summary
Prepare the current Signals workspace for a 0.10.0 Rotriever release, which Blox needs before it can replace Git dependencies with registry packages. Blox can now request returned effect cleanup per effect, without requiring a global
SignalsEffectCleanuprollout.Release notes for 0.10.0
useSignalStateanduseSignalBindingexports, andSignalsFlags.SignalsReactUseMutableSource.createEffectacceptsoptions.cleanupto opt into or out of returned cleanup per effect; existing callers continue to use the rollout flag's default. Blox opts in explicitly in Roblox/blox#43.Release order
Package publication is a separate step; this PR only prepares the release.
Validation
stylua --checkandselenepassed for changed Luau files.git diff --checkandlute buildpassed.lute testsrequiresROBLOX_PLACE_ID; PR CI is waiting forintegrationenvironment approval.