Skip to content

fix: ship npm-shrinkwrap.json to eliminate glob@10 deprecation warning#1315

Merged
notgitika merged 1 commit into
aws:mainfrom
notgitika:fix/glob-deprecation-warning
May 20, 2026
Merged

fix: ship npm-shrinkwrap.json to eliminate glob@10 deprecation warning#1315
notgitika merged 1 commit into
aws:mainfrom
notgitika:fix/glob-deprecation-warning

Conversation

@notgitika
Copy link
Copy Markdown
Contributor

Summary

  • Ships npm-shrinkwrap.json with the published package to lock glob at v13.0.6, preventing the deprecated glob@10.5.0 from being resolved during end-user installs
  • Adds npm-shrinkwrap.json to the files array in package.json to ensure inclusion in the tarball

Context

The existing overrides field correctly resolves glob to v13 locally, but npm only applies overrides at the root of the dependency tree. When users run npm install -g @aws/agentcore@preview, overrides are ignored and archiver-utils@5.0.2 (via @aws-cdk/toolkit-libarchiver@7.0.1) pulls in the deprecated glob@10.5.0.

npm-shrinkwrap.json is the npm-sanctioned mechanism for CLI tools to lock their transitive dependency tree for all install scenarios (global, non-root).

Closes #1266

Test plan

  • Run npm pack and verify npm-shrinkwrap.json is included in tarball
  • Install from tarball globally and confirm no glob deprecation warning
  • Verify node_modules/glob/package.json shows version 13.x after install

@notgitika notgitika requested a review from a team May 20, 2026 04:42
@github-actions github-actions Bot added the size/l PR size: L label May 20, 2026
@github-actions github-actions Bot added the agentcore-harness-reviewing AgentCore Harness review in progress label May 20, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added the claude-security-reviewing Claude Code /security-review in progress label May 20, 2026
@agentcore-devx-automation
Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label May 20, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 20, 2026

Package Tarball

aws-agentcore-0.14.1.tgz

How to install

gh release download pr-1315-tarball --repo aws/agentcore-cli --pattern "*.tgz" --dir /tmp/pr-tarball
npm install -g /tmp/pr-tarball/aws-agentcore-0.14.1.tgz

@github-actions github-actions Bot removed the agentcore-harness-reviewing AgentCore Harness review in progress label May 20, 2026
…g on install

The overrides field only applies when this package is the root of the
dependency tree. When users install globally, npm ignores overrides and
resolves archiver-utils's glob@^10.0.0 to the deprecated glob@10.5.0.

npm-shrinkwrap.json is respected during all install scenarios (global,
non-root). This locks glob to 13.0.6, eliminating the warning.

Closes aws#1266
@notgitika notgitika force-pushed the fix/glob-deprecation-warning branch from ddf3b1d to 1dfbcc0 Compare May 20, 2026 04:49
@github-actions github-actions Bot added size/l PR size: L and removed size/l PR size: L labels May 20, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added the claude-security-reviewing Claude Code /security-review in progress label May 20, 2026
@agentcore-devx-automation
Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label May 20, 2026
@notgitika notgitika merged commit 4c5077c into aws:main May 20, 2026
26 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/l PR size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecated dependency: glob@10.5.0 triggers npm warning on install

2 participants