diff --git a/.changeset/loose-viewer-peer.md b/.changeset/loose-viewer-peer.md deleted file mode 100644 index 3eb2fa0..0000000 --- a/.changeset/loose-viewer-peer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@hot-hook/dump-viewer': patch ---- - -Accept any `hot-hook` 1.x as peer dependency instead of the exact version it was released with, so installing it next to a newer `hot-hook` no longer fails with a peer dependency conflict. diff --git a/.changeset/quiet-hooks-skip.md b/.changeset/quiet-hooks-skip.md deleted file mode 100644 index 752d903..0000000 --- a/.changeset/quiet-hooks-skip.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'hot-hook': patch ---- - -Only inject the `import.meta.hot` helpers into modules that reference `import.meta`. Other modules, including most `node_modules` dependencies, are now loaded unchanged, so their positions and source maps are no longer shifted by the injected code. See #15. - -Modules that get the helpers keep exact positions when they have an inline source map, as produced by tsx, ts-node or `@poppinss/ts-exec`: hot-hook now shifts it to account for the injected code. diff --git a/.changeset/sync-module-hooks.md b/.changeset/sync-module-hooks.md deleted file mode 100644 index 4edc53a..0000000 --- a/.changeset/sync-module-hooks.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'hot-hook': minor ---- - -Use synchronous `module.registerHooks()` on Node.js >= 22.22.3, 24.11.1, 25.1.0 and 26 instead of the deprecated `module.register()` (DEP0205). Older Node.js versions fall back to `module.register()`, since their `registerHooks()` breaks CommonJS loading when combined with `module.register()` hooks such as ts-node's. - -With in-thread hooks, `require()` calls also go through hot-hook. diff --git a/packages/dump_viewer/CHANGELOG.md b/packages/dump_viewer/CHANGELOG.md index 2f685b5..2e833eb 100644 --- a/packages/dump_viewer/CHANGELOG.md +++ b/packages/dump_viewer/CHANGELOG.md @@ -1,5 +1,11 @@ # @hot-hook/dump-viewer +## 1.0.1 + +### Patch Changes + +- ef08665: Accept any `hot-hook` 1.x as peer dependency instead of the exact version it was released with, so installing it next to a newer `hot-hook` no longer fails with a peer dependency conflict. + ## 0.4.0 ### Patch Changes diff --git a/packages/dump_viewer/package.json b/packages/dump_viewer/package.json index 1185c87..3a7db5a 100644 --- a/packages/dump_viewer/package.json +++ b/packages/dump_viewer/package.json @@ -1,7 +1,7 @@ { "name": "@hot-hook/dump-viewer", "type": "module", - "version": "1.0.0", + "version": "1.0.1", "author": "Julien Ripouteau ", "license": "MIT", "keywords": [ diff --git a/packages/hot_hook/CHANGELOG.md b/packages/hot_hook/CHANGELOG.md index 3cb7ef5..1effef0 100644 --- a/packages/hot_hook/CHANGELOG.md +++ b/packages/hot_hook/CHANGELOG.md @@ -1,5 +1,19 @@ # hot-hook +## 1.1.0 + +### Minor Changes + +- c9f357a: Use synchronous `module.registerHooks()` on Node.js >= 22.22.3, 24.11.1, 25.1.0 and 26 instead of the deprecated `module.register()` (DEP0205). Older Node.js versions fall back to `module.register()`, since their `registerHooks()` breaks CommonJS loading when combined with `module.register()` hooks such as ts-node's. + + With in-thread hooks, `require()` calls also go through hot-hook. + +### Patch Changes + +- ed28a8c: Only inject the `import.meta.hot` helpers into modules that reference `import.meta`. Other modules, including most `node_modules` dependencies, are now loaded unchanged, so their positions and source maps are no longer shifted by the injected code. See #15. + + Modules that get the helpers keep exact positions when they have an inline source map, as produced by tsx, ts-node or `@poppinss/ts-exec`: hot-hook now shifts it to account for the injected code. + ## 0.4.0 ### Minor Changes diff --git a/packages/hot_hook/package.json b/packages/hot_hook/package.json index b7a4320..0d632a2 100644 --- a/packages/hot_hook/package.json +++ b/packages/hot_hook/package.json @@ -1,7 +1,7 @@ { "name": "hot-hook", "type": "module", - "version": "1.0.0", + "version": "1.1.0", "description": "Easy hot module reloading (HMR) for Node.js and ESM", "author": "Julien Ripouteau ", "license": "MIT",