@thi.ng/geom-clip-line 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.
Files changed (3) hide show
  1. package/CHANGELOG.md +69 -45
  2. package/README.md +1 -1
  3. package/package.json +83 -78
package/CHANGELOG.md CHANGED
@@ -1,85 +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.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)
7
-
8
- **Note:** Version bump only for package @thi.ng/geom-clip-line
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-clip-line@2.1.0) (2021-11-17)
13
13
 
14
- ## [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)
15
-
16
- **Note:** Version bump only for package @thi.ng/geom-clip-line
17
-
18
-
14
+ #### 🚀 Features
19
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
20
21
 
22
+ #### ♻️ Refactoring
21
23
 
22
- # [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.
23
30
 
31
+ ### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-clip-line@2.0.1) (2021-10-13)
24
32
 
25
- ### Build System
33
+ #### ♻️ Refactoring
26
34
 
27
- * 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
28
38
 
39
+ # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-clip-line@2.0.0) (2021-10-12)
29
40
 
30
- ### BREAKING CHANGES
41
+ #### 🛑 Breaking changes
31
42
 
32
- * 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
33
55
 
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
56
+ #### ♻️ Refactoring
40
57
 
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
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)
45
62
 
63
+ ### [1.2.42](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-clip-line@1.2.42) (2021-08-17)
46
64
 
65
+ #### 🩹 Bug fixes
47
66
 
67
+ - off-by-one error in clipLinePoly() ([7898810](https://github.com/thi-ng/umbrella/commit/7898810))
48
68
 
69
+ #### ♻️ Refactoring
49
70
 
71
+ - dedupe segment collection ([8ce66b4](https://github.com/thi-ng/umbrella/commit/8ce66b4))
50
72
 
51
- ## [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)
52
74
 
53
- ### Bug Fixes
75
+ #### ♻️ Refactoring
54
76
 
55
- - **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))
56
78
 
57
- # [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)
58
80
 
59
- ### Features
81
+ #### 🚀 Features
60
82
 
61
- - **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))
62
84
 
63
- # [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)
64
86
 
65
- ### Features
87
+ #### 🚀 Features
66
88
 
67
- - **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))
68
90
 
69
- # 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)
70
92
 
71
- ### Bug Fixes
93
+ #### 🛑 Breaking changes
72
94
 
73
- - **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))
74
97
 
75
- ### Documentation
98
+ #### 🚀 Features
76
99
 
77
- - **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
78
102
 
79
- ### Features
103
+ #### 🩹 Bug fixes
80
104
 
81
- - **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))
82
106
 
83
- ### BREAKING CHANGES
107
+ #### ♻️ Refactoring
84
108
 
85
- - **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/README.md CHANGED
@@ -61,7 +61,7 @@ node --experimental-repl-await
61
61
  > const geomClipLine = await import("@thi.ng/geom-clip-line");
62
62
  ```
63
63
 
64
- Package sizes (gzipped, pre-treeshake): ESM: 549 bytes
64
+ Package sizes (gzipped, pre-treeshake): ESM: 550 bytes
65
65
 
66
66
  ## Dependencies
67
67
 
package/package.json CHANGED
@@ -1,83 +1,88 @@
1
1
  {
2
- "name": "@thi.ng/geom-clip-line",
3
- "version": "2.0.8",
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.2",
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.1.0",
38
- "@thi.ng/geom-isec": "^2.0.8",
39
- "@thi.ng/vectors": "^7.1.0"
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.2",
39
+ "@thi.ng/vectors": "^7.2.2"
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": "d6aca4b4edb697613ed6635b1c0b12f0bf27b1f0"
83
- }
85
+ "year": 2013
86
+ },
87
+ "gitHead": "e8a7c2a40191b391cef182c2978e5a6c85987a87\n"
88
+ }