From f2dad7d43f3ebc6c21458cc84a8b3479d43b3d31 Mon Sep 17 00:00:00 2001 From: jaty <92199761+jatyPeng@users.noreply.github.com> Date: Wed, 24 Sep 2025 18:20:13 +0800 Subject: [PATCH 1/5] =?UTF-8?q?feat=EF=BC=9A=E5=85=BC=E5=AE=B9=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E5=8D=8F=E8=AE=AE=EF=BC=8C=E4=B8=BA=E4=BA=86?= =?UTF-8?q?=E5=9C=A8electron=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit feat:兼容自定义协议,为了在electron使用 --- src/libs/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/utils.ts b/src/libs/utils.ts index d4dc48a9..bd31ddee 100644 --- a/src/libs/utils.ts +++ b/src/libs/utils.ts @@ -319,7 +319,7 @@ export function formatAppURL(url: string | null, appName: string | null = null): * BUG FIX: Never using '/' to complete url, refer to https://github.com/jd-opensource/micro-app/issues/1147 */ const fullPath = `${origin}${pathname}${search}` - return /^https?:\/\//.test(fullPath) ? fullPath : '' + return /^\w+?:\/\//.test(fullPath) ? fullPath : '' } catch (e) { logError(e, appName) return '' @@ -366,7 +366,7 @@ export function getEffectivePath(url: string): string { export function CompletionPath(path: string, baseURI: string): string { if ( !path || - /^((((ht|f)tps?)|file):)?\/\//.test(path) || + /^((\w+):)?\/\//.test(path) || /^(data|blob):/.test(path) ) return path From 3f067859e6572c68abb0bb6c61a53b529745ae95 Mon Sep 17 00:00:00 2001 From: jaty <92199761+jatyPeng@users.noreply.github.com> Date: Wed, 24 Sep 2025 18:22:02 +0800 Subject: [PATCH 2/5] =?UTF-8?q?feat=EF=BC=9A=E5=85=BC=E5=AE=B9=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E5=8D=8F=E8=AE=AE=EF=BC=8C=E4=B8=BA=E4=BA=86?= =?UTF-8?q?=E5=9C=A8electron=E4=BD=BF=E7=94=A8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit feat:兼容自定义协议,为了在electron使用。 --- src/sandbox/adapter.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sandbox/adapter.ts b/src/sandbox/adapter.ts index 72938c57..b40489dd 100644 --- a/src/sandbox/adapter.ts +++ b/src/sandbox/adapter.ts @@ -157,7 +157,9 @@ export function updateElementInfo (node: T, appName: string | null): T { if (isAnchorElement(node)) { // a 标签 const microApp = AppManager.getInstance().get(appName) - if (microApp) { + const hrefDescriptor = Object.getOwnPropertyDescriptor(node, 'href') + const hrefConfigurable = hrefDescriptor?.configurable || !hrefDescriptor + if (microApp && hrefConfigurable) { props.href = { get() { return this.getAttribute('href') From 092399ca900b22c55d7355e299a07ff3fb39a9c6 Mon Sep 17 00:00:00 2001 From: jaty <92199761+jatyPeng@users.noreply.github.com> Date: Wed, 24 Sep 2025 18:56:20 +0800 Subject: [PATCH 3/5] Update package.json Update package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 68a6cb43..5c25ef39 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "@micro-zoe/micro-app", - "version": "1.0.0-rc.27", + "name": "bl-micro-app", + "version": "1.0.0", "description": "A lightweight, efficient and powerful micro front-end framework", "private": false, "main": "lib/index.min.js", From b033a280c8dfd62635413f9d55ad4b964c5e42a4 Mon Sep 17 00:00:00 2001 From: jaty <92199761+jatyPeng@users.noreply.github.com> Date: Wed, 24 Sep 2025 19:14:56 +0800 Subject: [PATCH 4/5] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5c25ef39..2a1b6216 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/jd-opensource/micro-app.git" + "url": "https://github.com/kuaijing-bailing/micro-app.git" }, "publishConfig": { "access": "public" From 3cdb6798c5cabde5fe56b111e6a899d19ccfadbe Mon Sep 17 00:00:00 2001 From: jaty <92199761+jatyPeng@users.noreply.github.com> Date: Wed, 24 Sep 2025 19:15:35 +0800 Subject: [PATCH 5/5] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2a1b6216..bbcfd1ec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bl-micro-app", - "version": "1.0.0", + "version": "1.0.1", "description": "A lightweight, efficient and powerful micro front-end framework", "private": false, "main": "lib/index.min.js",