You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: address Obsidian community plugin review warnings (#4)
* chore: bump minAppVersion and replace flagged dependencies
- Bump manifest minAppVersion to 1.6.6 so Vault.getAllFolders /
Vault.getFileByPath are considered available.
- Replace builtin-modules with node:module's builtinModules in the
esbuild config.
- Drop lint-staged in favour of running npm run lint from the
husky pre-commit hook.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix: use activeWindow timer APIs for popout compatibility
Replace setTimeout / clearTimeout calls in DataManager and MapRenderer
with activeWindow.setTimeout / activeWindow.clearTimeout so debounced
saves, hover previews, and resize/zoom handlers continue to work when
the map renders inside a popout window. Store handle types as number
to match the activeWindow return type.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix: use Obsidian DOM helpers for SVG and fragment creation
Swap document.createElementNS('http://www.w3.org/2000/svg', ...),
document.createDocumentFragment(), and document.createElement('div')
calls in MapRenderer and MeasurementController for the Obsidian
createSvg / createFragment / createDiv helpers. Also use createSpan
for the layer range badge and register the Obsidian globals in the
eslint config so no-undef does not flag them.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix: prefer Obsidian DOM helpers and tighten generated-icon types
- Use createEl / createSvg / activeDocument across the remaining
document.createElement* and document.fonts call sites
(mapExport, mapImport, markerPin, mapIcon, renderTemplateManager,
font availability check in types.ts).
- Re-type imports from the gitignored src/generated/ icon modules so
the community-plugin review bot, which sees those imports as any,
no longer flags downstream member access as unsafe. Also type the
dynamic gi-icons-embedded import and its DecompressionStream reader.
- Underscore the unused previewContainer param in
MarkerEditModal.buildSizeOverrides.
- Polyfill createDiv / createEl / createSpan / createSvg /
createFragment / activeWindow / activeDocument globals in the
jsdom test setup so MapRenderer and related tests keep passing.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix: bump version to 1.4.1 and use detached host in dom mocks
- Pre-bump manifest.json + package.json + versions.json from 1.4.0 to
1.4.1 so the manifest's minAppVersion=1.6.6 matches a published-version
mapping in versions.json. semantic-release will still treat this as
the patch bump it computes from the fix: commits on this branch.
- Rework the global createDiv / createEl / createSpan jsdom mocks to
build a detached element instead of appending to document.body,
matching Obsidian's actual global helpers and keeping test DOM
isolated between cases.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments