@thi.ng/webgl-msdf 2.0.11 → 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 +85 -39
  2. package/package.json +92 -86
package/CHANGELOG.md CHANGED
@@ -1,81 +1,127 @@
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.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-msdf@2.0.10...@thi.ng/webgl-msdf@2.0.11) (2021-11-10)
7
-
8
- **Note:** Version bump only for package @thi.ng/webgl-msdf
3
+ - **Last updated**: 2021-11-21T17:09:28Z
4
+ - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
9
5
 
6
+ All notable changes to this project will be documented in this file.
7
+ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
10
8
 
9
+ **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
+ and/or version bumps of transitive dependencies.
11
11
 
12
+ ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl-msdf@2.1.0) (2021-11-17)
12
13
 
14
+ #### 🚀 Features
13
15
 
14
- ## [2.0.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-msdf@2.0.9...@thi.ng/webgl-msdf@2.0.10) (2021-11-04)
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
15
21
 
16
- **Note:** Version bump only for package @thi.ng/webgl-msdf
22
+ #### ♻️ Refactoring
17
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.
18
30
 
31
+ ### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl-msdf@2.0.1) (2021-10-13)
19
32
 
33
+ #### ♻️ Refactoring
20
34
 
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
21
38
 
22
- ## [2.0.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-msdf@2.0.8...@thi.ng/webgl-msdf@2.0.9) (2021-11-03)
39
+ # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl-msdf@2.0.0) (2021-10-12)
23
40
 
24
- **Note:** Version bump only for package @thi.ng/webgl-msdf
41
+ #### 🛑 Breaking changes
25
42
 
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
26
55
 
56
+ #### ♻️ Refactoring
27
57
 
58
+ - update imports ([c29d6b4](https://github.com/thi-ng/umbrella/commit/c29d6b4))
59
+ - update imports ([ab75a9f](https://github.com/thi-ng/umbrella/commit/ab75a9f))
60
+ - update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
61
+ - update all test stubs ([f2d6d53](https://github.com/thi-ng/umbrella/commit/f2d6d53))
62
+ - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
63
+ - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
28
64
 
65
+ ### [0.1.73](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl-msdf@0.1.73) (2021-02-20)
29
66
 
30
- # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-msdf@1.0.8...@thi.ng/webgl-msdf@2.0.0) (2021-10-12)
67
+ #### ♻️ Refactoring
31
68
 
69
+ - update attrib type handling ([41f59be](https://github.com/thi-ng/umbrella/commit/41f59be))
70
+ - update attribpool buffer specs
71
+ - minor optimizations during geometry generation
32
72
 
33
- ### Build System
73
+ ### [0.1.65](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl-msdf@0.1.65) (2020-12-07)
34
74
 
35
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
75
+ #### ♻️ Refactoring
36
76
 
77
+ - update type-only imports in various tests/pkgs ([3fd9c24](https://github.com/thi-ng/umbrella/commit/3fd9c24))
37
78
 
38
- ### BREAKING CHANGES
79
+ ### [0.1.13](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl-msdf@0.1.13) (2020-02-25)
39
80
 
40
- * discontinue CommonJS & UMD versions
81
+ #### ♻️ Refactoring
41
82
 
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
83
+ - update imports ([b6144b0](https://github.com/thi-ng/umbrella/commit/b6144b0))
48
84
 
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
85
+ ### [0.1.10](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl-msdf@0.1.10) (2019-11-30)
53
86
 
87
+ #### 🩹 Bug fixes
54
88
 
89
+ - update mempool size in text() ([9f96b2e](https://github.com/thi-ng/umbrella/commit/9f96b2e))
90
+ - take into account new overhead from recent MemPool updates
55
91
 
92
+ ### [0.1.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl-msdf@0.1.9) (2019-11-09)
56
93
 
94
+ #### ♻️ Refactoring
57
95
 
96
+ - update imports ([e3e9d5a](https://github.com/thi-ng/umbrella/commit/e3e9d5a))
58
97
 
59
- ## [1.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-msdf@1.0.6...@thi.ng/webgl-msdf@1.0.7) (2021-08-22)
98
+ ### [0.1.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl-msdf@0.1.3) (2019-07-31)
60
99
 
61
- **Note:** Version bump only for package @thi.ng/webgl-msdf
100
+ #### ♻️ Refactoring
62
101
 
63
- ## [0.1.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-msdf@0.1.9...@thi.ng/webgl-msdf@0.1.10) (2019-11-30)
102
+ - blend mode import, minor shader updates ([a4088ed](https://github.com/thi-ng/umbrella/commit/a4088ed))
64
103
 
65
- ### Bug Fixes
104
+ ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl-msdf@0.1.0) (2019-07-07)
66
105
 
67
- - **webgl-msdf:** update mempool size in text() ([9f96b2e](https://github.com/thi-ng/umbrella/commit/9f96b2ec525cd8d8a5d5e31d39352f0c6e350991))
106
+ #### 🚀 Features
68
107
 
69
- # 0.1.0 (2019-07-07)
108
+ - initial integration of shader-ast ([73faffd](https://github.com/thi-ng/umbrella/commit/73faffd))
109
+ - replace GLSL enums with shader-ast types
110
+ - add shaderSourceFromAST()
111
+ - update shader presets
112
+ - update old code gens (to be replaced soon)
113
+ - add more TextOpts, update TextAlign fns ([4602883](https://github.com/thi-ng/umbrella/commit/4602883))
114
+ - add dirX, dirY opts to control text directions
115
+ - add horizontal letter spacing opt
116
+ - initial import MSDF font rendering pkg ([22bcc24](https://github.com/thi-ng/umbrella/commit/22bcc24))
70
117
 
71
- ### Bug Fixes
118
+ #### 🩹 Bug fixes
72
119
 
73
- - **webgl-msdf:** update madd call sites ([#95](https://github.com/thi-ng/umbrella/issues/95)) ([5c6fa50](https://github.com/thi-ng/umbrella/commit/5c6fa50))
74
- - **webgl-msdf:** update shader (remove prefixes) ([33731e9](https://github.com/thi-ng/umbrella/commit/33731e9))
75
- - **webgl-msdf:** update textWidth & align fns ([dd6f752](https://github.com/thi-ng/umbrella/commit/dd6f752))
120
+ - update madd call sites ([#95](https://github.com/thi-ng/umbrella/issues/95)) ([5c6fa50](https://github.com/thi-ng/umbrella/commit/5c6fa50))
121
+ - update shader (remove prefixes) ([33731e9](https://github.com/thi-ng/umbrella/commit/33731e9))
122
+ - update textWidth & align fns ([dd6f752](https://github.com/thi-ng/umbrella/commit/dd6f752))
76
123
 
77
- ### Features
124
+ #### ♻️ Refactoring
78
125
 
79
- - **webgl:** initial integration of shader-ast ([73faffd](https://github.com/thi-ng/umbrella/commit/73faffd))
80
- - **webgl-msdf:** add more TextOpts, update TextAlign fns ([4602883](https://github.com/thi-ng/umbrella/commit/4602883))
81
- - **webgl-msdf:** initial import MSDF font rendering pkg ([22bcc24](https://github.com/thi-ng/umbrella/commit/22bcc24))
126
+ - update shader to use AST ([af6d39f](https://github.com/thi-ng/umbrella/commit/af6d39f))
127
+ - rename msdfShader() ([90676b5](https://github.com/thi-ng/umbrella/commit/90676b5))
package/package.json CHANGED
@@ -1,92 +1,98 @@
1
1
  {
2
- "name": "@thi.ng/webgl-msdf",
3
- "version": "2.0.11",
4
- "description": "Multi-channel SDF font rendering & basic text layout for WebGL",
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/webgl-msdf",
3
+ "version": "2.1.3",
4
+ "description": "Multi-channel SDF font rendering & basic text layout for WebGL",
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/webgl-msdf#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/webgl-msdf#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/api": "^8.3.2",
38
+ "@thi.ng/shader-ast": "^0.12.2",
39
+ "@thi.ng/transducers": "^8.1.2",
40
+ "@thi.ng/vector-pools": "^3.1.3",
41
+ "@thi.ng/vectors": "^7.3.0",
42
+ "@thi.ng/webgl": "^6.1.3"
43
+ },
44
+ "devDependencies": {
45
+ "@microsoft/api-extractor": "^7.18.19",
46
+ "@thi.ng/testament": "^0.2.2",
47
+ "@types/node": "^16.11.7",
48
+ "rimraf": "^3.0.2",
49
+ "tools": "^0.0.1",
50
+ "typedoc": "^0.22.9",
51
+ "typescript": "^4.5.2"
52
+ },
53
+ "keywords": [
54
+ "browser",
55
+ "canvas",
56
+ "font",
57
+ "layout",
58
+ "msdf",
59
+ "sdf",
60
+ "shader",
61
+ "text",
62
+ "typescript",
63
+ "typography",
64
+ "webgl"
65
+ ],
66
+ "publishConfig": {
67
+ "access": "public"
68
+ },
69
+ "engines": {
70
+ "node": ">=12.7"
71
+ },
72
+ "files": [
73
+ "*.js",
74
+ "*.d.ts"
75
+ ],
76
+ "exports": {
77
+ ".": {
78
+ "import": "./index.js"
35
79
  },
36
- "dependencies": {
37
- "@thi.ng/api": "^8.2.0",
38
- "@thi.ng/shader-ast": "^0.11.9",
39
- "@thi.ng/transducers": "^8.0.8",
40
- "@thi.ng/vector-pools": "^3.0.9",
41
- "@thi.ng/vectors": "^7.1.1",
42
- "@thi.ng/webgl": "^6.0.11"
80
+ "./api": {
81
+ "import": "./api.js"
43
82
  },
44
- "devDependencies": {
45
- "@thi.ng/testament": "^0.1.6"
83
+ "./convert": {
84
+ "import": "./convert.js"
46
85
  },
47
- "keywords": [
48
- "browser",
49
- "canvas",
50
- "font",
51
- "layout",
52
- "msdf",
53
- "sdf",
54
- "shader",
55
- "text",
56
- "typescript",
57
- "typography",
58
- "webgl"
59
- ],
60
- "publishConfig": {
61
- "access": "public"
86
+ "./shader": {
87
+ "import": "./shader.js"
62
88
  },
63
- "engines": {
64
- "node": ">=12.7"
65
- },
66
- "files": [
67
- "*.js",
68
- "*.d.ts"
69
- ],
70
- "exports": {
71
- ".": {
72
- "import": "./index.js"
73
- },
74
- "./api": {
75
- "import": "./api.js"
76
- },
77
- "./convert": {
78
- "import": "./convert.js"
79
- },
80
- "./shader": {
81
- "import": "./shader.js"
82
- },
83
- "./text": {
84
- "import": "./text.js"
85
- }
86
- },
87
- "thi.ng": {
88
- "parent": "@thi.ng/webgl",
89
- "year": 2019
90
- },
91
- "gitHead": "5fe52419af63984ebe53032201b2a6174b9cb159"
92
- }
89
+ "./text": {
90
+ "import": "./text.js"
91
+ }
92
+ },
93
+ "thi.ng": {
94
+ "parent": "@thi.ng/webgl",
95
+ "year": 2019
96
+ },
97
+ "gitHead": "d777b58d7bec4496d38166cdabda4ffb78b0dc47\n"
98
+ }