From 9ea13db4428316ffd1a2bab8a4dc718a68df19e4 Mon Sep 17 00:00:00 2001 From: "Tara \\X/ Void" <1711810+taraxvoid@users.noreply.github.com> Date: Sat, 24 Oct 2026 00:20:48 -0500 Subject: [PATCH 1/2] fix(biome): treat HTML whitespace as significant in every element (#221) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sets `html.formatter.whitespaceSensitivity` to `"strict"` in the shared Biome config, so the formatter keeps leading and trailing spaces in element text in every element. The default (`"css"`) only protects elements that browsers display inline by default. taraxvoid.net lost a space next to a link (taraxvoid/taraxvoid.net#55). Biome 2.5.15 doesn't format `.astro` markup unless HTML full support is enabled, so this doesn't change current output in callers. It guards against the case where Biome starts formatting markup (the 2.6 upgrade, or full support switched on). Trade-off: block elements whose text hugs the tags format as `text` when they wrap. The README's Biome section documents the setting. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 --- README.md | 4 +++- biome/base.json | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 98d448e..45739bc 100644 --- a/README.md +++ b/README.md @@ -271,7 +271,9 @@ Needs Biome 2. In the site's `biome.json`: The base sets formatting (4-space indent, width 80, single quotes, semicolons as needed), the `recommended` rules, and turns off unused-import/variable rules -in `.astro` files. It has no ignore lists. Lists like `files.includes` and +in `.astro` files. HTML formatting uses `whitespaceSensitivity: "strict"`, so +the formatter never drops a space at the edge of an element's text (such as +`docs and`). It has no ignore lists. Lists like `files.includes` and `overrides` merge with the base; single values in the site win. ## Renovate diff --git a/biome/base.json b/biome/base.json index 9012e13..8f6a1c7 100644 --- a/biome/base.json +++ b/biome/base.json @@ -33,7 +33,8 @@ "html": { "formatter": { "indentScriptAndStyle": false, - "selfCloseVoidElements": "always" + "selfCloseVoidElements": "always", + "whitespaceSensitivity": "strict" } }, "css": { From c4906568df6159bfe39b7aeab9a077e7da0a2ceb Mon Sep 17 00:00:00 2001 From: "ravenflight-releases[bot]" <330165707+ravenflight-releases[bot]@users.noreply.github.com> Date: Sat, 24 Oct 2026 00:26:49 -0500 Subject: [PATCH 2/2] chore(main): release 0.15.1 (#224) :robot: I have created a release *beep* *boop* --- ## [0.15.1](https://github.com/taraxvoid/voidflow/compare/v0.15.0...v0.15.1) (2026-10-24) ### Bug Fixes * **biome:** treat HTML whitespace as significant in every element ([#221](https://github.com/taraxvoid/voidflow/issues/221)) ([9ea13db](https://github.com/taraxvoid/voidflow/commit/9ea13db4428316ffd1a2bab8a4dc718a68df19e4)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: ravenflight-releases[bot] <330165707+ravenflight-releases[bot]@users.noreply.github.com> --- .release-please/main-manifest.json | 2 +- CHANGELOG.md | 7 +++++++ jsr.json | 2 +- package.json | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.release-please/main-manifest.json b/.release-please/main-manifest.json index f87262a..047c623 100644 --- a/.release-please/main-manifest.json +++ b/.release-please/main-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.15.0" + ".": "0.15.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 8785ddc..66da0e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this project are documented here, generated by [release-please](https://github.com/googleapis/release-please) from [Conventional Commits](https://www.conventionalcommits.org). +## [0.15.1](https://github.com/taraxvoid/voidflow/compare/v0.15.0...v0.15.1) (2026-10-24) + + +### Bug Fixes + +* **biome:** treat HTML whitespace as significant in every element ([#221](https://github.com/taraxvoid/voidflow/issues/221)) ([9ea13db](https://github.com/taraxvoid/voidflow/commit/9ea13db4428316ffd1a2bab8a4dc718a68df19e4)) + ## [0.15.0](https://github.com/taraxvoid/voidflow/compare/v0.14.0...v0.15.0) (2026-10-24) diff --git a/jsr.json b/jsr.json index 7c545ac..91ee14a 100644 --- a/jsr.json +++ b/jsr.json @@ -1,6 +1,6 @@ { "name": "@taraxvoid/voidflow", - "version": "0.15.0", + "version": "0.15.1", "license": "MIT", "exports": { "./playwright": "./playwright/index.mjs" diff --git a/package.json b/package.json index fcc62c7..65746e3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@taraxvoid/voidflow", - "version": "0.15.0", + "version": "0.15.1", "description": "Enter a flow state of security, stability, and developer ergonomics - batteries-included Biome, vitest, Astro, local hooks, CI and deployments on Netlify and Cloudflare support with GitHub rulesets, branch environments, releases and security checks.", "license": "MIT", "keywords": [