From a5b9c65775bb14f1dda0e1935219602a34b9fdd3 Mon Sep 17 00:00:00 2001 From: callumalpass Date: Fri, 2 Oct 2026 00:43:05 +1000 Subject: [PATCH] Release 0.4.0 and raise the mobile bundle budget to 5 MB --- manifest.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- scripts/check-mobile.mjs | 7 ++++--- versions.json | 3 ++- 5 files changed, 10 insertions(+), 8 deletions(-) diff --git a/manifest.json b/manifest.json index 5382e39..b6bf3ba 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "mdbase-obsidian", "name": "mdbase", - "version": "0.3.2", + "version": "0.4.0", "minAppVersion": "1.11.4", "description": "Edit mdbase types and mirror hosted collections through mdbase Connect.", "author": "calluma", diff --git a/package-lock.json b/package-lock.json index 7247989..d51caa2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mdbase-obsidian", - "version": "0.3.2", + "version": "0.4.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "mdbase-obsidian", - "version": "0.3.2", + "version": "0.4.0", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 777eda1..ddeece9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mdbase-obsidian", - "version": "0.3.2", + "version": "0.4.0", "description": "The Obsidian gateway to mdbase types and mdbase Connect", "main": "main.js", "type": "module", diff --git a/scripts/check-mobile.mjs b/scripts/check-mobile.mjs index 611273d..b35718e 100644 --- a/scripts/check-mobile.mjs +++ b/scripts/check-mobile.mjs @@ -17,9 +17,10 @@ const gzipBytes = gzipSync(bundle).byteLength; // Sync reliability adds ~25 KB raw / ~8 KB gzip: request deadlines and retry, // the sync scheduler, automatic conflict settling with a three-way merge // (node-diff3 is ~5 KB of that), device ownership and diagnostics. -// Leave a narrow margin above the resulting bundle. -const rawBudget = 800 * 1024; -const gzipBudget = 232 * 1024; +// The product budget is 5 MB (raw and gzip); this check still guards against +// Node-only imports and runaway growth. +const rawBudget = 5 * 1024 * 1024; +const gzipBudget = 5 * 1024 * 1024; const forbidden = [ /require\((["'])node:(?:fs|path|crypto|os|worker_threads|child_process)\1\)/, /require\((["'])(?:fs|path|crypto|os|worker_threads|child_process)\1\)/, diff --git a/versions.json b/versions.json index 391f849..0940b50 100644 --- a/versions.json +++ b/versions.json @@ -2,5 +2,6 @@ "0.1.0": "1.5.0", "0.3.0": "1.11.4", "0.3.1": "1.11.4", - "0.3.2": "1.11.4" + "0.3.2": "1.11.4", + "0.4.0": "1.11.4" }