@xnoxs/flux-lang 4.0.1 → 4.0.2

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,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ---
9
9
 
10
+ ## [4.0.2] — 2026-06-28
11
+
12
+ ### Fixed
13
+ - **CLI test runner — `dist/transpiler.js` shim**: The `flux test` command
14
+ failed with `Cannot find module 'dist/transpiler.js'` when installed from npm.
15
+ The CLI resolves its own module directory at runtime (`__dirname` inside
16
+ `dist/flux-cli.js`), expecting a sibling `transpiler.js`. Added a permanent
17
+ compatibility shim (`dist/transpiler.js`) that re-exports the main CJS bundle,
18
+ so `flux test` works correctly out of the box after `npm install`.
19
+
20
+ ---
21
+
10
22
  ## [4.0.1] — 2026-06-28
11
23
 
12
24
  ### Fixed
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+ // Compatibility shim — redirects require('./transpiler') to the main CJS bundle.
3
+ // Required by the CLI test-runner which resolves module paths from __dirname.
4
+ module.exports = require('./flux.cjs.js');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xnoxs/flux-lang",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
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",
@@ -84,4 +84,4 @@
84
84
  "devDependencies": {
85
85
  "esbuild": "^0.28.1"
86
86
  }
87
- }
87
+ }