From 4313ac44a1230b986b6e52fcaec5356b83442ee7 Mon Sep 17 00:00:00 2001 From: Maor Leger Date: Wed, 5 May 2021 09:23:58 -0700 Subject: [PATCH 1/4] Use self instead of window --- lib/policies/msRestUserAgentPolicy.browser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/policies/msRestUserAgentPolicy.browser.ts b/lib/policies/msRestUserAgentPolicy.browser.ts index ec37b93..9b688a4 100644 --- a/lib/policies/msRestUserAgentPolicy.browser.ts +++ b/lib/policies/msRestUserAgentPolicy.browser.ts @@ -18,7 +18,7 @@ export function getDefaultUserAgentKey(): string { } export function getPlatformSpecificData(): TelemetryInfo[] { - const navigator = window.navigator as NavigatorEx; + const navigator = self.navigator as NavigatorEx; const osInfo = { key: "OS", value: (navigator.oscpu || navigator.platform).replace(" ", ""), From 66936c323e52fb4dbcd5237bfc6c08b7b21d7731 Mon Sep 17 00:00:00 2001 From: Maor Leger Date: Wed, 5 May 2021 09:25:53 -0700 Subject: [PATCH 2/4] changelog --- Changelog.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Changelog.md b/Changelog.md index a38f62f..83e8aca 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,5 +1,9 @@ # Changelog +## 2.4.1 - (unreleased) + +- Use `self` instead of `window` in order to support web workers. + ## 2.4.0 - 2021-04-19 - Expose `AzureIdentityCredentialAdapter` in the public API to enable users of this package make use of credentials from `@azure/identity`. From 07c6d3a306a1b607c28978d1595a4e7865806f80 Mon Sep 17 00:00:00 2001 From: Maor Leger Date: Wed, 5 May 2021 09:42:55 -0700 Subject: [PATCH 3/4] use today's date in changelog --- Changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index 83e8aca..8ae99d1 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,6 +1,6 @@ # Changelog -## 2.4.1 - (unreleased) +## 2.4.1 - (2021-05-05) - Use `self` instead of `window` in order to support web workers. From bae8216f47c9fb4dbc2c7c1b0daf760b5a526e7b Mon Sep 17 00:00:00 2001 From: Maor Leger Date: Wed, 5 May 2021 09:43:37 -0700 Subject: [PATCH 4/4] update package version --- lib/util/constants.ts | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util/constants.ts b/lib/util/constants.ts index 5437b78..537230d 100644 --- a/lib/util/constants.ts +++ b/lib/util/constants.ts @@ -7,7 +7,7 @@ export const Constants = { * @const * @type {string} */ - msRestVersion: "2.4.0", + msRestVersion: "2.4.1", /** * Specifies HTTP. diff --git a/package.json b/package.json index 80a4f7a..5ed31a2 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "email": "azsdkteam@microsoft.com", "url": "https://github.com/Azure/ms-rest-js" }, - "version": "2.4.0", + "version": "2.4.1", "description": "Isomorphic client Runtime for Typescript/node.js/browser javascript client libraries generated using AutoRest", "tags": [ "isomorphic",