-
Notifications
You must be signed in to change notification settings - Fork 174
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
feat!: bump engines
requirement to Node 22
#1167
base: main
Are you sure you want to change the base?
Conversation
9e52f83
to
bc19e91
Compare
931e82b
to
5e5336d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks clean and good!
@@ -0,0 +1,2 @@ | |||
*.d.ts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting! I'm not against it, just surprised that eslint can't handle d.ts files.
@@ -102,7 +102,7 @@ for Electron Packager. For example: | |||
|
|||
```javascript | |||
import packager from '@electron/packager'; | |||
import rebuild from '@electron/rebuild'; | |||
import { rebuild } from '@electron/rebuild'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
@@ -155,7 +155,7 @@ const childProcess = require('child_process'); | |||
const pathToElectron = require('electron'); | |||
|
|||
rebuild({ | |||
buildPath: __dirname, | |||
buildPath: import.meta.dirname, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should document both here, I know that the __dirname vs import.meta.dirname thing keeps tripping people up quite a bit.
"got": "^11.7.0", | ||
"graceful-fs": "^4.2.11", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Appreciate it, thank you
BREAKING CHANGE: bumps required Node.js version to
>=22.12.0
. ESM-only.I also took the opportunity to update
farmhash
to3.3.1
in one of the test fixtures so we can run a couple of test cases we were skipping onarm64
macOS. I tried switching to4.0.1
but it would require some deeper changes in the tests, so I figured it would be a good idea to address that in a follow-up PR as3.3.1
is enough to get those tests running for the Node upgrade.