@thi.ng/geom-clip-line 2.0.9 → 2.1.3

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +69 -53
  2. package/package.json +83 -78
package/CHANGELOG.md CHANGED
@@ -1,93 +1,109 @@
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.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-line@2.0.8...@thi.ng/geom-clip-line@2.0.9) (2021-11-10)
7
-
8
- **Note:** Version bump only for package @thi.ng/geom-clip-line
9
-
10
-
11
-
12
-
3
+ - **Last updated**: 2021-11-21T17:09:28Z
4
+ - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
13
5
 
14
- ## [2.0.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-line@2.0.7...@thi.ng/geom-clip-line@2.0.8) (2021-11-04)
15
-
16
- **Note:** Version bump only for package @thi.ng/geom-clip-line
17
-
18
-
19
-
20
-
21
-
22
- ## [2.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-line@2.0.6...@thi.ng/geom-clip-line@2.0.7) (2021-11-03)
6
+ All notable changes to this project will be documented in this file.
7
+ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
23
8
 
24
- **Note:** Version bump only for package @thi.ng/geom-clip-line
9
+ **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
+ and/or version bumps of transitive dependencies.
25
11
 
12
+ ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-clip-line@2.1.0) (2021-11-17)
26
13
 
14
+ #### 🚀 Features
27
15
 
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
28
21
 
22
+ #### ♻️ Refactoring
29
23
 
30
- # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-line@1.2.45...@thi.ng/geom-clip-line@2.0.0) (2021-10-12)
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.
31
30
 
31
+ ### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-clip-line@2.0.1) (2021-10-13)
32
32
 
33
- ### Build System
33
+ #### ♻️ Refactoring
34
34
 
35
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
35
+ - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
36
+ - update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
37
+ - add .js suffix for all relative imports
36
38
 
39
+ # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-clip-line@2.0.0) (2021-10-12)
37
40
 
38
- ### BREAKING CHANGES
41
+ #### 🛑 Breaking changes
39
42
 
40
- * discontinue CommonJS & UMD versions
43
+ - major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
44
+ - BREAKING CHANGE: discontinue CommonJS & UMD versions
45
+ - only ESM modules will be published from now on
46
+ - CJS obsolete due to ESM support in recent versions of node:
47
+ - i.e. launch NodeJS via:
48
+ - `node --experimental-specifier-resolution=node --experimental-repl-await`
49
+ - in the node REPL use `await import(...)` instead of `require()`
50
+ - UMD obsolete due to widespread browser support for ESM
51
+ Also:
52
+ - normalize/restructure/reorg all package.json files
53
+ - cleanup all build scripts, remove obsolete
54
+ - switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
41
55
 
42
- - only ESM modules will be published from now on
43
- - CJS obsolete due to ESM support in recent versions of node:
44
- - i.e. launch NodeJS via:
45
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
46
- - in the node REPL use `await import(...)` instead of `require()`
47
- - UMD obsolete due to widespread browser support for ESM
56
+ #### ♻️ Refactoring
48
57
 
49
- Also:
50
- - normalize/restructure/reorg all package.json files
51
- - cleanup all build scripts, remove obsolete
52
- - switch from mocha to @thi.ng/testament for all tests
58
+ - update imports ([f0e437c](https://github.com/thi-ng/umbrella/commit/f0e437c))
59
+ - update all test stubs ([f2d6d53](https://github.com/thi-ng/umbrella/commit/f2d6d53))
60
+ - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
61
+ - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
53
62
 
63
+ ### [1.2.42](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-clip-line@1.2.42) (2021-08-17)
54
64
 
65
+ #### 🩹 Bug fixes
55
66
 
67
+ - off-by-one error in clipLinePoly() ([7898810](https://github.com/thi-ng/umbrella/commit/7898810))
56
68
 
69
+ #### ♻️ Refactoring
57
70
 
71
+ - dedupe segment collection ([8ce66b4](https://github.com/thi-ng/umbrella/commit/8ce66b4))
58
72
 
59
- ## [1.2.42](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-line@1.2.41...@thi.ng/geom-clip-line@1.2.42) (2021-08-17)
73
+ ### [1.2.8](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-clip-line@1.2.8) (2020-09-13)
60
74
 
61
- ### Bug Fixes
75
+ #### ♻️ Refactoring
62
76
 
63
- - **geom-clip-line:** off-by-one error in clipLinePoly() ([7898810](https://github.com/thi-ng/umbrella/commit/7898810244a7a4e4cba43c7ec0bedc095e1f4be4))
77
+ - update deps, imports, use new Fn types ([bbcffb8](https://github.com/thi-ng/umbrella/commit/bbcffb8))
64
78
 
65
- # [1.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-line@1.1.4...@thi.ng/geom-clip-line@1.2.0) (2020-07-17)
79
+ ## [1.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-clip-line@1.2.0) (2020-07-17)
66
80
 
67
- ### Features
81
+ #### 🚀 Features
68
82
 
69
- - **geom-clip-line:** add clipLineSegmentPoly() ([bec7b93](https://github.com/thi-ng/umbrella/commit/bec7b93f13450a02ca62995992d1f488d2ff24be))
83
+ - add clipLineSegmentPoly() ([bec7b93](https://github.com/thi-ng/umbrella/commit/bec7b93))
70
84
 
71
- # [1.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-line@1.0.19...@thi.ng/geom-clip-line@1.1.0) (2020-06-20)
85
+ ## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-clip-line@1.1.0) (2020-06-20)
72
86
 
73
- ### Features
87
+ #### 🚀 Features
74
88
 
75
- - **geom-clip-line:** add clipLinePoly(), update deps ([e096efd](https://github.com/thi-ng/umbrella/commit/e096efdbe71549a781daa5b154c47e5e0eea33d1))
89
+ - add clipLinePoly(), update deps ([e096efd](https://github.com/thi-ng/umbrella/commit/e096efd))
76
90
 
77
- # 1.0.0 (2020-02-25)
91
+ # [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-clip-line@1.0.0) (2020-02-25)
78
92
 
79
- ### Bug Fixes
93
+ #### 🛑 Breaking changes
80
94
 
81
- - **geom-clip-line:** fix internal clip edge classifier ([c0cc9af](https://github.com/thi-ng/umbrella/commit/c0cc9af93293b3e68e9d5724874039e16bd6835e))
95
+ - update readme ([f78374b](https://github.com/thi-ng/umbrella/commit/f78374b))
96
+ - BREAKING CHANGE: extract as own pkg (formerly [@thi.ng/geom-clip](https://github.com/thi-ng/umbrella/tree/main/packages/geom-clip))
82
97
 
83
- ### Documentation
98
+ #### 🚀 Features
84
99
 
85
- - **geom-clip-line:** update readme ([f78374b](https://github.com/thi-ng/umbrella/commit/f78374bec7dfe6227faaf699ab51e9a129ade922))
100
+ - extract as own pkg (from [@thi.ng/geom-clip](https://github.com/thi-ng/umbrella/tree/main/packages/geom-clip)) ([34e3262](https://github.com/thi-ng/umbrella/commit/34e3262))
101
+ - add liangBarsky2Raw
86
102
 
87
- ### Features
103
+ #### 🩹 Bug fixes
88
104
 
89
- - **geom-clip-line:** extract as own pkg (from [@thi](https://github.com/thi).ng/geom-clip) ([34e3262](https://github.com/thi-ng/umbrella/commit/34e3262f8784df44f4adb729110d37513fccdfb3))
105
+ - fix internal clip edge classifier ([c0cc9af](https://github.com/thi-ng/umbrella/commit/c0cc9af))
90
106
 
91
- ### BREAKING CHANGES
107
+ #### ♻️ Refactoring
92
108
 
93
- - **geom-clip-line:** extract as own pkg (formerly @thi.ng/geom-clip)
109
+ - update imports ([fe7ac81](https://github.com/thi-ng/umbrella/commit/fe7ac81))
package/package.json CHANGED
@@ -1,83 +1,88 @@
1
1
  {
2
- "name": "@thi.ng/geom-clip-line",
3
- "version": "2.0.9",
4
- "description": "2D line clipping (Liang-Barsky)",
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-clip-line",
3
+ "version": "2.1.3",
4
+ "description": "2D line clipping (Liang-Barsky)",
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-clip-line#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-clip-line#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/api": "^8.2.0",
38
- "@thi.ng/geom-isec": "^2.0.9",
39
- "@thi.ng/vectors": "^7.1.1"
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/api": "^8.3.2",
38
+ "@thi.ng/geom-isec": "^2.1.3",
39
+ "@thi.ng/vectors": "^7.3.0"
40
+ },
41
+ "devDependencies": {
42
+ "@microsoft/api-extractor": "^7.18.19",
43
+ "@thi.ng/testament": "^0.2.2",
44
+ "rimraf": "^3.0.2",
45
+ "tools": "^0.0.1",
46
+ "typedoc": "^0.22.9",
47
+ "typescript": "^4.5.2"
48
+ },
49
+ "keywords": [
50
+ "2d",
51
+ "bbox",
52
+ "clipping",
53
+ "geometry",
54
+ "graphics",
55
+ "liang-barsky",
56
+ "line",
57
+ "typescript"
58
+ ],
59
+ "publishConfig": {
60
+ "access": "public"
61
+ },
62
+ "engines": {
63
+ "node": ">=12.7"
64
+ },
65
+ "files": [
66
+ "*.js",
67
+ "*.d.ts"
68
+ ],
69
+ "exports": {
70
+ ".": {
71
+ "import": "./index.js"
40
72
  },
41
- "devDependencies": {
42
- "@thi.ng/testament": "^0.1.6"
73
+ "./clip-poly": {
74
+ "import": "./clip-poly.js"
43
75
  },
44
- "keywords": [
45
- "2d",
46
- "bbox",
47
- "clipping",
48
- "geometry",
49
- "graphics",
50
- "liang-barsky",
51
- "line",
52
- "typescript"
76
+ "./liang-barsky": {
77
+ "import": "./liang-barsky.js"
78
+ }
79
+ },
80
+ "thi.ng": {
81
+ "parent": "@thi.ng/geom",
82
+ "related": [
83
+ "geom-clip-poly"
53
84
  ],
54
- "publishConfig": {
55
- "access": "public"
56
- },
57
- "engines": {
58
- "node": ">=12.7"
59
- },
60
- "files": [
61
- "*.js",
62
- "*.d.ts"
63
- ],
64
- "exports": {
65
- ".": {
66
- "import": "./index.js"
67
- },
68
- "./clip-poly": {
69
- "import": "./clip-poly.js"
70
- },
71
- "./liang-barsky": {
72
- "import": "./liang-barsky.js"
73
- }
74
- },
75
- "thi.ng": {
76
- "parent": "@thi.ng/geom",
77
- "related": [
78
- "geom-clip-poly"
79
- ],
80
- "year": 2013
81
- },
82
- "gitHead": "5fe52419af63984ebe53032201b2a6174b9cb159"
83
- }
85
+ "year": 2013
86
+ },
87
+ "gitHead": "d777b58d7bec4496d38166cdabda4ffb78b0dc47\n"
88
+ }