flashts 1.0.3 → 1.0.5
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 +29 -0
- package/README.md +23 -7
- package/bin/cli.ts +3 -2
- package/client/dist/assets/index-BhNF18tA.js +30 -0
- package/client/dist/assets/index-Bic-GL3Z.css +1 -0
- package/client/dist/index.html +2 -2
- package/package.json +76 -76
- package/server/index.ts +50 -50
- package/client/dist/assets/index-BAlIRq-u.css +0 -1
- package/client/dist/assets/index-Brg0Cnup.js +0 -21
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to FlashTS will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.0.5] - 2026-01-23
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **Real-time Console**: Implemented streaming output for immediate feedback on async processes and loops.
|
|
10
|
+
- **Auto-run**: Code now executes automatically on change after the initial manual run.
|
|
11
|
+
- **Auto-run Safeguard**: Logic prevents auto-run from re-enabling if manually disabled by the user.
|
|
12
|
+
- **Hard Reload**: `Ctrl + Shift + F` now aborts any running process and restarts a fresh execution.
|
|
13
|
+
- **Seamless Updates**: Console logs are now replaced instantly without clearing to prevent flickering.
|
|
14
|
+
- **CLI Feedback**: Added "Opening in browser..." message to CLI output.
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- **Run Button**: UI now remains stable ("Run") during execution, using color and spinner to indicate state.
|
|
19
|
+
- **Package Manager**: Added Framer Motion animations and "stay open" behavior for multi-package installation.
|
|
20
|
+
- **Scope Isolation**: Reverted `moduleDetection: 3` to restore global variables and implemented visual suppression of "redeclaration" errors.
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- **Type Error**: Fixed `handleRun` onClick handler in `App.tsx` passing event object instead of boolean.
|
|
25
|
+
|
|
26
|
+
## [1.0.4] - 2026-01-23
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
|
|
30
|
+
- **NPM Manager**: Hidden "Core" dependencies from the main installed list to reduce clutter.
|
|
31
|
+
- **Improved Logging**: Suppressed redundant Bun startup logs.
|
|
32
|
+
- **Server Stability**: Increased server `idleTimeout` to 60s to eliminate Bun timeout warnings.
|
|
33
|
+
|
|
5
34
|
## [1.0.3] - 2026-01-22
|
|
6
35
|
|
|
7
36
|
### Fixed
|
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<img src="https://raw.githubusercontent.com/ZtaMDev/FlashTS/refs/heads/main/client/public/favicon.svg" alt="FlashTS" width="
|
|
2
|
+
<img src="https://raw.githubusercontent.com/ZtaMDev/FlashTS/refs/heads/main/client/public/favicon.svg" alt="FlashTS" width="100" />
|
|
3
3
|
<h1>FlashTS</h1>
|
|
4
4
|
<p><b>High-performance TypeScript/JavaScript Playground powered by Bun</b></p>
|
|
5
5
|
</div>
|
|
@@ -34,19 +34,35 @@ flashts
|
|
|
34
34
|
|
|
35
35
|
- **Blazing Fast**: Powered by **Bun**, the all-in-one JavaScript runtime.
|
|
36
36
|
|
|
37
|
-
<
|
|
37
|
+
<p align="center">
|
|
38
|
+
<img width="85%" alt="image" src="https://github.com/user-attachments/assets/0c9b30a1-97de-42f1-9948-a8ef393cc8ed" />
|
|
39
|
+
</p>
|
|
38
40
|
|
|
39
41
|
- **Multi-file Workspace**: Work on complex projects with relative imports (`import { x } from "./utils"`).
|
|
40
42
|
|
|
41
|
-
<
|
|
43
|
+
<p align="center">
|
|
44
|
+
<img width="85%" alt="image" src="https://github.com/user-attachments/assets/70398188-9d14-4a15-be1c-bff1970ed686" />
|
|
45
|
+
</p>
|
|
42
46
|
|
|
43
|
-
- **
|
|
47
|
+
- **NPM Management**: Search and install packages directly from the UI.
|
|
44
48
|
|
|
45
|
-
<
|
|
49
|
+
<p align="center">
|
|
50
|
+
<img
|
|
51
|
+
src="https://github.com/user-attachments/assets/43a9b37d-c6c9-4558-808d-5eaf105030b1"
|
|
52
|
+
alt="NPM Management"
|
|
53
|
+
width="85%"
|
|
54
|
+
/>
|
|
55
|
+
</p>
|
|
46
56
|
|
|
47
|
-
- **
|
|
57
|
+
- **Smart IntelliSense**: Real-time type definitions for your NPM dependencies.
|
|
48
58
|
|
|
49
|
-
<
|
|
59
|
+
<p align="center">
|
|
60
|
+
<img
|
|
61
|
+
src="https://github.com/user-attachments/assets/927171ae-85c9-4854-9849-b78fe25dc3bc"
|
|
62
|
+
alt="Smart IntelliSense"
|
|
63
|
+
width="65%"
|
|
64
|
+
/>
|
|
65
|
+
</p>
|
|
50
66
|
|
|
51
67
|
- **Instant Sharing**: Generate public links to share your playground with others.
|
|
52
68
|
- **Premium UI**: Dark mode, responsive design, and smooth animations.
|
package/bin/cli.ts
CHANGED
|
@@ -10,7 +10,7 @@ const program = new Command();
|
|
|
10
10
|
program
|
|
11
11
|
.name("flashts")
|
|
12
12
|
.description("FlashTS: High-performance TypeScript Playground CLI")
|
|
13
|
-
.version("1.0.
|
|
13
|
+
.version("1.0.5")
|
|
14
14
|
.option("-p, --port <number>", "Port to run the server on", "3000")
|
|
15
15
|
.option("-s, --share", "Generate a shareable public link")
|
|
16
16
|
.option("--no-open", "Do not open the browser automatically")
|
|
@@ -18,7 +18,7 @@ program
|
|
|
18
18
|
const port = parseInt(options.port);
|
|
19
19
|
const packageRoot = join(import.meta.dir, "..");
|
|
20
20
|
|
|
21
|
-
console.log(`\n⚡ ${pc.bold(pc.cyan("FlashTS"))} ${pc.dim("v1.0.
|
|
21
|
+
console.log(`\n⚡ ${pc.bold(pc.cyan("FlashTS"))} ${pc.dim("v1.0.5")}`);
|
|
22
22
|
console.log(`${pc.green("➜")} Local: ${pc.cyan(`http://localhost:${port}`)}`);
|
|
23
23
|
|
|
24
24
|
// Start the server process
|
|
@@ -48,6 +48,7 @@ program
|
|
|
48
48
|
|
|
49
49
|
if (options.open) {
|
|
50
50
|
setTimeout(() => {
|
|
51
|
+
console.log(`${pc.gray("➜")} ${pc.dim("Opening in browser...")}`);
|
|
51
52
|
open(`http://localhost:${port}`);
|
|
52
53
|
}, 1000);
|
|
53
54
|
}
|