Repository navigation
fix: clear the Obsidian plugin-review warnings from 2.6.0 - #598
Merged
Merged
Conversation
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>
Contributor
[Medium impact] The reviewed changes appear safe to merge; no actionable issue was established. SummaryUpdates dependencies and clears Obsidian review warnings through small source changes.
No actionable issue was established. Tests and builds were not run during this review. Acknowledged deferral: Leo310 explicitly leaves Reviews (1) · Last reviewed commit: "chore(deps): clear the dependency adviso..." · Reviewed by Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Clears the Obsidian plugin-review warnings that gave 2.6.0 the "Caution" label, except one:
getSettingDefinitions(). That one needs Obsidian 1.13's declarative settings API, which is a separate project because our settings UI is Svelte.tagSearch.tsthe variable is annotated instead, becauseViewis assignable to the localSearchView.globalThiswithselfinasyncLocalStorage.tsandvaultSettings.ts. Both are inhnswWorker's import graph, andselfis the window on the main thread and the scope in a worker.window.setTimeout/clearTimeoutinopenai-compatible.ts, andwindow.cancelAnimationFrame, which the autofix also caught.createEl("canvas")for the PDF thumbnail.abortErrorForis typedError: every abort in the plugin passes aDOMExceptionreason or none.embedFailedAttemptare typed asError.unbound-method.await workspace.revealLeaf.asyncwrapper for the rename listeners passed toPromise.all.WidgetLib.globaltoglobalName; the property name tripped theglobalrule.bun updatewithin ranges, plus raisedoverridesfor the transitive pins.bun auditgoes from 43 to 0. Notable moves:@modelcontextprotocol/sdk1.32,@hono/node-server2,pixi.js8.23,@langchain/core1.5,obsidiantypes 1.14.Reproduced with
eslint-plugin-obsidianmdrecommended+ typescript-eslint in a scratch dir. The rules the review reported now pass, exceptprefer-setting-definitions.How I tested it
bun run check,format,lint,test(2449 pass) andbun run buildall pass. The prod bundle has 0 matches forchild_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 WT1vault). 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, andbun run testpass locallymanifest.json: I noted that the docs site needs updating (n/a)