Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump vite-plugin-electron from 0.15.5 to 0.15.6 #154

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 1, 2024

Bumps vite-plugin-electron from 0.15.5 to 0.15.6.

Changelog

Sourced from vite-plugin-electron's changelog.

0.28.0 (2024-01-07)

  • 20170a5 refactor: preload built format use esm by default

Migration to v0.28.0

  • No break changes. Just need to define "type": "module" in package.json for supports esm :)
  • By the way. Recommend using the vite-plugin-electron/simple API. It is simpler, and the main difference is its adaptation to preload scripts.
  • electron@28 Preload scripts 👉 limitations.

Preload scripts

In most cases, use cjs format

`require()` can usable matrix

@​see - https://github.com/electron/electron/blob/v30.0.0-nightly.20240104/docs/tutorial/esm.md#preload-scripts ┏———————————————————————————————————┳——————————┳———————————┓ │ webPreferences: { } │ import │ require │ ┠———————————————————————————————————╂——————————╂———————————┨ │ nodeIntegration: false(undefined) │ ✘ │ ✔ │ ┠———————————————————————————————————╂——————————╂———————————┨ │ nodeIntegration: true │ ✔ │ ✔ │ ┠———————————————————————————————————╂——————————╂———————————┨ │ sandbox: true(undefined) │ ✘ │ ✔ │ ┠———————————————————————————————————╂——————————╂———————————┨ │ sandbox: false │ ✔ │ ✘ │ ┠———————————————————————————————————╂——————————╂———————————┨ │ nodeIntegration: false │ ✘ │ ✔ │ │ sandbox: true │ │ │ ┠———————————————————————————————————╂——————————╂———————————┨ │ nodeIntegration: false │ ✔ │ ✘ │ │ sandbox: false │ │ │ ┠———————————————————————————————————╂——————————╂———————————┨ │ nodeIntegration: true │ ✘ │ ✔ │ │ sandbox: true │ │ │ ┠———————————————————————————————————╂——————————╂———————————┨ │ nodeIntegration: true │ ✔ │ ✔ │ │ sandbox: false │ │ │ ┗———————————————————————————————————┸——————————┸———————————┛

  • import(✘): SyntaxError: Cannot use import statement outside a module
  • require(✘): ReferenceError: require is not defined in ES module scope, you can use import instead

Built format

This is just the default behavior, and you can modify them at any time through custom config in the vite.config.js

</tr></table> 

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [vite-plugin-electron](https://github.com/electron-vite/vite-plugin-electron) from 0.15.5 to 0.15.6.
- [Release notes](https://github.com/electron-vite/vite-plugin-electron/releases)
- [Changelog](https://github.com/electron-vite/vite-plugin-electron/blob/main/CHANGELOG.md)
- [Commits](https://github.com/electron-vite/vite-plugin-electron/commits)

---
updated-dependencies:
- dependency-name: vite-plugin-electron
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Feb 1, 2024
@dependabot dependabot bot requested a review from jooy2 February 1, 2024 06:13
Copy link
Contributor Author

dependabot bot commented on behalf of github Feb 3, 2024

Looks like vite-plugin-electron is up-to-date now, so this is no longer needed.

@dependabot dependabot bot closed this Feb 3, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/vite-plugin-electron-0.15.6 branch February 3, 2024 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant