Skip to content

fix(cli): bump @npmcli/package-json to ^7, clearing deprecated glob@10 - #1614

Merged
mishushakov merged 1 commit into
mainfrom
cli-bump-node-22-version
Jul 27, 2026
Merged

fix(cli): bump @npmcli/package-json to ^7, clearing deprecated glob@10#1614
mishushakov merged 1 commit into
mainfrom
cli-bump-node-22-version

Conversation

@mishushakov

@mishushakov mishushakov commented Jul 27, 2026

Copy link
Copy Markdown
Member

Follow-up to #1613, which fixed the glob@11 deprecation warning in e2b but left @e2b/cli warning via @npmcli/package-json@5 → glob@10. That PR proposed @npmcli/package-json@7, but ^7 alone isn't enough — 7.0.0–7.0.2 still depend on the equally deprecated glob@^11, and the move to glob@13 only landed in 7.0.4, so this pins ^7.0.5. Since @npmcli/package-json@7 requires Node ^20.17.0 || >=22.9.0, the CLI's Node 22 floor moves from >=22 to >=22.9.0 — matching the dependency exactly rather than excluding anyone it still supports. Node 20 support is unchanged, since ^20.17.0 covers the existing >=20.18.1 <21.

Before / after

$ npm install @e2b/cli          # before
npm warn deprecated glob@11.1.0: Old versions of glob are not supported...
npm warn deprecated glob@10.5.0: Old versions of glob are not supported...
added 183 packages in 4s

$ npm install @e2b/cli          # after (both tarballs packed locally)
added 145 packages in 1s

No API change. e2b template init is the only consumer, and the PackageJson.load/create/update/save surface it uses is unchanged across the bump.

Verification

  • Packed e2b + @e2b/cli and installed into a scratch project with overrides pointing e2b at the local tarball (the post-release state): zero deprecation warnings, npm ls glob --all reports only glob@13.0.6.
  • Ran e2b template init -n my-tmpl -l typescript from that packed install against a real host package.json — scripts added, pre-existing scripts preserved.
  • packages/cli suite: 102 passed / 1 skipped, including all 14 template init tests, which assert on the written package.json in both the load (existing file) and create (no file) branches. template/create.test.ts fails identically on a clean tree in this environment — it requires E2B_API_KEY.
  • pnpm run format / lint / typecheck clean. @types/npmcli__package-json stays at ^4.0.4; v7 ships no types.
  • .tool-versions is untouched: the pinned nodejs 22.18.0 already satisfies >=22.9.0, so CI (which derives node-version from that file) needs no change.

Closes SDK-297. Follow-up to #1613 (SDK-296).

🤖 Generated with Claude Code

@cla-bot cla-bot Bot added the cla-signed label Jul 27, 2026
@changeset-bot

changeset-bot Bot commented Jul 27, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 306529b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@e2b/cli Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cursor

cursor Bot commented Jul 27, 2026

Copy link
Copy Markdown

PR Summary

Low Risk
Dependency and engine-metadata only; no CLI command logic changes beyond the existing template init package.json helpers.

Overview
@e2b/cli upgrades @npmcli/package-json from ^5.2.1 to ^7.0.5 so installs no longer pull deprecated glob@10 (the lockfile drops glob@10.5.0 in favor of glob@13 via the new dependency tree). The CLI engines.node entry for Node 22 is tightened from >=22 to >=22.9.0 to match the package’s Node requirement; Node 20 bounds stay the same. Behavior for e2b template init (PackageJson.load / create / update / save) is unchanged—only dependency and engine metadata plus pnpm-lock.yaml and the changeset are touched.

Reviewed by Cursor Bugbot for commit 306529b. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions

github-actions Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Package Artifacts

Built from 2c1c7c3. Download artifacts from this workflow run.

JS SDK (e2b@2.36.1-cli-bump-node-22-version.0):

npm install ./e2b-2.36.1-cli-bump-node-22-version.0.tgz

CLI (@e2b/cli@2.15.2-cli-bump-node-22-version.0):

npm install ./e2b-cli-2.15.2-cli-bump-node-22-version.0.tgz

Python SDK (e2b==2.35.0+cli.bump.node.22.version):

pip install ./e2b-2.35.0+cli.bump.node.22.version-py3-none-any.whl

@linear-code

linear-code Bot commented Jul 27, 2026

Copy link
Copy Markdown

SDK-297

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 06a7d6fa72

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread packages/cli/package.json Outdated
`@npmcli/package-json@5` pins `glob@10`, which is deprecated on npm, so
every `npm install @e2b/cli` printed a `npm warn deprecated glob@10.5.0`
warning. This was called out as "not fixed here" in #1613, which cleared
the matching `glob@11` warning in `e2b`.

`^7.0.5` is the floor that actually fixes it: 7.0.0-7.0.2 still depend on
`glob@^11` (also deprecated), and the move to `glob@13` only landed in
7.0.4.

`@npmcli/package-json@7` requires Node `^20.17.0 || >=22.9.0`, so the
CLI's Node 22 floor moves from `>=22` to `>=22.9.0` -- matching the
dependency exactly rather than excluding anyone it still supports. Node
20 support is unchanged, since `^20.17.0` covers the existing
`>=20.18.1 <21`.

Co-Authored-By: Claude <noreply@anthropic.com>
@mishushakov
mishushakov force-pushed the cli-bump-node-22-version branch from 06a7d6f to 306529b Compare July 27, 2026 13:05
Comment thread packages/cli/package.json
@mishushakov
mishushakov enabled auto-merge (squash) July 27, 2026 13:13
@mishushakov
mishushakov merged commit 48e9249 into main Jul 27, 2026
31 of 33 checks passed
@mishushakov
mishushakov deleted the cli-bump-node-22-version branch July 27, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants