Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
fix(js-sdk): bump deprecated glob@^11 to ^13 (#1613)
Mish Ushakov178e267ba287
diff --git a/.changeset/lucky-pandas-wave.md b/.changeset/lucky-pandas-wave.mdnew file mode 100644index 000000000..e3669dbd9--- /dev/null+++ b/.changeset/lucky-pandas-wave.md@@ -0,0 +1,5 @@+---+'e2b': patch+---++Bump the `glob` dependency from `^11.1.0` to `^13.0.6`. glob 11 is deprecated on npm, so every install of a project depending on `e2b` printed a `npm warn deprecated [email protected]` warning that downstream packages could not silence (`overrides` and shrinkwrap only apply to the top-level project). glob 12 and 13 only changed the CLI — the `--shell` option and the `glob` bin, which moved to a separate `glob-bin` package — so the programmatic API the SDK uses (`glob(pattern, { ignore, withFileTypes, dot, cwd })` plus `Path#isDirectory()/fullpath()/relative()`) is unchanged. glob 13 also drops the CLI's transitive dependencies, cutting a fresh `npm install e2b` from 37 to 26 packages.diff --git a/packages/js-sdk/package.json b/packages/js-sdk/package.jsonindex b11d1b94f..b126e0b19 100644--- a/packages/js-sdk/package.json+++ b/packages/js-sdk/package.json@@ -98,7 +98,7 @@"chalk": "^5.3.0","compare-versions": "^6.1.0","dockerfile-ast": "^0.7.1",- "glob": "^11.1.0",+ "glob": "^13.0.6","openapi-fetch": "^0.14.1","platform": "^1.3.6","tar": "^7.5.19",diff --git a/packages/js-sdk/tsconfig.json b/packages/js-sdk/tsconfig.jsonindex f81cbc5da..6f71e5ef2 100644--- a/packages/js-sdk/tsconfig.json+++ b/packages/js-sdk/tsconfig.json@@ -17,6 +17,12 @@"resolveJsonModule": true,"isolatedModules": true,"declaration": true,+ // TypeScript 7's native tsc does not auto-include node_modules/@types, so+ // the Node globals the SDK uses (process, Buffer, `node:*` modules) have to+ // be requested explicitly.+ "types": [+ "node"+ ],},"include": ["src"diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 48a23cffe..97395012f 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -152,8 +152,8 @@ importers:specifier: ^0.7.1version: 0.7.1glob:- specifier: ^11.1.0- version: 11.1.0+ specifier: ^13.0.6+ version: 13.0.6openapi-fetch:specifier: ^0.14.1version: 0.14.1@@ -2508,6 +2508,10 @@ packages:deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]hasBin: true+ resolution: {integrity: sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==}+ engines: {node: 18 || 20 || >=22}+resolution: {integrity: sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==}engines: {node: '>= 0.4'}@@ -3149,6 +3153,10 @@ packages:resolution: {integrity: sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==}engines: {node: 20 || >=22}+ resolution: {integrity: sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==}+ engines: {node: 18 || 20 || >=22}+resolution: {integrity: sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==}@@ -6096,6 +6104,12 @@ snapshots:package-json-from-dist: 1.0.0path-scurry: 2.0.0+ dependencies:+ minimatch: 10.2.5+ minipass: 7.1.3+ path-scurry: 2.0.2+dependencies:define-properties: 1.2.1@@ -6747,6 +6761,11 @@ snapshots:lru-cache: 11.1.0minipass: 7.1.2+ dependencies:+ lru-cache: 11.1.0+ minipass: 7.1.3+