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
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.
Document DB's load-order dependency and how to extend Blizzard-owned menus
Foundry.DB's page now states its hard load-time dependency on Events and
Lifecycle. Foundry.Menu's page adds a section on using the raw
Menu.ModifyMenu global to extend menus Blizzard owns, since the
controller API only covers menus an addon builds itself.
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
docs: catch the guides up to the shipped module set; add SavedVariables migration warnings (Foundry#5)
The migration guide predated Settings, Tooltip, and Menu: it still told
authors Foundry.Settings "does not exist yet" and covered only five of the
eight shipped modules. It now has mapping sections for AceConfig -> Settings
(with an honest partial-coverage warning: Settings registers panels, it does
not render options tables), EasyMenu/UIDropDownMenu -> Menu, tooltip hooks ->
Tooltip, and AceBucket -> RegisterBucket, plus one-line directions for
AceTimer, AceHook, AceLocale, and AceComm.
New SavedVariables safety material in the DB section: a loud do-not-rename-
your-SavedVariables warning (renaming silently orphans every user''s data and
nothing can detect it), a pcall recovery example for structurally corrupt
saved files (which otherwise brick the addon on every login), the
per-character-profile silent-split behavior, the db.sv escape hatch for
namespace data, rollback safety, and the schema-seam downgrade note.
Packaging-Foundry.md''s three file lists showed five module files where the
shipped manifest has nine - a hand-embedded copy built from the doc would
omit Settings, Tooltip, and Menu.
Smaller corrections: DB.md 8.2 now states the dev/release split for
non-number schema stamps accurately (dev halts before migrate); Events.md
cross-references between 10 and 11 pointed at the wrong sections; Commands.md
dispatch step 3 described help routing as a prefix match when the code
requires a word boundary; consumer name updated to Sift.
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.
Add the Foundry.DB reference; mark DB available
By BawrLabs.