From 34d492d0dddf75f15cb6c1b78473d7467bac894f Mon Sep 17 00:00:00 2001 From: sapphi-red <49056869+sapphi-red@users.noreply.github.com> Date: Tue, 7 Nov 2023 01:04:53 +0900 Subject: [PATCH 1/2] docs: add #14834 to migration guide --- docs/guide/migration.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/guide/migration.md b/docs/guide/migration.md index e17b5458efaead..48dddd914c9e63 100644 --- a/docs/guide/migration.md +++ b/docs/guide/migration.md @@ -207,6 +207,8 @@ There are some changes which only affect plugin/tool creators. - The `configurePreviewServer` hook now accepts the `PreviewServer` type instead of `PreviewServerForHook` type. - [[#14818] refactor(preview)!: use base middleware](https://github.com/vitejs/vite/pull/14818) - Middlewares added from the returned function in `configurePreviewServer` now does not have access to the `base` when comparing the `req.url` value. This aligns the behaviour with the dev server. You can check the `base` from the `configResolved` hook if needed. +- [[#14834] fix(types)!: expose httpServer with Http2SecureServer union](https://github.com/vitejs/vite/pull/14834) + - `http.Server | http2.Http2SecureServer` type is now used instead of `http.Server` type where appropriate. Also there are other breaking changes which only affect few users. From a574576b28e2c03c856d87314311814366aacdb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Tue, 7 Nov 2023 01:19:07 +0900 Subject: [PATCH 2/2] =?UTF-8?q?docs:=20remove=20"type",=20thanks=20patak?= =?UTF-8?q?=20=F0=9F=AB=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: patak --- docs/guide/migration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/migration.md b/docs/guide/migration.md index 48dddd914c9e63..a6f708702e6668 100644 --- a/docs/guide/migration.md +++ b/docs/guide/migration.md @@ -208,7 +208,7 @@ There are some changes which only affect plugin/tool creators. - [[#14818] refactor(preview)!: use base middleware](https://github.com/vitejs/vite/pull/14818) - Middlewares added from the returned function in `configurePreviewServer` now does not have access to the `base` when comparing the `req.url` value. This aligns the behaviour with the dev server. You can check the `base` from the `configResolved` hook if needed. - [[#14834] fix(types)!: expose httpServer with Http2SecureServer union](https://github.com/vitejs/vite/pull/14834) - - `http.Server | http2.Http2SecureServer` type is now used instead of `http.Server` type where appropriate. + - `http.Server | http2.Http2SecureServer` is now used instead of `http.Server` where appropriate. Also there are other breaking changes which only affect few users.