Commit 22104e4
authored
chore: remove @microsoft/applicationinsights-common dependency (#255)
* chore: remove @microsoft/applicationinsights-common dependency
* fix: import BreezeChannelIdentifier from applicationinsights-core-js
* fix: add npm override to deduplicate @microsoft/applicationinsights-core-js
Both @microsoft/1ds-post-js@4.4.1 and @microsoft/1ds-core-js@4.4.1 pin
@microsoft/applicationinsights-core-js to exactly 3.4.1, while the
top-level dependency resolves to 3.4.2. npm installs nested duplicate
copies, causing TypeScript to see structurally distinct but incompatible
IXHROverride types from different module resolution paths.
Adding the npm override forces all packages to use the same version,
eliminating duplicate nested copies and fixing the TS2345 compile error.
* fix: bump 1ds packages to 4.4.2 to fix applicationinsights-core-js duplicate
@microsoft/1ds-core-js@4.4.2 and @microsoft/1ds-post-js@4.4.2 updated
their pinned dependency on @microsoft/applicationinsights-core-js from
3.4.1 to 3.4.2, matching the top-level version. npm can now naturally
deduplicate to a single copy, eliminating the TypeScript type mismatch
without needing the override workaround.
* chore: remove deprecated @microsoft/1ds-core-js package
@microsoft/1ds-core-js is deprecated; its functionality has been merged
into @microsoft/applicationinsights-core-js. Update 1dsClientFactory.ts
to import AppInsightsCore and IExtendedConfiguration directly from
@microsoft/applicationinsights-core-js and remove the 1ds-core-js
dependency from package.json.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>1 parent 09b228a commit 22104e4
4 files changed
Lines changed: 12 additions & 73 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
| 25 | + | |
28 | 26 | | |
29 | 27 | | |
30 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | | - | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
0 commit comments