From 189cda94b19c4e8ffefdfbd3ccf017f8840bf88a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 17 Sep 2022 18:14:24 +0000 Subject: [PATCH] build(deps): bump xterm and xterm-addon-fit (#1146) * build(deps): bump xterm and xterm-addon-fit Bumps [xterm](https://github.com/xtermjs/xterm.js) and [xterm-addon-fit](https://github.com/xtermjs/xterm.js). These dependencies needed to be updated together. Updates `xterm` from 4.19.0 to 5.0.0 - [Release notes](https://github.com/xtermjs/xterm.js/releases) - [Commits](https://github.com/xtermjs/xterm.js/compare/4.19.0...5.0.0) Updates `xterm-addon-fit` from 0.5.0 to 0.6.0 - [Release notes](https://github.com/xtermjs/xterm.js/releases) - [Commits](https://github.com/xtermjs/xterm.js/compare/0.5...0.6) --- updated-dependencies: - dependency-name: xterm dependency-type: direct:production update-type: version-update:semver-major - dependency-name: xterm-addon-fit dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * [dependabot skip] Fix yarn.lock * fix breaking changes for xterm.js 5.x Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot-fix Co-authored-by: David Lechner --- package.json | 4 ++-- src/terminal/Terminal.tsx | 4 +++- yarn.lock | 22 +++++++++++----------- 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index fe5078af..e58a86d5 100644 --- a/package.json +++ b/package.json @@ -121,8 +121,8 @@ "webpack-dev-server": "^4.11.0", "webpack-manifest-plugin": "^5.0.0", "workbox-webpack-plugin": "^6.5.4", - "xterm": "^4.19.0", - "xterm-addon-fit": "^0.5.0", + "xterm": "^5.0.0", + "xterm-addon-fit": "^0.6.0", "zen-push": "^0.2.1" }, "scripts": { diff --git a/src/terminal/Terminal.tsx b/src/terminal/Terminal.tsx index f2900abd..89a79049 100644 --- a/src/terminal/Terminal.tsx +++ b/src/terminal/Terminal.tsx @@ -127,7 +127,9 @@ const Terminal: React.FC = (_props) => { foreground: isDarkMode ? 'white' : 'black', cursor: isDarkMode ? 'white' : 'black', // transparency is needed to work around https://github.com/xtermjs/xterm.js/issues/2808 - selection: isDarkMode ? 'rgb(81,81,81,0.5)' : 'rgba(181,213,255,0.5)', // this should match AceEditor theme + selectionBackground: isDarkMode + ? 'rgb(81,81,81,0.5)' + : 'rgba(181,213,255,0.5)', // this should match editor theme }; }, [isDarkMode]); diff --git a/yarn.lock b/yarn.lock index ab9a73d2..1dfb75d4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2536,8 +2536,8 @@ __metadata: webpack-dev-server: ^4.11.0 webpack-manifest-plugin: ^5.0.0 workbox-webpack-plugin: ^6.5.4 - xterm: ^4.19.0 - xterm-addon-fit: ^0.5.0 + xterm: ^5.0.0 + xterm-addon-fit: ^0.6.0 zen-push: ^0.2.1 languageName: unknown linkType: soft @@ -15744,19 +15744,19 @@ __metadata: languageName: node linkType: hard -"xterm-addon-fit@npm:^0.5.0": - version: 0.5.0 - resolution: "xterm-addon-fit@npm:0.5.0" +"xterm-addon-fit@npm:^0.6.0": + version: 0.6.0 + resolution: "xterm-addon-fit@npm:0.6.0" peerDependencies: - xterm: ^4.0.0 - checksum: 884d9f360893335c87e4514beeda2af6dbebf38a89b8518f1126d9c4611aefc1598b750bb43a953b79fdf1179c40d70c77a9169ae10f07e0abbbdb39b919b33f + xterm: ^5.0.0 + checksum: 6115e130a58a5ec3d17b424bd0420f3d871e9a6bb455ca62e67c10724534eafbdd205dd35c4707d8037efe8107c09486b48cb4369ba2e3ac97ab78f805195319 languageName: node linkType: hard -"xterm@npm:^4.19.0": - version: 4.19.0 - resolution: "xterm@npm:4.19.0" - checksum: 4385e08d6f1e26d0db295ba55f0ed9c304686a72c2cfdd32502cf59de23ae9c93434d469fc3735f44375602f209f767a1ba643a86be6f8e0f1cf7e5bfdccde87 +"xterm@npm:^5.0.0": + version: 5.0.0 + resolution: "xterm@npm:5.0.0" + checksum: c2f1d02a708d3d02bebf052dfdf54ecd1b619386bed8f27ed42483d398a3e0bc3595fc855c600db99fd3a91f6d3e8feabe118f1f8f14bbed92d8b3d77277ab92 languageName: node linkType: hard