Deprecated property of Web API (nagivator.oscpu and nagivator.platform) used in Azure SDK / Azure Identity #24758
Labels
Azure.Core
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Azure SDK Core
in particular, https://www.npmjs.com/package/@azure/identity
Latest commit e4838de
https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-rest-pipeline/src/util/userAgentPlatform.browser.ts#L23-L26
Operating system:
typescript
Is the bug related to documentation in
Describe the bug
The mdn Web API declares globalThis.navigator.oscpu and globalThis.navigator.platform to be deprecated. These should be removed from the SDK.
To Reproduce
N/A
Expected behavior
Azure SDK does not use deprecated features.
Screenshots
N/A
Additional context
It has caused incompatibilities with our Deno-based JS Runtime. Therefore, a hack had to be introduced that manually sets the globalThis.navigator.platform. This should not be necessary.
The text was updated successfully, but these errors were encountered: