Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update runtime dependency "uuid" #9077

Merged
merged 11 commits into from
May 27, 2020
45 changes: 25 additions & 20 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions sdk/core/core-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
"tough-cookie": "^4.0.0",
"tslib": "^1.10.0",
"tunnel": "^0.0.6",
"uuid": "^3.3.2",
"uuid": "^8.1.0",
"xml2js": "^0.4.19"
},
"devDependencies": {
Expand All @@ -160,7 +160,7 @@
"@types/node": "^8.0.0",
"@types/sinon": "^9.0.4",
"@types/tough-cookie": "^4.0.0",
"@types/uuid": "^3.4.3",
"@types/uuid": "^8.0.0",
"@types/xml2js": "^0.4.3",
"@typescript-eslint/eslint-plugin": "^2.0.0",
"@typescript-eslint/parser": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/core-http/src/util/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import uuidv4 from "uuid/v4";
import { v4 as uuidv4 } from "uuid";
import { HttpOperationResponse } from "../httpOperationResponse";
import { RestError } from "../restError";
import { WebResourceLike } from "../webResource";
Expand Down
4 changes: 2 additions & 2 deletions sdk/cosmosdb/cosmos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"priorityqueuejs": "^1.0.0",
"semaphore": "^1.0.5",
"tslib": "^1.10.0",
"uuid": "^3.3.2"
"uuid": "^8.1.0"
},
"devDependencies": {
"@azure/eslint-plugin-azure-sdk": "^2.0.1",
Expand All @@ -106,7 +106,7 @@
"@types/sinon": "^9.0.4",
"@types/tunnel": "^0.0.1",
"@types/underscore": "^1.8.8",
"@types/uuid": "^3.4.3",
"@types/uuid": "^8.0.0",
"@typescript-eslint/eslint-plugin": "^2.0.0",
"@typescript-eslint/eslint-plugin-tslint": "^2.8.0",
"@typescript-eslint/parser": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion sdk/cosmosdb/cosmos/samples/BulkUpdateWithSproc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { logSampleHeader, handleError, finish, logStep } from "./Shared/handleError";
import { CosmosClient } from "../dist";
import { endpoint, key, database as databaseId, container as containerId } from "./Shared/config";
import uuid from "uuid/v4";
import { v4 as uuid } from "uuid";
southpolesteve marked this conversation as resolved.
Show resolved Hide resolved

logSampleHeader("Bulk Update Using Stored Procedures");
// Only to make TypeScript happy
Expand Down
2 changes: 1 addition & 1 deletion sdk/cosmosdb/cosmos/src/ClientContext.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import uuid from "uuid/v4";
import { v4 as uuid } from "uuid";
import { PartitionKeyRange } from "./client/Container/PartitionKeyRange";
import { Resource } from "./client/Resource";
import { Constants, HTTPMethod, OperationType, ResourceType } from "./common/constants";
Expand Down
2 changes: 1 addition & 1 deletion sdk/cosmosdb/cosmos/src/client/Item/Items.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import uuid from "uuid/v4";
import { v4 as uuid } from "uuid";
import { ChangeFeedIterator } from "../../ChangeFeedIterator";
import { ChangeFeedOptions } from "../../ChangeFeedOptions";
import { ClientContext } from "../../ClientContext";
Expand Down
4 changes: 2 additions & 2 deletions sdk/eventhub/event-hubs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"process": "^0.11.10",
"rhea-promise": "^1.0.0",
"tslib": "^1.10.0",
"uuid": "^3.3.2"
"uuid": "^8.1.0"
},
"devDependencies": {
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
Expand All @@ -115,7 +115,7 @@
"@types/mocha": "^7.0.2",
"@types/node": "^8.0.0",
"@types/sinon": "^9.0.4",
"@types/uuid": "^3.4.3",
"@types/uuid": "^8.0.0",
"@types/ws": "^7.2.4",
"@typescript-eslint/eslint-plugin": "^2.0.0",
"@typescript-eslint/parser": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion sdk/eventhub/event-hubs/src/eventHubConsumerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
import { isTokenCredential } from "@azure/core-amqp";
import { PartitionProperties, EventHubProperties } from "./managementClient";
import { PartitionGate } from "./impl/partitionGate";
import uuid from "uuid/v4";
import { v4 as uuid } from "uuid";
import { validateEventPositions } from "./eventPosition";

const defaultConsumerClientOptions: Required<Pick<
Expand Down
2 changes: 1 addition & 1 deletion sdk/eventhub/event-hubs/src/eventHubReceiver.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import uuid from "uuid/v4";
import { v4 as uuid } from "uuid";
import { logger, logErrorStackTrace } from "./log";
import {
Receiver,
Expand Down
2 changes: 1 addition & 1 deletion sdk/eventhub/event-hubs/src/eventHubSender.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import uuid from "uuid/v4";
import { v4 as uuid } from "uuid";
import { logger, logErrorStackTrace } from "./log";
import {
AwaitableSender,
Expand Down
2 changes: 1 addition & 1 deletion sdk/eventhub/event-hubs/src/eventProcessor.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import uuid from "uuid/v4";
import { v4 as uuid } from "uuid";
import { EventHubClient } from "./impl/eventHubClient";
import { PumpManager, PumpManagerImpl } from "./pumpManager";
import { AbortController, AbortSignalLike } from "@azure/abort-controller";
Expand Down
2 changes: 1 addition & 1 deletion sdk/eventhub/event-hubs/src/linkEntity.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import uuid from "uuid/v4";
import { v4 as uuid } from "uuid";
import {
defaultLock,
SharedKeyCredential,
Expand Down
2 changes: 1 addition & 1 deletion sdk/eventhub/event-hubs/src/managementClient.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import uuid from "uuid/v4";
import { v4 as uuid } from "uuid";
import {
RequestResponseLink,
defaultLock,
Expand Down
2 changes: 1 addition & 1 deletion sdk/eventhub/event-hubs/test/misc.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import uuid from "uuid/v4";
import { v4 as uuid } from "uuid";
import chai from "chai";
import assert from "assert";
const should = chai.should();
Expand Down
2 changes: 1 addition & 1 deletion sdk/eventhub/event-hubs/test/receiver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license.

import chai from "chai";
import uuid from "uuid/v4";
import { v4 as uuid } from "uuid";
const should = chai.should();
import chaiAsPromised from "chai-as-promised";
chai.use(chaiAsPromised);
Expand Down
4 changes: 2 additions & 2 deletions sdk/eventhub/event-processor-host/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"debug": "^4.1.1",
"path-browserify": "^1.0.0",
"tslib": "^1.10.0",
"uuid": "^3.3.2"
"uuid": "^8.1.0"
mikeharder marked this conversation as resolved.
Show resolved Hide resolved
},
"devDependencies": {
"@azure/eslint-plugin-azure-sdk": "^2.0.1",
Expand All @@ -90,7 +90,7 @@
"@types/debug": "^4.1.4",
"@types/mocha": "^7.0.2",
"@types/node": "^8.0.0",
"@types/uuid": "^3.4.3",
"@types/uuid": "^8.0.0",
"@types/ws": "^7.2.4",
"@typescript-eslint/eslint-plugin": "^2.0.0",
"@typescript-eslint/parser": "^2.0.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

import uuid from "uuid/v4";
import { v4 as uuid } from "uuid";
import { CheckpointInfo } from "./checkpointInfo";
import { CheckpointManager } from "./checkpointManager";
import { LeaseManager } from "./leaseManager";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

import uuid from "uuid/v4";
import { v4 as uuid } from "uuid";
import {
TokenProvider,
EventHubRuntimeInformation,
Expand Down
2 changes: 1 addition & 1 deletion sdk/eventhub/event-processor-host/src/hostContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

import os from "os";
import uuid from "uuid/v4";
import { v4 as uuid } from "uuid";
import {
EventHubClient,
EventPosition,
Expand Down
2 changes: 1 addition & 1 deletion sdk/eventhub/event-processor-host/test/eph.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import chai from "chai";
import os from "os";
import uuid from "uuid/v4";
import { v4 as uuid } from "uuid";
import chaiAsPromised from "chai-as-promised";
chai.use(chaiAsPromised);
import chaiString from "chai-string";
Expand Down
2 changes: 1 addition & 1 deletion sdk/eventhub/testhub/commands/sendReceive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { CommandBuilder } from "yargs";
import { EventHubClient, EventPosition, EventData, delay } from "@azure/event-hubs";
import { log, setCurrentCommand, randomNumberFromInterval } from "../utils/util";
import uuid from "uuid/v4";
import { v4 as uuid } from "uuid";

export const command = "send-receive";

Expand Down
Loading