Skip to content

Commit 86b5e00

Browse files
authored
refactor!: remove deprecated HotBroadcaster related types (#19987)
1 parent 9151c24 commit 86b5e00

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

packages/vite/src/node/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,6 @@ export type {
170170
HmrOptions,
171171
HmrContext,
172172
HotUpdateOptions,
173-
HMRBroadcaster,
174-
HMRBroadcasterClient,
175-
ServerHMRChannel,
176-
HMRChannel,
177173
HotChannelListener,
178174
HotChannel,
179175
ServerHotChannel,

packages/vite/src/node/server/hmr.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ interface PropagationBoundary {
7272
export interface HotChannelClient {
7373
send(payload: HotPayload): void
7474
}
75-
/** @deprecated use `HotChannelClient` instead */
76-
export type HMRBroadcasterClient = HotChannelClient
7775

7876
export type HotChannelListener<T extends string = string> = (
7977
data: InferCustomEventPayload<T>,
@@ -105,8 +103,6 @@ export interface HotChannel<Api = any> {
105103

106104
api?: Api
107105
}
108-
/** @deprecated use `HotChannel` instead */
109-
export type HMRChannel = HotChannel
110106

111107
export function getShortName(file: string, root: string): string {
112108
return file.startsWith(withTrailingSlash(root))
@@ -1116,8 +1112,6 @@ export type ServerHotChannelApi = {
11161112
export type ServerHotChannel = HotChannel<ServerHotChannelApi>
11171113
export type NormalizedServerHotChannel =
11181114
NormalizedHotChannel<ServerHotChannelApi>
1119-
/** @deprecated use `ServerHotChannel` instead */
1120-
export type ServerHMRChannel = ServerHotChannel
11211115

11221116
export function createServerHotChannel(): ServerHotChannel {
11231117
const innerEmitter = new EventEmitter()
@@ -1157,8 +1151,6 @@ export interface HotBroadcaster extends NormalizedHotChannel {
11571151
addChannel(channel: HotChannel): HotBroadcaster
11581152
close(): Promise<unknown[]>
11591153
}
1160-
/** @deprecated use `environment.hot` instead */
1161-
export type HMRBroadcaster = HotBroadcaster
11621154

11631155
export function createDeprecatedHotBroadcaster(
11641156
ws: NormalizedHotChannel,

0 commit comments

Comments
 (0)