-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Update Node.js, Electron and node-pty #39296
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
6deb0d8
Update Node.js to 20.11.1
gzdunek aadfb59
Update Electron to 29.1.1
gzdunek 82644ae
Update node-pty to 1.1.0-beta12
gzdunek 80ef4b7
Remove commands for building native deps manually
gzdunek 970f6e7
Remove file skipping in electron-builder that seems to do nothing
gzdunek 3054c8a
Regenerate `devbox.lock` using the same Devbox version as the CI (0.9.0)
gzdunek 7c5a743
Update `devbox` to `0.9.1`
gzdunek 151cbe4
Update `README.md`
gzdunek be311b2
Update electron to 29.1.4
gzdunek 7aa7b15
Update devbox checksum
gzdunek 25e76f9
Remove mention of Node.js version in teleterm/README.md
gzdunek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ | |
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"nodejs@18.16.1", | ||
"nodejs@20.11.1", | ||
"[email protected]", | ||
"[email protected]", | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,11 +10,9 @@ | |
}, | ||
"license": "Apache-2.0", | ||
"scripts": { | ||
"start": "yarn build-native-deps && yarn start-skip-native-deps", | ||
"start-skip-native-deps": "electron-vite dev", | ||
"start": "electron-vite dev", | ||
"start-electron": "electron build/app/dist/main/main.js", | ||
"build": "electron-vite build", | ||
"build-native-deps": "electron-builder install-app-deps", | ||
"package": "electron-builder build --config electron-builder-config.js --publish never -c.extraMetadata.name=teleport-connect", | ||
"generate-grpc-shared": "npx -y --target_arch=x64 --package=@protobuf-ts/[email protected] -- protoc -I=src/sharedProcess/api/proto --ts_opt long_type_number,eslint_disable,add_pb_suffix,client_grpc1,server_grpc1,ts_nocheck --ts_out=src/sharedProcess/api/protogen src/sharedProcess/api/proto/*.proto" | ||
}, | ||
|
@@ -28,7 +26,7 @@ | |
"dependencies": { | ||
"@grpc/grpc-js": "1.8.8", | ||
"node-forge": "^1.3.1", | ||
"node-pty": "1.1.0-beta5", | ||
"node-pty": "1.1.0-beta12", | ||
"ring-buffer-ts": "^1.2.0", | ||
"split2": "4.1.0", | ||
"strip-ansi": "^7.1.0", | ||
|
@@ -46,7 +44,7 @@ | |
"@types/tar-fs": "^2.0.1", | ||
"@types/whatwg-url": "^11.0.1", | ||
"clean-webpack-plugin": "4.0.0", | ||
"electron": "28.2.3", | ||
"electron": "29.1.4", | ||
"electron-notarize": "^1.2.1", | ||
"electron-vite": "^2.0.0", | ||
"eslint-import-resolver-webpack": "0.13.2", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4127,10 +4127,10 @@ | |
dependencies: | ||
"@types/node" "*" | ||
|
||
"@types/node@*", "@types/node@>=12.12.47", "@types/node@>=13.7.0", "@types/node@^18.11.18", "@types/node@^18.19.17": | ||
version "18.19.17" | ||
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.17.tgz#a581a9fb4b2cfdbc61f008804f4436b2d5c40354" | ||
integrity sha512-SzyGKgwPzuWp2SHhlpXKzCX0pIOfcI4V2eF37nNBJOhwlegQ83omtVQ1XxZpDE06V/d6AQvfQdPfnw0tRC//Ng== | ||
"@types/node@*", "@types/node@>=12.12.47", "@types/node@>=13.7.0", "@types/node@^20.11.26", "@types/node@^20.9.0": | ||
version "20.11.26" | ||
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.11.26.tgz#3fbda536e51d5c79281e1d9657dcb0131baabd2d" | ||
integrity sha512-YwOMmyhNnAWijOBQweOJnQPl068Oqd4K3OFbTc6AHJwzweUwwWG3GIFY74OKks2PJUDkQPeddOQES9mLn1CTEQ== | ||
dependencies: | ||
undici-types "~5.26.4" | ||
|
||
|
@@ -7447,13 +7447,13 @@ electron-vite@^2.0.0: | |
magic-string "^0.30.5" | ||
picocolors "^1.0.0" | ||
|
||
electron@28.2.3: | ||
version "28.2.3" | ||
resolved "https://registry.yarnpkg.com/electron/-/electron-28.2.3.tgz#d26821bcfda7ee445b4b75231da4b057a7ce6e7b" | ||
integrity sha512-he9nGphZo03ejDjYBXpmFVw0KBKogXvR2tYxE4dyYvnfw42uaFIBFrwGeenvqoEOfheJfcI0u4rFG6h3QxDwnA== | ||
electron@29.1.4: | ||
version "29.1.4" | ||
resolved "https://registry.yarnpkg.com/electron/-/electron-29.1.4.tgz#6c47467ba50be5dd60b99b8737f69cd12fc0733f" | ||
integrity sha512-IWXys0SqgmIfrqXusUGQC0gGG7CCqA5vfmNsUMj8dFkAnK3lisKyjSESStWlrsste/OX/AAC5wsVlf23reUNnw== | ||
dependencies: | ||
"@electron/get" "^2.0.0" | ||
"@types/node" "^18.11.18" | ||
"@types/node" "^20.9.0" | ||
extract-zip "^2.0.1" | ||
|
||
emittery@^0.13.1: | ||
|
@@ -11926,11 +11926,6 @@ [email protected]: | |
resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" | ||
integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== | ||
|
||
nan@^2.17.0: | ||
version "2.18.0" | ||
resolved "https://registry.yarnpkg.com/nan/-/nan-2.18.0.tgz#26a6faae7ffbeb293a39660e88a76b82e30b7554" | ||
integrity sha512-W7tfG7vMOGtD30sHoZSSc/JVYiyDPEyQVso/Zz+/uQd0B0L46gtC+pHha5FFMRpil6fm/AoEcRWyOVi4+E/f8w== | ||
|
||
nanoid@^3.3.1, nanoid@^3.3.7: | ||
version "3.3.7" | ||
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.7.tgz#d0c301a691bc8d54efa0a2226ccf3fe2fd656bd8" | ||
|
@@ -11996,6 +11991,11 @@ node-addon-api@^1.6.3: | |
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-1.7.2.tgz#3df30b95720b53c24e59948b49532b662444f54d" | ||
integrity sha512-ibPK3iA+vaY1eEjESkQkM0BbCqFOaZMiXRTtdB0u7b4djtY6JnsjvPdUHVMg6xQt3B8fpTTWHI9A+ADjM9frzg== | ||
|
||
node-addon-api@^7.1.0: | ||
version "7.1.0" | ||
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-7.1.0.tgz#71f609369379c08e251c558527a107107b5e0fdb" | ||
integrity sha512-mNcltoe1R8o7STTegSOHdnJNN7s5EUvhoS7ShnTHDyOSd+8H+UdWODq6qSv67PjC8Zc5JRT8+oLAMCr0SIXw7g== | ||
|
||
node-dir@^0.1.10: | ||
version "0.1.17" | ||
resolved "https://registry.yarnpkg.com/node-dir/-/node-dir-0.1.17.tgz#5f5665d93351335caabef8f1c554516cf5f1e4e5" | ||
|
@@ -12036,12 +12036,12 @@ node-int64@^0.4.0: | |
resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" | ||
integrity sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs= | ||
|
||
[email protected]beta5: | ||
version "1.1.0-beta5" | ||
resolved "https://registry.yarnpkg.com/node-pty/-/node-pty-1.1.0-beta5.tgz#364386b7058a93070234064f13164ec1ef914993" | ||
integrity sha512-j3QdgFHnLY0JWxztrvM3g67RaQLOGvytv+C6mFu0PqD+JILlzqfwuoyqRqVxdZZjoOTUXPfSRj1qPVCaCH+eOw== | ||
[email protected]beta12: | ||
version "1.1.0-beta12" | ||
resolved "https://registry.yarnpkg.com/node-pty/-/node-pty-1.1.0-beta12.tgz#702f8c05ac1d175dcbc17901f1c66ee5d67b27cd" | ||
integrity sha512-xhWrczF9AN+TnIZoHcSiclt4dkD1IcncUOzcdgx3by0jwctt54ZgWEp68O0lE0D8ydxa/bk3nA9sWEDhDNJuwg== | ||
dependencies: | ||
nan "^2.17.0" | ||
node-addon-api "^7.1.0" | ||
|
||
node-releases@^2.0.13: | ||
version "2.0.13" | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Not depending on nan and not having to rebuild binaries each time that the Electron version changes is huge.
I don't have the time to thoroughly review this today, but what I think the switch to Node-API means is that node-pty is not bound to a particular Node version but instead works with any Node that supports Node-API, see:
I suppose that's why it works without manually rebuilding the native deps.
It's fine that electron-builder rebuilds it during packaging. This way we're always sure that the node-pty version shipped with the app was built with the same Node version that's going to be used by the app.