v7.6.2
Three releases of accumulated work since v7.5.3. The highlights in descending order, ending with a small fix that rounds out Classic Titanium parity for the color tooling.
v7.6.2
semanticcommand now works in Classic Titanium projects — writes toResources/semantic.colors.json(Alloy keeps writing toapp/assets/semantic.colors.jsonas before). Existing unrelated entries (the defaultbackgroundColor/textColorthat ship with Classic templates) are preserved in both project types. See Semantic Colors.- Fixed a UX bug where the "not an Alloy project" error was immediately followed by the palette preview JSON, making it look like the command half-succeeded. Preview output is now exclusive to
--log/ silent invocations.
v7.6.1
- Confirmation prompt for destructive writes in
brandandimages(y/N/afor "always"). Auto-skips whenstdinis not a TTY (alloy.jmk hook, CI, pipes), when-y/--yesis passed, or whenPURGETSS_YES=1is set. Pair withconfirmOverwrites: falseon the matching config section to silence permanently. - Disproportionate-viewBox warning for SVG logos and images — detects viewBoxes above 4096 pt on any side (common in Affinity/Illustrator exports) and rasterizes with adaptive density to stay within Sharp's pixel budget.
- Auto-created
purgetss/{fonts,brand,images}/subfolders on init — directory structure is self-documenting from the first build. - Unified
::PurgeTSS::output — multi-line command output is now grouped under a single signed header with indented continuation lines (applies acrosspurge,fonts,icon-library,brand,images, and most warnings).
v7.6.0
brandcommand — generate the complete Titanium branding set (launcher icons, adaptive icons, iOS 18+ Dark/Tinted, marketplace artwork, optional notification/splash) from logos auto-discovered in./purgetss/brand/. Works on Alloy and Classic projects. See App icons and branding.imagescommand — generate multi-density UI images (Androidres-*densities + iPhone@1x/@2x/@3xscales) from sources in./purgetss/images/. Subdirectories preserved, short-path scope targeting for re-processing individual files. See Multi-density images.brand:andimages:config sections inpurgetss/config.cjs— percentages can be written as'15%'strings for self-documenting clarity; plain numbers also accepted. Auto-injected into older configs on first run.semanticcommand — generate Titanium semantic colors (Light/Dark mode) intoapp/assets/semantic.colors.json. Two modes dispatched by--single: tonal palette (one base hex → 11 shades with mirror inversion + auto config mapping) and single purpose-based color (explicit per-mode hex + optional alpha; the JSON entry AND a class mapping inconfig.cjsare written in one shot — class name auto-derived by stripping theColorsuffix, e.g.surfaceColor→ classsurface). Smart in-place updates when a single name matches an existing palette shade.
To update:
```bash
npm install -g purgetss@latest
```
Full changelog: https://github.com/macCesar/purgeTSS/blob/main/CHANGELOG.md