@timo9378/flow2code 0.1.4 → 0.1.6
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 +34 -0
- package/dist/cli.js +215 -103
- package/dist/compiler.cjs +48 -34
- package/dist/compiler.js +48 -34
- package/dist/server.js +134 -52
- package/out/404.html +1 -1
- package/out/__next.__PAGE__.txt +2 -2
- package/out/__next._full.txt +2 -2
- package/out/__next._head.txt +1 -1
- package/out/__next._index.txt +1 -1
- package/out/__next._tree.txt +1 -1
- package/out/_next/static/chunks/{2be31674b47c1089.js → bfa275b7488d8b70.js} +1 -1
- package/out/_not-found/__next._full.txt +1 -1
- package/out/_not-found/__next._head.txt +1 -1
- package/out/_not-found/__next._index.txt +1 -1
- package/out/_not-found/__next._not-found/__PAGE__.txt +1 -1
- package/out/_not-found/__next._not-found.txt +1 -1
- package/out/_not-found/__next._tree.txt +1 -1
- package/out/_not-found.html +1 -1
- package/out/_not-found.txt +1 -1
- package/out/index.html +2 -2
- package/out/index.txt +2 -2
- package/package.json +3 -3
- package/scripts/publish-all.sh +56 -0
- /package/out/_next/static/{OIo5LFjdea8u6u4evHHQo → wFX9tOZWtEdER7XrtbgHQ}/_buildManifest.js +0 -0
- /package/out/_next/static/{OIo5LFjdea8u6u4evHHQo → wFX9tOZWtEdER7XrtbgHQ}/_clientMiddlewareManifest.json +0 -0
- /package/out/_next/static/{OIo5LFjdea8u6u4evHHQo → wFX9tOZWtEdER7XrtbgHQ}/_ssgManifest.js +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,40 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
7
7
|
|
|
8
|
+
## [0.1.6] — 2026-03-05
|
|
9
|
+
|
|
10
|
+
### Fixed (Critical)
|
|
11
|
+
- **Compiler uses migratedIR** — `compile()` now uses validator's auto-migrated IR instead of the stale original, preventing silent data corruption on older IR versions
|
|
12
|
+
- **`generateConcurrentNodes` flowState overwrite** — Removed `flowState[nodeId] = rN` overwrite that replaced correct values with `undefined` (task functions already populate flowState internally)
|
|
13
|
+
- **`handleCompile` path traversal** — Added separator suffix to `startsWith()` check, preventing directory-prefix attacks (e.g. `/home/user` → `/home/user2/`)
|
|
14
|
+
- **Undo/Redo snapshot deep clone** — `createSnapshot()` now uses `structuredClone(n.data)` instead of shallow spread, preventing nested mutation from corrupting all snapshots sharing a reference
|
|
15
|
+
|
|
16
|
+
### Tests
|
|
17
|
+
- Added path traversal regression test, IR migration integration test
|
|
18
|
+
- Test count: 407 tests / 33 test files
|
|
19
|
+
|
|
20
|
+
## [0.1.5] — 2026-03-05
|
|
21
|
+
|
|
22
|
+
### Security
|
|
23
|
+
- **Path traversal fix** — `serveStatic` now uses `resolve()` + `startsWith()` guard with `decodeURIComponent` to prevent `../../etc/passwd` and `%2e%2e%2f` attacks
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
- **DAG swallowed errors** — `.catch(() => {})` replaced with `.catch((err) => { console.error(...) })` so concurrent promise errors are logged instead of silently discarded
|
|
27
|
+
- **CLI watch sync I/O** — Watch mode now uses async `readFile`/`writeFile`/`mkdir` + 150ms debounce to prevent event loop blocking
|
|
28
|
+
- **Source map brittle regex** — Replaced full-line regex with robust `indexOf`-based scanner for `[nodeId] ---` suffix tokens; survives Prettier/ESLint reformatting
|
|
29
|
+
- **Compiler state mutation** — Centralized child block registration via `applyChildBlockRegistration()` helper; plugins no longer scatter-write to context
|
|
30
|
+
- **env-check false positives** — `env-check` command now includes `Object.keys(process.env)` in declared vars whitelist (CI/CD injected vars)
|
|
31
|
+
- **Plugin error guard** — `plugin.generate()` wrapped in try/catch with descriptive error message identifying plugin, node label, and node ID; preserves `{ cause }` chain
|
|
32
|
+
|
|
33
|
+
### Added
|
|
34
|
+
- **Logger system** — `src/lib/logger.ts` with picocolors, log levels (debug/info/warn/error/silent), structured output (`kv`, `kvLast`, `blank`, `raw`), `--silent` CLI flag
|
|
35
|
+
- **picocolors** added as direct dependency (zero-dep, 3.8x faster than chalk)
|
|
36
|
+
|
|
37
|
+
### Changed
|
|
38
|
+
- Dev script switched back to Turbopack (`next dev --turbopack`), removed `--webpack` workaround
|
|
39
|
+
- Server and CLI now use structured logger instead of raw `console.log`/`console.error`
|
|
40
|
+
- Test count: 405 tests / 33 test files
|
|
41
|
+
|
|
8
42
|
## [0.1.0] — 2026-02-27
|
|
9
43
|
|
|
10
44
|
### Added
|