@thi.ng/dot 2.0.7 → 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 -33
  2. package/README.md +1 -1
  3. package/package.json +83 -78
package/CHANGELOG.md CHANGED
@@ -1,71 +1,107 @@
1
1
  # Change Log
2
2
 
3
+ - **Last updated**: 2021-11-21T17:09:28Z
4
+ - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
+
3
6
  All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
7
+ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
5
8
 
6
- ## [2.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/dot@2.0.6...@thi.ng/dot@2.0.7) (2021-11-03)
9
+ **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
+ and/or version bumps of transitive dependencies.
7
11
 
8
- **Note:** Version bump only for package @thi.ng/dot
12
+ ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/dot@2.1.0) (2021-11-17)
9
13
 
14
+ #### 🚀 Features
10
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
11
21
 
22
+ #### ♻️ Refactoring
12
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.
13
30
 
14
- # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/dot@1.2.38...@thi.ng/dot@2.0.0) (2021-10-12)
31
+ ### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/dot@2.0.1) (2021-10-13)
15
32
 
33
+ #### ♻️ Refactoring
16
34
 
17
- ### Build System
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
18
38
 
19
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
39
+ # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/dot@2.0.0) (2021-10-12)
20
40
 
41
+ #### 🛑 Breaking changes
21
42
 
22
- ### BREAKING CHANGES
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
23
55
 
24
- * discontinue CommonJS & UMD versions
56
+ #### ♻️ Refactoring
25
57
 
