diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bc3409..9f16983 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,35 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ## [Unreleased] +### Added + +- **Seven recipes built on run on each**: turn a `.env` file into a Kubernetes Secret; convert Unix timestamps + in a JSON response to dates; decode every JWT in a log, HAR file or curl trace; remove tracking parameters + from a list of URLs; hash an email list with SHA-256 for Customer Match; extract the domain from each URL in + a list; parse the user agents of an access log into a CSV. + +### Changed + +- Recipe pages show what runs inside a run-on-each or branch step: every nested step with its link, the + settings it changes, its condition and what happens when it fails, how an each step splits its input and + how a branch merges its lanes, in the pre-rendered page too. +- **Decode CloudWatch Logs subscription data** decodes every record of a Kinesis or Firehose batch, not + only the first, and finds the payload in an event printed by Python or Node.js. A message ending in a + literal `\n` no longer stops it. +- **Excel column to SQL IN clause** escapes and quotes each value on its own, so the `mysql` flavor + (backslash escapes) and the `mssql` flavor (`N'…'` for non-ASCII values) work per value. +- **Bulk UTM link builder** removes old `utm_` parameters with *normalize query params*, so names with + digits, without `=` or percent-encoded are removed too, and the drop list takes more names (`fbclid`, + `gclid`). Tags inside a `#fragment` are no longer removed. + +### Fixed + +- **gzip decompress** reports short input that is not gzip (`{`, `[`, a cut-off `H4sIAAAA`) as not valid + gzip data instead of a failed integrity check. +- A recipe page with one numbered step says "1 step", on the page and on its share card. +- Leaving a recipe page stops working out its "What if you skip a step?" examples, instead of running them + on in the background while the next page waits for the engine. + ## [1.7.0] - 2026-10-08 ### Added diff --git a/CLAUDE.md b/CLAUDE.md index 32ba1eb..05819c0 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -88,17 +88,21 @@ npm run release -- plan # what a release from HEAD would ship, at which versio ### Recipes (`src/recipes/`) — pre-rendered pipeline pages - A recipe is a hand-picked multi-step pipeline for one real task, published at `/recipes//` (index: `/recipes/`). - Folder per recipe: `recipe.ts` (default export `Recipe`: steps built with `step()`/`branch()`/`each()`/`laneStep()` from - `define.ts`, each top-level step with a `why`; `each()` runs `laneStep()`s on every line or JSON value; 2+ `samples` with golden outputs, the first is the page's worked - example) and `guide.md` (frontmatter `title`/`description` for the page head, then prose `##` sections — no + Folder per recipe: `recipe.ts` (default export `Recipe`: top-level steps built with `step()`/`branch()`/`each()` from + `define.ts`, each with a `why`; nested steps with `laneStep()`/`laneBranch()`/`laneEach()`, which carry no `why` and + spell out regex condition flags as `sanitizeSteps` stores them (never raw literals); `each()` runs its steps on every + line or JSON value; 2+ `samples` with golden outputs, the first is the page's worked example) and `guide.md` (frontmatter `title`/`description` for the page head, then prose `##` sections — no example blocks). `npm run gen` also writes `src/recipes/_generated/` (`index.ts` metadata, `loaders.ts` one chunk per recipe with its guide via `?raw`, `static.ts` for Node); `generated.test.ts` fails when stale. - Rules (`check.ts`, run by `recipes.test.ts` and `check:recipes`): real utilities/params, no `dom`/`main`/`eval` steps (the build runs recipes in Node, the page in a worker), every sample reproduces its output on every run and - at any date, **every top-level step changes some sample's output when left out** (no padding), 2+ real steps or a - branch, title/description/primaryQuery unique across recipes and utility guides, `primaryQuery` not a utility - guide title's head term (no competing with `/util//`), ≥300 words of guide prose, no near-copied prose. + at any date, **every top-level step changes some sample's output when left out** (no padding), 2+ real utility steps + counting nested ones (one utility wrapped in `each` is still one), title/description/primaryQuery unique across recipes + and utility guides, `primaryQuery` neither inside a utility guide title nor containing its head term (the title before + " — ", minus "Online": "bulk slug generator" competes with `/util/slug/`), ≥300 words of guide prose, no near-copied prose. - `trace.ts` turns a run into what the page shows (each step's output, what leaving each step out does). + `RecipeArticle` renders nested steps recursively (params, conditions, failure policy, split and merge modes): + the pre-rendered page is all a crawler sees, so a setting inside a lane must show there. `scripts/seo/build.ts` traces every recipe with the static registry, **fails the build** if the first sample's output drifted, renders `RecipeArticle` with `renderToStaticMarkup` and embeds the trace as `