From ac0d87be4e8c34f56b99d5ca5ba9e265c5f9b3a2 Mon Sep 17 00:00:00 2001 From: kagan Date: Sun, 1 Sep 2024 04:55:22 +0900 Subject: [PATCH] chore: use `@xterm/xterm` `xterm` is deprecated. --- package.json | 4 ++-- src/components/ConsoleOutput.tsx | 4 ++-- yarn.lock | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 2b0040b..95ee489 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "@monaco-editor/react": "4.6.0", "@shikijs/monaco": "^1.12.0", "@webcontainer/api": "1.3.0-internal.2", + "@xterm/xterm": "^5.5.0", "lz-string": "1.5.0", "markuplint": "4.9.2", "monaco-editor": "0.50.0", @@ -29,8 +30,7 @@ "react-split": "2.0.14", "semver": "7.6.3", "shiki": "^1.12.0", - "strip-json-comments": "5.0.1", - "xterm": "5.3.0" + "strip-json-comments": "5.0.1" }, "devDependencies": { "@commitlint/cli": "^19.4.0", diff --git a/src/components/ConsoleOutput.tsx b/src/components/ConsoleOutput.tsx index 842bcb2..0115201 100644 --- a/src/components/ConsoleOutput.tsx +++ b/src/components/ConsoleOutput.tsx @@ -1,6 +1,6 @@ -import 'xterm/css/xterm.css'; +import '@xterm/xterm/css/xterm.css'; +import { Terminal } from '@xterm/xterm'; import { forwardRef, useEffect, useImperativeHandle, useRef } from 'react'; -import { Terminal } from 'xterm'; export type ConsoleOutputRef = { appendLine: (string: string) => void; diff --git a/yarn.lock b/yarn.lock index 1e15c11..9ce0bba 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1960,6 +1960,11 @@ resolved "https://registry.yarnpkg.com/@webcontainer/api/-/api-1.3.0-internal.2.tgz#26afa0548bcf468b74f03dc56993ba287ebfb0e8" integrity sha512-lLSlSehbuYc9E7ecK+tMRX4BbWETNX1OgRlS+NerQh3X3sHNbxLD86eScEMAiA5VBnUeSnLtLe7eC/ftM8fR3Q== +"@xterm/xterm@^5.5.0": + version "5.5.0" + resolved "https://registry.yarnpkg.com/@xterm/xterm/-/xterm-5.5.0.tgz#275fb8f6e14afa6e8a0c05d4ebc94523ff775396" + integrity sha512-hqJHYaQb5OptNunnyAnkHyM8aCjZ1MEIDTQu1iIbbTD/xops91NB5yq1ZK/dC2JDbVWtF23zUtl9JE2NqwT87A== + JSONStream@^1.3.5: version "1.3.5" resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.5.tgz#3208c1f08d3a4d99261ab64f92302bc15e111ca0" @@ -6715,11 +6720,6 @@ xmlchars@^2.2.0: resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb" integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw== -xterm@5.3.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/xterm/-/xterm-5.3.0.tgz#867daf9cc826f3d45b5377320aabd996cb0fce46" - integrity sha512-8QqjlekLUFTrU6x7xck1MsPzPA571K5zNqWm0M0oroYEWVOptZ0+ubQSkQ3uxIEhcIHRujJy6emDWX4A7qyFzg== - y18n@^5.0.5: version "5.0.8" resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55"