26
- - only ESM modules will be published from now on
27
- - CJS obsolete due to ESM support in recent versions of node:
28
- - i.e. launch NodeJS via:
29
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
30
- - in the node REPL use `await import(...)` instead of `require()`
31
- - UMD obsolete due to widespread browser support for ESM
58
+ - update imports ([7c9d6c3](https://github.com/thi-ng/umbrella/commit/7c9d6c3))
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)
32
62
 
33
- Also:
34
- - normalize/restructure/reorg all package.json files
35
- - cleanup all build scripts, remove obsolete
36
- - switch from mocha to @thi.ng/testament for all tests
63
+ ### [1.2.21](https://github.com/thi-ng/umbrella/tree/@thi.ng/dot@1.2.21) (2020-12-07)
37
64
 
65
+ #### ♻️ Refactoring
38
66
 
67
+ - update type-only imports in various tests/pkgs ([3fd9c24](https://github.com/thi-ng/umbrella/commit/3fd9c24))
39
68
 
69
+ ## [1.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/dot@1.2.0) (2020-04-03)
40
70
 
71
+ #### 🚀 Features
41
72
 
73
+ - support includes, update subgraph handling ([ed53c90](https://github.com/thi-ng/umbrella/commit/ed53c90))
42
74
 
43
- # [1.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/dot@1.1.14...@thi.ng/dot@1.2.0) (2020-04-03)
75
+ ### [1.1.10](https://github.com/thi-ng/umbrella/tree/@thi.ng/dot@1.1.10) (2020-02-25)
44
76
 
45
- ### Features
77
+ #### ♻️ Refactoring
46
78
 
47
- - **dot:** support includes, update subgraph handling ([ed53c90](https://github.com/thi-ng/umbrella/commit/ed53c909f7eb41c85c04f55de279e0d82cfed307))
79
+ - update imports ([700cb0d](https://github.com/thi-ng/umbrella/commit/700cb0d))
48
80
 
49
- # [1.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/dot@1.0.12...@thi.ng/dot@1.1.0) (2019-07-07)
81
+ ## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/dot@1.1.0) (2019-07-07)
50
82
 
51
- ### Features
83
+ #### 🚀 Features
52
84
 
53
- - **dot:** enable TS strict compiler flags (refactor) ([29e0cb4](https://github.com/thi-ng/umbrella/commit/29e0cb4))
85
+ - enable TS strict compiler flags (refactor) ([29e0cb4](https://github.com/thi-ng/umbrella/commit/29e0cb4))
54
86
 
55
- # [1.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/dot@0.1.18...@thi.ng/dot@1.0.0) (2019-01-21)
87
+ # [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/dot@1.0.0) (2019-01-21)
56
88
 
57
- ### Build System
89
+ #### 🛑 Breaking changes
58
90
 
59
91
  - update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
92
+ - BREAKING CHANGE: enabled multi-outputs (ES6 modules, CJS, UMD)
93
+ - build scripts now first build ES6 modules in package root, then call
94
+ `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
95
+ - all imports MUST be updated to only refer to package level
96
+ (not individual files anymore). tree shaking in user land will get rid of
97
+ all unused imported symbols.
60
98
 
61
- ### BREAKING CHANGES
99
+ ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/dot@0.1.0) (2018-05-09)
62
100
 
63
- - enabled multi-outputs (ES6 modules, CJS, UMD)
64
- - build scripts now first build ES6 modules in package root, then call `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
65
- - all imports MUST be updated to only refer to package level (not individual files anymore). tree shaking in user land will get rid of all unused imported symbols.
101
+ #### 🚀 Features
66
102
 
67
- # 0.1.0 (2018-05-09)
103
+ - initial import [@thi.ng/dot](https://github.com/thi-ng/umbrella/tree/main/packages/dot) ([500dfa3](https://github.com/thi-ng/umbrella/commit/500dfa3))
68
104
 
69
- ### Features
105
+ #### ♻️ Refactoring
70
106
 
71
- - **dot:** initial import [@thi](https://github.com/thi).ng/dot ([500dfa3](https://github.com/thi-ng/umbrella/commit/500dfa3))
107
+ - replace NodeShape enum, minor other refactoring, add example ([23b6451](https://github.com/thi-ng/umbrella/commit/23b6451))
package/README.md CHANGED
@@ -68,7 +68,7 @@ node --experimental-repl-await
68
68
  > const dot = await import("@thi.ng/dot");
69
69
  ```
70
70
 
71
- Package sizes (gzipped, pre-treeshake): ESM: 773 bytes
71
+ Package sizes (gzipped, pre-treeshake): ESM: 729 bytes
72
72
 
73
73
  ## Dependencies
74
74
 
package/package.json CHANGED
@@ -1,83 +1,88 @@
1
1
  {
2
- "name": "@thi.ng/dot",
3
- "version": "2.0.7",
4
- "description": "Graphviz document abstraction & serialization to DOT format",
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/dot",
3
+ "version": "2.1.2",
4
+ "description": "Graphviz document abstraction & serialization to DOT format",
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/dot#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/dot#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/checks": "^3.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/api": "^8.3.2",
38
+ "@thi.ng/checks": "^3.1.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
+ "export",
51
+ "fileformat",
52
+ "graph",
53
+ "graphviz",
54
+ "style",
55
+ "typescript",
56
+ "visualization"
57
+ ],
58
+ "publishConfig": {
59
+ "access": "public"
60
+ },
61
+ "engines": {
62
+ "node": ">=12.7"
63
+ },
64
+ "files": [
65
+ "*.js",
66
+ "*.d.ts"
67
+ ],
68
+ "exports": {
69
+ ".": {
70
+ "import": "./index.js"
39
71
  },
40
- "devDependencies": {
41
- "@thi.ng/testament": "^0.1.6"
72
+ "./api": {
73
+ "import": "./api.js"
42
74
  },
43
- "keywords": [
44
- "2d",
45
- "export",
46
- "fileformat",
47
- "graph",
48
- "graphviz",
49
- "style",
50
- "typescript",
51
- "visualization"
75
+ "./serialize": {
76
+ "import": "./serialize.js"
77
+ }
78
+ },
79
+ "thi.ng": {
80
+ "related": [
81
+ "adjacency",
82
+ "dgraph"
52
83
  ],
53
- "publishConfig": {
54
- "access": "public"
55
- },
56
- "engines": {
57
- "node": ">=12.7"
58
- },
59
- "files": [
60
- "*.js",
61
- "*.d.ts"
62
- ],
63
- "exports": {
64
- ".": {
65
- "import": "./index.js"
66
- },
67
- "./api": {
68
- "import": "./api.js"
69
- },
70
- "./serialize": {
71
- "import": "./serialize.js"
72
- }
73
- },
74
- "thi.ng": {
75
- "related": [
76
- "adjacency",
77
- "dgraph"
78
- ],
79
- "status": "beta",
80
- "year": 2018
81
- },
82
- "gitHead": "852cd2450617c86d15d18477dc634f17f04202eb"
83
- }
84
+ "status": "beta",
85
+ "year": 2018
86
+ },
87
+ "gitHead": "e8a7c2a40191b391cef182c2978e5a6c85987a87\n"
88
+ }