@xnoxs/flux-lang 3.1.2 → 3.2.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 +27 -0
- package/README.md +915 -597
- package/dist/flux.cjs.js +594 -75
- package/dist/flux.esm.js +594 -75
- package/dist/flux.min.js +258 -58
- package/package.json +1 -1
- package/src/codegen.js +41 -9
- package/src/linter.js +29 -3
- package/src/parser.js +27 -3
- package/src/stdlib.js +537 -47
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,33 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
+
## [3.2.1] — 2026-06-24
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
- README.md fully rewritten to match web app documentation — all sections now in sync: Decorators, Private Fields, full Stdlib reference (58 new functions), Type Checks, Async Utils, Self-Hosting, v3 type system features
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## [3.2.0] — 2026-06-24
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
- **Decorators** — `@name` and `@name(args)` syntax on `fn` and `class` declarations; applied post-definition (bottom-up order)
|
|
21
|
+
- **Private fields** — `private var field` in classes emits JS `#field` syntax with proper `#field;` declaration at class top
|
|
22
|
+
- **Stdlib — Array extras** (20 new): `first/head`, `last`, `tail`, `nth`, `take`, `drop`, `takeWhile`, `dropWhile`, `compact`, `intersection`, `difference`, `arrayUnion`, `unzip`, `countBy`, `minBy`, `maxBy`, `toPairs`, `partition`, `count`, `rotate`, `sliding`
|
|
23
|
+
- **Stdlib — Math** (10 new): `min`, `max`, `abs`, `floor`, `ceil`, `round`, `mean`, `median`, `stdDev`, `lerp`
|
|
24
|
+
- **Stdlib — Objects** (6 new): `keys`, `values`, `entries`, `merge`, `invert`, `defaults`
|
|
25
|
+
- **Stdlib — Strings** (11 new): `padStart`, `padEnd`, `trim`, `trimStart`, `trimEnd`, `words`, `lines`, `startsWith`, `endsWith`, `repeat`, `replaceAll`, `reverseStr`
|
|
26
|
+
- **Stdlib — Type checks** (7 new): `isNil`, `isString`, `isNumber`, `isArray`, `isObject`, `isFunction`, `isBool`
|
|
27
|
+
- **Stdlib — Async** (4 new): `timeout`, `allSettled`, `debounce`, `throttle`
|
|
28
|
+
- **Stdlib — Functional** (5 new): `identity`, `noop`, `once`, `flip`, `complement`
|
|
29
|
+
- **Docs** — all stdlib sections fully updated; new "Type Checks" section and sidebar entry
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
- Stdlib is now tree-shaken: only symbols actually used in compiled output are injected
|
|
33
|
+
- Transpiler version bumped to v3.2.0 in generated file header
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
10
37
|
## [3.1.0] — 2026-06-24
|
|
11
38
|
|
|
12
39
|
### Added
|