@thi.ng/webgl-msdf 2.0.10 → 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 +88 -34
  2. package/README.md +1 -1
  3. package/package.json +92 -86
package/CHANGELOG.md CHANGED
@@ -1,73 +1,127 @@
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.
8
+
9
+ **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
+ and/or version bumps of transitive dependencies.
11
+
12
+ ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl-msdf@2.1.0) (2021-11-17)
13
+
14
+ #### 🚀 Features
5
15
 
6
- ## [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
7
21
 
8
- **Note:** Version bump only for package @thi.ng/webgl-msdf
22
+ #### ♻️ Refactoring
9
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.
10
30
 
31
+ ### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl-msdf@2.0.1) (2021-10-13)
11
32
 
33
+ #### ♻️ Refactoring
12
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
13
38
 
14
- ## [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)
15
40
 
16
- **Note:** Version bump only for package @thi.ng/webgl-msdf
41
+ #### 🛑 Breaking changes
17
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
18
55
 
56
+ #### ♻️ Refactoring
19
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)
20
64
 
65
+ ### [0.1.73](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl-msdf@0.1.73) (2021-02-20)
21
66
 
22
- # [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
23
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
24
72
 
25
- ### Build System
73
+ ### [0.1.65](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl-msdf@0.1.65) (2020-12-07)
26
74
 
27
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
75
+ #### ♻️ Refactoring
28
76
 
77
+ - update type-only imports in various tests/pkgs ([3fd9c24](https://github.com/thi-ng/umbrella/commit/3fd9c24))
29
78
 
30
- ### BREAKING CHANGES
79
+ ### [0.1.13](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl-msdf@0.1.13) (2020-02-25)
31
80
 
32
- * discontinue CommonJS & UMD versions
81
+ #### ♻️ Refactoring
33
82
 
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
83
+ - update imports ([b6144b0](https://github.com/thi-ng/umbrella/commit/b6144b0))
40
84
 
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
85
+ ### [0.1.10](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl-msdf@0.1.10) (2019-11-30)
45
86
 
87
+ #### 🩹 Bug fixes
46
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
47
91
 
92
+ ### [0.1.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl-msdf@0.1.9) (2019-11-09)
48
93
 
94
+ #### ♻️ Refactoring
49
95
 
96
+ - update imports ([e3e9d5a](https://github.com/thi-ng/umbrella/commit/e3e9d5a))
50
97
 
51
- ## [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)
52
99
 
53
- **Note:** Version bump only for package @thi.ng/webgl-msdf
100
+ #### ♻️ Refactoring
54
101
 
55
- ## [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))
56
103
 
57
- ### Bug Fixes
104
+ ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl-msdf@0.1.0) (2019-07-07)
58
105
 
59
- - **webgl-msdf:** update mempool size in text() ([9f96b2e](https://github.com/thi-ng/umbrella/commit/9f96b2ec525cd8d8a5d5e31d39352f0c6e350991))
106
+ #### 🚀 Features
60
107
 
61
- # 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))
62
117
 
63
- ### Bug Fixes
118
+ #### 🩹 Bug fixes
64
119
 
65
- - **webgl-msdf:** update madd call sites ([#95](https://github.com/thi-ng/umbrella/issues/95)) ([5c6fa50](https://github.com/thi-ng/umbrella/commit/5c6fa50))
66
- - **webgl-msdf:** update shader (remove prefixes) ([33731e9](https://github.com/thi-ng/umbrella/commit/33731e9))
67
- - **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))
68
123
 
69
- ### Features
124
+ #### ♻️ Refactoring
70
125
 
71
- - **webgl:** initial integration of shader-ast ([73faffd](https://github.com/thi-ng/umbrella/commit/73faffd))
72
- - **webgl-msdf:** add more TextOpts, update TextAlign fns ([4602883](https://github.com/thi-ng/umbrella/commit/4602883))
73
- - **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/README.md CHANGED
@@ -64,7 +64,7 @@ node --experimental-repl-await
64
64
  > const webglMsdf = await import("@thi.ng/webgl-msdf");
65
65
  ```
66
66
 
67
- Package sizes (gzipped, pre-treeshake): ESM: 1.59 KB
67
+ Package sizes (gzipped, pre-treeshake): ESM: 1.68 KB
68
68
 
69
69
  ## Dependencies
70
70
 
package/package.json CHANGED
@@ -1,92 +1,98 @@
1
1
  {
2
- "name": "@thi.ng/webgl-msdf",
3
- "version": "2.0.10",
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.2",
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.2",
41
+ "@thi.ng/vectors": "^7.2.2",
42
+ "@thi.ng/webgl": "^6.1.2"
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.1.0",
38
- "@thi.ng/shader-ast": "^0.11.8",
39
- "@thi.ng/transducers": "^8.0.7",
40
- "@thi.ng/vector-pools": "^3.0.8",
41
- "@thi.ng/vectors": "^7.1.0",
42
- "@thi.ng/webgl": "^6.0.10"
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": "d6aca4b4edb697613ed6635b1c0b12f0bf27b1f0"
92
- }
89
+ "./text": {
90
+ "import": "./text.js"
91
+ }
92
+ },
93
+ "thi.ng": {
94
+ "parent": "@thi.ng/webgl",
95
+ "year": 2019
96
+ },
97
+ "gitHead": "e8a7c2a40191b391cef182c2978e5a6c85987a87\n"
98
+ }