Skip to content

Releases

v2.2.1

Choose a tag to compare

@Frotty Frotty released this 22 Nov 09:28
ee5ff04

Highlights

  • Fixed tuple-valued generic indexing inside conditional function arguments on Jass and Lua.

Fixes

  • Both branches now pass all tuple components when a conditional uses a generic index getter. This fixes a Jass build error and missing Lua values. See #1635.

Build infrastructure

  • GitHub Actions restores Gradle dependencies through a single cache. See #1638.

What's Changed

  • Fix tuple-valued generic index reads in conditional arguments by @Frotty in #1636
  • Use setup-gradle as the sole CI cache by @Frotty in #1638
  • Bump compiler version to 2.2.1 by @Frotty in #1637

Full Changelog: v2.2.0...v2.2.1

v2.2.0

Choose a tag to compare

@Frotty Frotty released this 20 Nov 09:28
3055cc0

Highlights

  • Run Warcraft III maps from VS Code on Windows with automatic sign-in renewal when Battle.net is open and signed in.
  • Lua hot reload handles more callback and event-registration edits and uses less memory for large maps.
  • Build maps with -slkobjects to move compatible object data into SLK tables.

Changes

  • Run Map keeps Battle.net out of the way during sign-in and works when the editor and launcher use different Windows registry views.
  • Lua hot reload supports more callback and initializer edits, selects the configured map script, and streams large session files. The editor also reports whether Warcraft III applied the reload.
  • Jass map iteration reuses the checked model after function-body edits.
  • Generated stack traces use more compact frames. Lua rejects object destruction through stale references.

What's Changed

  • Support qualified static event registrations in Lua hot reload by @Frotty in #1589
  • Hot reload event registrations under constant build guards by @Frotty in #1590
  • Preserve lazy initializers and Blizzard helper null semantics by @Frotty in #1591
  • Reuse Lua vararg and native caller artifacts with shared receipt encoding by @Frotty in #1592
  • Refuse a destroy through a stale reference on Lua by @Frotty in #1593
  • Make runtime stack traces compact and easier to scan by @Frotty in #1594
  • Return Warcraft III hot reload receipts to the editor by @Frotty in #1595
  • Reuse checked map model after Jass function body edits by @Frotty in #1598
  • Stream large Lua hot reload manifests from disk by @Frotty in #1597
  • Preserve Lua hot reload snapshots across scalar compile-time edits by @Frotty in #1596
  • Stream Lua hot-run baseline and handoff manifest writes by @Frotty in #1599
  • Stream Lua hot reload preload payloads to disk by @Frotty in #1600
  • Limit Lua hot reload warning scans to stored functions by @Frotty in #1601
  • Reuse Lua hot reload binding indexes across payload checks by @Frotty in #1602
  • Reuse Lua hot reload initializer marker hashes by @Frotty in #1603
  • Limit ambiguous removal checks to shared Lua binding identities by @Frotty in #1604
  • Allocate Lua hot reload order groups only for shared bindings by @Frotty in #1605
  • Share Lua hot reload initializer markers across manifests by @Frotty in #1606
  • Skip Lua hot reload binding checks for identical bindings by @Frotty in #1607
  • Record merged Lua hot reload payload diff allocation by @Frotty in #1608
  • Compare Lua hot reload init statements without copying revisions by @Frotty in #1609
  • Avoid stream allocations in Lua hot reload constant checks by @Frotty in #1610
  • Reuse SHA-256 digests when indexing Lua hot reload initializers by @Frotty in #1611
  • Skip unchanged slot hashes before any slot is sent by @Frotty in #1612
  • Reuse current initializer groups during Lua hot reload by @Frotty in #1613
  • Distinguish Lua hot reload callbacks by local receiver by @Frotty in #1615
  • Preserve nested builder call identities in Lua hot reload by @Frotty in #1614
  • Distinguish Lua hot reload callbacks on accessor results by @Frotty in #1616
  • Stream Lua hot reload session history to and from disk by @Frotty in #1617
  • Batch plain text writes in Lua hot reload preload files by @Frotty in #1618
  • Recognize qualified event constants in Lua hot reload by @Frotty in #1619
  • Select a single commit for offline Lua hot reload replay by @Frotty in #1621
  • Pin the build date in offline Lua hot reload replay by @Frotty in #1622
  • Replay Lua hot reload registrations under qualified constant guards by @Frotty in #1620
  • Select the exact project map script for build and hot reload by @Frotty in #1623
  • Renew the Warcraft III sign-in from Battle.net before Run Map by @Frotty in #1624
  • Minimize Battle.net and focus Warcraft III after Run Map by @Frotty in #1625
  • Move object data into SLK tables with -slkobjects by @Frotty in #1626
  • Run Map: never launch without the sign-in lock, and keep the Battle.net window out of sight by @Frotty in #1627
  • Pin wc3libs with the ObjMerger fixes for -slkobjects by @Frotty in #1628
  • Run Map: renew the Battle.net sign-in and start the game in the user's own registry view by @Frotty in #1629
  • Describe the Battle.net sign-in lock without naming other tools by @Frotty in #1630
  • Run Map: watch for the sign-in from the user's own registry view by @Frotty in #1631
  • Battle.net renewal: hand the foreground back after the app's window takes it by @Frotty in #1632
  • Fix Lua CI and reserve the platform matrix for release tags by @Frotty in #1633
  • Release WurstScript 2.2.0 by @Frotty in #1634

