Skip to content

Promote dev to main for 1.4.2 release - #13

Merged
nikoneex merged 3 commits into
mainfrom
dev
Sep 4, 2026
Merged

nikoneex merged 3 commits into
mainfrom
dev

Conversation

@nikoneex

@nikoneex nikoneex commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Summary

Rolls dev into main for the 1.4.2 hotfix. Tag 1.4.2 already exists on dev (1a2439e); this PR carries that commit — plus the createDiv fix from #12 — onto main.

Kept as a draft until the tagged GitHub release is published and Community Plugins picks up 1.4.2.

Commits in this rollup (3)

What 1.4.2 ships

Under the hood:

  • Switched the recipe-widget root in the editor extension to Obsidian's global createDiv helper (was view.dom.ownerDocument.createElement('div')), closing the last plugin-review-scanner warning from the 2026-09 review round.

That's the whole delta. No user-visible change.

Context

Follows the 1.4.1 plugin-review round; the createDiv finding was the only one we shipped 1.4.1 without fixing (on a wrong-in-hindsight belief that all createDiv helpers append). Global createDiv returns a detached element (obsidian.d.ts:193) — exactly what CodeMirror's toDOM() contract wants.

Compatibility

Still requires Obsidian 1.4.4+. minAppVersion unchanged.

Test plan

  • Draft GitHub release for 1.4.2 published with main.js / manifest.json / styles.css attached.
  • gh release download 1.4.2 --repo nikoneex/obsidian-kaper --pattern main.js --output /tmp/main-1.4.2.js && gh attestation verify /tmp/main-1.4.2.js --repo nikoneex/obsidian-kaper succeeds.
  • Community-plugin update flow picks up 1.4.2 in a test vault.
  • Manual: open a recipe in a popout window; widget renders and inputs receive focus without regressions.
  • Ready-for-review + merge only after Community Plugins is serving 1.4.2.

Obsidian's global createDiv returns a detached element and satisfies
both CodeMirror's toDOM() contract and the plugin-review scanner's
prefer-create-el rule.

The earlier "no change" resolution for this finding was based on a
wrong assumption that all createDiv helpers append their new element.
The Node-prototype method does, but the global helper doesn't
(obsidian.d.ts:193). Updates docs/obsidian-review-warnings.md
accordingly.
Use createDiv for widget root (plugin-review Finding 2 revisited)
@nikoneex
nikoneex marked this pull request as ready for review September 4, 2026 12:33
@nikoneex
nikoneex merged commit 5522c0e into main Sep 4, 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