jsonnull / electron-trpc

Build type-safe Electron inter-process communication using tRPC
https://electron-trpc.dev/
MIT License
267 stars 26 forks source link

Update dependency vite-plugin-electron to ^0.11.0 #86

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
vite-plugin-electron ^0.10.4 -> ^0.11.0 age adoption passing confidence

Release Notes

electron-vite/vite-plugin-electron ### [`v0.11.1`](https://togithub.com/electron-vite/vite-plugin-electron/blob/HEAD/CHANGELOG.md#​0111-2022-12-19) [Compare Source](https://togithub.com/electron-vite/vite-plugin-electron/compare/v0.11.0...v0.11.1) - [`2bf7d0b`](https://togithub.com/electron-vite/vite-plugin-electron/commit/2bf7d0b) docs: `startup()` - [`401a44e`](https://togithub.com/electron-vite/vite-plugin-electron/commit/401a44e) refactor: cleanup ### [`v0.11.0`](https://togithub.com/electron-vite/vite-plugin-electron/blob/HEAD/CHANGELOG.md#​0110-2022-12-17) [Compare Source](https://togithub.com/electron-vite/vite-plugin-electron/compare/v0.10.4...v0.11.0) ##### Break! ```ts // 0.10.0 function build(config: Configuration | Configuration[]): Promise // 0.11.0 - Same as Vite's build function build(config: Configuration): Promise ``` ##### Features **JavaScript API** `vite-plugin-electron`'s JavaScript APIs are fully typed, and it's recommended to use TypeScript or enable JS type checking in VS Code to leverage the intellisense and validation. - `Configuration` - type - `defineConfig` - function - `resolveViteConfig` - function, Resolve the default Vite's `InlineConfig` for build Electron-Main - `withExternalBuiltins` - function - `build` - function - `startup` - function Example: ```js build( withExternalBuiltins( // external Node.js builtin modules resolveViteConfig( // with default config { entry: 'foo.ts', vite: { mode: 'foo-mode', // for .env file plugins: [{ name: 'plugin-build-done', closeBundle() { // Startup Electron App startup() }, }], }, } ) ) ) ``` **V8 Bytecode support** 👉 [bytecode](https://togithub.com/electron-vite/vite-plugin-electron/tree/main/examples/bytecode) Inspired by: - [Nihiue/little-byte-demo](https://togithub.com/Nihiue/little-byte-demo) - [通过字节码保护Node.js源码之原理篇 - 知乎](https://zhuanlan.zhihu.com/p/359235114) ##### Commit/PR - Support Vite4.x | [#​118](https://togithub.com/electron-vite/vite-plugin-electron/issues/118), [`28d38b6`](https://togithub.com/electron-vite/vite-plugin-electron/commit/28d38b6) - Bytecode example | [`df170c2`](https://togithub.com/electron-vite/vite-plugin-electron/commit/df170c2) - JavaScript API docs | [`3049169`](https://togithub.com/electron-vite/vite-plugin-electron/commit/3049169) - Fix load `.env` | [`758695d`](https://togithub.com/electron-vite/vite-plugin-electron/commit/758695d) - Refactor `build()` | [`d9c3343`](https://togithub.com/electron-vite/vite-plugin-electron/commit/d9c3343)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.

codecov-commenter commented 1 year ago

Codecov Report

Merging #86 (ee0ae2a) into main (dadd9d5) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #86   +/-   ##
=======================================
  Coverage   21.67%   21.67%           
=======================================
  Files           9        9           
  Lines         406      406           
  Branches       18       18           
=======================================
  Hits           88       88           
  Misses        318      318           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.