@thi.ng/colored-noise 1.0.55 → 1.0.57

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**: 2024-02-22T11:59:16Z
3
+ - **Last updated**: 2024-02-25T14:07:53Z
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.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [1.0.56](https://github.com/thi-ng/umbrella/tree/@thi.ng/colored-noise@1.0.56) (2024-02-22)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - update object destructuring in all pkgs & examples ([f36aeb0](https://github.com/thi-ng/umbrella/commit/f36aeb0))
17
+
12
18
  ### [1.0.35](https://github.com/thi-ng/umbrella/tree/@thi.ng/colored-noise@1.0.35) (2023-11-09)
13
19
 
14
20
  #### ♻️ Refactoring
package/README.md CHANGED
@@ -388,7 +388,7 @@ For Node.js REPL:
388
388
  const coloredNoise = await import("@thi.ng/colored-noise");
389
389
  ```
390
390
 
391
- Package sizes (brotli'd, pre-treeshake): ESM: 496 bytes
391
+ Package sizes (brotli'd, pre-treeshake): ESM: 494 bytes
392
392
 
393
393
  ## Dependencies
394
394
 
package/blue.js CHANGED
@@ -1,10 +1,7 @@
1
1
  import { DEFAULT_OPTS } from "./api.js";
2
2
  import { preseed, sum } from "./utils.js";
3
3
  function* blue(opts) {
4
- const { bins, scale, rnd } = {
5
- ...DEFAULT_OPTS,
6
- ...opts
7
- };
4
+ const { bins, scale, rnd } = { ...DEFAULT_OPTS, ...opts };
8
5
  const state = preseed(bins, scale, rnd);
9
6
  state.forEach((x, i) => state[i] = i & 1 ? x : -x);
10
7
  const invN = 1 / bins;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/colored-noise",
3
- "version": "1.0.55",
3
+ "version": "1.0.57",
4
4
  "description": "Customizable O(1) ES6 generators for colored noise",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -35,17 +35,17 @@
35
35
  "test": "bun test"
36
36
  },
37
37
  "dependencies": {
38
- "@thi.ng/binary": "^3.4.14",
39
- "@thi.ng/random": "^3.6.32"
38
+ "@thi.ng/binary": "^3.4.15",
39
+ "@thi.ng/random": "^3.6.33"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@microsoft/api-extractor": "^7.40.1",
43
- "@thi.ng/api": "^8.9.25",
44
- "@thi.ng/dsp": "^4.7.13",
45
- "@thi.ng/dsp-io-wav": "^2.1.99",
46
- "@thi.ng/text-canvas": "^3.0.2",
47
- "@thi.ng/transducers": "^8.9.5",
48
- "@thi.ng/vectors": "^7.10.10",
43
+ "@thi.ng/api": "^8.9.26",
44
+ "@thi.ng/dsp": "^4.7.15",
45
+ "@thi.ng/dsp-io-wav": "^2.1.101",
46
+ "@thi.ng/text-canvas": "^3.0.4",
47
+ "@thi.ng/transducers": "^8.9.7",
48
+ "@thi.ng/vectors": "^7.10.12",
49
49
  "esbuild": "^0.20.0",
50
50
  "rimraf": "^5.0.5",
51
51
  "typedoc": "^0.25.7",
@@ -111,5 +111,5 @@
111
111
  ],
112
112
  "year": 2015
113
113
  },
114
- "gitHead": "4513a1c703bdbf0f0867f03e547e47692e415fac\n"
114
+ "gitHead": "6e20f80dd9df1c8055ffa3c1e4d6f7598add0c0b\n"
115
115
  }
package/pink.js CHANGED
@@ -2,11 +2,7 @@ import { ctz32 } from "@thi.ng/binary/count";
2
2
  import { DEFAULT_OPTS } from "./api.js";
3
3
  import { preseed, sum } from "./utils.js";
4
4
  function* pink(opts) {
5
- const { bins, scale, rnd } = {
6
- ...DEFAULT_OPTS,
7
- bins: 8,
8
- ...opts
9
- };
5
+ const { bins = 8, scale, rnd } = { ...DEFAULT_OPTS, ...opts };
10
6
  const state = preseed(bins, scale, rnd);
11
7
  const invN = 1 / bins;
12
8
  let acc = sum(state);
package/red.js CHANGED
@@ -1,10 +1,7 @@
1
1
  import { DEFAULT_OPTS } from "./api.js";
2
2
  import { preseed, sum } from "./utils.js";
3
3
  function* red(opts) {
4
- const { bins, scale, rnd } = {
5
- ...DEFAULT_OPTS,
6
- ...opts
7
- };
4
+ const { bins, scale, rnd } = { ...DEFAULT_OPTS, ...opts };
8
5
  const state = preseed(bins, scale, rnd);
9
6
  const invN = 1 / bins;
10
7
  let acc = sum(state);