Skip to content

upgrade: tween package upgrade for Solid 2.0#856

Draft
davedbase wants to merge 1 commit intosolidjs-community:nextfrom
davedbase:update/v2/tween
Draft

upgrade: tween package upgrade for Solid 2.0#856
davedbase wants to merge 1 commit intosolidjs-community:nextfrom
davedbase:update/v2/tween

Conversation

@davedbase
Copy link
Copy Markdown
Member

  • isServerimport moved fromsolid-js/web@solidjs/web`
  • Replaced createEffect(on(target, handler, {defer: true})) with the Solid 2.0 two-argument createEffect(() => target(), handler, {defer: true})on() was removed in v2
  • RAF cancellation now returned from the apply function instead of onCleanup (Solid 2.0 pattern)
  • current() inside the apply callback wrapped in untrack() to suppress strict-mode warnings
  • Test suite updated: flush() added after signal writes and RAF flushes to account for Solid 2.0's microtask batching
  • Added test/server.test.ts (SSR safety verification)
  • Peer deps bumped to solid-js@^2.0.0-beta.10 + `@solidjs/web@^2.0.0-beta.10

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 3, 2026

🦋 Changeset detected

Latest commit: 098c39f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@solid-primitives/tween Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@davedbase davedbase added this to the Solid 2.0 Migration milestone May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant