Skip to content

Commit

Permalink
chore: releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Sep 27, 2024
1 parent a00af84 commit a450256
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
16 changes: 0 additions & 16 deletions .changeset/five-rats-clean.md

This file was deleted.

17 changes: 17 additions & 0 deletions packages/hot_hook/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# hot-hook

## 0.3.0

### Minor Changes

- 64b51ed: Now Hot-Hook will throw an error when a file marked as "boundary" is not dynamically imported.

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:

```ts
import PostsController from './app/controllers/posts_controller.js'
router.get('/posts', [PostsController, 'index'])
```

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.

Suggesting to reread the readme if you want to understand why a dynamic import is necessary for Hot-Hook to work correctly.

## 0.2.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/hot_hook/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hot-hook",
"description": "Easy hot module reloading (HMR) for Node.js and ESM",
"version": "0.2.6",
"version": "0.3.0",
"main": "index.js",
"type": "module",
"files": [
Expand Down

0 comments on commit a450256

Please sign in to comment.