Skip to content

Clean up base plugin class, add tests and CI#1

Merged
soulgalore merged 1 commit into
mainfrom
base-class-cleanup
May 16, 2026
Merged

Clean up base plugin class, add tests and CI#1
soulgalore merged 1 commit into
mainfrom
base-class-cleanup

Conversation

@soulgalore
Copy link
Copy Markdown
Member

The base class had a log() method that was unreachable because the
constructor assigned this.log to the logger instance, shadowing the
prototype method. Plugin authors who tried the documented wrapper got
the raw logger instead. Remove the wrapper so what's documented matches
what's actually used.

While here, surface bad usage earlier: validate that the config object
has the required fields up front with a clear error, instead of letting
a confusing Cannot read properties of undefined escape later.

Add a real README an engines field,
and a minimal node:test suite plus a GitHub Actions workflow so
regressions in the base class get caught before they reach plugin
authors.

Co-authored-by: Claude noreply@anthropic.com

  The base class had a log() method that was unreachable because the
  constructor assigned this.log to the logger instance, shadowing the
  prototype method. Plugin authors who tried the documented wrapper got
  the raw logger instead. Remove the wrapper so what's documented matches
  what's actually used.

  While here, surface bad usage earlier: validate that the config object
  has the required fields up front with a clear error, instead of letting
  a confusing Cannot read properties of undefined escape later.

  Add a real README an engines field,
  and a minimal node:test suite plus a GitHub Actions workflow so
  regressions in the base class get caught before they reach plugin
  authors.

Co-authored-by: Claude noreply@anthropic.com
@soulgalore soulgalore merged commit 6506e7d into main May 16, 2026
3 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