Commit 3ad5c40
committed
fix: pin @smithy/node-http-handler <4.5.0 to fix Jest VM dynamic import issue
@smithy/node-http-handler@4.5.0 introduced await import('node:http') as a
lazy load optimization. This breaks inside Jest's VM sandbox on Node 22+
with ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG. Pinning to 4.4.x which
uses static require('node:http') instead.
node:https was never affected (already statically required in all versions).1 parent 89d640e commit 3ad5c40
2 files changed
Lines changed: 2599 additions & 7490 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
0 commit comments