@thi.ng/lowdisc 0.2.6 → 0.3.2

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,91 +1,79 @@
1
1
  # Change Log
2
2
 
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [0.2.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/lowdisc@0.2.5...@thi.ng/lowdisc@0.2.6) (2021-10-28)
7
-
8
- **Note:** Version bump only for package @thi.ng/lowdisc
9
-
10
-
11
-
12
-
13
-
14
- ## [0.2.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/lowdisc@0.2.4...@thi.ng/lowdisc@0.2.5) (2021-10-28)
15
-
16
- **Note:** Version bump only for package @thi.ng/lowdisc
17
-
18
-
19
-
20
-
21
-
22
- ## [0.2.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/lowdisc@0.2.3...@thi.ng/lowdisc@0.2.4) (2021-10-25)
23
-
24
- **Note:** Version bump only for package @thi.ng/lowdisc
25
-
26
-
27
-
28
-
29
-
30
- ## [0.2.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/lowdisc@0.2.2...@thi.ng/lowdisc@0.2.3) (2021-10-15)
31
-
32
- **Note:** Version bump only for package @thi.ng/lowdisc
33
-
34
-
35
-
36
-
37
-
38
- ## [0.2.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/lowdisc@0.2.1...@thi.ng/lowdisc@0.2.2) (2021-10-15)
39
-
40
- **Note:** Version bump only for package @thi.ng/lowdisc
41
-
42
-
43
-
44
-
45
-
46
- ## [0.2.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/lowdisc@0.2.0...@thi.ng/lowdisc@0.2.1) (2021-10-13)
47
-
48
- **Note:** Version bump only for package @thi.ng/lowdisc
49
-
50
-
3
+ - **Last updated**: 2021-11-21T17:09:28Z
4
+ - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
51
5
 
6
+ All notable changes to this project will be documented in this file.
7
+ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
52
8
 
9
+ **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
+ and/or version bumps of transitive dependencies.
53
11
 
54
- # [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/lowdisc@0.1.7...@thi.ng/lowdisc@0.2.0) (2021-10-12)
12
+ ## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/lowdisc@0.3.0) (2021-11-17)
55
13
 
14
+ #### 🚀 Features
56
15
 
57
- ### Build System
16
+ - Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
17
+ Improving the overall build ergonomics
18
+ - introduced a tools workspaces
19
+ - imported it in all needed packages/examples
20
+ - inclusive project root
58
21
 
59
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
22
+ #### ♻️ Refactoring
60
23
 
24
+ - testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
25
+ this commit reverts (partly) changes made in:
26
+ ef346d7a8753590dc9094108a3d861a8dbd5dd2c
27
+ overall purpose is better testament ergonomics:
28
+ instead of having to pass NODE_OPTIONS with every invocation
29
+ having a binary to handle this for us.
61
30
 
62
- ### BREAKING CHANGES
31
+ ### [0.2.7](https://github.com/thi-ng/umbrella/tree/@thi.ng/lowdisc@0.2.7) (2021-11-10)
63
32
 
64
- * discontinue CommonJS & UMD versions
33
+ #### ♻️ Refactoring
65
34
 
