Skip to content

Commit 659538c

Browse files
authored
[data-tables] fix ReferenceError (#36588)
The issue is that in non-NodeJS environment `process` could be undefined, causing this error: > ReferenceError: process is not defined This PR updates it to use `globalThis.process`. Fixes #36567
1 parent 25095ae commit 659538c

File tree

6 files changed

+11
-5
lines changed

6 files changed

+11
-5
lines changed

sdk/tables/data-tables/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release History
22

3+
## 13.3.2 (2025-11-14)
4+
5+
### Bugs Fixed
6+
7+
- Fix issue [#36588](https://github.com/Azure/azure-sdk-for-js/pull/36588) where a ReferenceError is thrown in browser.
8+
39
## 13.3.1 (2025-05-06)
410

511
### Bugs Fixed

sdk/tables/data-tables/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure/data-tables",
3-
"version": "13.3.1",
3+
"version": "13.3.2",
44
"description": "An isomorphic client library for the Azure Tables service.",
55
"sdk-type": "client",
66
"main": "./dist/commonjs/index.js",

sdk/tables/data-tables/src/generated/generatedClientContext.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/tables/data-tables/src/utils/isCosmosEndpoint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function isCosmosEndpoint(url: string): boolean {
1919
return false;
2020
}
2121

22-
const azuriteAccounts = process?.env?.AZURITE_ACCOUNTS?.split(":");
22+
const azuriteAccounts = globalThis.process?.env?.AZURITE_ACCOUNTS?.split(":");
2323
if (azuriteAccounts?.[0] && parsedURL.hostname.includes(azuriteAccounts[0])) {
2424
return false;
2525
}

sdk/tables/data-tables/src/utils/tracing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ import { createTracingClient } from "@azure/core-tracing";
1010
export const tracingClient = createTracingClient({
1111
namespace: "Microsoft.Data.Tables",
1212
packageName: "@azure/data-tables",
13-
packageVersion: "13.3.1",
13+
packageVersion: "13.3.2",
1414
});

sdk/tables/data-tables/swagger/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
```yaml
88
v3: true
9-
package-version: 13.3.1
9+
package-version: 13.3.2
1010
package-name: "@azure/data-tables"
1111
title: TablesClient
1212
description: Tables Client

0 commit comments

Comments
 (0)