Skip to content

fix: clear the Obsidian plugin-review warnings from 2.6.0 - #598

Merged
Leo310 merged 2 commits into
mainfrom
fix/obsidian-review-2.6.0
Nov 26, 2026
Merged

Leo310 merged 2 commits into
mainfrom
fix/obsidian-review-2.6.0

Conversation

@Leo310

@Leo310 Leo310 commented Nov 26, 2026

Copy link
Copy Markdown
Member

What

Clears the Obsidian plugin-review warnings that gave 2.6.0 the "Caution" label, except one:

  • Source code: every listed warning is fixed except getSettingDefinitions(). That one needs Obsidian 1.13's declarative settings API, which is a separate project because our settings UI is Svelte.
    • Removed the redundant type assertions. In tagSearch.ts the variable is annotated instead, because View is assignable to the local SearchView.
    • Replaced globalThis with self in asyncLocalStorage.ts and vaultSettings.ts. Both are in hnswWorker's import graph, and self is the window on the main thread and the scope in a worker.
    • window.setTimeout/clearTimeout in openai-compatible.ts, and window.cancelAnimationFrame, which the autofix also caught.
    • createEl("canvas") for the PDF thumbnail.
    • abortErrorFor is typed Error: every abort in the plugin passes a DOMException reason or none.
    • The rethrows in embedFailedAttempt are typed as Error.
    • Function-typed properties instead of destructured methods, for unbound-method.
    • await workspace.revealLeaf.
    • async wrapper for the rename listeners passed to Promise.all.
    • Renamed WidgetLib.global to globalName; the property name tripped the global rule.
  • Dependencies: bun update within ranges, plus raised overrides for the transitive pins. bun audit goes from 43 to 0. Notable moves: @modelcontextprotocol/sdk 1.32, @hono/node-server 2, pixi.js 8.23, @langchain/core 1.5, obsidian types 1.14.

Reproduced with eslint-plugin-obsidianmd recommended + typescript-eslint in a scratch dir. The rules the review reported now pass, except prefer-setting-definitions.

How I tested it

bun run check, format, lint, test (2449 pass) and bun run build all pass. The prod bundle has 0 matches for child_process|spawn|execFile|new Function|eval, so the MCP SDK and pixi shims still apply after the bumps. Not tried live yet; the dev build is in slot WT1 (S2B WT1 vault). Worth checking there: the graph (pixi bump), a chat turn, and an HTTP MCP server (MCP SDK 1.32).

AI assistance: Claude Code made the change from the 2.6.0 review report and verified it with the local lint ruleset, check, tests and build; the maintainer has not yet tested it live.

Checklist

  • bun run check, bun run format, bun run lint, and bun run test pass locally
  • I tried the change in a real Obsidian vault (or explained above why that isn't applicable)
  • I read CONTRIBUTING.md, including the section on AI assistance
  • If this adds a provider, a bundled skill, a built-in tool, or changes manifest.json: I noted that the docs site needs updating (n/a)

Leo310 and others added 2 commits November 26, 2026 22:07
Drop redundant type assertions, use window/self instead of globalThis,
window timers, createEl for the PDF thumbnail canvas, Error-typed
rejection and rethrow, function-typed props instead of unbound methods,
await revealLeaf, and rename WidgetLib.global (tripped no-global).

Co-Authored-By: Claude <noreply@anthropic.com>
bun update within ranges, plus raised overrides for the transitive
pins (hono, @hono/node-server 2, fast-uri, qs, body-parser, ip-address,
proxy-addr, zod, @modelcontextprotocol/sdk, postcss-selector-parser,
source-map-js). bun audit: 43 -> 0.

Co-Authored-By: Claude <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The reviewed changes appear safe to merge; no actionable issue was established.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The reviewed changes appear safe to merge; no actionable issue was established.

Summary

Updates dependencies and clears Obsidian review warnings through small source changes.

  • Plugin code uses clearer browser and type declarations.
  • Tag search waits for its pane before focusing it.
  • Updated packages support the plugin’s existing AI, graph, and UI workflows.

No actionable issue was established. Tests and builds were not run during this review.

Acknowledged deferral: Leo310 explicitly leaves getSettingDefinitions() for a separate project because the settings UI uses Svelte.

Reviews (1) · Last reviewed commit: "chore(deps): clear the dependency adviso..." · Reviewed by Greptile

@Leo310
Leo310 merged commit dffaebb into main Nov 26, 2026
3 checks passed
@Leo310
Leo310 deleted the fix/obsidian-review-2.6.0 branch November 26, 2026 21:20
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