@thi.ng/webgl-shadertoy 0.3.10 → 0.4.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 -38
  2. package/README.md +1 -1
  3. package/package.json +89 -83
package/CHANGELOG.md CHANGED
@@ -1,76 +1,107 @@
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
- ## [0.3.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-shadertoy@0.3.9...@thi.ng/webgl-shadertoy@0.3.10) (2021-11-04)
3
+ - **Last updated**: 2021-11-21T17:09:28Z
4
+ - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
7
5
 
8
- **Note:** Version bump only for package @thi.ng/webgl-shadertoy
6
+ All notable changes to this project will be documented in this file.
7
+ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
9
8
 
9
+ **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
+ and/or version bumps of transitive dependencies.
10
11
 
12
+ ## [0.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl-shadertoy@0.4.0) (2021-11-17)
11
13
 
14
+ #### 🚀 Features
12
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
13
21
 
14
- ## [0.3.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-shadertoy@0.3.8...@thi.ng/webgl-shadertoy@0.3.9) (2021-11-03)
22
+ #### ♻️ Refactoring
15
23
 
16
- **Note:** Version bump only for package @thi.ng/webgl-shadertoy
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.
17
30
 
31
+ ### [0.3.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl-shadertoy@0.3.1) (2021-10-13)
18
32
 
33
+ #### ♻️ Refactoring
19
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
20
38
 
39
+ ## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl-shadertoy@0.3.0) (2021-10-12)
21
40
 
22
- # [0.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-shadertoy@0.2.91...@thi.ng/webgl-shadertoy@0.3.0) (2021-10-12)
41
+ #### 🛑 Breaking changes
23
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
24
55
 
25
- ### Build System
56
+ #### 🚀 Features
26
57
 
27
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
58
+ - add support for DefShaderOpts ([d35cabc](https://github.com/thi-ng/umbrella/commit/d35cabc))
28
59
 
60
+ #### ♻️ Refactoring
29
61
 
30
- ### Features
62
+ - update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
63
+ - update all test stubs ([f2d6d53](https://github.com/thi-ng/umbrella/commit/f2d6d53))
64
+ - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
65
+ - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
31
66
 
32
- * **webgl-shadertoy:** add support for DefShaderOpts ([d35cabc](https://github.com/thi-ng/umbrella/commit/d35cabc3805b6c0c710778c21a45e6f13a477b7f))
67
+ ### [0.2.52](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl-shadertoy@0.2.52) (2020-12-07)
33
68
 
69
+ #### ♻️ Refactoring
34
70
 
35
- ### BREAKING CHANGES
71
+ - update type-only imports in various tests/pkgs ([3fd9c24](https://github.com/thi-ng/umbrella/commit/3fd9c24))
36
72
 
37
- * discontinue CommonJS & UMD versions
73
+ ### [0.2.35](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl-shadertoy@0.2.35) (2020-07-28)
38
74
 
39
- - only ESM modules will be published from now on
40
- - CJS obsolete due to ESM support in recent versions of node:
41
- - i.e. launch NodeJS via:
42
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
43
- - in the node REPL use `await import(...)` instead of `require()`
44
- - UMD obsolete due to widespread browser support for ESM
75
+ #### ♻️ Refactoring
45
76
 
46
- Also:
47
- - normalize/restructure/reorg all package.json files
48
- - cleanup all build scripts, remove obsolete
49
- - switch from mocha to @thi.ng/testament for all tests
77
+ - update defQuadModel() callsite ([edf8329](https://github.com/thi-ng/umbrella/commit/edf8329))
50
78
 
79
+ ### [0.2.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl-shadertoy@0.2.5) (2020-03-28)
51
80
 
81
+ #### ♻️ Refactoring
52
82
 
83
+ - update to new webgl API ([40dd67b](https://github.com/thi-ng/umbrella/commit/40dd67b))
53
84
 
85
+ ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl-shadertoy@0.2.0) (2020-02-25)
54
86
 
87
+ #### 🚀 Features
55
88
 
56
- # [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-shadertoy@0.1.4...@thi.ng/webgl-shadertoy@0.2.0) (2020-02-25)
89
+ - fix [#199](https://github.com/thi-ng/umbrella/issues/199), add generics ([e392774](https://github.com/thi-ng/umbrella/commit/e392774))
90
+ - add generics to allow typed custom uniforms
91
+ - update MainImageFn, ShaderToyOpts, ShaderToy interfaces
57
92
 
58
- ### Features
93
+ #### ♻️ Refactoring
59
94
 
60
- - **webgl-shadertoy:** fix [#199](https://github.com/thi-ng/umbrella/issues/199), add generics ([e392774](https://github.com/thi-ng/umbrella/commit/e392774945e4d29f145dba2fd17f99919b2c5fd5))
95
+ - update imports ([3f067f9](https://github.com/thi-ng/umbrella/commit/3f067f9))
61
96
 
62
- # 0.1.0 (2019-09-21)
97
+ ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl-shadertoy@0.1.0) (2019-09-21)
63
98
 
64
- ### Bug Fixes
99
+ #### 🚀 Features
65
100
 
66
- - **webgl-shadertoy:** update imports ([7d6ed77](https://github.com/thi-ng/umbrella/commit/7d6ed77))
67
- - **webgl-shadertoy:** update texture/sampler & FBO handling ([25845e5](https://github.com/thi-ng/umbrella/commit/25845e5))
101
+ - add optional per-pass ModelSpec & vert shader support ([a45725a](https://github.com/thi-ng/umbrella/commit/a45725a))
102
+ - fix & update drawPass viewport, add update() method ([5d2c17e](https://github.com/thi-ng/umbrella/commit/5d2c17e))
103
+ - update multipass uniform handling ([2071133](https://github.com/thi-ng/umbrella/commit/2071133))
68
104
 
69
- ### Features
105
+ #### 🩹 Bug fixes
70
106
 
71
- - **webgl-shadertoy:** add optional per-pass ModelSpec & vert shader support ([a45725a](https://github.com/thi-ng/umbrella/commit/a45725a))
72
- - **webgl-shadertoy:** fix & update drawPass viewport, add update() method ([5d2c17e](https://github.com/thi-ng/umbrella/commit/5d2c17e))
73
- - **webgl-shadertoy:** import new pkg ([35d9b68](https://github.com/thi-ng/umbrella/commit/35d9b68))
74
- - **webgl-shadertoy:** initial multipass skeleton ([c287dab](https://github.com/thi-ng/umbrella/commit/c287dab))
75
- - **webgl-shadertoy:** simplify mainImage user fn handling, update types & readme ([bd1b88e](https://github.com/thi-ng/umbrella/commit/bd1b88e))
76
- - **webgl-shadertoy:** update multipass uniform handling ([2071133](https://github.com/thi-ng/umbrella/commit/2071133))
107
+ - update texture/sampler & FBO handling ([25845e5](https://github.com/thi-ng/umbrella/commit/25845e5))
package/README.md CHANGED
@@ -58,7 +58,7 @@ node --experimental-repl-await
58
58
  > const webglShadertoy = await import("@thi.ng/webgl-shadertoy");
59
59
  ```
60
60
 
61
- Package sizes (gzipped, pre-treeshake): ESM: 722 bytes
61
+ Package sizes (gzipped, pre-treeshake): ESM: 735 bytes
62
62
 
63
63
  ## Dependencies
64
64
 
package/package.json CHANGED
@@ -1,88 +1,94 @@
1
1
  {
2
- "name": "@thi.ng/webgl-shadertoy",
3
- "version": "0.3.10",
4
- "description": "Basic WebGL scaffolding for running interactive fragment shaders via @thi.ng/shader-ast",
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-shadertoy",
3
+ "version": "0.4.2",
4
+ "description": "Basic WebGL scaffolding for running interactive fragment shaders via @thi.ng/shader-ast",
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#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#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/shader-ast": "^0.11.8",
39
- "@thi.ng/shader-ast-glsl": "^0.3.8",
40
- "@thi.ng/webgl": "^6.0.10"
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/shader-ast-glsl": "^0.4.2",
40
+ "@thi.ng/webgl": "^6.1.2"
41
+ },
42
+ "devDependencies": {
43
+ "@microsoft/api-extractor": "^7.18.19",
44
+ "@thi.ng/testament": "^0.2.2",
45
+ "@types/node": "^16.11.7",
46
+ "rimraf": "^3.0.2",
47
+ "tools": "^0.0.1",
48
+ "typedoc": "^0.22.9",
49
+ "typescript": "^4.5.2"
50
+ },
51
+ "keywords": [
52
+ "animation",
53
+ "browser",
54
+ "canvas",
55
+ "graphics",
56
+ "shader-ast",
57
+ "shadertoy",
58
+ "texture",
59
+ "typescript",
60
+ "webgl"
61
+ ],
62
+ "publishConfig": {
63
+ "access": "public"
64
+ },
65
+ "engines": {
66
+ "node": ">=12.7"
67
+ },
68
+ "files": [
69
+ "*.js",
70
+ "*.d.ts"
71
+ ],
72
+ "exports": {
73
+ ".": {
74
+ "import": "./index.js"
41
75
  },
42
- "devDependencies": {
43
- "@thi.ng/testament": "^0.1.6"
76
+ "./api": {
77
+ "import": "./api.js"
44
78
  },
45
- "keywords": [
46
- "animation",
47
- "browser",
48
- "canvas",
49
- "graphics",
50
- "shader-ast",
51
- "shadertoy",
52
- "texture",
53
- "typescript",
54
- "webgl"
79
+ "./shadertoy": {
80
+ "import": "./shadertoy.js"
81
+ }
82
+ },
83
+ "thi.ng": {
84
+ "parent": "@thi.ng/webgl",
85
+ "related": [
86
+ "shader-ast",
87
+ "shader-ast-stdlib",
88
+ "webgl"
55
89
  ],
56
- "publishConfig": {
57
- "access": "public"
58
- },
59
- "engines": {
60
- "node": ">=12.7"
61
- },
62
- "files": [
63
- "*.js",
64
- "*.d.ts"
65
- ],
66
- "exports": {
67
- ".": {
68
- "import": "./index.js"
69
- },
70
- "./api": {
71
- "import": "./api.js"
72
- },
73
- "./shadertoy": {
74
- "import": "./shadertoy.js"
75
- }
76
- },
77
- "thi.ng": {
78
- "parent": "@thi.ng/webgl",
79
- "related": [
80
- "shader-ast",
81
- "shader-ast-stdlib",
82
- "webgl"
83
- ],
84
- "status": "alpha",
85
- "year": 2019
86
- },
87
- "gitHead": "d6aca4b4edb697613ed6635b1c0b12f0bf27b1f0"
88
- }
90
+ "status": "alpha",
91
+ "year": 2019
92
+ },
93
+ "gitHead": "e8a7c2a40191b391cef182c2978e5a6c85987a87\n"
94
+ }