Skip to content

Commit e5ee512

Browse files
committed
chore: releases
1 parent a4bc652 commit e5ee512

File tree

6 files changed

+41
-37
lines changed

6 files changed

+41
-37
lines changed

.changeset/eleven-swans-poke.md

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

.changeset/few-hotels-grab.md

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

packages/dump_viewer/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# @hot-hook/dump-viewer
2+
3+
## 0.2.1
4+
5+
### Patch Changes
6+
7+
- 334f63a: Added missing declaration files for the `@hot-hook/dump-viewer` import.
8+
- Updated dependencies [fa6ed2e]
9+
- hot-hook@0.1.7

packages/dump_viewer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hot-hook/dump-viewer",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"type": "module",
55
"files": [
66
"build"

packages/hot_hook/CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# hot-hook
2+
3+
## 0.1.7
4+
5+
### Patch Changes
6+
7+
- fa6ed2e: This PR adds a new way of configuring hot-hook. This allows you to configure hot-hook without having to modify your codebase.
8+
9+
We introduce a new `hot-hook/register` entrypoint that can be used with Node.JS's `--import` flag. By using this method, the Hot Hook hook will be loaded at application startup without you needing to use `hot.init` in your codebase. It can be used as follows:
10+
11+
```bash
12+
node --import=hot-hook/register ./src/index.js
13+
```
14+
15+
Be careful if you also use a loader to transpile to TS (`ts-node` or `tsx`), hot-hook must be placed in the second position, after the TS loader :
16+
17+
```bash
18+
node --import=tsx --import=hot-hook/register ./src/index.ts
19+
```
20+
21+
To configure boundaries and other files, you'll need to use your application's `package.json` file, in the `hot-hook` key. For example:
22+
23+
```jsonc
24+
// package.json
25+
{
26+
"hot-hook": {
27+
"boundaries": ["./src/controllers/**/*.tsx"],
28+
},
29+
}
30+
```

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.1.6",
4+
"version": "0.1.7",
55
"main": "index.js",
66
"type": "module",
77
"files": [

0 commit comments

Comments
 (0)