@xnoxs/flux-lang 4.0.9 → 4.1.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
@@ -7,6 +7,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ---
9
9
 
10
+ ## [4.1.1] — 2026-07-02
11
+
12
+ ### Fixed
13
+ - **Parser: `fn name(): RetType:` with indented body now works** — `_isColonReturnType()` previously only returned `true` when NEWLINE or EOF followed the type annotation, causing `fn f(): String:` + indented body to throw "Unexpected token: COLON". The check now also accepts COLON as a valid end-of-annotation marker. The `fn f() -> String:` (arrow) syntax is unaffected.
14
+
15
+ ---
16
+
17
+ ## [4.0.2] — 2026-06-28
18
+
19
+ ### Fixed
20
+ - **CLI test runner — `dist/transpiler.js` shim**: The `flux test` command
21
+ failed with `Cannot find module 'dist/transpiler.js'` when installed from npm.
22
+ The CLI resolves its own module directory at runtime (`__dirname` inside
23
+ `dist/flux-cli.js`), expecting a sibling `transpiler.js`. Added a permanent
24
+ compatibility shim (`dist/transpiler.js`) that re-exports the main CJS bundle,
25
+ so `flux test` works correctly out of the box after `npm install`.
26
+
27
+ ---
28
+
10
29
  ## [4.0.1] — 2026-06-28
11
30
 
12
31
  ### Fixed