This repository was archived by the owner on Jan 30, 2026. It is now read-only.
Repository navigation
Wang Language 0.24.4
Wang Language 0.24.4
A CSP-safe workflow programming language for browser automation.
π Features
- β 100% CSP-Safe - No eval() or new Function()
- π― Zero Ambiguity Grammar - Deterministic parsing
- π¦ Modern JavaScript-like Syntax - Classes, modules, async/await
- π Pluggable Module System - Memory, IndexedDB, HTTP resolvers
- π Pipeline Operators - Elegant data flow with
|>and-> - π§ͺ 100% Test Coverage - 90/90 tests passing
π¦ Installation
npm install wang-lang@0.24.4π Browser CDN
<script src="https://unpkg.com/wang-lang@0.24.4/dist/browser/wang.min.js"></script>π Changes
Changelog
[0.24.4] - $(date +%Y-%m-%d)
Changes
All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
0.24.2 (2025-11-01)
Bug Fixes
- auto-format code with prettier (623b71e)
- clean up debug files and resolve linting issues for npm publish (3659f8b)
- critical variable scope and compound assignment bugs for 100% JS compatibility (780597f)
0.24.1 (2025-11-01)
Critical Bug Fixes
-
CRITICAL: Variable Scope in Synchronous Callbacks: Fixed critical issue where variable assignments in forEach callbacks weren't updating parent scope
- Fixed
sum = sum + nandsum += nassignments in native forEach callbacks - Added proper context chain traversal for variable assignments in synchronous execution
- Ensures 100% JavaScript compatibility for browser automation workflows
- Resolves "Variable 'item' is not defined" errors when native DOM methods call Wang functions
- Fixed
-
Compound Assignment Operators: Added full support for compound assignment in synchronous contexts
- Support for
+=,-=,*=,/=,%=operators in forEach callbacks - Proper current value lookup and context chain traversal for compound operations
- Maintains variable scope integrity across synchronous function boundaries
- Support for
-
Assignment Expression Recovery: Restored missing async AssignmentExpression case
- Fixed "Unknown node type: AssignmentExpression" errors in async contexts
- Ensures both sync and async assignment paths work correctly
- Maintains backward compatibility for all existing assignment patterns
Test Coverage
- 100% Test Pass Rate: All 757 tests now pass (was 755/757)
- Fixed failing native methods tests with forEach variable scope
- Fixed failing return value tests with assignment expressions
- Fixed failing browser compatibility tests with compound assignments
Features
- fix NodeList forEach compatibility and enhanced error context (fb53111)
π€ This release was automatically generated.