Full Changelog: v2.1.0...v2.2.0

v2.1.0

Choose a tag to compare

@Frotty Frotty released this 27 Oct 11:40
e9363a9

Highlights

  • Faster editor checks after function-body edits and less repeated work during supported Lua compilations.
  • Fix Jass builds with local optimizations and improve Lua generic and callback correctness.

Editor and compiler improvements

Editor checks can reuse unchanged declarations after function-body edits. Supported Lua body edits also reuse compiler artifacts, reducing repeated compilation work while retaining comparisons with fresh builds.

Compiler fixes

  • Keep the trailing returns and required assignments that Jass validation needs after non-exiting loops when local optimizations run. Fixes #1577.
  • Improve Lua generic method dispatch, closure and callback identity, and error stack cleanup.
  • Improve diagnostics when a map command fails, and retain the configured run arguments during hot-reload builds.

Experimental hot reload: limitations

Lua hot reload remains an experimental, opt-in development feature. It is not being announced as ready for everyday use. The latest callback-registration and cumulative-payload changes passed automated tests, but have not yet completed an in-game Warcraft validation run. Stock Lua tests and fresh-output comparisons do not establish engine or preload-channel behavior.

Some callback groups remain ambiguous and require a restart. Existing closure captures and live state cannot always be migrated; arbitrary initialization changes, removed engine effects, per-unit state, and object-data edits can require a restart or retain old state. Only eligible independent initialization registrations can be added automatically. Multiplayer hot-reload delivery is not supported. An accepted payload, even without warnings, is not proof that every behavioral change in a commit took effect.

See the hot-reload guide for supported cases and restart diagnostics. Ordinary builds and runs do not require enabling hot reload.

