This repository was archived by the owner on Jan 30, 2026. It is now read-only.
Repository navigation
Wang Language 0.21.7
Wang Language 0.21.7
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.21.7π Browser CDN
<script src="https://unpkg.com/wang-lang@0.21.7/dist/browser/wang.min.js"></script>π Changes
Changelog
[0.21.7] - $(date +%Y-%m-%d)
Changes
All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
0.21.7 (2025-10-11)
[0.21.0] - 2025-01-05
Added
- Multiline Expressions: Full support for multiline conditionals and expressions
- Complex conditionals can span multiple lines with proper indentation
- Newlines supported around all binary operators (
&&,||,??,==,!=,+,-, etc.) - Multiline support for for/while/do-while loop conditions
- Multiline ternary operator expressions with nested indentation
- Multiline parenthesized expressions for better code organization
- No breaking changes - all existing code continues to work
- Comprehensive test suite with 17 tests covering all multiline scenarios
- Addresses real-world use cases like complex form validation and URL filtering
[0.18.0] - 2025-01-03
Added
- Template Literals: Full support for template strings with expression interpolation
- CSP-safe implementation using Wang's own parser (no eval/new Function)
- Supports all expression types: variables, arithmetic, object access, function calls
- Proper escape sequence processing (
\n,\t,\\,\$, etc.) - Null and undefined values correctly convert to string representation
- Known limitations: Nested template literals throw parse errors (architectural constraint)
- Invalid expressions in templates are left unevaluated as fail-safe behavior
- Comprehensive test suite with 36 tests documenting all behaviors
Fixed
- Grammar: Fixed method chaining on
newexpressions (e.g.,new Date().toISOString())- Previously required parentheses:
(new Date()).toISOString() - Now works without parentheses as expected in JavaScript
- Supports property access, method calls, and computed member access on newly created instances
- Added comprehensive test coverage for various chaining scenarios
- Previously required parentheses:
Added
- CLI Tools: New command-line interface for executing and validating Wang files
wang-run: Execute .wang files from command line with built-in functions and global objects- Supports file execution (
wang-run script.wang) and stdin input (wang-run -) - Verbose mode (
--verbose) for detailed execution information - Quiet mode (
--quiet) for output-only display
- Supports file execution (
π€ This release was automatically generated.