From c6984ce5671310919197f2d034cdffff894b991d Mon Sep 17 00:00:00 2001 From: Okiki Ojo Date: Sat, 21 Feb 2026 04:35:44 -0500 Subject: [PATCH] docs: clarify output comments and add examples in README Signed-off-by: Okiki Ojo --- changelog.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/changelog.md b/changelog.md index 632c00a..5342256 100644 --- a/changelog.md +++ b/changelog.md @@ -1,10 +1,16 @@ ## undent@0.2.1 -- 🐛 clarify output indentation issue in examples -- 🐛 correct output indentation in examples -- 🐛 add examples for core undent functionality and trim modes -- 🐛 limit regex cache size to prevent unbounded growth -- 🐛 revert Node.js version to 25 in publish workflow +### Fixed + +- Regex cache now has a bounded size, preventing unbounded memory growth in + long-running processes that process many distinct strings. + +### Docs + +- Corrected output comments in README examples for `undent`, `align()`, and + trim modes — several expected outputs were wrong or incomplete. +- Added before/after examples for core indent stripping and trim modes to make + the behavior immediately clear without reading prose. # Changelog -- 2.51.2