This repository was archived by the owner on Jan 30, 2026. It is now read-only.
Repository navigation
Wang Language 0.24.1
Wang Language 0.24.1
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.1π Browser CDN
<script src="https://unpkg.com/wang-lang@0.24.1/dist/browser/wang.min.js"></script>π Changes
Changelog
[0.24.1] - $(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.1 (2025-11-01)
Features
- fix NodeList forEach compatibility and enhanced error context (fb53111)
Bug Fixes
- resolve eslint issues for npm publish (a655a95)
[0.24.0] - 2025-01-02
Added
- NodeList/HTMLCollection forEach Compatibility: Full browser automation support
- Arrow function callbacks now work correctly with native DOM forEach methods
- Fixed "Variable 'item' is not defined" errors when NodeList calls Wang callbacks
- Smart synchronous execution for simple arrow functions (expression bodies)
- Proper async execution for complex arrow functions (block bodies with variables)
- Unified parameter binding logic between sync and async function contexts
- Complete compatibility with
document.querySelectorAll().forEach()and similar APIs
Improved
- Arrow Function Performance: Optimized execution path for JavaScript-called callbacks
- Parameter Binding: Unified logic using
assignPatternfor consistent variable scoping - Test Coverage: Maintained 752/757 tests passing (99.3% success rate)
- Browser Automation: Enhanced DOM manipulation workflows with forEach compatibility
- Documentation: Added forEach compatibility examples and usage patterns
Technical Details
- Added
canExecuteSynchronously()detection for arrow function optimization - Enhanced
createFunction()method with smart sync/async determination - Improved parameter binding consistency between function execution contexts
- Maintained JavaScript compatibility and CSP safety requirements
[0.23.0] - 2025-01-02
Added
- JavaScript-Compatible forEach Method: Full JavaScript compatibility with comprehensive async support
π€ This release was automatically generated.