Skip to content

Prepare Signals 0.10.0 release for Blox - #59

Open
hcollinsblox wants to merge 3 commits into
mainfrom
codex/release-signals-for-blox
Open

hcollinsblox wants to merge 3 commits into
mainfrom
codex/release-signals-for-blox

Conversation

@hcollinsblox

@hcollinsblox hcollinsblox commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

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 SignalsEffectCleanup rollout.

Release notes for 0.10.0

  • Removes SignalsReact, SignalsRoblox, ResourcesReact, the root useSignalState and useSignalBinding exports, and SignalsFlags.SignalsReactUseMutableSource.
  • Adds a SignalsFlags dependency to Signals. createEffect accepts options.cleanup to 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.
  • The scheduler's indexed drain runs effects scheduled by effects in the same batch (drain scheduled continuations by index #57).
  • Profiling hooks avoid allocating an extra closure for computed evaluations and effect runs.

Release order

  1. Review and merge this PR.
  2. Publish the workspace packages, including Signals, SignalsScheduler, and SignalsFlags, to the Rotriever registry.
  3. Validate, merge, and publish the matching Blox registry dependency update.

Package publication is a separate step; this PR only prepares the release.

Validation

  • stylua --check and selene passed for changed Luau files.
  • git diff --check and lute build passed.
  • Cleanup tests now exercise explicit on and off settings in every test environment.
  • Local lute tests requires ROBLOX_PLACE_ID; PR CI is waiting for integration environment approval.

@hcollinsblox
hcollinsblox marked this pull request as ready for review November 17, 2026 17:01
@hcollinsblox
hcollinsblox requested a review from a team as a code owner November 17, 2026 17:01

@MisterUncloaked MisterUncloaked left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread rotriever.toml
@@ -1,5 +1,5 @@
[workspace]
version = "0.9.0"
version = "0.10.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

This branch is waiting to be deployed

1 waiting deployment
integration — f315c3c6 Waiting Nov 18, 2026 by hcollinsblox via ci #124
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants