Skip to content

Commit a450256

Browse files
committed
chore: releases
1 parent a00af84 commit a450256

3 files changed

Lines changed: 18 additions & 17 deletions

File tree

.changeset/five-rats-clean.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

packages/hot_hook/CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# hot-hook
22

3+
## 0.3.0
4+
5+
### Minor Changes
6+
7+
- 64b51ed: Now Hot-Hook will throw an error when a file marked as "boundary" is not dynamically imported.
8+
9+
In AdonisJS, we had a few users complaining about having to restart the server to see the changes applied. Generally, the cause of this was a controller file not dynamically imported:
10+
11+
```ts
12+
import PostsController from './app/controllers/posts_controller.js'
13+
router.get('/posts', [PostsController, 'index'])
14+
```
15+
16+
Before this new version, this code did not throw an error, but it did not work either. You had to reload the server to see the changes. Now Hot-Hook will throw an error for this kind of case.
17+
18+
Suggesting to reread the readme if you want to understand why a dynamic import is necessary for Hot-Hook to work correctly.
19+
320
## 0.2.6
421

522
### Patch Changes

packages/hot_hook/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "hot-hook",
33
"description": "Easy hot module reloading (HMR) for Node.js and ESM",
4-
"version": "0.2.6",
4+
"version": "0.3.0",
55
"main": "index.js",
66
"type": "module",
77
"files": [

0 commit comments

Comments
 (0)