Pin npm package versions to enable dependabot version management #269
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



This PR addresses the requirement to pin all npm package versions by removing caret (
^), tilde (~), and range (>=) operators from package.json. This change enables dependabot to suggest specific version bumps through pull requests, providing better control over dependency updates.Changes Made
Dependencies pinned (6 packages):
@microsoft/applicationinsights-react-js:^19.3.6→19.3.6@microsoft/applicationinsights-web:^3.3.8→3.3.8azure-devops-extension-api:^4.259.0→4.259.0azure-devops-extension-sdk:^4.0.2→4.0.2azure-devops-ui:^2.255.0→2.255.0reactandreact-dom: Updated to exact resolved versions (17.0.2)DevDependencies pinned (37 packages):
>=5.0.0,>=1.13.7) converted to exact versions (5.0.0,1.13.7)@types/react:17.0.76,@types/react-dom:17.0.25)Technical Challenges Resolved
The pinning process encountered complex dependency resolution issues due to conflicting peer dependencies and transitive dependency version mismatches. The solution involved:
Peer dependency conflicts: ApplicationInsights React plugin v19+ requires React ≥19 while azure-devops-ui requires React ^16.8.1. Resolved using
--legacy-peer-depsinstallation strategy.Webpack build compatibility: Copy-webpack-plugin's ajv/ajv-keywords dependency chain had version conflicts when pinned. Maintained the working dependency resolution from the original package-lock.json.
Type compatibility: Ensured all TypeScript type definitions match the exact runtime package versions to prevent interface mismatches.
Verification
All functionality remains intact after pinning:
Impact
This change enables dependabot to:
The pinned versions are based on the proven working dependency resolution, ensuring stability while enabling better dependency management practices.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.