Skip to content

wowlua v0.13.0

Choose a tag to compare

@github-actions github-actions released this 27 Oct 00:56
· 411 commits to main since this release

0.13.0 (2026-10-27)

New

  • wowlua registry: depend on libraries by version ("lib-tooltip": "^1.2", or wowlua add lib-tooltip@^1.2), from https://registry.wowlua.dev or another registry. Versions are locked with their checksums, wowlua update and wowlua outdated know them, and a yanked version your lockfile has keeps working with W4322.
  • wowlua publish publishes library, lua-library and types packages to the registry, and wowlua package --registry writes the archive without uploading it. Sign in with GitHub at https://registry.wowlua.dev/login for a token, then save it with wowlua login registry or set WOWLUA_REGISTRY_TOKEN.
  • wowlua search <words> finds registry packages by name, description and keywords.
  • wowlua yank <name>@<version> yanks a version you published (--undo takes it back), and wowlua owner list|add|remove manages a package's owners.
  • Faster release builds: release builds reshape the Lua they write for WoW's Lua 5.1. Fields such as self.config.scale are read once before a loop that can't change them, and once for repeated reads; ipairs over arrays becomes a numeric loop and table.insert(t, v) becomes t[#t + 1] = v; outer locals read in loops are copied into locals; closures made in a loop that need nothing from it are made once; locals holding a constant become the constant. The type-based ones apply in strict-mode files only, plain .lua stays as it is, and each has a switch under optimize.
  • wowlua bench: @bench functions in test files are benchmarks. wowlua bench runs them optimized and unoptimized and shows both times and the speed-up (--profile, --samples, --batch-ms, --json).
  • Performance report: wowlua prof report turns the recordings you marked for export in the dev window into one HTML page: hints, functions, time by event, call tree and flame graph, the frame timeline against the frame budget, slow calls with their stacks mapped to your source, and garbage. It finds them in your WoW installation's SavedVariables, asks which account or client when several have some (--account, --client), and opens the page in your browser (--no-open, --out, --recording).
  • Performance tab: recordings of every combat and boss pull, /wl record, eight views (functions, tree, flame, by event, timeline, slow, garbage, bench) and comparing recordings per minute.
  • Hints: P7101, P7102, P7201 and P7301 in the dev window and in /wl hints, explained by wowlua explain P7301.
  • wowlua explain explains every error and warning: what triggers it, how to fix it, an example that reports it and one that compiles, and related codes. The same explanations are on each code's page on wowlua.dev.
  • Every WoW event and many more API functions now have a description, which the editor shows on hover and wowlua.dev's new WoW API reference shows on each entry's page with how far wowlua test emulates it.
  • W8301 warns when a standard-library function does less on a flavor you build for: Item, Spell and Unit tooltip hooks on the classic flavors, launcher.register without the Addon Compartment.
  • E2053, E2054, E2056, E2058 and E2059 are reported: recursive aliases, conflicting merged interface fields, misplaced type packs, an event and a message with the same name, defaults in event and message parameters.
  • In strict mode a misspelled field of a table you fill in (stats.deths) or of a setmetatable object's methods is E2003.
  • implements checks the class where it is declared (E3006).
  • Decorators are type-checked: their arguments (E2001, and E1003 for undefined names), whether the decorator accepts the declaration (E3022), and a decorator that returns a function gives the function its result type.
  • @script checks the script name and the handler's parameters against the frame type.
  • W3021 when a built-in decorator's name (@profile, …) hides a function of yours.
  • In optimized builds, @inline private methods are inlined where their class calls them, like @inline local functions.
  • In --!strict files, backtick strings skip tostring for strings and numbers, ?? compiles to or, and ?. compiles to and/or where the types allow it.
  • wowlua check --watch checks again after every change.
  • wowlua types sync moves wowlua.lock's interface numbers to your wowlua's flavor table and warns (W4313) when a client alias such as anniversary now names another flavor.
  • -v shows the git and svn commands wowlua runs and the requests wowlua publish makes.
  • --features a,b and --no-default-features choose a build's features, and wowlua add --no-default-features turns a dependency's defaults off.
  • wowlua test runs a library's tests, and wowlua check checks lua-library and types packages.
  • @wowlua/web: the worker has an advance call, play(null, onOutput) runs the game without drawing it, and check() diagnostics carry text, the diagnostic as wowlua check prints it.
  • wowlua data pull reads your WoW installation's game data into wowlua's cache, so wowlua test --game-data works without the installation.
  • wowlua build --watch builds again after every change.
  • wowlua build --reproducible takes build.time from SOURCE_DATE_EPOCH or the commit time instead of the clock.
  • The HUD (/wl hud), the error toast, /wl bench, and exporting recordings for wowlua prof report.
  • The dev window shows the addon's own garbage rate next to all addons'.
  • Profile settings profile-call-paths, profile-garbage, frame-budget and slow-call.
  • The monitor also times slash commands.
  • optimize.inline also inlines functions and @inline private methods whose body is statements, where they're called as a statement.
  • E4231: a package for the registry depends on a git, svn, path or archive source.

Changed

  • With your WoW installation, atlases (C_Texture.GetAtlasInfo, C_Texture.GetAtlasExists, SetAtlas sizes) come from your client's game tables.
  • With your WoW installation, trainer services' tooltips, descriptions and icons come from your client's spell data, and spell tooltips show combo points, melee and minimum ranges, passive, next-swing and channeled spells, and the forms, weapons, tools and reagents a spell needs.
  • With your WoW installation, profession recipes (C_TradeSkillUI.GetRecipeSchematic, GetRecipeInfo, GetRecipeRequirements, GetCategoryInfo) come from your client's game tables; what the character knows stays as recorded.
  • With your WoW installation, item class and subclass names (C_Item.GetItemClassInfo, C_Item.GetItemSubClassInfo) come from your client's game tables.
  • With your WoW installation, achievements' names, descriptions, points, icons, categories and series come from your client's game tables (GetAchievementInfo, GetCategoryInfo, GetCategoryList, …); whether the character earned them stays as recorded.
  • With your WoW installation, the world map's data (C_Map.GetMapInfo, GetMapChildrenInfo, GetMapRectOnMap, GetMapWorldSize, the map art and its tiles) comes from your client's game tables.
  • With your WoW installation, the world map's flight paths (C_TaxiMap.GetTaxiNodesForMap) come from your client's game tables.
  • With your WoW installation, every transmog source and appearance answers from your client's game tables (C_TransmogCollection.GetAppearanceSources, GetSourceInfo, GetAllAppearanceSources, …), not only those wowlua recorded.
  • With your WoW installation (wowlua test --game-data, wowlua data pull, the playground), camelot's talent trees come from your client's game tables: nodes, entries, connections, costs and "Spend N more points" requirements match the build you play, and such a requirement counts only the points spent in its own tab.
  • if flavor == … branches count for E8300, E8310 and E8330: a call is checked only for the flavors that run it.
  • The router's help and Usage: lines start with the slash command (/mya scale <number>).
  • Using a possibly secret value as a table key is E2040 (W2040 in basic mode).
  • In strict mode a table returned from a function is sealed: adding a new field to it is E2051 and reading an unknown one is E2003.
  • Extending an interface, a type alias, an enum or a plain table is E3008.
  • Two types with one name in one scope (an interface, a type alias, a class or an enum) are E1031; before, only two interfaces were reported, and otherwise the later one silently replaced the earlier.
  • ns.__wowlua = … is E2003.
  • @inline on a function that isn't local gives W3031.
  • Widget getters Blizzard documents as possibly secret (GetText, IsShown, GetWidth, GetAlpha, GetPoint, …) are typed T | Secret<T>: check them with issecretvalue or canaccessvalue before computing with them. mock.textOf returns string | Secret<string>.
  • wowlua check and dev builds report E3032 when a @debugOnly function is used as a value, as release builds already did; uses in code only debug builds keep are allowed.
  • An XML file loading a file that build.exclude or a profile's exclude leaves out warns W5004 instead of failing with E5002.
  • wowlua new --ci github writes a workflow that checks, tests and builds every push and publishes tags.
  • flavors.<id>.types must accept the API version wowlua ships (E4318).
  • frames.movable with editMode warns W8301 when you build for Cata Classic, which has no Edit Mode.
  • Shared flavor mode checks members of Blizzard's utility tables per flavor: ChatFrameUtil.SendTell without a guard is E2030 when you build for cata.
  • The dev window uses the wowlua design system and its fonts.
  • @event handlers and the standard library's timers show in the monitor.
  • A local declared with a value keeps that value's type: after local count = 0, count = "none" is E2001 (W2001 in a plain Lua file), as with local count: number = 0. Code that reuses a local for another type now reports E2001: annotate it (local count: number | string = 0) or use a second local.
  • In strict mode nil no longer fits a local declared with a non-optional value: write local timer: TimerHandle? = … for one you clear later.
  • pcall and xpcall results are typed as the game returns them: test the first result (if ok then) before using the others; until then the second value may be the error (unknown).
  • W3031 now names the new reasons a function isn't inlined.
  • @inline on a private method with a statement body is no longer W3031.
  • wowlua init turns the new optimizations off in an adopted addon's release profile.
  • Registry dependencies no longer stop with E4102 "not available yet"; E4102 now reports a package or version the registry doesn't have.
  • wowlua add <name> without a source adds a registry dependency with ^ and its newest version.
  • wowlua update <name> --precise <version> pins a registry dependency to a version.
  • Publishing a library no longer needs an up-to-date wowlua.lock.

Fixed

  • C_Texture.GetAtlasInfo finds the atlases whose names contain a space (Raid Frame, shop-virtual currency-menu-bg).
  • Function descriptions taken from old-style warcraft.wiki.gg pages no longer include the page's raw markup (----, ;''Returns'').
  • The router checks the types of run's parameters against args and flags (E8112).
  • L.KEY({...}) reports a missing or unknown placeholder.
  • L["1ST"] works for locale keys that start with a digit.
  • The minimap button of wowlua:launcher follows profile switches.
  • print.to accepts ChatFrame3, chat.window(...) and scrolling message frames.
  • local f = log.warn and Log.debug are E8118, and debug.assert used as a value is E3045.
  • W8430 finds yields inside metamethods.
  • E8340 rejects store fields that aren't a FramePosition?.
  • Two launcher.register calls in an if/else are no longer E8080.
  • Assigning to a const reports one E2010 instead of two errors and an E2001.
  • interface and type declared inside a function or do block can be used there.
  • setmetatable(o, C) with C.__index = C gives o the methods of C, and their calls are checked.
  • Comparing a possibly secret value in basic mode is only the warning W2040.
  • Calls of a global function are checked against its overload signatures.
  • if r.maybe then on a record no longer reports E2003 in strict mode.
  • A misspelled method says "has no method", and messages name self in function T:m() as T.
  • E4012 and E0101 (wowlua syntax in a .lua file) read as sentences.
  • Assigning a private or protected field, or using a private static member, from outside the class is E2011.
  • A subclass's inherited constructor no longer depends on file order (E2006 "expected 0").
  • In a decorated function, recursive calls are checked against the decorator's result type.
  • wowlua:format's duration, short, clock, money and date work in wowlua test without test.blizzard-ui: the emulated client has the game UI's SecondsToTime, SecondsToTimeAbbrev, SecondsToClock, GetMoneyString, FormatShortDate, FormatLargeNumber and COPPER_PER_SILVER.
  • format.short returns the time ("2 m") instead of a format string ("%d m").
  • SendChatMessage, DoEmote and CancelEmote work in wowlua test without test.blizzard-ui.
  • NUM_BAG_SLOTS and NUM_TOTAL_EQUIPPED_BAG_SLOTS are defined in camelot tests without test.blizzard-ui.
  • A status bar's OnValueChanged and OnMinMaxChanged get a secret after a secret SetValue or SetMinMaxValues, and HasSecretAspect(Enum.SecretAspect.BarValue) reports it; their handler is (self, value).
  • C_Container.GetContainerItemInfo returns nil for an item without item data, and such an item in a world profile no longer makes Blizzard's UI raise an error.
  • mock.fireEvent rejects a wrongly typed enumeration value (mock.fireEvent("BAG_UPDATE", "x")).
  • FormatShortDate's year is optional.
  • Hover and completion show Blizzard's own descriptions where warcraft.wiki.gg has none.
  • The example addons' tests pass on every flavor they list.
  • Code removed by @if no longer warns W1001 about names of an import that @if also removes.
  • A missing module reports one E1015, without the extra "imports need the package context" error, and its imported names no longer warn W1001.
  • With line-mode: "pretty" or "statement", trailing comments stay after the code of their line.
  • A publish target that minifies differently from its profile (minify: "max") gets its own build id, so wowlua trace decodes its errors with the right maps.
  • wowlua dev started in the package folder no longer prints an empty folder name.
  • publish --dry-run without a CurseForge token no longer contacts CurseForge or adds E4202.
  • A new library package no longer warns W1003.
  • A misspelled --target is E4006 instead of doing nothing.
  • Path dependencies work in the browser playground.
  • An asset a profile excludes or another flavor owns is E4307 where it is used, not a misleading E1038 or a missing texture.
  • @wowlua/web: check, build, run and format read what writeFile wrote, also while the language server has the file open, and the language server checks again when the page writes, deletes or replaces files.
  • @wowlua/web: the manifest's check.lints apply as in wowlua check: W2063 is off until set to "warn", "allow" drops a warning and a "deny" lint stops a build or a run.
  • @wowlua/web: a run through the worker without a canvas moves, and what it prints reaches onOutput.
  • A file starting with --!strict (or another directive) no longer gets that directive as a comment after the generated first line.
  • unit.healthPercent no longer answers 0 to 1 on a client with UnitHealthPercent but without CurveConstants.
  • frames.movable with editMode no longer fails on Cata Classic; the option is ignored there.
  • Tooltip hooks (tooltip.hook, @onTooltip) run on the classic flavors again, through the tooltips' scripts.
  • STANDARD_TEXT_FONT, GENERAL_CHAT_DOCK, LE_PARTY_CATEGORY_INSTANCE, LE_EXPANSION_LEVEL_CURRENT and other client constants are declared for every flavor that has them.
  • Messages show record keys that aren't identifiers as written: { ["1ST"]: string }.
  • wowlua explain W2001 (and every plain-Lua warning form) no longer reports "unknown diagnostic code".
  • wowlua build --watch, check --watch and test --watch no longer run twice for one save when the file watcher reports it twice under load.
  • In strict mode, the fast forms (?? as or, ?. as and, interpolation without tostring) now also apply inside class methods, constructors and accessors.
  • wowlua publish runs your tests before packaging, and stops when one fails; --no-test skips them. A --tag is created only once they pass.
  • wowlua build --watch, check --watch and test --watch on Linux no longer run twice for each change: reading a file is not a change.
  • wowlua test with test.blizzard-ui needs a flavor's UI code only when that flavor has test files to run.