Skip to content

Commit 08974a7

Browse files
authored
[core][util] export randomUUID for react-native (Azure#25766)
We have the functionality implemented but didn't export it. This PR adds the export. Related issue Azure#25754 ### Packages impacted by this PR `@azure/core-util`
1 parent a3279d7 commit 08974a7

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

sdk/core/core-util/CHANGELOG.md

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

3-
## 1.3.2 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
3+
## 1.3.2 (2023-05-05)
84

95
### Bugs Fixed
106

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

139
## 1.3.1 (2023-04-13)
1410

sdk/core/core-util/src/uuidUtils.native.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4+
/*
5+
* NOTE: When moving this file, please update "react-native" section in package.json.
6+
*/
7+
48
/**
59
* Generated Universally Unique Identifier
610
*
@@ -28,3 +32,12 @@ export function generateUUID(): string {
2832
}
2933
return uuid;
3034
}
35+
36+
/**
37+
* Generated Universally Unique Identifier
38+
*
39+
* @returns RFC4122 v4 UUID.
40+
*/
41+
export function randomUUID(): string {
42+
return generateUUID();
43+
}

0 commit comments

Comments
 (0)