Skip to content

Commit

Permalink
[core][util] export randomUUID for react-native
Browse files Browse the repository at this point in the history
We have the functionality implemented but didn't export it. This PR adds the
export.

Related issue Azure#25754
  • Loading branch information
jeremymeng committed May 5, 2023
1 parent a3279d7 commit 909d435
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
8 changes: 2 additions & 6 deletions sdk/core/core-util/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
# Release History

## 1.3.2 (Unreleased)

### Features Added

### Breaking Changes
## 1.3.2 (2023-05-05)

### Bugs Fixed

### Other Changes
- Fix an issue where `randomUUID()` is not exported for react-native [issue #25754](https://github.com/Azure/azure-sdk-for-js/issues/25754)

## 1.3.1 (2023-04-13)

Expand Down
13 changes: 13 additions & 0 deletions sdk/core/core-util/src/uuidUtils.native.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

/*
* NOTE: When moving this file, please update "react-native" section in package.json.
*/

/**
* Generated Universally Unique Identifier
*
Expand Down Expand Up @@ -28,3 +32,12 @@ export function generateUUID(): string {
}
return uuid;
}

/**
* Generated Universally Unique Identifier
*
* @returns RFC4122 v4 UUID.
*/
export function randomUUID(): string {
return generateUUID();
}

0 comments on commit 909d435

Please sign in to comment.