Skip to content

Commit 9dabcab

Browse files
committed
chore: prelease mode + version
1 parent d66a6d6 commit 9dabcab

File tree

5 files changed

+49
-2
lines changed

5 files changed

+49
-2
lines changed

.changeset/pre.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"mode": "pre",
3+
"tag": "next",
4+
"initialVersions": {
5+
"adonisjs": "0.0.0",
6+
"@hot-hook/dump-viewer": "0.4.0",
7+
"hot-hook": "0.4.0",
8+
"@hot-hook/runner": "0.1.0"
9+
},
10+
"changesets": [
11+
"pretty-cycles-show"
12+
]
13+
}

packages/dump_viewer/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @hot-hook/dump-viewer
22

3+
## 0.4.1-next.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [d66a6d6]
8+
9+
310
## 0.4.0
411

512
### Patch Changes

packages/dump_viewer/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/dump-viewer",
33
"type": "module",
4-
"version": "0.4.0",
4+
"version": "0.4.1-next.0",
55
"author": "Julien Ripouteau <[email protected]>",
66
"license": "MIT",
77
"keywords": [

packages/hot_hook/CHANGELOG.md

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

3+
## 0.4.1-next.0
4+
5+
### Patch Changes
6+
7+
- d66a6d6: ## Global watching and file-changed events
8+
9+
Add support for "global watching" and "file-changed" events
10+
11+
Before this commit, Hot-hook only watched files after they were imported at runtime. Now, it directly watches all project files and sends a "file-changed" event whenever a file is modified, deleted, or added. This allows "runners" to react in various ways to file changes based on their needs.
12+
13+
The option to configure which files to watch is `include`, and by default is set to `["**/*"]`, meaning all files from the `rootDirectory`.
14+
15+
The behavior will be as follows:
16+
17+
- If the file has not yet been imported at runtime, and therefore is not part of the import graph, and it is modified, then a `hot-hook:file-changed` event will be emitted with the payload `{ path: string, action: "change" | "add" | "unlink"}`
18+
- If the file has already been imported at runtime, and it is hot reloadable, then a `hot-hook:invalidated` event will be emitted with the payload `{ path: string }`. As before.
19+
- If the file has already been imported at runtime and it is not hot reloadable, then `hot-hook:full-reload` will be emitted with the payload `{ path: string }`. As before.
20+
21+
## Environment variables configuration
22+
23+
You can now configure certain environment variables for hot-hook, which are:
24+
25+
- `HOT_HOOK_IGNORE`: for the `ignore` option. Example: `HOT_HOOK_IGNORE=**/node_modules/**,**/dist/**`
26+
- `HOT_HOOK_INCLUDE`: for the `include` option. Example: `HOT_HOOK_INCLUDE=**/*`
27+
- `HOT_HOOK_BOUNDARIES`: for the `boundaries` option. Example: `HOT_HOOK_BOUNDARIES=./controllers/**/*.ts`
28+
- `HOT_HOOK_RESTART`: for the `restart` option. Example: `HOT_HOOK_RESTART=.env,./config/**/*.ts`
29+
330
## 0.4.0
431

532
### Minor 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
"type": "module",
4-
"version": "0.4.0",
4+
"version": "0.4.1-next.0",
55
"description": "Easy hot module reloading (HMR) for Node.js and ESM",
66
"author": "Julien Ripouteau <[email protected]>",
77
"license": "MIT",

0 commit comments

Comments
 (0)