Skip to content

History / Foundry Lifecycle

Revisions

  • Document the full-name character key on clients with region-wide unique names, Lifecycle API version 4, and the one-time move of old per-character data; drop em dashes from the migration guide

    @Royaleint Royaleint committed Sep 27, 2026
  • Document that addon-loaded can wait for the character's identity On some clients, ADDON_LOADED can fire before the game has resolved the player's own name and realm, briefly, on a cold client-session login. Foundry.Lifecycle now holds a consumer's addon-loaded phase (and its login phase, if it would otherwise fire first) through that window instead of firing over a placeholder identity, waiting out combat if the player logs in mid-fight, and holding a newly-loaded addon alongside any addon still waiting so neither runs ahead of the other. Foundry.DB's identity gate now rejects a non-English client's own localized version of the placeholder too, matching the literal "Unknown" it already rejected. Document both so a consumer reading either page understands why constructing a database inside OnAddonLoaded, as already recommended, protects against a refusal that used to require a workaround.

    @Royaleint Royaleint committed Sep 27, 2026
  • Document v1.0.105: OnUnloading, restriction guard, SavedVariables size report, event name validation Lifecycle gains the OnUnloading section and moves to API version 2. Commands gains Guards.NotRestricted, the restrictionNotice option, and an API version callout the page never had. DB gains OnSavedVariablesTooLarge and moves to API version 2; its "no callbacks" note and frame note are corrected to match. Events documents the up-front event name validation. By BawrLabs

    @Royaleint Royaleint committed Sep 1, 2026
  • Correct the module reference pages against source; remove em-dashes Source-grounded review of the four module reference pages (verified each claim against the live module code and Blizzard ScrollBox source): - Commands: clarify Unregister accepts a primary name or any alias; note the slash-name collision refusal and the single-slash-token rule. - Events: owner is a stored identity label, not read elsewhere (it does not name the frame, surface in diagnostics, or scope :UnregisterAll, which is instance-scoped); Destroy detaches the OnEvent script and hides the frame rather than "releasing" it; note IsRegistered/GetNativeHandles return nil after Destroy. - Lifecycle: catch-up hooks fire synchronously inside the registration call (the prior "or one frame later" hedge was wrong); GetNativeHandles hooks table is a detached copy, not read-only. - DB: db.profile resolves off the saved profileKey, not always sv.profiles["Default"]; the "settings ready" moment is DB-owned, not a Foundry.Lifecycle call; note the both-builds raise on a forged/non-controller value. Also removed every em-dash from the four pages (house style). By BawrLabs.

    @Royaleint Royaleint committed Jun 14, 2026
  • Add the Foundry.Lifecycle reference; mark Lifecycle available Adds the Foundry.Lifecycle API reference and updates Home to mark Lifecycle available with its reference link. By BawrLabs.

    @Royaleint Royaleint committed Jun 4, 2026