compress-shader-literals 1.3.0 → 1.3.1

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/README.md +23 -23
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -83,29 +83,29 @@ Real shaders shipped by popular libraries, run through the built-in minifier:
83
83
 
84
84
  <!-- STATS:START -->
85
85
 
86
- | Package | Shaders | Before | After | Saved |
87
- | ----------------------------- | ------: | ----------: | ----------: | --------: |
88
- | `vtk.js` | 142 | 276,617 B | 159,634 B | **42.3%** |
89
- | `three-stdlib` | 370 | 429,350 B | 272,486 B | **36.5%** |
90
- | `curtainsjs` | 7 | 3,406 B | 2,352 B | **30.9%** |
91
- | `hydra-synth` | 15 | 3,852 B | 2,675 B | **30.6%** |
92
- | `cesium` | 546 | 951,897 B | 664,581 B | **30.2%** |
93
- | `troika-three-utils` | 4 | 168 B | 120 B | **28.6%** |
94
- | `pixi.js` | 162 | 75,768 B | 56,152 B | **25.9%** |
95
- | `shader-park-core` | 18 | 10,794 B | 8,007 B | **25.8%** |
96
- | `@luma.gl/shadertools` | 24 | 149,192 B | 111,095 B | **25.5%** |
97
- | `three` | 281 | 240,906 B | 185,520 B | **23.0%** |
98
- | `playcanvas` | 856 | 1,297,844 B | 1,039,365 B | **19.9%** |
99
- | `ogl` | 22 | 6,109 B | 4,925 B | **19.4%** |
100
- | `deck.gl` | 132 | 242,113 B | 198,706 B | **17.9%** |
101
- | `@paper-design/shaders` | 30 | 142,466 B | 122,036 B | **14.3%** |
102
- | `@deck.gl/layers` | 104 | 223,902 B | 195,827 B | **12.5%** |
103
- | `@deck.gl/core` | 40 | 17,746 B | 15,738 B | **11.3%** |
104
- | `@deck.gl/aggregation-layers` | 56 | 43,713 B | 39,094 B | **10.6%** |
105
- | `@luma.gl/engine` | 29 | 11,357 B | 10,384 B | **8.6%** |
106
- | `@babylonjs/core` | 349 | 669,740 B | 661,013 B | **1.3%** |
107
- | `postprocessing` | 136 | 179,705 B | 179,705 B | **0.0%** |
108
- | **Total** | 3323 | 4,976,645 B | 3,929,415 B | **21.0%** |
86
+ | Package | Shaders | Before | After | Saved | Net after Brotli |
87
+ | ----------------------------- | ------: | ----------: | ----------: | --------: | ---------------: |
88
+ | `vtk.js` | 142 | 276,617 B | 159,634 B | **42.3%** | +39.6% |
89
+ | `three-stdlib` | 370 | 429,350 B | 272,486 B | **36.5%** | +35.5% |
90
+ | `curtainsjs` | 7 | 3,406 B | 2,352 B | **30.9%** | +10.1% |
91
+ | `hydra-synth` | 15 | 3,852 B | 2,675 B | **30.6%** | +19.4% |
92
+ | `cesium` | 546 | 951,897 B | 664,581 B | **30.2%** | +32.6% |
93
+ | `troika-three-utils` | 4 | 168 B | 120 B | **28.6%** | — |
94
+ | `pixi.js` | 162 | 75,768 B | 56,152 B | **25.9%** | — |
95
+ | `shader-park-core` | 18 | 10,794 B | 8,007 B | **25.8%** | — |
96
+ | `@luma.gl/shadertools` | 24 | 149,192 B | 111,095 B | **25.5%** | — |
97
+ | `three` | 281 | 240,906 B | 185,520 B | **23.0%** | — |
98
+ | `playcanvas` | 856 | 1,297,844 B | 1,039,365 B | **19.9%** | — |
99
+ | `ogl` | 22 | 6,109 B | 4,925 B | **19.4%** | — |
100
+ | `deck.gl` | 132 | 242,113 B | 198,706 B | **17.9%** | — |
101
+ | `@paper-design/shaders` | 30 | 142,466 B | 122,036 B | **14.3%** | — |
102
+ | `@deck.gl/layers` | 104 | 223,902 B | 195,827 B | **12.5%** | — |
103
+ | `@deck.gl/core` | 40 | 17,746 B | 15,738 B | **11.3%** | — |
104
+ | `@deck.gl/aggregation-layers` | 56 | 43,713 B | 39,094 B | **10.6%** | — |
105
+ | `@luma.gl/engine` | 29 | 11,357 B | 10,384 B | **8.6%** | — |
106
+ | `@babylonjs/core` | 349 | 669,740 B | 661,013 B | **1.3%** | — |
107
+ | `postprocessing` | 136 | 179,705 B | 179,705 B | **0.0%** | — |
108
+ | **Total** | 3323 | 4,976,645 B | 3,929,415 B | **21.0%** | — |
109
109
 
110
110
  _3323 shaders · 2348/2348 parseable GLSL verified valid after minify · [how this is measured](docs/stats.md) · 2026-07-01_
111
111
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "compress-shader-literals",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "type": "module",
5
5
  "description": "✂️ Strip comments & whitespace from GLSL/WGSL shader literals in your JS/TS at build time — any bundler, no toolchain, no runtime cost.",
6
6
  "main": "./dist/index.cjs",