Skip to content

v0.1.4

Choose a tag to compare

@zamdevio zamdevio released this 13 Jun 11:35

Full release notes: https://releases.i18nprune.dev/search?q=0.1.4

Summary

Patch release for the CLI and Core SDK — cleanup defaults to static scan with opt-in ripgrep guard, multi-target prune, grep-friendly log flags, locale suggestions, report HTML in core, D.1 dynamic summaries, extractor hardening, and placeholder sentinel fixes.

Changes

  • Cleanup defaults to static scan; ripgrep guard is opt-in via --rg (--no-rg removed).
  • Multi-target cleanup --target <code[,code]|all> with per-locale UX and JSON targetLocales[] / targets[].
  • Global --no-color, --no-log-channel, and --no-log-prefix for grep-friendly CI logs.
  • Locale suggestion engine surfaces data.suggestions[] on validate, missing, cleanup, and sync JSON.
  • renderReportHtml exported from @i18nprune/core with packaged report SPA in dist.
  • D.1 human summaries show dynamic=active with optional commented=M; core adds dynamicSitesActiveCount / dynamicSitesCommentedCount.
  • locales dynamic shows template detail and grouped dynamic-key sites.
  • Extractor E.1–E.6 mixed-template hardening and T.1 placeholder sentinel hardening for generate/resume.

Installation

CLI

npm install -g i18nprune@0.1.4

Core SDK

npm install @i18nprune/core@0.1.4

Breaking Changes

Cleanup --no-rg removed

The cleanup flag:

- cleanup --no-rg
+ (omit flag — static scan is already the default)

Or pass --rg when you want the ripgrep string-presence guard.

This affects:

  • npm scripts and CI pipelines that passed --no-rg
  • Shell wrappers and Makefile targets around i18nprune cleanup

Not breaking: --json envelopes, issue codes, and exit codes are unchanged (parity policy). D.1 and locale suggestion fields are additive on JSON.

Migration

npm install -g i18nprune@0.1.4
npm install @i18nprune/core@0.1.4
  • Remove --no-rg from cleanup scripts; use default static scan or pass --rg.
  • Pin @i18nprune/core@0.1.4 when mixing SDK + CLI.
  • CI grep-friendly logs: i18nprune validate --no-color --no-log-prefix --no-log-channel or NO_COLOR=1.
  • SDK parsers: optional data.suggestions[] on validate, missing, cleanup, sync.
  • Hosts embedding report UI: prefer renderReportHtml from core.

Full Changelog: v0.1.3...v0.1.4