-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
chore: cleaning + major versions upgrade #147
Conversation
Finished and ready to be tested ! 🎉 With this PR, we are up to date! We are only one version behind Electron and Vite. I tested this PR with many of my apps without any problem. There is one small irony: I tried every other tutorial on the internet, and I don't understand why it doesn't mock My suggestion is to migrate to Post scriptum: Happy holidays to everyone! 🎊 |
Hold on to that, I found an error. |
Fixed! I didn't pay enough attention to the Electron ESM documentation. preload.js wasn't preloading. I'm developing all my apps with the "dev-main" requirement, so I noticed this issue in another app where I'm heavily using Livewire events. |
I missed the I don't know why, but I cannot remove this directory from the excluded ones in PhpStorm. I also wonder if I'm the only one facing this issue. If not, we should probably rename this directory. Anyway, I confirm that I can still build and use my app as before. |
There are some conflicts here which need to be resolved since I've merged #149. It seems to be mostly around file names.... do we need the Could you take a look when you get chance? |
Yes, I can. Can you merge #148 first? I will have a conflict with it as well. This PR modifies all files, so the more pull requests you merge beforehand, the easier it will be to resolve conflicts at once. |
…int, electron-chromedriver, prettier)
+ get-port v5 to v7 + cleaned some imports
+ update electron context menu
+ update electron-store
+ update deps + cleaning unused imports + more ESM conversion
0ab24c9
to
e8fc6fa
Compare
Rebased on main. The minimum required node version is 20.
Yes we have to. It's explained here and here |
That failing to run the plugin test suite concerns me... |
I was planning to look into that after this one is merged. I don't think I can make it work in I can explore the |
Obviously, I don't give up on the testing suite. As you have seen with my previous PR, I think it's important to have a solid one. It's just that with I really think we have a good chance with From https://vitest.dev:
|
Cool! 🎉 We'll find the gremlins before tagging. I'm going to pass all my apps to require "dev-main" I tried the That would be included in node23 by the way. Also this mode broke PHPStorm tests. I'm sure it's just a matter of configuring the experimental mode but it's better for contributors if it just work out of the box. |
Summary of changes
vue
dependenciesdist/
from previous plugin builds (added rimraf before building plugin)window.ts
npm outdated
:vite
v4 to v5typescript
v4 to v5stylelint
v14 to v16prettier
v2 to v3eslint
v8 to v9electron-builder
v24 to v25electron-chromedriver
v31 to v32electron-context-menu
v3 to v4get-port
v5 to v7electron
v31 to v32Every commit is checked with (
native:serve
andnative:build
)get-port
,electron
,electron-store
andelectron-context-menu
84f86e1 bb72311 df6fcbfUpgrades to the last version of
electron
andvite
blocked bymenubar
: chore(deps): update to electron 33.x.x max-mapper/menubar#486electron-vite
: Vite 6 support alex8088/electron-vite#673About the ESM upgrade:
More and more packages becomes ESM only. Electron supports ESM since v28. Here is some links to read for a better understanding: