Skip to content

chore: remove unused axios dependency from ContentProcessorWeb#530

Merged
Roopan-Microsoft merged 1 commit intodevfrom
feature/remove-axios-39065
Apr 9, 2026
Merged

chore: remove unused axios dependency from ContentProcessorWeb#530
Roopan-Microsoft merged 1 commit intodevfrom
feature/remove-axios-39065

Conversation

@Abdul-Microsoft
Copy link
Copy Markdown
Contributor

@Abdul-Microsoft Abdul-Microsoft commented Apr 9, 2026

Purpose

This pull request removes the unused direct axios dependency from the frontend package.json. All HTTP calls in the app use native fetch via apiClient.tsx, making the direct axios package unnecessary. This reduces the bundle size and removes an unnecessary dependency from the project.

Dependency cleanup:

  • Removed axios: ^1.13.5 from package.json dependencies
  • Updated pnpm-lock.yaml to reflect the removal of direct axios lockfile entries

Documentation updates:

  • Updated .github/instructions/test-quality.instructions.md to remove axios references and replace with httpUtility patterns
  • Updated .github/instructions/code-quality.instructions.md to remove axios from import hygiene example

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid

  • All 125 unit tests pass
  • Local build succeeds (bundle size: 422.76 KB, 303 B smaller)
  • Docker image built and deployed to Azure Container Apps — verified HTTP 200
  • No direct axios imports exist in any source files

Other Information

  • react-tiff (devDependency) still pulls axios as a transitive dependency in the lockfile — this is expected and does not affect the direct dependency surface

Resolves AB#39065

Remove axios ^1.13.5 from package.json as all HTTP calls use native
fetch via the apiClient.tsx wrapper. Also update documentation
references in .github/instructions/ files.

- Remove axios from package.json dependencies
- Update pnpm-lock.yaml (pnpm install)
- Update test-quality.instructions.md to remove axios references
- Update code-quality.instructions.md to remove axios from import example

Resolves #39065

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Roopan-Microsoft Roopan-Microsoft merged commit 2e1f384 into dev Apr 9, 2026
5 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