Skip to content

fix: widen @adobe/aio-lib-ims peer to ^7 || ^8 to drop deprecated uuid@8 (APPBLD-5070) - #82

Merged
AnujVishwakarma-src merged 2 commits into
adobe:masterfrom
AnujVishwakarma-src:APPBLD-5070-ims-jwt-peer-ims8
Sep 9, 2026
Merged

AnujVishwakarma-src merged 2 commits into
adobe:masterfrom
AnujVishwakarma-src:APPBLD-5070-ims-jwt-peer-ims8

Conversation

@AnujVishwakarma-src

Copy link
Copy Markdown
Contributor

What

Widen the @adobe/aio-lib-ims peer dependency range: ^7 → ^7 || ^8.

Why

uuid@8.3.2 (deprecated) surfaces across the @adobe/aio-cli dependency tree. The root cause is this package's peer range:

peerDependencies: { "@adobe/aio-lib-ims": "^7" }

aio-lib-ims@8 depends on aio-lib-ims-jwt@^5, so npm installs an old nested aio-lib-ims@7 to satisfy the ^7 peer — even when the consumer is already on aio-lib-ims@8. That old ims@7 pulls aio-lib-state@3 → @azure/cosmos@3.17.3 → uuid@8.3.2.

This package does not import @adobe/aio-lib-ims anywhere in src/test (verified) — the peer is vestigial. Widening it to ^7 || ^8 lets npm satisfy the peer with the consumer's aio-lib-ims@8 (dedupe), removing the ims@7 → uuid@8 chain.

Validation

  • ✅ Unit tests: 5/5 pass, 100% coverage; lint clean
  • ✅ Consumer proof: with this change packed and applied to aio-cli-plugin-runtime, the nested aio-lib-ims@7 disappears (aio-lib-ims@8 deduped everywhere) and uuid@8.3.2 is removed from the production dependency tree

🤖 Generated with Claude Code

…d@8 (APPBLD-5070)

The peerDependency @adobe/aio-lib-ims@^7 forces npm to install an old nested
aio-lib-ims@7 even when the consumer uses aio-lib-ims@8 (which depends on this
package). That old ims@7 pulls aio-lib-state@3 -> @azure/cosmos@3 -> uuid@8.3.2
(deprecated). aio-lib-ims-jwt does not import @adobe/aio-lib-ims anywhere, so the
peer is vestigial; widening it to ^7 || ^8 lets npm satisfy it with the
consumer aio-lib-ims@8 (dedupe), removing the ims@7 -> uuid@8 chain tree-wide.

Validation: unit tests 5/5 pass, 100% coverage, lint clean. Consumer proof: with
this change packed and applied in aio-cli-plugin-runtime, the nested
aio-lib-ims@7 disappears (ims@8 deduped) and uuid@8.3.2 is removed from the
production dependency tree.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Sep 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@AnujVishwakarma-src
AnujVishwakarma-src merged commit 8d5f1dc into adobe:master Sep 9, 2026
11 checks passed
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.

2 participants