From abd4a21f8fe182d1a8b00a68069c073605347983 Mon Sep 17 00:00:00 2001 From: mleku Date: Sat, 20 Dec 2025 08:52:44 +0100 Subject: [PATCH] Release v1.0.2 - Fix Buffer polyfill race condition in prompt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix race condition where permission prompts failed on first request due to Buffer polyfill not being initialized during module evaluation - Replace Buffer.from() with native browser APIs (atob + TextDecoder) in prompt.ts for reliable base64 decoding - Add debug logging to reckless mode approval checks - Update permission encryption to support v2 vault key format - Enhance LoggerService with warn/error/debug methods and log storage - Add logs component for viewing extension activity - Simplify deriving modal component - Rename icon files from gooti to plebian-signer - Update permissions component with improved styling Files modified: - projects/chrome/src/prompt.ts - projects/firefox/src/prompt.ts - projects/*/src/background-common.ts - projects/common/src/lib/services/logger/logger.service.ts - projects/*/src/app/components/home/logs/ (new) - projects/*/public/*.svg, *.png (renamed) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude Opus 4.5 --- package.json | 6 +- projects/chrome/public/manifest.json | 2 +- ...with-bg.png => plebian-signer-with-bg.png} | Bin .../public/{gooti.svg => plebian-signer.svg} | 0 projects/chrome/public/prompt.html | 14 +-- projects/chrome/src/app/app.routes.ts | 5 + .../permissions/permissions.component.html | 7 +- .../permissions/permissions.component.scss | 4 + .../permissions/permissions.component.ts | 8 ++ .../app/components/home/home.component.html | 4 + .../components/home/logs/logs.component.html | 20 ++++ .../components/home/logs/logs.component.scss | 93 ++++++++++++++++++ .../components/home/logs/logs.component.ts | 34 +++++++ projects/chrome/src/background-common.ts | 50 +++++++--- projects/chrome/src/background.ts | 2 + projects/chrome/src/prompt.ts | 72 ++++++++------ .../deriving-modal.component.html | 3 +- .../deriving-modal.component.scss | 8 -- .../deriving-modal.component.ts | 38 +------ .../src/lib/services/logger/logger.service.ts | 58 ++++++++++- .../services/storage/related/permission.ts | 17 ++-- projects/firefox/public/manifest.json | 2 +- ...with-bg.png => plebian-signer-with-bg.png} | Bin .../public/{gooti.svg => plebian-signer.svg} | 0 projects/firefox/public/prompt.html | 14 +-- projects/firefox/src/app/app.routes.ts | 5 + .../permissions/permissions.component.html | 7 +- .../permissions/permissions.component.scss | 4 + .../permissions/permissions.component.ts | 8 ++ .../app/components/home/home.component.html | 4 + .../components/home/logs/logs.component.html | 20 ++++ .../components/home/logs/logs.component.scss | 93 ++++++++++++++++++ .../components/home/logs/logs.component.ts | 34 +++++++ projects/firefox/src/background-common.ts | 50 +++++++--- projects/firefox/src/background.ts | 2 + projects/firefox/src/prompt.ts | 72 ++++++++------ 36 files changed, 602 insertions(+), 158 deletions(-) rename projects/chrome/public/{gooti-with-bg.png => plebian-signer-with-bg.png} (100%) rename projects/chrome/public/{gooti.svg => plebian-signer.svg} (100%) create mode 100644 projects/chrome/src/app/components/home/logs/logs.component.html create mode 100644 projects/chrome/src/app/components/home/logs/logs.component.scss create mode 100644 projects/chrome/src/app/components/home/logs/logs.component.ts rename projects/firefox/public/{gooti-with-bg.png => plebian-signer-with-bg.png} (100%) rename projects/firefox/public/{gooti.svg => plebian-signer.svg} (100%) create mode 100644 projects/firefox/src/app/components/home/logs/logs.component.html create mode 100644 projects/firefox/src/app/components/home/logs/logs.component.scss create mode 100644 projects/firefox/src/app/components/home/logs/logs.component.ts diff --git a/package.json b/package.json index 628f695..a5170a9 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "name": "plebeian-signer", - "version": "v1.0.1", + "version": "v1.0.2", "custom": { "chrome": { - "version": "v1.0.1" + "version": "v1.0.2" }, "firefox": { - "version": "v1.0.1" + "version": "v1.0.2" } }, "scripts": { diff --git a/projects/chrome/public/manifest.json b/projects/chrome/public/manifest.json index 8be0cf2..e2bf71c 100644 --- a/projects/chrome/public/manifest.json +++ b/projects/chrome/public/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 3, "name": "Plebeian Signer - Nostr Identity Manager & Signer", "description": "Manage and switch between multiple identities while interacting with Nostr apps", - "version": "1.0.1", + "version": "1.0.2", "homepage_url": "https://git.mleku.dev/mleku/plebeian-signer", "options_page": "options.html", "permissions": [ diff --git a/projects/chrome/public/gooti-with-bg.png b/projects/chrome/public/plebian-signer-with-bg.png similarity index 100% rename from projects/chrome/public/gooti-with-bg.png rename to projects/chrome/public/plebian-signer-with-bg.png diff --git a/projects/chrome/public/gooti.svg b/projects/chrome/public/plebian-signer.svg similarity index 100% rename from projects/chrome/public/gooti.svg rename to projects/chrome/public/plebian-signer.svg diff --git a/projects/chrome/public/prompt.html b/projects/chrome/public/prompt.html index 8c9b8b2..8bf219a 100644 --- a/projects/chrome/public/prompt.html +++ b/projects/chrome/public/prompt.html @@ -226,7 +226,7 @@