@alwatr/random
Version:
A lightweight utility library for generating random numbers, strings, UUIDs and more
201 lines (113 loc) โข 12.8 kB
Markdown
# Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [5.1.29](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.28...@alwatr/random@5.1.29) (2026-02-18)
**Note:** Version bump only for package @alwatr/random
## [5.1.28](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.27...@alwatr/random@5.1.28) (2025-12-23)
**Note:** Version bump only for package @alwatr/random
## [5.1.27](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.26...@alwatr/random@5.1.27) (2025-12-13)
**Note:** Version bump only for package @alwatr/random
## [5.1.26](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.25...@alwatr/random@5.1.26) (2025-12-10)
**Note:** Version bump only for package @alwatr/random
## [5.1.25](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.24...@alwatr/random@5.1.25) (2025-11-18)
### ๐จ Code Refactoring
* remove unnecessary type declarations from tsconfig.json files ([89bcc7d](https://github.com/Alwatr/nanolib/commit/89bcc7db839807110b80f8ba34414ea9734d9c75))
## [5.1.24](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.23...@alwatr/random@5.1.24) (2025-11-15)
**Note:** Version bump only for package @alwatr/random
## [5.1.23](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.22...@alwatr/random@5.1.23) (2025-11-15)
**Note:** Version bump only for package @alwatr/random
## [5.1.22](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.21...@alwatr/random@5.1.22) (2025-11-04)
**Note:** Version bump only for package @alwatr/random
## [5.1.21](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.20...@alwatr/random@5.1.21) (2025-10-06)
### ๐ Dependencies update
* bump the npm-dependencies group with 4 updates ([9825815](https://github.com/Alwatr/nanolib/commit/982581552bbb4b97dca52af5e93a80937f0c3109))
## [5.1.20](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.19...@alwatr/random@5.1.20) (2025-09-27)
### ๐งน Miscellaneous Chores
* exclude test files from package distribution ([86f4f2f](https://github.com/Alwatr/nanolib/commit/86f4f2f5985845c5cf3a3a9398de7b2f98ce53e7))
## [5.1.19](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.18...@alwatr/random@5.1.19) (2025-09-22)
**Note:** Version bump only for package @alwatr/random
## [5.1.18](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.17...@alwatr/random@5.1.18) (2025-09-22)
**Note:** Version bump only for package @alwatr/random
## [5.1.17](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.16...@alwatr/random@5.1.17) (2025-09-21)
**Note:** Version bump only for package @alwatr/random
## [5.1.16](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.15...@alwatr/random@5.1.16) (2025-09-20)
### ๐ Bug Fixes
* add sideEffects property to package.json files for better tree-shaking ([c7b9e74](https://github.com/Alwatr/nanolib/commit/c7b9e74e1920c8e35b438742de61883ca62da58c))
* add sideEffects property to package.json files for better tree-shaking ([e8402c4](https://github.com/Alwatr/nanolib/commit/e8402c481a14a1f807a37aaa862a936713d26176))
* remove unnecessary pure annotations ([adeb916](https://github.com/Alwatr/nanolib/commit/adeb9166f8e911f59269032b76c36cb1888332cf))
### ๐งน Miscellaneous Chores
* remove duplicate sideEffects property from multiple package.json files ([b123f86](https://github.com/Alwatr/nanolib/commit/b123f86be81481de2314aae9bb2eeb629743d24c))
## [5.1.15](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.14...@alwatr/random@5.1.15) (2025-09-19)
**Note:** Version bump only for package @alwatr/random
## [5.1.14](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.13...@alwatr/random@5.1.14) (2025-09-15)
**Note:** Version bump only for package @alwatr/random
## [5.1.13](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.12...@alwatr/random@5.1.13) (2025-09-14)
**Note:** Version bump only for package @alwatr/random
## [5.1.12](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.11...@alwatr/random@5.1.12) (2025-09-13)
**Note:** Version bump only for package @alwatr/random
## [5.1.11](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.10...@alwatr/random@5.1.11) (2025-09-13)
### ๐งน Miscellaneous Chores
* remove package-tracer dependency and related code from fetch package ([96fe4e9](https://github.com/Alwatr/nanolib/commit/96fe4e9552a205f218ceed187c55e4e904a07089))
## [5.1.10](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.9...@alwatr/random@5.1.10) (2025-09-09)
### ๐งน Miscellaneous Chores
* remove trailing newlines from contributing sections in README files ([e8ab1bc](https://github.com/Alwatr/nanolib/commit/e8ab1bc43e0addea5ccd4c897c2cec597cb9e15f))
## [5.1.9](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.8...@alwatr/random@5.1.9) (2025-09-08)
### ๐จ Code Refactoring
* **main:** mark getGlobalThis and hasCrypto as pure for optimization ([8474cc2](https://github.com/Alwatr/nanolib/commit/8474cc247ef0a7df0975c72a5c1ab8240844b810))
## [5.1.8](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.7...@alwatr/random@5.1.8) (2025-09-06)
**Note:** Version bump only for package @alwatr/random
## [5.1.7](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.6...@alwatr/random@5.1.7) (2025-09-05)
### ๐ Dependencies update
* update jest to version 30.1.3 and @types/node to version 22.18.1 ([754212b](https://github.com/Alwatr/nanolib/commit/754212b1523cfc4cfe26c9e9f6d634aa8311e0b7))
## [5.1.6](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.5...@alwatr/random@5.1.6) (2025-09-01)
### ๐ Dependencies update
* update lerna-lite dependencies to version 4.7.3 and jest to 30.1.2 ([95d7870](https://github.com/Alwatr/nanolib/commit/95d7870ec7ad1e6ed2688bafddcabf46857f6981))
## [5.1.5](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.4...@alwatr/random@5.1.5) (2025-08-23)
**Note:** Version bump only for package @alwatr/random
## [5.1.4](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.2...@alwatr/random@5.1.4) (2025-08-23)
### ๐ Bug Fixes
* update license from AGPL-3.0-only to MPL-2.0 ([d20968e](https://github.com/Alwatr/nanolib/commit/d20968e60cc89b1dcdf9b96507178da6ed562f55))
* update package versions in multiple package.json files ([7638b1c](https://github.com/Alwatr/nanolib/commit/7638b1cafee2b4e0f97db7a89ac9fba6384b9b10))
### ๐จ Code Refactoring
* Updated all package.json files in the project to change dependency version specifiers from "workspace:^" to "workspace:*" for consistency and to allow for more flexible version resolution. ([db6a4f7](https://github.com/Alwatr/nanolib/commit/db6a4f76deec2d1d8039978144e4bc51b6f1a0e3))
### ๐งน Miscellaneous Chores
* reformat all package.json files ([ceda45d](https://github.com/Alwatr/nanolib/commit/ceda45de186667790474f729cb4b161a5148ce19))
### ๐ Dependencies update
* update TypeScript and Jest versions across all packages to improve compatibility and performance ([31baf36](https://github.com/Alwatr/nanolib/commit/31baf366101e92e27db66a21c849fb101f19be47))
## [5.1.3](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.2...@alwatr/random@5.1.3) (2025-08-23)
### Code Refactoring
* Updated all package.json files in the project to change dependency version specifiers from "workspace:^" to "workspace:*" for consistency and to allow for more flexible version resolution. ([db6a4f7](https://github.com/Alwatr/nanolib/commit/db6a4f76deec2d1d8039978144e4bc51b6f1a0e3)) by @alimd
## <small>5.1.2 (2025-04-15)</small>
**Note:** Version bump only for package @alwatr/random
## [5.1.1](https://github.com/Alwatr/nanolib/compare/@alwatr/random@5.1.0...@alwatr/random@5.1.1) (2025-04-01)
**Note:** Version bump only for package @alwatr/random
## 5.1.0 (2025-03-18)
### Features
* **random:** add hex function to convert Uint8Array to hexadecimal string ([61125e7](https://github.com/Alwatr/nanolib/commit/61125e7cf8b87094e026f578f8141df6ea5153f8)) by @alimd
* **random:** add package.json for @alwatr/random utility library ([4c02a70](https://github.com/Alwatr/nanolib/commit/4c02a70a46a740ca7480769f8857880db296662a)) by @alimd
* **random:** add randBoolean function to generate random boolean values with specified probability ([22ceca5](https://github.com/Alwatr/nanolib/commit/22ceca51af9e41bcd179a457a418736548865551)) by @alimd
* **random:** add randColor function to generate random hex color strings ([1bde087](https://github.com/Alwatr/nanolib/commit/1bde0873459047e3ac9b11fe22a42600780daaca)) by @alimd
* **random:** add randFloat function to generate a random float between specified min and max values ([1c7862a](https://github.com/Alwatr/nanolib/commit/1c7862af5239eb76589f537184b82bcf098f377b)) by @alimd
* **random:** add randInteger function to generate a random integer between specified min and max values ([d9bf2c4](https://github.com/Alwatr/nanolib/commit/d9bf2c4c0bfc39030007679e3cf1a8ef90016b09)) by @alimd
* **random:** add randPick function to select a random item from an array ([b4d9620](https://github.com/Alwatr/nanolib/commit/b4d962021f7cd180e89b4a32f2a7c85367e61cf6)) by @alimd
* **random:** add randShuffle function to shuffle an array in place ([4124ec5](https://github.com/Alwatr/nanolib/commit/4124ec5e1ba2ec0915a91623333ef3b2d575fe5a)) by @alimd
* **random:** add randStep function to generate a random integer between min and max with a specified step ([52bddca](https://github.com/Alwatr/nanolib/commit/52bddca00927780d28acb41e56f9558003a71476)) by @alimd
* **random:** add randString function to generate a random string of specified length ([92fd657](https://github.com/Alwatr/nanolib/commit/92fd65764d370209f7e2115d1bee85e7da753a1f)) by @alimd
* **random:** add randUuid function to generate random UUIDs (v4) ([805a941](https://github.com/Alwatr/nanolib/commit/805a9413fb9080e9bd90b162cbbbe9907c462d4a)) by @alimd
* **random:** add randValues function to fill a typed array with cryptographically strong random values ([a3274c6](https://github.com/Alwatr/nanolib/commit/a3274c6c1a532ea05b4c9c0c9d7d98f9b452f37c)) by @alimd
* **random:** add TypeScript configuration for @alwatr/random package ([6e8c85e](https://github.com/Alwatr/nanolib/commit/6e8c85ee358149ad1db17b432d4135fa38bc1488)) by @alimd
* **random:** add UUID type alias for UUID string representation ([4f23d80](https://github.com/Alwatr/nanolib/commit/4f23d802672731d8700cf6808dd6bd7b18d3c0c4)) by @alimd
* **random:** enhance randString function to support custom character sets and update documentation ([f8bc2d7](https://github.com/Alwatr/nanolib/commit/f8bc2d7091338cdccaa08b423c62f7797ffd21ef)) by @alimd
* **random:** implement randNumber function to generate a random float between 0 and 1 ([6b06f45](https://github.com/Alwatr/nanolib/commit/6b06f4559334fc06d6987f4d76b04b6584c5f9b1)) by @alimd
### Bug Fixes
* downgrade version of hash-string and random packages to 5.0.0 ([176fc5c](https://github.com/Alwatr/nanolib/commit/176fc5c6a5af37d8b7cb7f41336910f0e8fcd0a9)) by @
* **random:** initialize globalThis variable using getGlobalThis function ([191a827](https://github.com/Alwatr/nanolib/commit/191a827232762a435cc6b87f1cee31c0f1a8fc46)) by @alimd
### Code Refactoring
* **random:** improve randShuffle function to use Fisher-Yates algorithm for better shuffling ([3226a60](https://github.com/Alwatr/nanolib/commit/3226a605ac5b6211f82897e3e691347b30a69efa)) by @alimd
* **random:** rename hex function to bytesToHex and update documentation for clarity ([3fcb327](https://github.com/Alwatr/nanolib/commit/3fcb327b41a5016cd5e7e7b5945f5b36383b3ab7)) by @alimd
* **random:** rename randValues to randArray and update documentation for clarity and functionality ([48f8bd4](https://github.com/Alwatr/nanolib/commit/48f8bd469fe48a4db9cd0768cd2897cc6ad4f8a2)) by @alimd
* **random:** replace randNumber with Math.random for improved clarity and performance ([c6227d5](https://github.com/Alwatr/nanolib/commit/c6227d5ac9217d8fdf89501673f52fa44464ef19)) by @alimd
* **random:** replace randValues with randArray in randUuid function for consistency ([7b6fb37](https://github.com/Alwatr/nanolib/commit/7b6fb378c7705f8cf1604287638e482a33ae6d5e)) by @alimd
* **random:** update bytesToHex function to accept number arrays and improve documentation ([6fef474](https://github.com/Alwatr/nanolib/commit/6fef474d3cb5aa6d10adcac37c1fc5256ca62605)) by @alimd
### Miscellaneous Chores
* **random:** add @alwatr/global-this dependency to package.json ([23856a1](https://github.com/Alwatr/nanolib/commit/23856a151b959a237a2e9a011cf6fb08a2f36eb1)) by @alimd