Skip to content

Type the sitespeed.io context and queue message in JSDoc#4

Merged
soulgalore merged 1 commit into
mainfrom
plugin-docs-typedefs
May 31, 2026
Merged

Type the sitespeed.io context and queue message in JSDoc#4
soulgalore merged 1 commit into
mainfrom
plugin-docs-typedefs

Conversation

@soulgalore
Copy link
Copy Markdown
Member

Plugin authors writing against this base class have no IDE help for the
shape of context (the messageMaker/getLogger/filterRegistry/storageManager/
resultUrls hub) or for the queue messages they receive — the only way to
discover the shape today is to read sitespeed.io's source. This change adds
JSDoc typedefs for those objects so that editors offering JSDoc support can
autocomplete context.storageManager, message.runIndex, and the rest
without changing any runtime behaviour. Also drops the stale "UNRELEASED"
marker on the 1.0.2 entry in CHANGELOG.

Co-authored-by: Claude Opus 4.7 (1M context) [email protected]

  Plugin authors writing against this base class have no IDE help for the
  shape of context (the messageMaker/getLogger/filterRegistry/storageManager/
  resultUrls hub) or for the queue messages they receive — the only way to
  discover the shape today is to read sitespeed.io's source. This change adds
  JSDoc typedefs for those objects so that editors offering JSDoc support can
  autocomplete context.storageManager, message.runIndex, and the rest
  without changing any runtime behaviour. Also drops the stale "UNRELEASED"
  marker on the 1.0.2 entry in CHANGELOG.

  Co-authored-by: Claude Opus 4.7 (1M context) [email protected]
@soulgalore soulgalore merged commit 318ae03 into main May 31, 2026
5 checks passed
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.

1 participant