Repository navigation
v0.1.1
Fixes all findings from the community review report.
Fixed
package-lock.jsonout of sync withpackage.json(root cause of the failed review): the lock file did not record@types/nodeandbuiltin-modules, sonpm ciaborted withEUSAGEand both the source review and the build verification reported a dependency-install failure. The lock file is now in sync —npm cisucceeds.- Removed the unused
builtin-modulesand@types/nodedev dependencies (this project builds with the esbuild CLI only).
Changed
- Replaced the
require()-style imports with a typedimport { remote } from 'electron'(still built as external; runtime behaviour unchanged). - Removed every explicit
any; added minimal ambient typings for the ElectronremoteAPI and the Obsidian internals used. - Empty
catchblocks now log the error; unused catch bindings removed. - Command name no longer repeats the plugin name.
- Settings tab migrated to the declarative settings API (
getSettingDefinitions), so the settings are also reachable from the settings search. README.mdis now bilingual (English + 中文).- Removed the empty heading element created with
createEl('h2').
Verification
npm ci --dry-runpassestsc --noEmit— 0 errorseslint src/ package.json(obsidianmd recommended config) — 0 problems
Note
minAppVersionis now 1.13.0, required by the declarative settings API.