Skip to content

commands: add OptableCommands command-queue addon - #323

Merged
mosherBT merged 2 commits into
masterfrom
commands-addon
Aug 24, 2026
Merged

commands: add OptableCommands command-queue addon#323
mosherBT merged 2 commits into
masterfrom
commands-addon

Conversation

@mosherBT

Copy link
Copy Markdown
Contributor

Why

Wrappers loaded via an async script tag need a command queue so pages can queue calls before the script arrives.

What Changed

New lib/addons/commands.ts exporting OptableCommands. Constructor drains a pre-load queue array, push() executes immediately and returns the value.

How to Test

  • Tested
  • Docs updated — if this adds, changes or removes anything a consumer calls, update the module's .md alongside the code (for example lib/addons/<addon>.md) and the matching README section. New addons ship with a new .md.

Notes

  • Breaking change
  • Requires release

@mosherBT mosherBT self-assigned this Aug 24, 2026
@mosherBT
mosherBT requested review from a team as code owners August 24, 2026 13:58
Comment thread lib/addons/commands.ts
Comment thread lib/addons/commands.md Outdated
Comment thread lib/addons/commands.ts Outdated
@mosherBT
mosherBT merged commit 1863bc8 into master Aug 24, 2026
7 checks passed
@mosherBT
mosherBT deleted the commands-addon branch August 24, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants