@thi.ng/random 3.3.7 → 3.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2022-08-01T14:54:00Z
3
+ - **Last updated**: 2022-10-03T16:07:55Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <!-- This file is generated - DO NOT EDIT! -->
2
2
 
3
- # ![random](https://media.thi.ng/umbrella/banners/thing-random.svg?aee58c49)
3
+ # ![random](https://media.thi.ng/umbrella/banners-20220914/thing-random.svg?c79b7908)
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@thi.ng/random.svg)](https://www.npmjs.com/package/@thi.ng/random)
6
6
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/random.svg)
@@ -12,9 +12,9 @@ This project is part of the
12
12
  - [About](#about)
13
13
  - [Random distributions](#random-distributions)
14
14
  - [Other utilities](#other-utilities)
15
- - [Status](#status)
16
- - [Support packages](#support-packages)
17
- - [Related packages](#related-packages)
15
+ - [Status](#status)
16
+ - [Support packages](#support-packages)
17
+ - [Related packages](#related-packages)
18
18
  - [Installation](#installation)
19
19
  - [Dependencies](#dependencies)
20
20
  - [Usage examples](#usage-examples)
@@ -59,17 +59,17 @@ Partially ported from C implementations taken from [c.thi.ng](http://c.thi.ng).
59
59
  - [`uniqueIndices()` / `uniqueValuesFrom()`](https://github.com/thi-ng/umbrella/tree/develop/packages/random/src/unique-indices.ts)
60
60
  - [`uuidv4Bytes()` / `uuid()`](https://github.com/thi-ng/umbrella/tree/develop/packages/random/src/uuid.ts)
61
61
 
62
- ### Status
62
+ ## Status
63
63
 
64
64
  **STABLE** - used in production
65
65
 
66
66
  [Search or submit any issues for this package](https://github.com/thi-ng/umbrella/issues?q=%5Brandom%5D+in%3Atitle)
67
67
 
68
- ### Support packages
68
+ ## Support packages
69
69
 
70
70
  - [@thi.ng/random-fxhash](https://github.com/thi-ng/umbrella/tree/develop/packages/random-fxhash) - [@thi.ng/random](https://github.com/thi-ng/umbrella/tree/develop/packages/random) compatible wrapper & utilities for fxhash's PRNG
71
71
 
72
- ### Related packages
72
+ ## Related packages
73
73
 
74
74
  - [@thi.ng/ksuid](https://github.com/thi-ng/umbrella/tree/develop/packages/ksuid) - Configurable K-sortable unique IDs, ULIDs, binary & base-N encoded, 32/48/64bit time resolutions
75
75
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/random",
3
- "version": "3.3.7",
3
+ "version": "3.3.9",
4
4
  "description": "Pseudo-random number generators w/ unified API, distributions, weighted choices, ID generation",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,18 +34,18 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.4.1",
38
- "@thi.ng/checks": "^3.2.4",
39
- "@thi.ng/errors": "^2.1.10",
40
- "@thi.ng/hex": "^2.1.9"
37
+ "@thi.ng/api": "^8.4.3",
38
+ "@thi.ng/checks": "^3.2.6",
39
+ "@thi.ng/errors": "^2.2.1",
40
+ "@thi.ng/hex": "^2.2.1"
41
41
  },
42
42
  "devDependencies": {
43
- "@microsoft/api-extractor": "^7.25.0",
44
- "@thi.ng/testament": "^0.2.12",
43
+ "@microsoft/api-extractor": "^7.31.1",
44
+ "@thi.ng/testament": "^0.3.1",
45
45
  "rimraf": "^3.0.2",
46
46
  "tools": "^0.0.1",
47
47
  "typedoc": "^0.22.17",
48
- "typescript": "^4.7.4"
48
+ "typescript": "^4.8.3"
49
49
  },
50
50
  "keywords": [
51
51
  "binary",
@@ -156,5 +156,5 @@
156
156
  "ksuid"
157
157
  ]
158
158
  },
159
- "gitHead": "be8423e2019e95c14a096260a93b9762dde0c768\n"
159
+ "gitHead": "8600007d81a7dc92634a1d54e2c32b14ab30ba80\n"
160
160
  }
package/pick-random.d.ts CHANGED
@@ -16,5 +16,5 @@ export declare const pickRandom: <T>(src: ArrayLike<T>, rnd?: IRandom, start?: n
16
16
  * @param obj
17
17
  * @param rnd
18
18
  */
19
- export declare const pickRandomKey: <T>(obj: T, rnd?: IRandom) => keyof T;
19
+ export declare const pickRandomKey: <T extends object>(obj: T, rnd?: IRandom) => keyof T;
20
20
  //# sourceMappingURL=pick-random.d.ts.map