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

Wang Language 0.24.1

Choose a tag to compare

@github-actions github-actions released this 01 Nov 16:37
· 19 commits to main since this release

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 assignPattern for 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.