Skip to main content

reforged-types

Generated page

This page is generated from packages/reforged-types/CHANGELOG.md by docs:collect. Edit the source, not this page.

1.0.0-alpha.3​

Minor Changes​

  • #352 34afe2c Thanks @wyller! - BlzFrameGetParent now returns framehandle | undefined: the Nullability sweep saw it return nothing for a destroyed frame on 3.0.0.24268. Check its result before you use it, as Frame.getParent() already does. Sixteen more Natives keep their non-null return, now backed by the sweep: CreateTimer, CreateTrigger, CreateRegion, CreateCameraSetup, GetLocalPlayer, Location, Rect, Condition, Filter, And, Or, Not, GetOwningPlayer, GetUnitLoc, CameraSetupGetDestPositionLoc and TriggerAddAction. Each carries a @remarks with the cases measured. Trigger.addAction drops a check for a nil the game never returned.

1.0.0-alpha.2​

Patch Changes​

  • #310 0640604 Thanks @wyller! - GameCache.restoreUnit returns the restored unit as a Unit, and throws reforged-ts: failed to create Unit (<key>) when the game creates none, instead of returning the raw unit handle or undefined. GameCache.store takes a Unit instead of the raw unit handle. GetStoredString is typed string, not string | undefined: the game returns "" for a missing key.

1.0.0-alpha.1​

Patch Changes​

  • #209 7aa0ede Thanks @phmilk! - The README's "For AI agents" line links the documentation of this version as Markdown for a language model: llms.txt, one link per page, and llms-full.txt, every page in one file. A prerelease links the working tree's docs, https://phmilk.github.io/reforged-ts/docs/next/llms.txt; a stable release links the docs version of its library minor, /docs/<major.minor>/llms.txt.

1.0.0-alpha.0​

Major Changes​

  • #159 05eda1a Thanks @phmilk! - First release under this name, for Warcraft III 3.0.0 and later. reforged-ts is the fork of w3ts 3.0.2; reforged-types, reforged-test and eslint-plugin-reforged are new packages.

Patch Changes​

  • #133 8c2a87a Thanks @wyller! - Mark the 3.0.0 Natives that return a per-client value @async and list them in async-natives.json: the keyboard and mouse polls BlzIsKeyPressed, BlzIsMetaKeyPressed, BlzIsMouseButtonPressed, BlzGetMouseScreenPosX and BlzGetMouseScreenPosY; the local camera's GetCameraFieldControlledByInput and BlzCameraGetCameraType; and the resolution-dependent conversions BlzPixelToFrameX, BlzPixelToFrameY, BlzFrameToPixelX and BlzFrameToPixelY.