Skip to content

Update the docs site for electron-trpc 1.0 - #233

Merged
jsonnull merged 2 commits into
mainfrom
website-1.0
Oct 30, 2026
Merged

jsonnull merged 2 commits into
mainfrom
website-1.0

Conversation

@jsonnull

Copy link
Copy Markdown
Owner

Updates electron-trpc.dev for 1.0. Merging this deploys the site, so it should land before the Version Packages PR publishes 1.0.0.

Upgrade

  • Astro 4 → 7, Starlight 0.23 → 0.42 and Wrangler 3 → 4. The site keeps TypeScript 6, since astro check doesn't support 7 yet.
  • The content collection moves to src/content.config.ts with Starlight's docsLoader(), and the social links use Starlight's new list format.
  • The last deploy failed while building, because the regenerated lockfile picked up a newer @astrojs/sitemap than Astro 4 supports. CI now builds the site in the test job, so a broken build shows up before main.

Content

  • Getting Started: requirements, installation, and setup with createIPCHandler and ipcLink for tRPC 11.
  • Preload Script: the automatic preload script, sessions, packaged apps, and using your own preload script.
  • Request Lifetimes: what ends requests and subscriptions, cleaning up through signal, iframes, and disposing the handler.
  • Security: keeping untrusted content in its own session, allow, and checking access in procedures.
  • Upgrading from 0.x: dependencies, the main process, preload scripts, the renderer and subscriptions.

The README's preload section uses the same wording as the Preload Script guide.

The site stopped building once the regenerated lockfile picked up a newer
@astrojs/sitemap than Astro 4 supports. Move to current Astro, Starlight and
Wrangler, migrate the content collection and social links to their new
config, and build the site in CI so a broken build shows up before main.
Update the getting started guide to tRPC 11 and the automatic preload
script, and add guides to the preload script, request lifetimes and security,
along with a guide to upgrading from 0.x. The README's preload section uses
the same wording as the preload guide.
@jsonnull
jsonnull merged commit 96877ea into main Oct 30, 2026
3 checks passed
@jsonnull
jsonnull deleted the website-1.0 branch October 30, 2026 03:05
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.

1 participant