Skip to content

Commit

Permalink
fix: ESM hooking with Node.js v18.19.0
Browse files Browse the repository at this point in the history
[email protected] fixes an issue with double-importing
with node 18.19.0 (due to a backport of ESM loading being done
off main thread).

Fixes: #3784
  • Loading branch information
trentm committed Dec 11, 2023
1 parent a9dc49c commit 40490e8
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 11 deletions.
3 changes: 1 addition & 2 deletions .ci/tav.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"// versions": "Skip >=18.19.0 until IITM double-import issue is resolved.",
"versions": [ "21", "20", "18.18.2", "16", "14" ],
"versions": [ "21", "20", "18", "16", "14" ],
"// modules": [
"List of instrumented modules with the minimum Node major version supported.",
"minMajorVersion for each module should be kept in sync with .tav.yml"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ jobs:
- '21.0'
- '20'
- '20.0'
- '18.18.2' # Skip >=18.19.0 until IITM double-import issue is resolved.
- '18'
- '18.0'
- '16'
- '16.0'
Expand Down
17 changes: 17 additions & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,23 @@ Notes:
See the <<upgrade-to-v4>> guide.
==== Unreleased
[float]
===== Breaking changes
[float]
===== Features
[float]
===== Bug fixes
* Fix <<esm>> with Node v18.19.0 (and later versions of Node v18.x).
({issues}3784[#3784])
[float]
===== Chores
[[release-notes-4.3.0]]
==== 4.3.0 - 2023/12/05
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
"fast-safe-stringify": "^2.0.7",
"fast-stream-to-buffer": "^1.0.0",
"http-headers": "^3.0.2",
"import-in-the-middle": "1.5.0",
"import-in-the-middle": "^1.6.0",
"json-bigint": "^1.0.0",
"lru-cache": "^10.0.1",
"measured-reporting": "^1.51.1",
Expand Down

0 comments on commit 40490e8

Please sign in to comment.