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 Events and Getting Started pages; update Home
Adds the Foundry.Events reference and a Getting Started guide for new authors, and updates Home to mark Commands and Events as available with their reference links. By BawrLabs.
Add Foundry wiki: Home and Foundry.Commands pages
Replace the placeholder Home with the project landing page (modules,
runtime handle, roadmap) and add the Foundry.Commands API reference.
Co-Authored-By: Royaleint and Claude Code