Skip to content

fix(deps): pin import-in-the-middle to 3.4.0 - #835

Merged
joeyzhao2018 merged 2 commits into
mainfrom
joey/pin-iitm
Sep 9, 2026
Merged

fix(deps): pin import-in-the-middle to 3.4.0#835
joeyzhao2018 merged 2 commits into
mainfrom
joey/pin-iitm

Conversation

@joeyzhao2018

Copy link
Copy Markdown
Contributor

import-in-the-middle 3.5.0 breaks esbuild, so dd-trace-js pinned the dependency to 3.4.0. Mirror that pin here.

This repo has no direct dependency on the package — it arrives through dd-trace, which declares ^3.3.2 on both the v5 and v6 lines, so a resolutions entry is the lever. The live exposure was the daily yarn upgrade in .github/workflows/update-deps.yml, which would have floated the lockfile to 3.5.0 on its own.

Verified the pin survives a bare yarn upgrade, and that the Node 18/20 layer path (install_deps.sh, which re-resolves the v5 line without a frozen lockfile) still lands on 3.4.0.

resolutions only governs builds in this repo — the layer and CI. npm consumers resolve dd-trace as a peer dependency and pick up import-in-the-middle themselves.

What does this PR do?

Motivation

Testing Guidelines

Additional Notes

Types of Changes

  • Bug fix
  • New feature
  • Breaking change
  • Misc (docs, refactoring, dependency upgrade, etc.)

Check all that apply

  • This PR's description is comprehensive
  • This PR contains breaking changes that are documented in the description
  • This PR introduces new APIs or parameters that are documented and unlikely to change in the foreseeable future
  • This PR impacts documentation, and it has been updated (or a ticket has been logged)
  • This PR's changes are covered by the automated tests
  • This PR collects user input/sensitive content into Datadog
  • This PR passes the integration tests (ask a Datadog member to run the tests)

import-in-the-middle 3.5.0 breaks esbuild, so dd-trace-js pinned the
dependency to 3.4.0. Mirror that pin here.

This repo has no direct dependency on the package — it arrives through
dd-trace, which declares `^3.3.2` on both the v5 and v6 lines, so a
`resolutions` entry is the lever. The live exposure was the daily
`yarn upgrade` in .github/workflows/update-deps.yml, which would have
floated the lockfile to 3.5.0 on its own.

Verified the pin survives a bare `yarn upgrade`, and that the Node 18/20
layer path (install_deps.sh, which re-resolves the v5 line without a
frozen lockfile) still lands on 3.4.0.

`resolutions` only governs builds in this repo — the layer and CI. npm
consumers resolve dd-trace as a peer dependency and pick up
import-in-the-middle themselves.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@datadog-datadog-us1-prod

datadog-datadog-us1-prod Bot commented Sep 9, 2026

Copy link
Copy Markdown

Pipelines  Tests

⚠️ Warnings

Your PR has failed checks. Please review the issues below and take necessary action before merging.

🚦 1 Pipeline job failed

DataDog/datadog-lambda-js | publish layer sandbox (node20): [us-west-2] — 🔄 Retry may pass, looks flaky

View more details · View in GitLab

ℹ️ Info

🔄 Datadog auto-retried 2 jobs - 0 passed on retry View in Datadog

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 33fb9c8 | Docs | View more details | Give us feedback!

@joeyzhao2018
joeyzhao2018 merged commit dc39117 into main Sep 9, 2026
69 of 71 checks passed
@joeyzhao2018
joeyzhao2018 deleted the joey/pin-iitm branch September 9, 2026 20:33
@ojproductions ojproductions mentioned this pull request Sep 9, 2026
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants