@thi.ng/geom-hull 2.0.8 → 2.1.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,57 +1,85 @@
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
- ## [2.0.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-hull@2.0.7...@thi.ng/geom-hull@2.0.8) (2021-11-04)
7
-
8
- **Note:** Version bump only for package @thi.ng/geom-hull
9
-
3
+ - **Last updated**: 2021-11-21T17:09:28Z
4
+ - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
10
5
 
6
+ All notable changes to this project will be documented in this file.
7
+ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
11
8
 
9
+ **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
+ and/or version bumps of transitive dependencies.
12
11
 
12
+ ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-hull@2.1.0) (2021-11-17)
13
13
 
14
- ## [2.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-hull@2.0.6...@thi.ng/geom-hull@2.0.7) (2021-11-03)
14
+ #### 🚀 Features
15
15
 
16
- **Note:** Version bump only for package @thi.ng/geom-hull
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
17
21
 
22
+ #### ♻️ Refactoring
18
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.
19
30
 
31
+ ### [2.0.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-hull@2.0.9) (2021-11-10)
20
32
 
33
+ #### ♻️ Refactoring
21
34
 
22
- # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-hull@1.0.5...@thi.ng/geom-hull@2.0.0) (2021-10-12)
35
+ - update all countdown loops ([a5f374b](https://github.com/thi-ng/umbrella/commit/a5f374b))
23
36
 
37
+ ### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-hull@2.0.1) (2021-10-13)
24
38
 
25
- ### Build System
39
+ #### ♻️ Refactoring
26
40
 
27
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
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
28
44
 
45
+ # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-hull@2.0.0) (2021-10-12)
29
46
 
30
- ### BREAKING CHANGES
47
+ #### 🛑 Breaking changes
31
48
 
32
- * discontinue CommonJS & UMD versions
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
33
61
 
34
- - only ESM modules will be published from now on
35
- - CJS obsolete due to ESM support in recent versions of node:
36
- - i.e. launch NodeJS via:
37
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
38
- - in the node REPL use `await import(...)` instead of `require()`
39
- - UMD obsolete due to widespread browser support for ESM
62
+ #### ♻️ Refactoring
40
63
 
41
- Also:
42
- - normalize/restructure/reorg all package.json files
43
- - cleanup all build scripts, remove obsolete
44
- - switch from mocha to @thi.ng/testament for all tests
64
+ - update imports ([6fca276](https://github.com/thi-ng/umbrella/commit/6fca276))
65
+ - update all test stubs ([f2d6d53](https://github.com/thi-ng/umbrella/commit/f2d6d53))
66
+ - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
67
+ - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
45
68
 
69
+ ### [0.0.70](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-hull@0.0.70) (2020-12-07)
46
70
 
71
+ #### ♻️ Refactoring
47
72
 
73
+ - update type-only imports in remaining pkgs ([b22aa30](https://github.com/thi-ng/umbrella/commit/b22aa30))
48
74
 
75
+ ### [0.0.33](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-hull@0.0.33) (2020-02-25)
49
76
 
77
+ #### ♻️ Refactoring
50
78
 
51
- ## [1.0.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-hull@1.0.4...@thi.ng/geom-hull@1.0.5) (2021-09-03)
79
+ - update imports ([fe7ac81](https://github.com/thi-ng/umbrella/commit/fe7ac81))
52
80
 
53
- **Note:** Version bump only for package @thi.ng/geom-hull
81
+ ### [0.0.30](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-hull@0.0.30) (2019-11-30)
54
82
 
55
- ## [0.0.61](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-hull@0.0.60...@thi.ng/geom-hull@0.0.61) (2020-08-16)
83
+ #### ♻️ Refactoring
56
84
 
57
- **Note:** Version bump only for package @thi.ng/geom-hull
85
+ - minor update findMin() ([b6145e3](https://github.com/thi-ng/umbrella/commit/b6145e3))
package/README.md CHANGED
@@ -54,7 +54,7 @@ node --experimental-repl-await
54
54
  > const geomHull = await import("@thi.ng/geom-hull");
55
55
  ```
56
56
 
57
- Package sizes (gzipped, pre-treeshake): ESM: 435 bytes
57
+ Package sizes (gzipped, pre-treeshake): ESM: 426 bytes
58
58
 
59
59
  ## Dependencies
60
60
 
package/graham-scan.js CHANGED
@@ -73,7 +73,7 @@ const findMin = (pts) => {
73
73
  let minID = n;
74
74
  let [minX, minY] = pts[n];
75
75
  let p, y;
76
- for (; --n >= 0;) {
76
+ for (; n-- > 0;) {
77
77
  p = pts[n];
78
78
  y = p[1];
79
79
  if (y < minY || (y === minY && p[0] < minX)) {
package/package.json CHANGED
@@ -1,75 +1,80 @@
1
1
  {
2
- "name": "@thi.ng/geom-hull",
3
- "version": "2.0.8",
4
- "description": "Fast 2D convex hull (Graham Scan)",
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/geom-hull",
3
+ "version": "2.1.2",
4
+ "description": "Fast 2D convex hull (Graham Scan)",
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/develop/packages/geom-hull#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/develop/packages/geom-hull#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"
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/math": "^5.1.2",
38
+ "@thi.ng/vectors": "^7.2.2"
39
+ },
40
+ "devDependencies": {
41
+ "@microsoft/api-extractor": "^7.18.19",
42
+ "@thi.ng/testament": "^0.2.2",
43
+ "rimraf": "^3.0.2",
44
+ "tools": "^0.0.1",
45
+ "typedoc": "^0.22.9",
46
+ "typescript": "^4.5.2"
47
+ },
48
+ "keywords": [
49
+ "2d",
50
+ "convex",
51
+ "geometry",
52
+ "graphics",
53
+ "hull",
54
+ "points",
55
+ "typescript"
56
+ ],
57
+ "publishConfig": {
58
+ "access": "public"
59
+ },
60
+ "engines": {
61
+ "node": ">=12.7"
62
+ },
63
+ "files": [
64
+ "*.js",
65
+ "*.d.ts"
66
+ ],
67
+ "exports": {
68
+ ".": {
69
+ "import": "./index.js"
35
70
  },
36
- "dependencies": {
37
- "@thi.ng/math": "^5.0.7",
38
- "@thi.ng/vectors": "^7.1.0"
39
- },
40
- "devDependencies": {
41
- "@thi.ng/testament": "^0.1.6"
42
- },
43
- "keywords": [
44
- "2d",
45
- "convex",
46
- "geometry",
47
- "graphics",
48
- "hull",
49
- "points",
50
- "typescript"
51
- ],
52
- "publishConfig": {
53
- "access": "public"
54
- },
55
- "engines": {
56
- "node": ">=12.7"
57
- },
58
- "files": [
59
- "*.js",
60
- "*.d.ts"
61
- ],
62
- "exports": {
63
- ".": {
64
- "import": "./index.js"
65
- },
66
- "./graham-scan": {
67
- "import": "./graham-scan.js"
68
- }
69
- },
70
- "thi.ng": {
71
- "parent": "@thi.ng/geom",
72
- "year": 2013
73
- },
74
- "gitHead": "d6aca4b4edb697613ed6635b1c0b12f0bf27b1f0"
75
- }
71
+ "./graham-scan": {
72
+ "import": "./graham-scan.js"
73
+ }
74
+ },
75
+ "thi.ng": {
76
+ "parent": "@thi.ng/geom",
77
+ "year": 2013
78
+ },
79
+ "gitHead": "e8a7c2a40191b391cef182c2978e5a6c85987a87\n"
80
+ }