@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 +19 -0
- package/dist/flux-cli.js +7959 -4853
- package/dist/flux.cjs.js +5507 -3647
- package/dist/flux.esm.js +5505 -3650
- package/dist/flux.min.js +356 -95
- package/dist/transpiler.js +4 -0
- package/package.json +1 -1
- package/src/config.js +101 -86
- package/src/formatter.js +105 -100
- package/src/self/bundler.js +1 -197
- package/src/self/checker.js +0 -2
- package/src/self/cli.js +0 -2
- package/src/self/codegen.js +1 -811
- package/src/self/config.js +0 -2
- package/src/self/css-preprocessor.js +1 -3
- package/src/self/formatter.js +0 -2
- package/src/self/jsx.js +2 -4
- package/src/self/lexer.js +6 -8
- package/src/self/linter.js +0 -2
- package/src/self/mangler.js +0 -2
- package/src/self/parser.js +0 -2
- package/src/self/pkg.js +0 -2
- package/src/self/sourcemap.js +0 -2
- package/src/self/stdlib.js +0 -2
- package/src/self/test-runner.js +0 -2
- package/src/self/transpiler.js +0 -2
- package/src/self/type-checker.js +0 -2
- package/src/stdlib.js +731 -218
- package/src/self/index.flux +0 -87
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
|