What's Changed

  • Check in unit tests that live Lua code uses no erased generic static by @Frotty in #1500
  • Run 21 executing tests on Lua too, backlog the Lua-only findings by @Frotty in #1501
  • Keep the toIndex of a generic argument on Lua by @Frotty in #1502
  • Lua: keep the ids of compile-time objects by @Frotty in #1504
  • Add the Lua test-runtime natives executing tests call, and run five more tests on Lua by @Frotty in #1503
  • Test Lua's targeted generic specialisation against Jass, bounded-exhaustively by @Frotty in #1505
  • Lower a direct wurstKeyOf call on Lua by @Frotty in #1506
  • Lua: give a static inner class its generic owner's instantiation by @Frotty in #1509
  • Lua: tell the instantiations of a generic class apart in instanceof by @Frotty in #1507
  • Type a method call on an inherited generic method with the superclass's type arguments by @Frotty in #1510
  • Lua: implement the Reflection natives by @Frotty in #1508
  • Run every executing test on Lua on master CI (-PallBackends) by @Frotty in #1511
  • Lua: allocate an instantiation whose members need its type argument from its specialised class by @Frotty in #1512
  • Accept a closure passed to a generic parameter again by @Frotty in #1514
  • Backlog: drop the Lua defects #1510 and #1512 fixed, run their stale exemptions on Lua by @Frotty in #1513
  • Lua: tell the instantiations apart in an instanceof written in a closure by @Frotty in #1515
  • Lua: call the enumeration natives and their getters directly by @Frotty in #1517
  • Give a closure written inside another closure its owner's type parameters by @Frotty in #1518
  • Fix Jass field instanceof/typeId in generic classes, stable compile-time type ids, Reflection parity by @Frotty in #1519
  • Lua: key a null class instance to 0 in wurstKeyOf by @Frotty in #1523
  • Bind an inherited generic method's type parameters through the superclasses in the interpreter by @Frotty in #1524
  • Interpreter: an object read back from an old generic is that object by @Frotty in #1525
  • Give a read of an inherited generic field its superclass's type arguments by @Frotty in #1526
  • Keep a compile-time object of a new-generic class out of its class's statics by @Frotty in #1528
  • Type a static inner class's members in that class's context, through nested owners by @Frotty in #1529
  • Lua: run an interface default method for the implementing class's instantiation by @Frotty in #1527
  • Substitute type arguments into the element type of an array field by @Frotty in #1530
  • Give a member reached through an old-generic value its class's type arguments by @Frotty in #1531
  • Jass: keep the ids of compile-time objects of new-generic classes by @Frotty in #1532
  • Let a sub-interface default implement the super-interface's method by @Frotty in #1533
  • Let a class implement and override a method with type parameters of its own by @Frotty in #1534
  • Give the macOS arm64 CI runner two test forks, keeping it inside its time limit by @Frotty in #1535
  • Collect each dispatch group's slot names once per Lua class table by @Frotty in #1539
  • Convert a unary expression handed to an old generic once on Lua by @Frotty in #1536
  • Lua: give a class's own allocator as a plain function, not a class-table method by @Frotty in #1537
  • Build override error messages only where they are reported by @Frotty in #1538
  • Document and pin how an object with a reused id starts on each target by @Frotty in #1540
  • Lua: skip the nil test of a native's enum argument which is a common.j constant by @Frotty in #1541
  • LSP: check only the edited unit when an edit changes nothing but bodies by @Frotty in #1542
  • Propagate nullness through branches and inlined enum arguments by @Frotty in #1544
  • Lua: opt-in hot reload of function bodies by @Frotty in #1543
  • Lua hot reload: name declarations from their identity by @Frotty in #1546
  • Reuse specialization demand with a pass-local worklist by @Frotty in #1547
  • Lua hot reload: structural payloads (new functions, globals, fields, classes, lambdas, packages) by @Frotty in #1548
  • Lua hot reload: preserve named closure identities across sibling additions by @Frotty in #1549
  • Lua hot reload: tuned constants take their new values; fixes from an in-game run by @Frotty in #1550
  • Name flatten temporaries the same in every function by @Frotty in #1552
  • Lua hot reload: callbacks told apart by their order reload, @onHotReload hooks, smaller payloads by @Frotty in #1551
  • Lua hot reload: real edits (constants first read, array literals, new generic specialisations); maps without InitBlizzard by @Frotty in #1553
  • Lua stack traces: a raising callback, package init or payload leaves no frames behind by @Frotty in #1554
  • Lua hot reload: dispatch slots and closure owners named by what they name by @Frotty in #1555
  • Lua hot reload: removed closures, classes and callbacks apply with a warning by @Frotty in #1556
  • Lua hot reload docs: in-game results of the last changes; what reloads, for map authors by @Frotty in #1557
  • Map commands: an editor's failed request carries its own text, not "Internal error." by @Frotty in #1558
  • Lua hot reload: a -build -luaHotReload takes the run arguments, not the build-only ones by @Frotty in #1559
  • Lua hot reload: a callback's error handler reloads like its target by @Frotty in #1560
  • Lua hot reload: a reload no longer rewrites the 75 MB baseline or the build's manifest by @...
