From 2928447c0aa1aa5ea28d00ae2b5202b88a698a47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E8=B1=86?= <65597591+wjn760371@users.noreply.github.com> Date: Wed, 14 Aug 2024 11:50:28 +0800 Subject: [PATCH] feat: export head stream err recover script component (#6967) * feat: export head stream err recover script component * fix: fix downgrade hostname * chore: update plugin-stream-error version * fix: head-stream-error independent export from plugin-stream-error * chore: changelog * chore: changelog --- packages/plugin-stream-error/CHANGELOG.md | 6 ++++++ packages/plugin-stream-error/package.json | 5 +++-- .../headStreamErrorRecoverScript.tsx | 18 ++++++++++++++++++ .../src/{index.ts => index.tsx} | 0 4 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 packages/plugin-stream-error/src/components/headStreamErrorRecoverScript.tsx rename packages/plugin-stream-error/src/{index.ts => index.tsx} (100%) diff --git a/packages/plugin-stream-error/CHANGELOG.md b/packages/plugin-stream-error/CHANGELOG.md index 857067ff71..4d07b1b4c4 100644 --- a/packages/plugin-stream-error/CHANGELOG.md +++ b/packages/plugin-stream-error/CHANGELOG.md @@ -5,3 +5,9 @@ ### Major Changes - f2c7df96: feat: plugin deal with stream error + +## 1.0.1 + +### Patch Change + +- feat: plugin export head stream error recover component diff --git a/packages/plugin-stream-error/package.json b/packages/plugin-stream-error/package.json index f59ce11ee5..eb98db096e 100644 --- a/packages/plugin-stream-error/package.json +++ b/packages/plugin-stream-error/package.json @@ -1,6 +1,6 @@ { "name": "@ice/plugin-stream-error", - "version": "1.0.0", + "version": "1.0.1", "description": "", "license": "MIT", "type": "module", @@ -9,7 +9,8 @@ "types": "./esm/index.d.ts", "import": "./esm/index.js", "default": "./esm/index.js" - } + }, + "./head-stream-error": "./esm/components/headStreamErrorRecoverScript.js" }, "main": "./esm/index.js", "types": "./esm/index.d.ts", diff --git a/packages/plugin-stream-error/src/components/headStreamErrorRecoverScript.tsx b/packages/plugin-stream-error/src/components/headStreamErrorRecoverScript.tsx new file mode 100644 index 0000000000..0594bad8a7 --- /dev/null +++ b/packages/plugin-stream-error/src/components/headStreamErrorRecoverScript.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export default function HeadStreamErrorRecoverScript({ downgradeCSRHostname }) { + return ( +