Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

Wang Language 0.21.7

Choose a tag to compare

@github-actions github-actions released this 29 Oct 10:28
· 36 commits to main since this release

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 new expressions (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

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

πŸ€– This release was automatically generated.