niuma-ui 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,17 @@
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.0.1] - 2026-08-11
10
+
11
+ ### 变更
12
+
13
+ - 图标依赖由弃用的 `lucide-vue-next` 迁移为 `@lucide/vue`。
14
+ - 终端依赖由弃用的 `xterm` 迁移为 `@xterm/xterm`(配合现有 `@xterm/addon-fit`)。
15
+
16
+ ### 说明
17
+
18
+ - 安装时仍可能看到 `antlr4ng-cli` 弃用提示:来自 `monaco-sql-languages` → `dt-sql-parser` 的传递依赖,待上游更新;不影响使用。
19
+
9
20
  ## [1.0.0] - 2026-08-11
10
21
 
11
22
  ### 新增
@@ -25,5 +36,6 @@
25
36
 
26
37
  - 1.0 之前的私有 tag(如 `v0.1.0`)仅作历史记录;新接入请依赖 `v1.0.0` 及之后版本。
27
38
 
28
- [Unreleased]: https://github.com/Blair-Shang/niuma-ui/compare/v1.0.0...HEAD
39
+ [Unreleased]: https://github.com/Blair-Shang/niuma-ui/compare/v1.0.1...HEAD
40
+ [1.0.1]: https://github.com/Blair-Shang/niuma-ui/releases/tag/v1.0.1
29
41
  [1.0.0]: https://github.com/Blair-Shang/niuma-ui/releases/tag/v1.0.0
package/NOTICE CHANGED
@@ -15,10 +15,10 @@ See the LICENSE file for the full license text.
15
15
  |------|------------|------|
16
16
  | Vue | MIT | peer 框架 |
17
17
  | Reka UI | MIT | 无障碍交互原语 |
18
- | Lucide (lucide-vue-next) | ISC | 默认图标 |
18
+ | Lucide (@lucide/vue) | ISC | 默认图标 |
19
19
  | Monaco Editor | MIT | RsMonacoEditor |
20
20
  | CodeMirror | MIT | RsCodeEditor |
21
- | xterm.js | MIT | RsTerminal |
21
+ | xterm.js (@xterm/xterm) | MIT | RsTerminal |
22
22
  | marked | MIT | Markdown 解析 |
23
23
  | DOMPurify | Apache-2.0 / MPL-2.0 | HTML 消毒 |
24
24
  | dayjs | MIT | 日期辅助 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "niuma-ui",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "description": "Vue 3 设计系统与 Rs* 组件库(--rs-* token)",
@@ -67,17 +67,17 @@
67
67
  "@codemirror/state": "^6.6.0",
68
68
  "@codemirror/theme-one-dark": "^6.1.3",
69
69
  "@codemirror/view": "^6.43.1",
70
+ "@lucide/vue": "^1.31.0",
70
71
  "@xterm/addon-fit": "^0.11.0",
72
+ "@xterm/xterm": "^6.0.0",
71
73
  "codemirror": "^6.0.2",
72
74
  "dayjs": "^1.11.21",
73
75
  "dompurify": "^3.4.13",
74
- "lucide-vue-next": "^1.0.0",
75
76
  "marked": "^18.0.9",
76
77
  "monaco-editor": "^0.55.1",
77
78
  "monaco-sql-languages": "^1.2.0",
78
79
  "reka-ui": "^2.9.10",
79
- "vue-sonner": "^2.0.9",
80
- "xterm": "^5.3.0"
80
+ "vue-sonner": "^2.0.9"
81
81
  },
82
82
  "devDependencies": {
83
83
  "@tailwindcss/vite": "^4.3.2",
@@ -41,7 +41,7 @@ vi.mock('@xterm/addon-fit', () => ({
41
41
  },
42
42
  }))
43
43
 
44
- vi.mock('xterm', () => ({
44
+ vi.mock('@xterm/xterm', () => ({
45
45
  Terminal: class {
46
46
  cols = 80
47
47
  rows = 24
@@ -1,8 +1,8 @@
1
1
  <script setup lang="ts">
2
2
  import { FitAddon } from '@xterm/addon-fit'
3
- import type { ITheme } from 'xterm'
4
- import { Terminal } from 'xterm'
5
- import 'xterm/css/xterm.css'
3
+ import type { ITheme } from '@xterm/xterm'
4
+ import { Terminal } from '@xterm/xterm'
5
+ import '@xterm/xterm/css/xterm.css'
6
6
  import { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue'
7
7
  import { useRsI18n } from '../composables/useRsI18n'
8
8
  import {
@@ -1,4 +1,4 @@
1
- import type { ITheme, Terminal } from 'xterm'
1
+ import type { ITheme, Terminal } from '@xterm/xterm'
2
2
  import { readDocumentTheme } from './code-editor-utils'
3
3
 
4
4
  export type RsTerminalThemeMode = 'auto' | 'light' | 'dark'
@@ -1,4 +1,4 @@
1
- import type { Terminal } from 'xterm'
1
+ import type { Terminal } from '@xterm/xterm'
2
2
 
3
3
  export type RsTerminalWheelScrollModifier = 'none' | 'shift'
4
4
 
@@ -34,12 +34,12 @@ const customIconMap = new Map<string, Component>([
34
34
 
35
35
  /** Vite 构建时收集全部 Lucide 图标,运行时按名称 O(1) 查找 */
36
36
  const iconModules = import.meta.glob<{ default: Component }>(
37
- '../../node_modules/lucide-vue-next/dist/esm/icons/*.js',
37
+ '../../node_modules/@lucide/vue/dist/esm/icons/*.mjs',
38
38
  { eager: true },
39
39
  )
40
40
 
41
41
  const iconMap = new Map<string, Component>(customIconMap)
42
- const iconPathPattern = /[/\\]icons[/\\]([^/\\]+)\.js$/
42
+ const iconPathPattern = /[/\\]icons[/\\]([^/\\]+)\.mjs$/
43
43
 
44
44
  /** Lucide 更名兼容:旧 kebab 名 → 新图标文件名 */
45
45
  const iconAliases = new Map<string, string>([