Skip to content

upgrade: virtual package upgrade for Solid 2.0#876

Merged
davedbase merged 6 commits intosolidjs-community:nextfrom
davedbase:update/v2/virtual
May 10, 2026
Merged

upgrade: virtual package upgrade for Solid 2.0#876
davedbase merged 6 commits intosolidjs-community:nextfrom
davedbase:update/v2/virtual

Conversation

@davedbase
Copy link
Copy Markdown
Member

  • Bumps peer/dev dependencies to solid-js@2.0.0-beta.10 and @solidjs/web@2.0.0-beta.10
  • createVirtualList now returns [Accessor<VirtualState>, onScroll] — the first element is reactive and must be called to read state
  • VirtualList children signature updated to (item: Accessor<T>, index: Accessor<number>) matching Solid 2.0's <For> behavior
  • Internal scroll offset signal uses { ownedWrite: true } to allow writes from the scroll event handler
  • Adds a per-package vitest.config.ts using a custom Babel plugin with babel-preset-solid@2.0.0-experimental.16 to fix a JSX transform incompatibility (vite-plugin-solid@2.11.12 generates single-argument _$effect() calls which are incompatible with @solidjs/web's two-argument effect() requirement)
  • Overrides jsxImportSource: "@solidjs/web" in tsconfig.json so TypeScript resolves JSX types from the correct package

@davedbase davedbase added this to the Solid 2.0 Migration milestone May 5, 2026
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 5, 2026

🦋 Changeset detected

Latest commit: d5bb04a

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

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

Comment thread packages/virtual/package.json Outdated
@davedbase davedbase marked this pull request as ready for review May 10, 2026 12:39
@davedbase davedbase merged commit 228e032 into solidjs-community:next May 10, 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.

2 participants