♻️ refactor: Update shiki

pull/568/head
canisminor1990 2024-05-15 23:02:08 +08:00
parent 44eda74827
commit 46757e3377
4 changed files with 517 additions and 518 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -88,22 +88,22 @@
"react-dnd-html5-backend": "^16.0.1",
"react-dom": "^18.3.1",
"react-helmet": "^6.1.0",
"react-i18next": "^13.5.0",
"react-i18next": "^14.1.1",
"react-layout-kit": "^1.9.0",
"react-rnd": "^10.4.10",
"react-tag-input": "^6.9.0",
"semver": "^7.6.2",
"shikiji": "^0.9.19",
"shiki": "^1.5.2",
"swr": "^2.2.5",
"url-join": "^5.0.0",
"zustand": "^4.5.2",
"zustand-utils": "^1.3.2"
},
"devDependencies": {
"@commitlint/cli": "^18.6.1",
"@commitlint/cli": "^19.3.0",
"@lobehub/lint": "^1.23.4",
"@testing-library/jest-dom": "^6.4.5",
"@testing-library/react": "^14.3.1",
"@testing-library/react": "^15.0.7",
"@types/lodash-es": "^4.17.12",
"@types/node": "^20.12.12",
"@types/react": "^18.3.2",
@ -113,15 +113,15 @@
"@types/semver": "^7.5.8",
"@vitejs/plugin-react-swc": "^3.6.0",
"@vitest/coverage-v8": "^1.6.0",
"commitlint": "^18.6.1",
"commitlint": "^19.3.0",
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
"fast-deep-equal": "^3.1.3",
"husky": "^8.0.3",
"jsdom": "^23.2.0",
"husky": "^9.0.11",
"jsdom": "^24.0.0",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"query-string": "^8.2.0",
"query-string": "^9.0.0",
"remark": "^14.0.3",
"remark-cli": "^11.0.0",
"semantic-release": "^21.1.2",

View File

@ -1,5 +1,5 @@
import { HighlighterCore, getHighlighterCore } from 'shikiji/core';
import { getWasmInlined } from 'shikiji/wasm';
import { HighlighterCore, getHighlighterCore } from 'shiki/core';
import getWasmInlined from 'shiki/wasm';
import useSWR from 'swr';
import prompt from '@/modules/PromptHighlight/features/grammar';