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

Wang Language 0.24.2

Choose a tag to compare

@github-actions github-actions released this 01 Nov 17:27
· 15 commits to main since this release

Wang Language 0.24.2

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.2

🌐 Browser CDN

<script src="https://unpkg.com/wang-lang@0.24.2/dist/browser/wang.min.js"></script>

πŸ“‹ Changes

Changelog

[0.24.2] - $(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 + n and sum += n assignments 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
  • 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
  • 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.