Skip to content

Commit 92b158e

Browse files
fix(cli): upgrade import-in-the-middle to v3.0.0
Fixes the `importAssertions` deprecation warning on Node.js v21+, v20.10.0+, and v18.19.0+. This resolves the error that occurred when using certain OpenTelemetry instrumentations like UndiciInstrumentation, HttpInstrumentation, and AwsInstrumentation. Closes #3205 Co-authored-by: Eric Allam <ericallam@users.noreply.github.com>
1 parent b8766e7 commit 92b158e

File tree

4 files changed

+49
-14
lines changed

4 files changed

+49
-14
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"trigger.dev": patch
3+
---
4+
5+
Upgrade import-in-the-middle from 1.11.0 to 3.0.0 to fix the `importAssertions` deprecation warning on Node.js v21+, v20.10.0+, and v18.19.0+.
6+
7+
This resolves the error: `Use importAttributes instead of importAssertions` that occurred when using certain OpenTelemetry instrumentations like `UndiciInstrumentation`, `HttpInstrumentation`, and `AwsInstrumentation`.

packages/cli-v3/e2e/fixtures.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const fixturesConfig: TestCase[] = [
4949
externals: [
5050
{
5151
name: "import-in-the-middle",
52-
version: "1.11.0",
52+
version: "3.0.0",
5353
},
5454
],
5555
files: [{ entry: "src/trigger/helloWorld.ts" }],
@@ -82,7 +82,7 @@ export const fixturesConfig: TestCase[] = [
8282
},
8383
{
8484
name: "import-in-the-middle",
85-
version: "1.11.0",
85+
version: "3.0.0",
8686
},
8787
],
8888
files: [{ entry: "src/trigger/ai.ts" }],
@@ -114,7 +114,7 @@ export const fixturesConfig: TestCase[] = [
114114
externals: [
115115
{
116116
name: "import-in-the-middle",
117-
version: "1.11.0",
117+
version: "3.0.0",
118118
},
119119
],
120120
files: [{ entry: "src/trigger/decorators.ts" }],
@@ -145,7 +145,7 @@ export const fixturesConfig: TestCase[] = [
145145
externals: [
146146
{
147147
name: "import-in-the-middle",
148-
version: "1.11.0",
148+
version: "3.0.0",
149149
},
150150
],
151151
files: [{ entry: "src/reactEmail.tsx" }],
@@ -178,7 +178,7 @@ export const fixturesConfig: TestCase[] = [
178178
externals: [
179179
{
180180
name: "import-in-the-middle",
181-
version: "1.11.0",
181+
version: "3.0.0",
182182
},
183183
{
184184
name: "mupdf",

packages/cli-v3/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"gradient-string": "^2.0.2",
115115
"has-flag": "^5.0.1",
116116
"ignore": "^7.0.5",
117-
"import-in-the-middle": "1.11.0",
117+
"import-in-the-middle": "3.0.0",
118118
"import-meta-resolve": "^4.1.0",
119119
"ini": "^5.0.0",
120120
"json-stable-stringify": "^1.3.0",

pnpm-lock.yaml

Lines changed: 36 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)