feat: add @wterm/svelte package#51
Conversation
|
@maxffarrell is attempting to deploy a commit to the Vercel Labs Team on Vercel. A member of the Team first needs to authorize it. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Brings in @wterm/ghostty package, v0.2.1 + v0.3.0 release changes, and workspace:* publish fix from upstream. Kept Svelte package and example from this branch. Resolved conflicts in README, api-reference, configuration, and core README by including both Svelte and Ghostty content. Also fixed a pre-existing @vue/test-utils module resolution failure in pnpm's isolated node_modules by adding packageExtensions to root package.json, and updated root devDependencies (vitest, prettier, @vitest/coverage-v8) to latest per AGENTS.md. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Forwards the `core` option (a pre-constructed TerminalCore) to WTerm so callers can supply a custom WASM backend (e.g. @wterm/ghostty) without providing a wasmUrl. Adds TerminalHarness.svelte test helper and tests for cols/rows reactivity, cursor-blink toggling, and the new core prop. Updates README and docs to list core as a supported prop. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds Svelte 5 code snippets alongside existing React/Vue/Vanilla examples for all three package integration guides, completing framework parity. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Summary
@wterm/sveltepackage — a Svelte 5 component wrapping@wterm/domcoreprop so callers can supply a pre-constructedTerminalCore(e.g. from@wterm/ghostty) instead of relying on the default WASM binary /wasmUrlcols,rows, andcursorBlinksync to the underlyingWTerminstance on changedivattributes (class,style,id, ARIA props) are forwarded to the root elementTerminalHarness.sveltetest helper and Vitest tests covering prop reactivity, thecoreoption, and type-level assertionscoreas a supported propTest plan
pnpm testpasses inpackages/@wterm/sveltepnpm typecheck/svelte-check)/svelterenders correctly and lists all propscoreprop works end-to-end with@wterm/ghosttybinary🤖 Generated with Claude Code