Read more

v2.0.4

Choose a tag to compare

@Frotty Frotty released this 20 Oct 14:12
5819b9d

Highlights

  • Fixes Lua crashes and missed cleanup callbacks in generic collections accessed through interfaces.

Details

  • Includes #1498: concrete and interface calls now use consistent storage for generic collection fields on Lua.
  • Fixes nil virtual receivers and missing destruction notifications without adding runtime guards or storage indirection.
  • Includes regression coverage for dispatch, cleanup callbacks, optimization variants, initializer effects, and deterministic compilation.

What's Changed

  • Fix concrete generic stores behind erased Lua dispatch by @Frotty in #1498
  • Release compiler 2.0.4 with Lua hotfix by @Frotty in #1499

Full Changelog: v2.0.3...v2.0.4

v2.0.3

Choose a tag to compare

@Frotty Frotty released this 19 Oct 20:49
55b3714

Highlights

  • Updated Warcraft III 3.0.1 scripting APIs, including the latest HUD-scale controls.
  • Faster compiler analysis and smaller optimized Lua output.
  • More reliable optimization, numeric behavior, and generic method dispatch across Jass and Lua.

Details

  • Bundles common.j and blizzard.j verified against the live Warcraft III 3.0.1.24370 installation.
  • Adds the latest HUD-scale natives and covers the bundled 3.0.1 API on both compiler backends.
  • Improves compiler analysis through reused function facts, more efficient dataflow storage, and fewer repeated member lookups.
  • Reduces generated Lua metadata, allocator and initialization overhead; optimized builds also compress descriptor and dispatch names.
  • Fixes numeric conversions and expression grouping, generated-name collisions, indirect-call loop handling, and optimization around client-local values.
  • Preserves generic root dispatch aliases, virtual override effects, and observable object allocations.
  • Fixes Lua stacktrace placeholders and compiler diagnostics.

What's Changed

  • Remove obsolete compiler scaffolding and stale comments by @Frotty in #1466
  • Fix Lua stacktrace placeholder when tracing is disabled by @Frotty in #1467
  • Avoid repeated member lookup during dispatch translation by @Frotty in #1468
  • Fix Lua module overrides through generic dispatch roots by @Frotty in #1469
  • Record Lua runtime improvement findings and reproducible probes by @Frotty in #1470
  • Preserve virtual override effects and unused Lua allocations by @Frotty in #1471
  • Remove dead code, duplicate helpers and orphaned test assets by @Frotty in #1473
  • Fix untraced IM element traces, doubled exception header, UnionFind rank by @Frotty in #1474
  • Reuse unchanged function facts across garbage removals by @Frotty in #1472
  • Fix master build: FunctionFactsTests reads variables, not used variables by @Frotty in #1477
  • Doc upkeep: reconcile agent guidance with the work since #1370 by @Frotty in #1476
  • Resolve ignored tests and test map unit selection through MapRequest by @Frotty in #1478
  • Keep dataflow anomaly states in arrays instead of copied maps by @Frotty in #1479
  • Check a Lua build's native calls on one scan of its script by @Frotty in #1480
  • Propagate copies into statements which overwrite them by @Frotty in #1481
  • Propagate copies of values which depend on the local player by @Frotty in #1482
  • Keep a loop through ExecuteFunc apart by @Frotty in #1488
  • Fuzz client-local code; merge locals across locality by @Frotty in #1483
  • Find the globals initialiser by identity, not by name by @Frotty in #1485
  • Fix repeated names from the name compressor by @Frotty in #1489
  • Only collapse dispatch guards which call the error function by @Frotty in #1486
  • Keep the grouping of a right operand of + and * in Jass by @Frotty in #1487
  • Stop merging a long run of assignments into one deep expression by @Frotty in #1490
  • Keep an integer stored into a real a real by @Frotty in #1484
  • Convert an integer stored into a real on Lua by @Frotty in #1492
  • Reject an integer returned from a real Jass function by @Frotty in #1491
  • Lua: shared allocator and init error handler, class metadata only when read by @Frotty in #1493
  • Lua: declare no global as nil at the top of the script by @Frotty in #1495
  • Backlog: drop RawHashMap, record a tree-shake dead end by @Frotty in #1494
  • Compress Lua descriptor and dispatch names with -opt by @Frotty in #1496
  • Release compiler 2.0.3 with latest Warcraft III 3.0.1 APIs by @Frotty in #1497

