From 0a29c2ed3dea803231cd2dc7402a3f11bfb1bbb8 Mon Sep 17 00:00:00 2001 From: Ryan Baier Date: Fri, 15 May 2026 17:36:09 -0700 Subject: [PATCH] fix(review): replace JSZip with fflate to eliminate dynamic script elements JSZip's bundled immediate/setImmediate polyfills contain IE9-era fallbacks that call document.createElement("script"). The branches never run in Obsidian's Electron runtime, but Obsidian's review scanner statically flags them as 4 dynamic script-element creations. fflate is a modern, zero-dependency ZIP library with no such polyfills. The swap also cuts the production bundle from ~315KB to ~174KB. Bump version to 0.1.2. --- CHANGELOG.md | 5 ++ manifest.json | 2 +- package-lock.json | 106 ++++------------------------------------- package.json | 4 +- src/ui/import-modal.ts | 18 +++---- versions.json | 3 +- 6 files changed, 26 insertions(+), 112 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9104e0e..e103073 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.1.2 + +### Fixes +- Replace JSZip with fflate for ZIP extraction. JSZip bundled IE-era setImmediate polyfills that dynamically create `