[PR #7936] [MERGED] refactor(electron): hoist setupRenderer and bundle into separate file #7637

Closed
opened 2026-03-13 13:43:58 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7936
Author: @jslno
Created: 2/12/2026
Status: Merged
Merged: 2/13/2026
Merged by: @himself65

Base: canaryHead: 02-11-2026/electron-hoist-preload


📝 Commits (10+)

  • 82239d5 refactor(electron): hoist setupRenderer and bundle into separate file
  • 98e6a50 chore: cleanup
  • 4e7780f chore: fix linting
  • 977133d chore: update build config
  • 81f41d5 chore: cleanup
  • bcf2538 Merge branch 'canary' into 02-11-2026/electron-hoist-preload
  • 42ed81b Merge branch 'canary' into 02-11-2026/electron-hoist-preload
  • 7307c5b chore: update docu
  • 96d751c chore: cleanup
  • b31841b chore: fix typo

📊 Changes

13 files changed (+207 additions, -158 deletions)

View changed files

📝 demo/electron/electron.vite.config.ts (+9 -1)
📝 demo/electron/src/main/index.ts (+1 -1)
📝 demo/electron/src/preload/index.ts (+2 -2)
📝 docs/content/docs/integrations/electron.mdx (+27 -2)
📝 packages/electron/package.json (+8 -0)
📝 packages/electron/src/authenticate.ts (+1 -2)
📝 packages/electron/src/browser.ts (+67 -15)
📝 packages/electron/src/client.ts (+9 -12)
📝 packages/electron/src/preload.ts (+22 -60)
📝 packages/electron/src/types/client.ts (+24 -44)
📝 packages/electron/src/types/options.ts (+10 -7)
📝 packages/electron/src/utils.ts (+4 -0)
📝 packages/electron/tsdown.config.ts (+23 -12)

📄 Description

Adds support for sandboxed processes


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/7936 **Author:** [@jslno](https://github.com/jslno) **Created:** 2/12/2026 **Status:** ✅ Merged **Merged:** 2/13/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `02-11-2026/electron-hoist-preload` --- ### 📝 Commits (10+) - [`82239d5`](https://github.com/better-auth/better-auth/commit/82239d535ba64e5f7c3b9687fad693a2ae34b062) refactor(electron): hoist `setupRenderer` and bundle into separate file - [`98e6a50`](https://github.com/better-auth/better-auth/commit/98e6a500c0a335cabb0f8d6a1079519e606ae026) chore: cleanup - [`4e7780f`](https://github.com/better-auth/better-auth/commit/4e7780fef8dfcf4c180f2491aa870f7dc7323191) chore: fix linting - [`977133d`](https://github.com/better-auth/better-auth/commit/977133d02622126919cf2494d11f40a7d22f9659) chore: update build config - [`81f41d5`](https://github.com/better-auth/better-auth/commit/81f41d53ec1a18dc6011df163078f5c8c990c8fa) chore: cleanup - [`bcf2538`](https://github.com/better-auth/better-auth/commit/bcf2538ddfe8da2778e2649cf9c7eac8246a2bed) Merge branch 'canary' into 02-11-2026/electron-hoist-preload - [`42ed81b`](https://github.com/better-auth/better-auth/commit/42ed81be9be2bee45e83a638d9c4ee923d423621) Merge branch 'canary' into 02-11-2026/electron-hoist-preload - [`7307c5b`](https://github.com/better-auth/better-auth/commit/7307c5b7b7a465da9080587607623a7494bcff2c) chore: update docu - [`96d751c`](https://github.com/better-auth/better-auth/commit/96d751cbae6fd59aefecf7b0c9460b5a465dc807) chore: cleanup - [`b31841b`](https://github.com/better-auth/better-auth/commit/b31841bb0f4087da2ea8a921b85bbf4f11b46fe3) chore: fix typo ### 📊 Changes **13 files changed** (+207 additions, -158 deletions) <details> <summary>View changed files</summary> 📝 `demo/electron/electron.vite.config.ts` (+9 -1) 📝 `demo/electron/src/main/index.ts` (+1 -1) 📝 `demo/electron/src/preload/index.ts` (+2 -2) 📝 `docs/content/docs/integrations/electron.mdx` (+27 -2) 📝 `packages/electron/package.json` (+8 -0) 📝 `packages/electron/src/authenticate.ts` (+1 -2) 📝 `packages/electron/src/browser.ts` (+67 -15) 📝 `packages/electron/src/client.ts` (+9 -12) 📝 `packages/electron/src/preload.ts` (+22 -60) 📝 `packages/electron/src/types/client.ts` (+24 -44) 📝 `packages/electron/src/types/options.ts` (+10 -7) 📝 `packages/electron/src/utils.ts` (+4 -0) 📝 `packages/electron/tsdown.config.ts` (+23 -12) </details> ### 📄 Description Adds support for sandboxed processes --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 13:43:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#7637