@thi.ng/lowdisc 1.0.21 → 1.0.26

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/README.md CHANGED
@@ -99,7 +99,7 @@ For Node.js REPL:
99
99
  const ld = await import("@thi.ng/lowdisc");
100
100
  ```
101
101
 
102
- Package sizes (brotli'd, pre-treeshake): ESM: 456 bytes
102
+ Package sizes (brotli'd, pre-treeshake): ESM: 458 bytes
103
103
 
104
104
  ## Dependencies
105
105
 
package/lowdisc.js CHANGED
@@ -3,21 +3,21 @@ const lowDiscrepancy = (dims, offset = 0) => {
3
3
  const num = dims.length;
4
4
  assert(num > 0, `invalid dimensions`);
5
5
  const [x, y, z] = dims;
6
- const iter = num === 1 ? function* () {
6
+ const iter = num === 1 ? (function* () {
7
7
  while (true) yield [x.next().value];
8
- }() : num === 2 ? function* () {
8
+ })() : num === 2 ? (function* () {
9
9
  while (true)
10
10
  yield [x.next().value, y.next().value];
11
- }() : num === 3 ? function* () {
11
+ })() : num === 3 ? (function* () {
12
12
  while (true)
13
13
  yield [
14
14
  x.next().value,
15
15
  y.next().value,
16
16
  z.next().value
17
17
  ];
18
- }() : function* () {
18
+ })() : (function* () {
19
19
  while (true) yield dims.map((d) => d.next().value);
20
- }();
20
+ })();
21
21
  for (; offset-- > 0; ) iter.next();
22
22
  return iter;
23
23
  };
package/package.json CHANGED
@@ -1,100 +1,100 @@
1
1
  {
2
- "name": "@thi.ng/lowdisc",
3
- "version": "1.0.21",
4
- "description": "n-dimensional low-discrepancy sequence generators/iterators",
5
- "type": "module",
6
- "module": "./index.js",
7
- "typings": "./index.d.ts",
8
- "sideEffects": false,
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/thi-ng/umbrella.git"
12
- },
13
- "homepage": "https://thi.ng/lowdisc",
14
- "funding": [
15
- {
16
- "type": "github",
17
- "url": "https://github.com/sponsors/postspectacular"
18
- },
19
- {
20
- "type": "patreon",
21
- "url": "https://patreon.com/thing_umbrella"
22
- },
23
- {
24
- "type": "liberapay",
25
- "url": "https://liberapay.com/thi.ng"
26
- }
27
- ],
28
- "author": "Karsten Schmidt (https://thi.ng)",
29
- "license": "Apache-2.0",
30
- "scripts": {
31
- "build": "yarn build:esbuild && yarn build:decl",
32
- "build:decl": "tsc --declaration --emitDeclarationOnly",
33
- "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
- "clean": "bun ../../tools/src/clean-package.ts",
35
- "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
- "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
- "pub": "yarn npm publish --access public",
38
- "test": "bun test",
39
- "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
- },
41
- "dependencies": {
42
- "@thi.ng/errors": "^2.5.42"
43
- },
44
- "devDependencies": {
45
- "esbuild": "^0.25.9",
46
- "typedoc": "^0.28.12",
47
- "typescript": "^5.9.2"
48
- },
49
- "keywords": [
50
- "golden-ratio",
51
- "halton",
52
- "iterator",
53
- "kronecker",
54
- "low-discrepancy",
55
- "monte-carlo",
56
- "nd",
57
- "plastic-number",
58
- "random",
59
- "sample",
60
- "sequence",
61
- "typescript"
62
- ],
63
- "publishConfig": {
64
- "access": "public"
65
- },
66
- "engines": {
67
- "node": ">=18"
68
- },
69
- "files": [
70
- "./*.js",
71
- "./*.d.ts"
72
- ],
73
- "exports": {
74
- ".": {
75
- "default": "./index.js"
76
- },
77
- "./halton": {
78
- "default": "./halton.js"
79
- },
80
- "./kronecker": {
81
- "default": "./kronecker.js"
82
- },
83
- "./lowdisc": {
84
- "default": "./lowdisc.js"
85
- },
86
- "./plastic": {
87
- "default": "./plastic.js"
88
- }
89
- },
90
- "thi.ng": {
91
- "alias": "ld",
92
- "related": [
93
- "poisson",
94
- "random"
95
- ],
96
- "status": "beta",
97
- "year": 2020
98
- },
99
- "gitHead": "e215a3e8de3809736ba0042c93bd8703a5a1a337\n"
100
- }
2
+ "name": "@thi.ng/lowdisc",
3
+ "version": "1.0.26",
4
+ "description": "n-dimensional low-discrepancy sequence generators/iterators",
5
+ "type": "module",
6
+ "module": "./index.js",
7
+ "typings": "./index.d.ts",
8
+ "sideEffects": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/thi-ng/umbrella.git"
12
+ },
13
+ "homepage": "https://thi.ng/lowdisc",
14
+ "funding": [
15
+ {
16
+ "type": "github",
17
+ "url": "https://github.com/sponsors/postspectacular"
18
+ },
19
+ {
20
+ "type": "patreon",
21
+ "url": "https://patreon.com/thing_umbrella"
22
+ },
23
+ {
24
+ "type": "liberapay",
25
+ "url": "https://liberapay.com/thi.ng"
26
+ }
27
+ ],
28
+ "author": "Karsten Schmidt (https://thi.ng)",
29
+ "license": "Apache-2.0",
30
+ "scripts": {
31
+ "build": "yarn build:esbuild && yarn build:decl",
32
+ "build:decl": "tsc --declaration --emitDeclarationOnly",
33
+ "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
+ "clean": "bun ../../tools/src/clean-package.ts",
35
+ "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
+ "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
+ "pub": "npm publish --access public",
38
+ "test": "bun test",
39
+ "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
+ },
41
+ "dependencies": {
42
+ "@thi.ng/errors": "^2.5.46"
43
+ },
44
+ "devDependencies": {
45
+ "esbuild": "^0.25.11",
46
+ "typedoc": "^0.28.14",
47
+ "typescript": "^5.9.3"
48
+ },
49
+ "keywords": [
50
+ "golden-ratio",
51
+ "halton",
52
+ "iterator",
53
+ "kronecker",
54
+ "low-discrepancy",
55
+ "monte-carlo",
56
+ "nd",
57
+ "plastic-number",
58
+ "random",
59
+ "sample",
60
+ "sequence",
61
+ "typescript"
62
+ ],
63
+ "publishConfig": {
64
+ "access": "public"
65
+ },
66
+ "engines": {
67
+ "node": ">=18"
68
+ },
69
+ "files": [
70
+ "./*.js",
71
+ "./*.d.ts"
72
+ ],
73
+ "exports": {
74
+ ".": {
75
+ "default": "./index.js"
76
+ },
77
+ "./halton": {
78
+ "default": "./halton.js"
79
+ },
80
+ "./kronecker": {
81
+ "default": "./kronecker.js"
82
+ },
83
+ "./lowdisc": {
84
+ "default": "./lowdisc.js"
85
+ },
86
+ "./plastic": {
87
+ "default": "./plastic.js"
88
+ }
89
+ },
90
+ "thi.ng": {
91
+ "alias": "ld",
92
+ "related": [
93
+ "poisson",
94
+ "random"
95
+ ],
96
+ "status": "beta",
97
+ "year": 2020
98
+ },
99
+ "gitHead": "136a5e5ef0b69e82329db00d806c3c4e8f1aa063\n"
100
+ }
package/CHANGELOG.md DELETED
@@ -1,24 +0,0 @@
1
- # Change Log
2
-
3
- - **Last updated**: 2025-09-01T16:38:35Z
4
- - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
-
6
- All notable changes to this project will be documented in this file.
7
- Only versions published since **2022-01-01** are listed here.
8
- Please consult the Git history for older version information.
9
- See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
10
-
11
- **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
12
- and/or version bumps of transitive dependencies.
13
-
14
- ### [0.3.67](https://github.com/thi-ng/umbrella/tree/@thi.ng/lowdisc@0.3.67) (2024-06-21)
15
-
16
- #### ♻️ Refactoring
17
-
18
- - enforce uniform naming convention of internal functions ([56992b2](https://github.com/thi-ng/umbrella/commit/56992b2))
19
-
20
- ### [0.3.39](https://github.com/thi-ng/umbrella/tree/@thi.ng/lowdisc@0.3.39) (2023-11-09)
21
-
22
- #### ♻️ Refactoring
23
-
24
- - update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))