Skip to content

Commit 3f44c82

Browse files
committed
Bump version to 0.12.83
1 parent f0ebebf commit 3f44c82

6 files changed

Lines changed: 22 additions & 2 deletions

File tree

packages/asterui/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ description: All notable changes to AsterUI
77

88
All notable changes to AsterUI are documented here.
99

10+
## v0.12.83 (2025-01-23)
11+
12+
### Features
13+
14+
- **Terminal**: Added `convertEol` prop (default: `true`) to convert LF to CRLF for proper newline handling in output
15+
1016
## v0.12.82 (2025-01-21)
1117

1218
### Bug Fixes

packages/asterui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "asterui",
3-
"version": "0.12.82",
3+
"version": "0.12.83",
44
"description": "React UI component library with DaisyUI",
55
"homepage": "https://asterui.com",
66
"repository": {

packages/asterui/src/components/Terminal.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ export interface TerminalProps {
5555
prompt?: string
5656
/** Callback when user submits a line in readline mode */
5757
onLine?: (line: string) => void
58+
/** Convert LF to CRLF for proper newline handling (default: true) */
59+
convertEol?: boolean
5860
/** xterm.js options (theme is auto-applied unless you override it) */
5961
options?: ITerminalOptions & ITerminalInitOnlyOptions
6062
/** Additional CSS classes for the container */
@@ -70,6 +72,7 @@ export const Terminal = forwardRef<TerminalRef, TerminalProps>(({
7072
readline = false,
7173
prompt = '$ ',
7274
onLine,
75+
convertEol = true,
7376
options = {},
7477
className = '',
7578
style,
@@ -272,6 +275,7 @@ export const Terminal = forwardRef<TerminalRef, TerminalProps>(({
272275
terminal = new XTerm({
273276
theme: getTheme(),
274277
cursorBlink: true,
278+
convertEol,
275279
fontFamily: 'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',
276280
fontSize: 14,
277281
...options,

packages/docs/src/content/docs/changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ description: All notable changes to AsterUI
77

88
All notable changes to AsterUI are documented here.
99

10+
## v0.12.83 (2025-01-23)
11+
12+
### Features
13+
14+
- **Terminal**: Added `convertEol` prop (default: `true`) to convert LF to CRLF for proper newline handling in output
15+
1016
## v0.12.82 (2025-01-21)
1117

1218
### Bug Fixes

packages/prefixed/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aster-ui/prefixed",
3-
"version": "0.12.82",
3+
"version": "0.12.83",
44
"description": "React UI component library with DaisyUI (prefixed classes)",
55
"homepage": "https://asterui.com",
66
"repository": {

packages/prefixed/src/components/Terminal.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ export interface TerminalProps {
5555
prompt?: string
5656
/** Callback when user submits a line in readline mode */
5757
onLine?: (line: string) => void
58+
/** Convert LF to CRLF for proper newline handling (default: true) */
59+
convertEol?: boolean
5860
/** xterm.js options (theme is auto-applied unless you override it) */
5961
options?: ITerminalOptions & ITerminalInitOnlyOptions
6062
/** Additional CSS classes for the container */
@@ -70,6 +72,7 @@ export const Terminal = forwardRef<TerminalRef, TerminalProps>(({
7072
readline = false,
7173
prompt = '$ ',
7274
onLine,
75+
convertEol = true,
7376
options = {},
7477
className = '',
7578
style,
@@ -272,6 +275,7 @@ export const Terminal = forwardRef<TerminalRef, TerminalProps>(({
272275
terminal = new XTerm({
273276
theme: getTheme(),
274277
cursorBlink: true,
278+
convertEol,
275279
fontFamily: 'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',
276280
fontSize: 14,
277281
...options,

0 commit comments

Comments
 (0)