1 | # 2.1.0 (2019-05-30)
|
2 |
|
3 | - Changed `dist/` outputs:
|
4 | - `random-js.js` => `random-js.umd.js`
|
5 | - `random-js.mjs` => `random-js.esm.js`
|
6 | - `random-js.min.js` => `random-js.umd.min.js`
|
7 |
|
8 | # 2.0.0 (2019-04-01)
|
9 |
|
10 | - Release 2.0.0 (no code changes from 2.0.0-rc5)
|
11 |
|
12 | # 2.0.0-rc5 (2019-03-15)
|
13 |
|
14 | - Add sourcemaps
|
15 |
|
16 | # 2.0.0-rc4 (2019-03-15)
|
17 |
|
18 | - Improve minified bundle size
|
19 | - Add `"sideEffects": false` to `package.json` as a hint to Webpack
|
20 |
|
21 | # 2.0.0-rc3 (2019-03-10)
|
22 |
|
23 | - Provide a binding for `try`-`catch` to help parsing issues [#30](https://github.com/ckknight/random-js/issues/30)
|
24 |
|
25 | # 2.0.0-rc2 (2019-02-20)
|
26 |
|
27 | - Added `nodeCrypto` engine
|
28 | - Exposed `createEntropy` function, which can be used when seeding a Mersenne Twister
|
29 | - Changed `browserCrypto` to no longer be `null` if outside of a browser context, instead `throw`ing on first use.
|
30 |
|
31 | # 2.0.0-rc1 (2019-02-17)
|
32 |
|
33 | - Converted to TypeScript, with type definitions available.
|
34 | - Using ESNext-style modules (though still available as UMD)
|
35 | - Changed exports so that they are not available on the `Random` class, but instead in a flat hierarchy.
|
36 | - Switched from jasmine to jest
|
37 | - Using rollup to package the build
|
38 | - Changed .travis.yml node versions
|
39 |
|
40 | # 1.0.8 (2015-10-13)
|
41 |
|
42 | - add `getUseCount()` to the `mt19937` engine, which returns how many requests or discards have occurred.
|
43 |
|
44 | # 1.0.7 (2015-10-13)
|
45 |
|
46 | - the current time is now used in `Random.generateEntropyArray`
|
47 |
|
48 | # 1.0.6 (2015-09-28)
|
49 |
|
50 | - removed the optionalDependencies in package.json "benchmark" and "microtime".
|
51 |
|
52 | # 1.0.5 (2015-03-03)
|
53 |
|
54 | - `sample()` results are no longer biased toward the final element.
|
55 | - `discard(count)` on the `mt19937` engine properly works when count is less than 625
|
56 | - Clarify that the built-in engines return signed 32-bit integers (not unsigned).
|
57 |
|
58 | # 1.0.4 (2014-05-11)
|
59 |
|
60 | - `string('')` now throws an error
|
61 | - `hex(upper)` now returns a cached function, for efficiency.
|
62 | - add `int32()`, which returns an integer from `-0x80000000` to `0x7fffffff`.
|
63 | - performance enhancements
|
64 | - add benchmark suite, covers engines, integer, bool, and real.
|
65 | - add `date(start, end)`, which returns a Date within a uniform distribution.
|
66 |
|
67 | # 1.0.3 (2014-04-23)
|
68 |
|
69 | - `Random` no longer needs to be called with new, allowing `var r = require('random-js')()`
|
70 | - Add `begin` and `end` arguments to `pick` and `picker`.
|
71 |
|
72 | # 1.0.2 (2014-03-20)
|
73 |
|
74 | - Even if `shuffle` receives an empty array, it should return that same array.
|
75 |
|
76 | # 1.0.1 (2014-03-20)
|
77 |
|
78 | - Fix `sample` and `shuffle` when they are passed an empty array.
|
79 | - Include `-c` (compress) option when uglifying.
|
80 |
|
81 | # 1.0.0 (2014-02-16)
|
82 |
|
83 | Initial release
|