@xnoxs/flux-lang 4.0.0 → 4.0.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,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ---
9
9
 
10
+ ## [4.0.1] — 2026-06-28
11
+
12
+ ### Fixed
13
+ - **Playground & Examples — all 19 code samples** now compile without errors (19/19 pass)
14
+ - `fn name(params): RetType:` → corrected to `fn name(params) -> RetType:` in Functions, Type Narrowing, and Type Annotations examples
15
+ - Parameter named `val` (Flux keyword) renamed to `x` in Type Narrowing example
16
+ - Parameter named `fn` (Flux keyword) renamed to `task` in Async/Await example
17
+ - `declare` example: `fn greet(name: String): String:` → `fn greet(name: String) -> String:`
18
+ - **Self-hosted lexer — `constructor` keyword bug**: `KEYWORDS['constructor']` was returning `Object` (JS prototype chain) instead of `undefined`, causing `fn constructor()` inside class bodies to fail when compiled via CLI. Fixed with `Object.prototype.hasOwnProperty.call(KEYWORDS, word)`
19
+ - **Playground syntax cheatsheet** (`📖 Syntax` button) — all syntax examples use correct `->` return type syntax
20
+
21
+ ---
22
+
10
23
  ## [4.0.0] — 2026-06-27
11
24
 
12
25
  ### Added
package/dist/flux-cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /*!
3
- * flux-lang v4.0.0
3
+ * flux-lang v4.0.1
4
4
  * Flux — A modern language that transpiles to JavaScript. Python-clean syntax, TypeScript-level safety, Rust-inspired pattern matching.
5
5
  * (c) 2026 Flux Lang Contributors
6
6
  * Released under the MIT License
@@ -7306,7 +7306,7 @@ var require_package = __commonJS({
7306
7306
  "package.json"(exports2, module2) {
7307
7307
  module2.exports = {
7308
7308
  name: "@xnoxs/flux-lang",
7309
- version: "4.0.0",
7309
+ version: "4.0.1",
7310
7310
  description: "Flux \u2014 A modern language that transpiles to JavaScript. Python-clean syntax, TypeScript-level safety, Rust-inspired pattern matching.",
7311
7311
  main: "dist/flux.cjs.js",
7312
7312
  module: "dist/flux.esm.js",
package/dist/flux.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * flux-lang v4.0.0
2
+ * flux-lang v4.0.1
3
3
  * Flux — A modern language that transpiles to JavaScript. Python-clean syntax, TypeScript-level safety, Rust-inspired pattern matching.
4
4
  * (c) 2026 Flux Lang Contributors
5
5
  * Released under the MIT License
package/dist/flux.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * flux-lang v4.0.0
2
+ * flux-lang v4.0.1
3
3
  * Flux — A modern language that transpiles to JavaScript. Python-clean syntax, TypeScript-level safety, Rust-inspired pattern matching.
4
4
  * (c) 2026 Flux Lang Contributors
5
5
  * Released under the MIT License
package/dist/flux.min.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * flux-lang v4.0.0
2
+ * flux-lang v4.0.1
3
3
  * Flux — A modern language that transpiles to JavaScript. Python-clean syntax, TypeScript-level safety, Rust-inspired pattern matching.
4
4
  * (c) 2026 Flux Lang Contributors
5
5
  * Released under the MIT License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xnoxs/flux-lang",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Flux — A modern language that transpiles to JavaScript. Python-clean syntax, TypeScript-level safety, Rust-inspired pattern matching.",
5
5
  "main": "dist/flux.cjs.js",
6
6
  "module": "dist/flux.esm.js",
package/scripts/build.js CHANGED
File without changes
package/src/config.js CHANGED
File without changes
File without changes
File without changes
package/src/self/cli.flux CHANGED
File without changes
File without changes