Skip to content

Releases: nodejs/import-in-the-middle

import-in-the-middle: v3.0.0

02 Feb 10:23
91f0b55

Choose a tag to compare

3.0.0 (2026-01-30)

⚠ BREAKING CHANGES

  • drop support for Node.js < v18 (#230)

import-in-the-middle: v2.0.6

27 Jan 22:52
43e2381

Choose a tag to compare

2.0.6 (2026-01-27)

Bug Fixes

  • ensure the callback 'name' arg is the module name when matching the module main file, even when 'internals: true' option is used (#241) (ad9d02c)
  • fix a couple issues with duplicate entries and specifier (submodule) matching (#237) (fdc0b3d)
  • properly hook builtin modules that require the 'node:' prefix (#240) (de84589, 9d916a5)

import-in-the-middle: v2.0.5

20 Jan 21:17
0a21838

Choose a tag to compare

2.0.5 (2026-01-20)

Bug Fixes

  • handle lazy initialization and circular dependencies (#229) (d1421dc)
  • entrypoint can be treated as CommonJS when loader chains add query params to file URLs (#233) (60ab14a)

import-in-the-middle: v2.0.4

14 Jan 15:05
ab3cae2

Choose a tag to compare

2.0.4 (2026-01-14)

Bug Fixes

  • do not instrument the top level module (#225) (b563b35)

import-in-the-middle: v2.0.3

13 Jan 23:20
be711e2

Choose a tag to compare

2.0.3 (2026-01-13)

Bug Fixes

  • add missing JSDoc type information (40c1009)
  • add missing name for fast builtin lookup (40c1009)
  • do not crash on missing setters (#223) (fe44778)
  • handle undefined exports properly (40c1009)
  • multiple minor issues (#221) (40c1009)
  • remove small memory leak (40c1009)

Performance Improvements

  • improve perf by calculating less stack frames and fast paths (#224) (09ae8bf)

import-in-the-middle: v2.0.2

12 Jan 16:34
c2dafbc

Choose a tag to compare

2.0.2 (2026-01-11)

Bug Fixes

  • grammar issue in README.md (#216) (46e4a2a)
  • properly handle internals when specifier matches (#220) (05e4216)

import-in-the-middle: v2.0.1

19 Dec 07:32
d1b5e0f

Choose a tag to compare

2.0.1 (2025-12-18)

Bug Fixes

  • properly hook submodule package exports (#215) (a20f47a)

import-in-the-middle: v2.0.0

16 Oct 16:20
d96619f

Choose a tag to compare

2.0.0 (2025-10-14)

⚠ BREAKING CHANGES

This was only a new major out of an abundance of caution. The hook code has been converted to ESM to work around some loader issues. There should actually be no breaking changes when using import-in-the-middle/hook.mjs or the exported Hook API.

Features

  • convert all modules running in loader thread to ESM (#210) (da7c7a6)

import-in-the-middle: v1.15.0

10 Oct 16:26
94837a7

Choose a tag to compare

1.15.0 (2025-10-09)

Features

  • Compatibility with specifier imports (#211) (83d662a)

import-in-the-middle: v1.14.4

25 Sep 12:58
ffb5682

Choose a tag to compare

1.14.4 (2025-09-25)

Bug Fixes