Skip to content

v0.5.0: Luau migration, declarative spring/tween hooks, and multi-instance render fix#17

Open
OutOfBears wants to merge 2 commits into
mainfrom
release/v0.5.0
Open

v0.5.0: Luau migration, declarative spring/tween hooks, and multi-instance render fix#17
OutOfBears wants to merge 2 commits into
mainfrom
release/v0.5.0

Conversation

@OutOfBears

@OutOfBears OutOfBears commented Jun 9, 2026

Copy link
Copy Markdown
Owner
  • Luau migration — renamed every .lua file to .luau and switched the toolchain from aftman.toml to rokit.toml, with a .luaurc for the new Luau-native config.
  • String require paths — converted every internal require(script.Parent.Foo) to string-based requires (e.g. require("@self/Hooks/useFoo")), matching the modern Luau / Lune workflow.
  • useTransparencyModifier hook — new hook for composing transparency values (numbers, NumberSequences, and bindings) through a multiplier, with epsilon clamping at the 0/1 endpoints.
  • useSpringValue / useTweenValue hooks — declarative counterparts to useSpring and useTween (closes Addition of a declarative API alongside the currently imperative one #14). Pass target (and speed/damper) directly in the hook props and the animation re-targets on prop change — no update({ target = … }) calls needed. The imperative hooks are unchanged; pick whichever fits the callsite. start is mount-only so re-renders smoothly retarget from the current value instead of snapping back.
  • Fix: multi-instance render loop leak — the pooled RenderStepped connection in SpringValue and Tween now correctly disconnects when its callback set drains, so running multiple react-flow instances (or repeatedly mounting/unmounting) no longer leaves orphaned render-step subscribers running in the background. (closes [BUG] RenderStep name collision #16)
  • Bumped wally.toml to 0.5.0.

…tions

- Added TransitionFragment component for managing child transitions.
- Implemented useAnimation hook for handling animations.
- Created useBindings hook for subscribing to binding updates.
- Developed useGroupAnimation and useSequenceAnimation hooks for grouped and sequenced animations.
- Introduced useSpring and useTween hooks for spring and tween animations.
- Added useTransparencyModifier hook for dynamic transparency adjustments.
- Created LinearValue utility for handling various value types in animations.
- Implemented SpringValue utility for managing spring physics in animations.
- Updated init files to reflect new structure and imports.
- Added comprehensive tests for animation hooks and components.
- Bumped version to 0.5.0 in wally.toml.
@OutOfBears OutOfBears changed the title v0.5.0: Luau migration, string requires, and multi-instance render fix v0.5.0: Luau migration, declarative spring/tween hooks, and multi-instance render fix Jun 9, 2026
@OutOfBears OutOfBears linked an issue Jun 9, 2026 that may be closed by this pull request
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.

[BUG] RenderStep name collision Addition of a declarative API alongside the currently imperative one [BUG] Wrong type for useTween subProps

1 participant