Skip to content

Commit e72aa84

Browse files
merge vite@b80d5ec
1 parent e1928c2 commit e72aa84

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

docs/changes/hotupdate-hook.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ interface HmrContext {
2828

2929
This hook is called once for all environments, and the passed modules have mixed information from the Client and SSR environments only. Once frameworks move to custom environments, a new hook that is called for each of them is needed.
3030

31-
The new `hotUpdate` hook works in the same way as `handleHotUpdate` but it is called for each environment and receives a new `HotUpdateContext` instance:
31+
The new `hotUpdate` hook works in the same way as `handleHotUpdate` but it is called for each environment and receives a new `HotUpdateOptions` instance:
3232

3333
```ts
34-
interface HotUpdateContext {
34+
interface HotUpdateOptions {
3535
type: 'create' | 'update' | 'delete'
3636
file: string
3737
timestamp: number

docs/guide/api-environment-plugins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Plugins should set default values using the `config` hook. To configure each env
5858
The `hotUpdate` hook allows plugins to perform custom HMR update handling for a given environment. When a file changes, the HMR algorithm is run for each environment in series according to the order in `server.environments`, so the `hotUpdate` hook will be called multiple times. The hook receives a context object with the following signature:
5959
6060
```ts
61-
interface HotUpdateContext {
61+
interface HotUpdateOptions {
6262
type: 'create' | 'update' | 'delete'
6363
file: string
6464
timestamp: number

docs/guide/migration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ There are other breaking changes which only affect few users.
9999
- This PR not only introduces a breaking change mentioned above as "Default value for `resolve.conditions`", but also makes `resolve.mainFields` to not be used for no-externalized dependencies in SSR. If you were using `resolve.mainFields` and want to apply that to no-externalized dependencies in SSR, you can use [`ssr.resolve.mainFields`](/config/ssr-options#ssr-resolve-mainfields).
100100
- [[#18493] refactor!: remove fs.cachedChecks option](https://github.com/vitejs/vite/pull/18493)
101101
- This opt-in optimization was removed due to edge cases when writing a file in a cached folder and immediately importing it.
102+
- [[#18697] fix(deps)!: update dependency dotenv-expand to v12](https://github.com/vitejs/vite/pull/18697)
103+
- Variables used in interpolation should be declared before the interpolation now. For more details, see [the `dotenv-expand` changelog](https://github.com/motdotla/dotenv-expand/blob/v12.0.1/CHANGELOG.md#1200-2024-11-16).
102104

103105
## Migration from v4
104106

0 commit comments

Comments
 (0)