refactor: replace semver with verkit (#2699)

This commit is contained in:
Kevin Deng
2026-08-05 10:31:36 +09:00
committed by GitHub
parent 6b540d3a20
commit 050ba85bb2
8 changed files with 19 additions and 28 deletions
-3
View File
@@ -7,9 +7,6 @@
"packages/client"
],
// Enable the flat config support
"eslint.experimental.useFlatConfig": true,
// Disable the default formatter
"prettier.enable": false,
"editor.formatOnSave": false,
-1
View File
@@ -46,7 +46,6 @@
"@types/prompts": "catalog:types",
"@types/recordrtc": "catalog:types",
"@types/resolve": "catalog:types",
"@types/semver": "catalog:types",
"@types/yargs": "catalog:types",
"@vue/compiler-sfc": "catalog:demo",
"@vueuse/core": "catalog:frontend",
+1 -1
View File
@@ -1,6 +1,6 @@
import fs from 'node:fs/promises'
import { resolve } from 'pathe'
import { satisfies } from 'semver'
import { satisfies } from 'verkit'
import { version } from '../../package.json'
import { createResolver, getRoots } from '../resolver'
+1 -1
View File
@@ -2,7 +2,7 @@ import type { SlidevThemeMeta } from '@slidev/types'
import { existsSync } from 'node:fs'
import fs from 'node:fs/promises'
import { join } from 'pathe'
import { satisfies } from 'semver'
import { satisfies } from 'verkit'
import { version } from '../../package.json'
import { createResolver } from '../resolver'
+1 -1
View File
@@ -106,7 +106,6 @@
"public-ip": "catalog:prod",
"resolve-from": "catalog:prod",
"resolve-global": "catalog:prod",
"semver": "catalog:prod",
"shiki": "catalog:frontend",
"sirv": "catalog:prod",
"source-map-js": "catalog:prod",
@@ -118,6 +117,7 @@
"unplugin-vue-markdown": "catalog:prod",
"untun": "catalog:prod",
"uqr": "catalog:prod",
"verkit": "catalog:prod",
"vite": "catalog:prod",
"vite-plugin-inspect": "catalog:prod",
"vite-plugin-remote-assets": "catalog:prod",
@@ -42,7 +42,7 @@ export const useServerDetector = defineService(() => {
const text = await (await fetch(url)).text()
if (!RE_SLIDEV.test(text))
return false
// Use semver to compare in the future
// Use verkit to compare in the future
state.compatMode = !text.match(versionRE)
const detectedEntry = text.match(entryRE)?.[1]
if (detectedEntry) {
+13 -18
View File
@@ -333,9 +333,6 @@ catalogs:
resolve-global:
specifier: ^2.0.0
version: 2.0.0
semver:
specifier: ^7.8.5
version: 7.8.5
sirv:
specifier: ^3.0.2
version: 3.0.2
@@ -363,6 +360,9 @@ catalogs:
uqr:
specifier: ^0.1.3
version: 0.1.3
verkit:
specifier: ^0.3.2
version: 0.3.2
vite:
specifier: ^8.2.0
version: 8.2.0
@@ -434,9 +434,6 @@ catalogs:
'@types/resolve':
specifier: ^1.20.6
version: 1.20.6
'@types/semver':
specifier: ^7.7.1
version: 7.7.1
'@types/yargs':
specifier: ^17.0.35
version: 17.0.35
@@ -533,9 +530,6 @@ importers:
'@types/resolve':
specifier: catalog:types
version: 1.20.6
'@types/semver':
specifier: catalog:types
version: 7.7.1
'@types/yargs':
specifier: catalog:types
version: 17.0.35
@@ -1114,9 +1108,6 @@ importers:
resolve-global:
specifier: catalog:prod
version: 2.0.0
semver:
specifier: catalog:prod
version: 7.8.5
shiki:
specifier: catalog:frontend
version: 4.4.1
@@ -1150,6 +1141,9 @@ importers:
uqr:
specifier: catalog:prod
version: 0.1.3
verkit:
specifier: catalog:prod
version: 0.3.2
vite:
specifier: catalog:prod
version: 8.2.0(@types/node@26.1.2)(esbuild@0.28.0)(jiti@2.7.0)(terser@5.49.0)(tsx@4.23.1)(yaml@2.9.0)
@@ -4291,9 +4285,6 @@ packages:
'@types/sarif@2.1.7':
resolution: {integrity: sha512-kRz0VEkJqWLf1LLVN4pT1cg1Z9wAuvI6L97V3m2f5B76Tg8d413ddvLBPTEHAZJlnn4XSvu0FkZtViCQGVyrXQ==}
'@types/semver@7.7.1':
resolution: {integrity: sha512-FmgJfu+MOcQ370SD0ev7EI8TlCAfKYU+B4m5T3yXc1CiRN94g/SZPtsCkk506aUDtlMnFZvasDwHHUcZUEaYuA==}
'@types/sinonjs__fake-timers@8.1.1':
resolution: {integrity: sha512-0kSuKjAS0TrGLJ0M/+8MaFkGsQhZpB6pxOmvS3K8FYI72K//YmdfoW9X2qPsAKh1mkwxGD5zib9s1FIFed6E8g==}
@@ -9614,6 +9605,10 @@ packages:
resolution: {integrity: sha512-w2Eo8LSIIoW7qxNBzT7/17k+bh8plXo7G3dHjEIDqPlnluhzaxr9JX8F28VSYEtDvc1/a3WBDih6xNUZseebXg==}
engines: {node: '>=18.12.0'}
verkit@0.3.2:
resolution: {integrity: sha512-zj/ob3UsvJGN0whEAKFp53REA5X66hvffVqoCtVQAakJKnKlH+/PcOfMoFwIG/o4rElqLv/ycAFlx8ZlXUorCg==}
engines: {node: '>=18.12.0'}
verror@1.10.0:
resolution: {integrity: sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==}
engines: {'0': node >=0.6.0}
@@ -12917,8 +12912,6 @@ snapshots:
'@types/sarif@2.1.7': {}
'@types/semver@7.7.1': {}
'@types/sinonjs__fake-timers@8.1.1': {}
'@types/sizzle@2.3.8': {}
@@ -16588,7 +16581,7 @@ snapshots:
markdown-it-async@2.2.0:
dependencies:
'@types/markdown-it': 14.1.2
markdown-it: 14.2.0
markdown-it: 14.3.0
optional: true
markdown-it-footnote@4.0.0: {}
@@ -19309,6 +19302,8 @@ snapshots:
verkit@0.3.1: {}
verkit@0.3.2: {}
verror@1.10.0:
dependencies:
assert-plus: 1.0.0
+2 -2
View File
@@ -19,6 +19,7 @@ minimumReleaseAgeExclude:
- '@shikijs/vitepress-twoslash@4.2.0'
- shiki@4.2.0
- magic-string-stack@2.0.0
- verkit@0.3.2
shamefullyHoist: true
shellEmulator: true
@@ -165,7 +166,6 @@ catalogs:
public-ip: ^8.0.0
resolve-from: ^5.0.0
resolve-global: ^2.0.0
semver: ^7.8.5
sirv: ^3.0.2
source-map-js: ^1.2.1
tinyexec: ^1.3.0
@@ -175,6 +175,7 @@ catalogs:
unplugin-vue-markdown: ^32.0.0
untun: ^0.2.2
uqr: ^0.1.3
verkit: ^0.3.2
vite: ^8.2.0
vite-plugin-inspect: ^12.0.2
vite-plugin-pwa: ^1.3.0
@@ -200,7 +201,6 @@ catalogs:
'@types/prompts': ^2.4.9
'@types/recordrtc': ^5.6.15
'@types/resolve': ^1.20.6
'@types/semver': ^7.7.1
'@types/yargs': ^17.0.35
vscode:
'@volar/language-server': ~2.4.28