Full Changelog: v2.0.2...v2.0.3

v2.0.2

Choose a tag to compare

@Frotty Frotty released this 15 Oct 11:33

Highlights

  • Export map and compiletime-generated objects together as .w3o for placement in World Editor.

Changes

  • Add the opt-in -exportw3o build option and an export-only language-server command, combining all seven object types without changing ordinary builds (#1464).
  • Fix the Windows object-export regression test to compare file identity across short and canonical paths, and document cross-OS portability footguns (#1465).

Full changelog: v2.0.1...v2.0.2

v2.0.1

Choose a tag to compare

@Frotty Frotty released this 14 Oct 20:23

Highlights

  • Faster map builds and test runs by reusing the editor's checked project model.
  • Safer cancellation of map builds and runs, preserving the editor's project state.

Changes

  • Reuse checked compilation units for map builds and runs, avoiding redundant project rebuilds, model copies, and type checks (#1459).
  • Keep shared project model updates intact when cancelling a build or run, and select compilation sources without removing editor files (#1459).
  • Use the JMPQ3 v2.0.2 semantic release for MPQ archive handling (#1460).
  • Prevent map-model regression tests from opening Warcraft installation dialogs (#1461).
  • Add hard test deadlines and runtime limits for CI and release jobs (#1463).
  • Include concise compiler release highlights for automatic display in the VS Code extension (#1462).

Full changelog: v2.0.0...v2.0.1

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 14 Oct 08:11
afdd822

What's Changed

  • Fix duplicate old-generic conversion in closure returns by @Frotty in #1446
  • Publish compiler releases only from semantic version tags by @Frotty in #1383
  • The program's position is a stand-in; a missing position does not print the element by @Frotty in #1447
  • Interpreter: dispatch looks only at the overrides in the receiver's classes by @Frotty in #1448
  • Compile-time natives: no per-call strings or keys, field writes by field, object files serialised once by @Frotty in #1449
  • Interpreter: return and exitwhen by a flag, locals in a small array, plain stores without an address by @Frotty in #1450
  • -measure: phases nest, every step of a map build is measured, the parts add up by @Frotty in #1452
  • Name resolution: a package's imported names are looked up, not collected into one table by @Frotty in #1451
  • Map builds: purging what nothing imports no longer forces a second type check by @Frotty in #1453
  • Member lookup on a generic type binds only the looked-up name by @Frotty in #1454
  • Update JMPQ3 for indexed lookups and parallel compression by @Frotty in #1456
  • Backlog: what a large map's build still spends, and the updateModel scan off the critical path by @Frotty in #1455
  • Reuse the final garbage removal's Jass call relations by @Frotty in #1458

Full Changelog: nightly...v2.0.0

Nightly Build (master)

Pre-release

Choose a tag to compare

@github-actions github-actions released this 14 Nov 00:14
1310878

Nightly build for the latest commit on master.
This release is automatically updated on each push.