66
- - only ESM modules will be published from now on
67
- - CJS obsolete due to ESM support in recent versions of node:
68
- - i.e. launch NodeJS via:
69
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
70
- - in the node REPL use `await import(...)` instead of `require()`
71
- - UMD obsolete due to widespread browser support for ESM
35
+ - update all countdown loops ([a5f374b](https://github.com/thi-ng/umbrella/commit/a5f374b))
72
36
 
73
- Also:
74
- - normalize/restructure/reorg all package.json files
75
- - cleanup all build scripts, remove obsolete
76
- - switch from mocha to @thi.ng/testament for all tests
37
+ ### [0.2.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/lowdisc@0.2.1) (2021-10-13)
77
38
 
39
+ #### ♻️ Refactoring
78
40
 
41
+ - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
42
+ - update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
43
+ - add .js suffix for all relative imports
79
44
 
45
+ ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/lowdisc@0.2.0) (2021-10-12)
80
46
 
47
+ #### 🛑 Breaking changes
81
48
 
49
+ - major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
50
+ - BREAKING CHANGE: discontinue CommonJS & UMD versions
51
+ - only ESM modules will be published from now on
52
+ - CJS obsolete due to ESM support in recent versions of node:
53
+ - i.e. launch NodeJS via:
54
+ - `node --experimental-specifier-resolution=node --experimental-repl-await`
55
+ - in the node REPL use `await import(...)` instead of `require()`
56
+ - UMD obsolete due to widespread browser support for ESM
57
+ Also:
58
+ - normalize/restructure/reorg all package.json files
59
+ - cleanup all build scripts, remove obsolete
60
+ - switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
82
61
 
83
- ## [0.1.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/lowdisc@0.1.6...@thi.ng/lowdisc@0.1.7) (2021-09-03)
62
+ #### ♻️ Refactoring
84
63
 
85
- **Note:** Version bump only for package @thi.ng/lowdisc
64
+ - update deps & imports in various pkgs ([e1cf29e](https://github.com/thi-ng/umbrella/commit/e1cf29e))
65
+ - largely related to recent updates/restructuring of these packages:
66
+ - api
67
+ - defmulti
68
+ - errors
69
+ - logger
70
+ - update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
71
+ - update all test stubs ([f2d6d53](https://github.com/thi-ng/umbrella/commit/f2d6d53))
72
+ - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
73
+ - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
86
74
 
87
- # 0.1.0 (2021-04-19)
75
+ ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/lowdisc@0.1.0) (2021-04-19)
88
76
 
89
- ### Features
77
+ #### 🚀 Features
90
78
 
91
- - **lowdisc:** import as pkg, update assets/readme ([3ad6672](https://github.com/thi-ng/umbrella/commit/3ad66723a23561de5611a00fa9bf3a50032af079))
79
+ - import as pkg, update assets/readme ([3ad6672](https://github.com/thi-ng/umbrella/commit/3ad6672))
package/README.md CHANGED
@@ -90,7 +90,7 @@ node --experimental-repl-await
90
90
  > const lowdisc = await import("@thi.ng/lowdisc");
91
91
  ```
92
92
 
93
- Package sizes (gzipped, pre-treeshake): ESM: 502 bytes
93
+ Package sizes (gzipped, pre-treeshake): ESM: 498 bytes
94
94
 
95
95
  ## Dependencies
96
96
 
package/lowdisc.js CHANGED
@@ -38,7 +38,7 @@ export const lowDiscrepancy = (dims, offset = 0) => {
38
38
  while (true)
39
39
  yield dims.map((d) => d.next().value);
40
40
  })();
41
- for (; --offset >= 0;)
41
+ for (; offset-- > 0;)
42
42
  iter.next();
43
43
  return iter;
44
44
  };
package/package.json CHANGED
@@ -1,92 +1,97 @@
1
1
  {
2
- "name": "@thi.ng/lowdisc",
3
- "version": "0.2.6",
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"
2
+ "name": "@thi.ng/lowdisc",
3
+ "version": "0.3.2",
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://github.com/thi-ng/umbrella/tree/master/packages/lowdisc#readme",
14
+ "funding": [
15
+ {
16
+ "type": "github",
17
+ "url": "https://github.com/sponsors/postspectacular"
12
18
  },
13
- "homepage": "https://github.com/thi-ng/umbrella/tree/master/packages/lowdisc#readme",
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
- "author": "Karsten Schmidt <k+npm@thi.ng>",
25
- "license": "Apache-2.0",
26
- "scripts": {
27
- "build": "yarn clean && tsc --declaration",
28
- "clean": "rimraf *.js *.d.ts *.map doc",
29
- "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
- "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose",
31
- "doc:readme": "yarn doc:stats && ../../scripts/node-esm ../../tools/src/readme.ts",
32
- "doc:stats": "../../scripts/node-esm ../../tools/src/module-stats.ts",
33
- "pub": "yarn build && yarn publish --access public",
34
- "test": "testament test"
35
- },
36
- "dependencies": {
37
- "@thi.ng/errors": "^2.0.6"
19
+ {
20
+ "type": "patreon",
21
+ "url": "https://patreon.com/thing_umbrella"
22
+ }
23
+ ],
24
+ "author": "Karsten Schmidt <k+npm@thi.ng>",
25
+ "license": "Apache-2.0",
26
+ "scripts": {
27
+ "build": "yarn clean && tsc --declaration",
28
+ "clean": "rimraf '*.js' '*.d.ts' '*.map' doc",
29
+ "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
+ "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
31
+ "doc:readme": "yarn doc:stats && tools:readme",
32
+ "doc:stats": "tools:module-stats",
33
+ "pub": "yarn npm publish --access public",
34
+ "test": "testament test"
35
+ },
36
+ "dependencies": {
37
+ "@thi.ng/errors": "^2.1.2"
38
+ },
39
+ "devDependencies": {
40
+ "@microsoft/api-extractor": "^7.18.19",
41
+ "@thi.ng/testament": "^0.2.2",
42
+ "rimraf": "^3.0.2",
43
+ "tools": "^0.0.1",
44
+ "typedoc": "^0.22.9",
45
+ "typescript": "^4.5.2"
46
+ },
47
+ "keywords": [
48
+ "discrepancy",
49
+ "halton",
50
+ "golden-ratio",
51
+ "iterator",
52
+ "kronecker",
53
+ "monte-carlo",
54
+ "nd",
55
+ "plastic-number",
56
+ "random",
57
+ "sample",
58
+ "sequence",
59
+ "typescript"
60
+ ],
61
+ "publishConfig": {
62
+ "access": "public"
63
+ },
64
+ "engines": {
65
+ "node": ">=12.7"
66
+ },
67
+ "files": [
68
+ "*.js",
69
+ "*.d.ts"
70
+ ],
71
+ "exports": {
72
+ ".": {
73
+ "import": "./index.js"
38
74
  },
39
- "devDependencies": {
40
- "@thi.ng/testament": "^0.1.6"
75
+ "./halton": {
76
+ "import": "./halton.js"
41
77
  },
42
- "keywords": [
43
- "discrepancy",
44
- "halton",
45
- "golden-ratio",
46
- "iterator",
47
- "kronecker",
48
- "monte-carlo",
49
- "nd",
50
- "plastic-number",
51
- "random",
52
- "sample",
53
- "sequence",
54
- "typescript"
55
- ],
56
- "publishConfig": {
57
- "access": "public"
78
+ "./kronecker": {
79
+ "import": "./kronecker.js"
58
80
  },
59
- "engines": {
60
- "node": ">=12.7"
81
+ "./lowdisc": {
82
+ "import": "./lowdisc.js"
61
83
  },
62
- "files": [
63
- "*.js",
64
- "*.d.ts"
84
+ "./plastic": {
85
+ "import": "./plastic.js"
86
+ }
87
+ },
88
+ "thi.ng": {
89
+ "related": [
90
+ "poisson",
91
+ "random"
65
92
  ],
66
- "exports": {
67
- ".": {
68
- "import": "./index.js"
69
- },
70
- "./halton": {
71
- "import": "./halton.js"
72
- },
73
- "./kronecker": {
74
- "import": "./kronecker.js"
75
- },
76
- "./lowdisc": {
77
- "import": "./lowdisc.js"
78
- },
79
- "./plastic": {
80
- "import": "./plastic.js"
81
- }
82
- },
83
- "thi.ng": {
84
- "related": [
85
- "poisson",
86
- "random"
87
- ],
88
- "status": "beta",
89
- "year": 2020
90
- },
91
- "gitHead": "c17a556ad25f6882dfa8f806a1d9e8ed7ac7cd71"
92
- }
93
+ "status": "beta",
94
+ "year": 2020
95
+ },
96
+ "gitHead": "e8a7c2a40191b391cef182c2978e5a6c85987a87\n"
97
+ }