From 1fe9e19d8767eb840a841284b9ed22ce1c781a7c Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sun, 2 Aug 2026 23:27:57 -0500 Subject: [PATCH 1/5] docs: plan site beta release --- docs/plans/2026-08-02-site-release-design.md | 46 ++++++ docs/plans/2026-08-02-site-release.md | 140 +++++++++++++++++++ 2 files changed, 186 insertions(+) create mode 100644 docs/plans/2026-08-02-site-release-design.md create mode 100644 docs/plans/2026-08-02-site-release.md diff --git a/docs/plans/2026-08-02-site-release-design.md b/docs/plans/2026-08-02-site-release-design.md new file mode 100644 index 0000000..bb9cce7 --- /dev/null +++ b/docs/plans/2026-08-02-site-release-design.md @@ -0,0 +1,46 @@ +# Green Tea Site 26.8.0-beta.0 Release Design + +## Goal + +Publish an accurate release story for Green Tea `26.8.0-beta.0` and make the +site artifact impossible to tag with a version that disagrees with +`package.json`. + +## Release flow + +Development happens on `feature/26.8.0-beta.0-release` in Gitea. A pull request +merges the branch into Gitea `main`; the existing promotion workflow mirrors +that commit to GitHub. Only after promotion is complete is +`v26.8.0-beta.0` created on GitHub. The GitHub tag builds and attaches +`green-tea-site-v26.8.0-beta.0.tar.gz` to the release. + +No tag is created in Gitea and no `develop` branch is introduced for this site. + +## Content + +The release post will explain the safe constrained-route subset, deterministic +route precedence, strict path validation, HEAD and OPTIONS semantics, OpenAPI +projection, runtime parity, and dependency remediation. It will explicitly say +that route matching remains a linear scan and that a radix tree is future work. + +Landing-page corrections stay narrow: name the four validated targets instead +of claiming every JavaScript runtime, distinguish zero validation-library +dependencies from the single runtime dependency, and qualify transport security +features that differ by runtime. + +## Release integrity and security + +A dependency-free Node script will compare the GitHub tag to +`v${package.json.version}`. Unit tests cover a matching tag, a mismatched version, +and malformed/missing tags. The GitHub release workflow will run this guard +before packaging. + +Astro and MDX will receive compatible updates that pull patched PostCSS, SVGO, +and XML-parser transitives. Gitea/GitHub CI and the GitHub release will run +`npm audit --audit-level=moderate` after `npm ci`. + +## Validation + +The release branch must pass the tag-guard tests, a clean npm audit, the Astro +build, generated SEO/deploy checks, workflow syntax inspection, and a final +review of all changed claims against the core `26.8.0-beta.0` changelog and docs. diff --git a/docs/plans/2026-08-02-site-release.md b/docs/plans/2026-08-02-site-release.md new file mode 100644 index 0000000..db9ff53 --- /dev/null +++ b/docs/plans/2026-08-02-site-release.md @@ -0,0 +1,140 @@ +# Green Tea Site 26.8.0-beta.0 Release Implementation Plan + +> **For Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task. + +**Goal:** Publish an accurate `26.8.0-beta.0` release post, align site claims with the core, remediate site dependency advisories, and enforce tag/package version agreement. + +**Architecture:** Keep the existing Gitea-main-to-GitHub promotion unchanged. Add a small dependency-free release metadata guard, wire security gates into existing workflows, and rely on Astro's content collection plus the existing generated-site verifier for the new post. + +**Tech Stack:** Astro 7, MDX, Node.js 22, `node:test`, npm, Gitea Actions, GitHub Actions. + +--- + +### Task 1: Guard release version metadata + +**Files:** +- Create: `scripts/verify-release-tag.mjs` +- Create: `scripts/verify-release-tag.test.mjs` +- Modify: `package.json` +- Modify: `.github/workflows/release.yml` + +**Step 1: Write failing tests** + +Test that `assertReleaseTag('v26.8.0-beta.0', '26.8.0-beta.0')` succeeds and that missing `v`, a different version, a slash, or an empty tag throws an error naming the expected tag. + +**Step 2: Verify RED** + +Run: `node --test scripts/verify-release-tag.test.mjs` + +Expected: FAIL because `verify-release-tag.mjs` does not exist. + +**Step 3: Implement the guard** + +Export `assertReleaseTag(tag, version)`, load `package.json` when run as a script, and require exact equality with `v${version}`. Add `verify:release` and `test` scripts, then replace the workflow's slash-only shell check with `npm run verify:release`. + +**Step 4: Verify GREEN** + +Run: `npm test` + +Expected: all release-tag tests pass. + +### Task 2: Remediate dependency advisories + +**Files:** +- Modify: `package.json` +- Modify: `package-lock.json` + +**Step 1: Capture the vulnerable baseline** + +Run: `npm audit --audit-level=moderate` + +Expected: FAIL with advisories for Astro, PostCSS, SVGO, and fast-xml-parser. + +**Step 2: Apply compatible updates** + +Update Astro to `^7.1.6` and `@astrojs/mdx` to `^7.0.5`, regenerating the lockfile without changing the site's CalVer. + +**Step 3: Verify remediation** + +Run: `npm audit --audit-level=moderate` + +Expected: 0 vulnerabilities. + +### Task 3: Align landing-page claims + +**Files:** +- Modify: `src/components/sections/Hero.astro` +- Modify: `src/components/sections/Batteries.astro` +- Modify: `src/components/sections/RunsEverywhere.astro` + +**Step 1: Replace over-broad claims** + +Name Node, Deno, Bun, and Cloudflare Workers explicitly; say that validation adds no validator dependency to core; qualify native TLS as a Node-adapter capability. + +**Step 2: Review against core documentation** + +Compare every changed sentence with `../green-tea/README.md`, `CHANGELOG.md`, and runtime/security guides. + +### Task 4: Publish the release post + +**Files:** +- Create: `src/content/blog/green-tea-26-8-0-beta-0.mdx` + +**Step 1: Write the release narrative** + +Use English to match the site. Cover safe constrained parameters, static-to-catch-all precedence, rejected repeated slashes and malformed encoding, HEAD/OPTIONS behavior, OpenAPI patterns, four runtime targets, and dependency audit work. + +**Step 2: State beta limits explicitly** + +Document that constraints are a bounded safe subset rather than arbitrary regex, matching is still a linear scan, and a radix tree remains post-beta work. + +**Step 3: Verify generated content** + +Run: `npm run check` + +Expected: the new post route builds and generated SEO/deploy metadata verifies. + +### Task 5: Enforce supply-chain checks in automation + +**Files:** +- Modify: `.github/workflows/ci.yml` +- Modify: `.github/workflows/release.yml` + +**Step 1: Add audit gates** + +Run `npm audit --audit-level=moderate` after `npm ci` in CI and immediately before the release build. + +**Step 2: Preserve forge boundaries** + +Confirm CI remains dual-forge, promotion remains Gitea-only, and release remains GitHub-only on `v*` tags. + +### Task 6: Final verification and handoff + +**Files:** +- Review: all changed files + +**Step 1: Run complete verification** + +Run: `npm ci && npm test && npm audit --audit-level=moderate && npm run check` + +Expected: clean install, all tests pass, 0 vulnerabilities, site and metadata checks pass. + +**Step 2: Exercise tag validation** + +Run: `RELEASE_TAG=v26.8.0-beta.0 npm run verify:release` + +Expected: exact version accepted. + +Run: `RELEASE_TAG=v26.8.0-beta.1 npm run verify:release` + +Expected: non-zero exit and a message expecting `v26.8.0-beta.0`. + +**Step 3: Review Git state** + +Run: `git diff --check && git status --short && git diff --stat` + +Expected: no whitespace errors and only planned files changed. + +**Step 4: Commit and publish branch** + +Create focused commits without co-author trailers, push `feature/26.8.0-beta.0-release` to Gitea, and open a PR to `main`. Do not create the GitHub release tag until promotion completes. From d4192a3a129a191def9f0c6873aeb736b57555e3 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sun, 2 Aug 2026 23:28:59 -0500 Subject: [PATCH 2/5] ci: validate site release tag --- .github/workflows/release.yml | 6 +---- package.json | 2 ++ scripts/verify-release-tag.mjs | 24 +++++++++++++++++++ scripts/verify-release-tag.test.mjs | 36 +++++++++++++++++++++++++++++ 4 files changed, 63 insertions(+), 5 deletions(-) create mode 100644 scripts/verify-release-tag.mjs create mode 100644 scripts/verify-release-tag.test.mjs diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6f35180..8e9fdf6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,11 +22,7 @@ jobs: with: node-version: '22' - name: Validate release tag - run: | - if [[ "$RELEASE_TAG" == */* ]]; then - echo "Release tag must not contain '/': $RELEASE_TAG" >&2 - exit 1 - fi + run: npm run verify:release - run: npm ci - run: npm run check - name: Package dist/ diff --git a/package.json b/package.json index 6a44bf7..2a22514 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,9 @@ "dev": "astro dev", "build": "astro build", "check": "npm run build && npm run verify:build", + "test": "node --test scripts/*.test.mjs", "verify:build": "node scripts/verify-build.mjs", + "verify:release": "node scripts/verify-release-tag.mjs", "preview": "astro preview", "astro": "astro" }, diff --git a/scripts/verify-release-tag.mjs b/scripts/verify-release-tag.mjs new file mode 100644 index 0000000..93a35c1 --- /dev/null +++ b/scripts/verify-release-tag.mjs @@ -0,0 +1,24 @@ +import { readFile } from 'node:fs/promises'; +import { resolve } from 'node:path'; +import { pathToFileURL } from 'node:url'; + +export function assertReleaseTag(tag, version) { + const expected = `v${version}`; + if (tag !== expected) { + const received = tag || 'an empty tag'; + throw new Error(`Release tag mismatch: expected ${expected}, received ${received}.`); + } +} + +async function main() { + const packageUrl = new URL('../package.json', import.meta.url); + const packageJson = JSON.parse(await readFile(packageUrl, 'utf8')); + + assertReleaseTag(process.env.RELEASE_TAG, packageJson.version); + console.log(`Verified release tag v${packageJson.version}.`); +} + +const entryUrl = process.argv[1] ? pathToFileURL(resolve(process.argv[1])).href : undefined; +if (entryUrl === import.meta.url) { + await main(); +} diff --git a/scripts/verify-release-tag.test.mjs b/scripts/verify-release-tag.test.mjs new file mode 100644 index 0000000..ab84276 --- /dev/null +++ b/scripts/verify-release-tag.test.mjs @@ -0,0 +1,36 @@ +import assert from 'node:assert/strict'; +import test from 'node:test'; + +import { assertReleaseTag } from './verify-release-tag.mjs'; + +test('accepts the exact v-prefixed package version', () => { + assert.doesNotThrow(() => assertReleaseTag('v26.8.0-beta.0', '26.8.0-beta.0')); +}); + +test('rejects a different prerelease version', () => { + assert.throws( + () => assertReleaseTag('v26.8.0-beta.1', '26.8.0-beta.0'), + /expected v26\.8\.0-beta\.0.*received v26\.8\.0-beta\.1/i, + ); +}); + +test('rejects a tag without the v prefix', () => { + assert.throws( + () => assertReleaseTag('26.8.0-beta.0', '26.8.0-beta.0'), + /expected v26\.8\.0-beta\.0.*received 26\.8\.0-beta\.0/i, + ); +}); + +test('rejects a malformed tag containing a slash', () => { + assert.throws( + () => assertReleaseTag('release/v26.8.0-beta.0', '26.8.0-beta.0'), + /expected v26\.8\.0-beta\.0.*received release\/v26\.8\.0-beta\.0/i, + ); +}); + +test('rejects an empty tag', () => { + assert.throws( + () => assertReleaseTag('', '26.8.0-beta.0'), + /expected v26\.8\.0-beta\.0.*received an empty tag/i, + ); +}); From 4aff5192c524ed9c184ff3ee66a5af1c2e1289d3 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sun, 2 Aug 2026 23:29:43 -0500 Subject: [PATCH 3/5] chore: remediate site dependency advisories --- package-lock.json | 255 ++++++++++++++++++++++++++-------------------- package.json | 4 +- 2 files changed, 145 insertions(+), 114 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8b48480..96b3914 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,39 +8,39 @@ "name": "green-tea-site", "version": "26.8.0-beta.0", "dependencies": { - "@astrojs/mdx": "^7.0.2", + "@astrojs/mdx": "^7.0.5", "@astrojs/rss": "^4.0.19", "@astrojs/sitemap": "^3.7.3", - "astro": "^7.0.7" + "astro": "^7.1.6" }, "engines": { "node": ">=22.12.0" } }, "node_modules/@astrojs/compiler-binding": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding/-/compiler-binding-0.3.1.tgz", - "integrity": "sha512-DaAUj29AIBU2XdJ8uwcab8lW5O2pk9pY8AXkcMw0sw77nVa3oeTYRcO+Dvbbpoexf6ThMc0FMWYCQ/wN1/T7oQ==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding/-/compiler-binding-0.3.2.tgz", + "integrity": "sha512-8w/9CWmYrAJJ8N0SY3O43ws2BgxoW6u3QsD8u2mE140lMYAlwh+tlNoUeSBq22wVheFuiBbR212l6ixZ2IIgCQ==", "license": "MIT", "engines": { "node": "^20.19.0 || >=22.12.0" }, "optionalDependencies": { - "@astrojs/compiler-binding-darwin-arm64": "0.3.1", - "@astrojs/compiler-binding-darwin-x64": "0.3.1", - "@astrojs/compiler-binding-linux-arm64-gnu": "0.3.1", - "@astrojs/compiler-binding-linux-arm64-musl": "0.3.1", - "@astrojs/compiler-binding-linux-x64-gnu": "0.3.1", - "@astrojs/compiler-binding-linux-x64-musl": "0.3.1", - "@astrojs/compiler-binding-wasm32-wasi": "0.3.1", - "@astrojs/compiler-binding-win32-arm64-msvc": "0.3.1", - "@astrojs/compiler-binding-win32-x64-msvc": "0.3.1" + "@astrojs/compiler-binding-darwin-arm64": "0.3.2", + "@astrojs/compiler-binding-darwin-x64": "0.3.2", + "@astrojs/compiler-binding-linux-arm64-gnu": "0.3.2", + "@astrojs/compiler-binding-linux-arm64-musl": "0.3.2", + "@astrojs/compiler-binding-linux-x64-gnu": "0.3.2", + "@astrojs/compiler-binding-linux-x64-musl": "0.3.2", + "@astrojs/compiler-binding-wasm32-wasi": "0.3.2", + "@astrojs/compiler-binding-win32-arm64-msvc": "0.3.2", + "@astrojs/compiler-binding-win32-x64-msvc": "0.3.2" } }, "node_modules/@astrojs/compiler-binding-darwin-arm64": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-darwin-arm64/-/compiler-binding-darwin-arm64-0.3.1.tgz", - "integrity": "sha512-IEmEF2fUIlTHtpeE/isyEGVOB14cEyh/LZOFYt6wn3jNyVpdC8aR5OZ+RzFUR/f+8ZDM1LaMwZKvoA7eMyJeFw==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-darwin-arm64/-/compiler-binding-darwin-arm64-0.3.2.tgz", + "integrity": "sha512-MM8tn8CSimcfytaOla4b6acN8mKWiL/rlAA1fpT3/Wl7dNGSE4y8FjTN/zJVNnb63CsLWG5zZwCt01TXtDKh9g==", "cpu": [ "arm64" ], @@ -54,9 +54,9 @@ } }, "node_modules/@astrojs/compiler-binding-darwin-x64": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-darwin-x64/-/compiler-binding-darwin-x64-0.3.1.tgz", - "integrity": "sha512-GF2kIxjpPDLsn94zbZNMsxEmkU828QqnmM7kiQJnaooS3jmI+I7kk6+oI6EpwOsK3femCMdcm+wmOsEqtGrmjQ==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-darwin-x64/-/compiler-binding-darwin-x64-0.3.2.tgz", + "integrity": "sha512-2lXOlzf8xb7jLomRsf/aswh61/NnGusynB2OwFkK6k4pmOtpfXMYnG0PLfXrEvxXYj69NdCnmUYXtHDd+JOOag==", "cpu": [ "x64" ], @@ -70,12 +70,15 @@ } }, "node_modules/@astrojs/compiler-binding-linux-arm64-gnu": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-arm64-gnu/-/compiler-binding-linux-arm64-gnu-0.3.1.tgz", - "integrity": "sha512-XJL3SDmOtVrqFhCirNcHwE91+IesJqlgNo23I4qW9QUYfwzm/TBZuH61fgqsb1ttgR1mMYz6ooPWs0JDhwMqpQ==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-arm64-gnu/-/compiler-binding-linux-arm64-gnu-0.3.2.tgz", + "integrity": "sha512-BmU3kWj7qnLrd4vzm49zFEPJ5oFnn1tCT4Vt9hZbqdU5Cmb8GZl7fn6VFsnNfe7B18a2gIFtVzbLINtYl5kBjQ==", "cpu": [ "arm64" ], + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -86,12 +89,15 @@ } }, "node_modules/@astrojs/compiler-binding-linux-arm64-musl": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-arm64-musl/-/compiler-binding-linux-arm64-musl-0.3.1.tgz", - "integrity": "sha512-xqE8BVbDoBueK/B47w30PtkVofUWJKGkwoMVE+EOMLf11rnoANxIAdA9FPqY+rng4oNI5ndHGsri1yPj2k8vZQ==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-arm64-musl/-/compiler-binding-linux-arm64-musl-0.3.2.tgz", + "integrity": "sha512-f0heT9ZZEseSu5bHCeb80eL2DH07ArE6U9xi1WT/PEusNjzPmEr3GJsjG1tRLo5VYUUYX7h3ScaqGmGrMOVGmw==", "cpu": [ "arm64" ], + "libc": [ + "musl" + ], "license": "MIT", "optional": true, "os": [ @@ -102,12 +108,15 @@ } }, "node_modules/@astrojs/compiler-binding-linux-x64-gnu": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-x64-gnu/-/compiler-binding-linux-x64-gnu-0.3.1.tgz", - "integrity": "sha512-1y0StU1qiCuDFH3rmbRJXcxdfHxFPrES1Rd+RLffosvUR7I2cH5SF5SFnBN9vXpzpkmyElZm3Yr47iJBPN7vVA==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-x64-gnu/-/compiler-binding-linux-x64-gnu-0.3.2.tgz", + "integrity": "sha512-M8fOUt0itRpqiGyoEA/ij184s8O+hqbCz3+YozRusOOM3osgGljpDThhbKAJjqh82wOo6FioQ4w8PBvU1XMD5Q==", "cpu": [ "x64" ], + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -118,12 +127,15 @@ } }, "node_modules/@astrojs/compiler-binding-linux-x64-musl": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-x64-musl/-/compiler-binding-linux-x64-musl-0.3.1.tgz", - "integrity": "sha512-16q0fYf7kpbmdObZEeZJEup8hQv/whgNwVjrSvT8umrKwLDSnNIWiQpm09lQQu6bweZB0XyIvHwlPitvJhC+hg==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-x64-musl/-/compiler-binding-linux-x64-musl-0.3.2.tgz", + "integrity": "sha512-/Kebk8sO6HnLeSd691JkaAPfN7CqR9/KEXmWvyNPkaKNGmj8rTZ/lf2uXtnPu92Lan84UrKdIKVPy1fSo2encQ==", "cpu": [ "x64" ], + "libc": [ + "musl" + ], "license": "MIT", "optional": true, "os": [ @@ -134,25 +146,25 @@ } }, "node_modules/@astrojs/compiler-binding-wasm32-wasi": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-wasm32-wasi/-/compiler-binding-wasm32-wasi-0.3.1.tgz", - "integrity": "sha512-cB456shIwDv/PrVT+2QG7LFndpHkVge5HjqADKZgGaAc9JHVktCtjSrcdkRQ+3tbkPazNKaTLRjXLIiz2NIx9g==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-wasm32-wasi/-/compiler-binding-wasm32-wasi-0.3.2.tgz", + "integrity": "sha512-pUA6xbcOSB7DhfzIArB8BCAkFfAIqriiR7zl5zOStd6oU2G0kIKj+GUdGnyXyhfiv881Hffyk5tC0mR18sDjDw==", "cpu": [ "wasm32" ], "license": "MIT", "optional": true, "dependencies": { - "@napi-rs/wasm-runtime": "^1.1.6" + "@napi-rs/wasm-runtime": "^1.2.0" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@astrojs/compiler-binding-win32-arm64-msvc": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-win32-arm64-msvc/-/compiler-binding-win32-arm64-msvc-0.3.1.tgz", - "integrity": "sha512-ur/9+If/yTE69mmeX5MqSZndL0HOyx67GeNZUy3N7wVdWpLz9UTJXwyWS4UR2PUQHitghjsM5xoX0Ge56WRVQQ==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-win32-arm64-msvc/-/compiler-binding-win32-arm64-msvc-0.3.2.tgz", + "integrity": "sha512-ESruf+6Qkl1trHUFxI6GSf6t52j8yN2kCNSzMWdzt7V/T09tFHrYzrVaJQohb2C9bJUH76pNvX6Zb51+xCQc9Q==", "cpu": [ "arm64" ], @@ -166,9 +178,9 @@ } }, "node_modules/@astrojs/compiler-binding-win32-x64-msvc": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-win32-x64-msvc/-/compiler-binding-win32-x64-msvc-0.3.1.tgz", - "integrity": "sha512-k0W+kDBzDkNZOqu4kElDvCOIbKw5Ut9S1WZ1Krj3KTgNuBERNKXsMMsRLLcbgfdMdbe7bTekQLshZrrvmYpmwA==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-win32-x64-msvc/-/compiler-binding-win32-x64-msvc-0.3.2.tgz", + "integrity": "sha512-wzzVrEbOwbsLWOdEbocskjMRx2aZPxJ7ZbmL+jnpBamFwmigm+2M/wzuM6JWncocgYwLic1csSpalBh96kQKXA==", "cpu": [ "x64" ], @@ -182,26 +194,26 @@ } }, "node_modules/@astrojs/compiler-rs": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-rs/-/compiler-rs-0.3.1.tgz", - "integrity": "sha512-aT7xkgsbNoS6nriY5qKpbihK43slFHO41iqgHCTdOvn1ifaQxLCc5yXy+6GzAtiafoaC1zA7OwVXCXMsvUZOkg==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-rs/-/compiler-rs-0.3.2.tgz", + "integrity": "sha512-xlx/T7JovIKduu4ucbTQUxQ5+Q8wxkHxhLjnZk3VlJbhbQ9RLvvuDk1p2YYFYFQ5y14dVm3FGGO4isQXa4F+Tg==", "license": "MIT", "dependencies": { - "@astrojs/compiler-binding": "0.3.1" + "@astrojs/compiler-binding": "0.3.2" }, "engines": { "node": ">=22.12.0" } }, "node_modules/@astrojs/internal-helpers": { - "version": "0.10.1", - "resolved": "https://registry.npmjs.org/@astrojs/internal-helpers/-/internal-helpers-0.10.1.tgz", - "integrity": "sha512-5phcroT/vmOOrYuuAxtkbPixy5hePtlz9i8K4OeDv3dNK6/UQRuXPOSRTxIOBbUY5Sonw2UaxjbuVc43Mcir6Q==", + "version": "0.10.2", + "resolved": "https://registry.npmjs.org/@astrojs/internal-helpers/-/internal-helpers-0.10.2.tgz", + "integrity": "sha512-yt7fMgPYqSM4Tmr+taTW6Per+hjJ8Pk6lA1PAcDyqzOt8HzJ6Kje5WzCxA2Sd+9wsUW7uhkLeoTMK0cXPwH9rQ==", "license": "MIT", "dependencies": { "@types/hast": "^3.0.4", "@types/mdast": "^4.0.4", - "js-yaml": "^4.1.1", + "js-yaml": "^4.3.0", "picomatch": "^4.0.4", "retext-smartypants": "^6.2.0", "shiki": "^4.0.2", @@ -210,12 +222,12 @@ } }, "node_modules/@astrojs/markdown-remark": { - "version": "7.2.1", - "resolved": "https://registry.npmjs.org/@astrojs/markdown-remark/-/markdown-remark-7.2.1.tgz", - "integrity": "sha512-jPVNIqTvk+yKviikszv/Y1U4jGUSKpp/Nw48QZV4qjWgp70j4Lkq3lhSDRbWwCfgKvEyO9GHuVbV1dM2WYXy1w==", + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/@astrojs/markdown-remark/-/markdown-remark-7.2.2.tgz", + "integrity": "sha512-FGfmK84zSNcrsBd0dl1gXE9JvZYElp8EXQa2jpHVAxG4deGKAp43wspxFupjADJX7MSsMRHwYCnfT6EyVmgeFQ==", "license": "MIT", "dependencies": { - "@astrojs/internal-helpers": "0.10.1", + "@astrojs/internal-helpers": "0.10.2", "@astrojs/prism": "4.0.2", "github-slugger": "^2.0.0", "hast-util-from-html": "^2.0.3", @@ -235,25 +247,26 @@ } }, "node_modules/@astrojs/markdown-satteri": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@astrojs/markdown-satteri/-/markdown-satteri-0.3.3.tgz", - "integrity": "sha512-Lje33Ittd8UQGgbIIWQvhPkj5X5c4b1sZnZWX3JQV/AWpfbuQGxVi2ONt6+ScydcwfR4egilslEWyczMclrJ1g==", + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@astrojs/markdown-satteri/-/markdown-satteri-0.3.5.tgz", + "integrity": "sha512-CvWVEFAbay7YO+i9SaqDJubipA5ckiVB89QWoMJ5XC0m5CtFg8JwZ7Kau6X9sYY7FZURH0w2l03ISH2jOS/RDQ==", "license": "MIT", "dependencies": { - "@astrojs/internal-helpers": "0.10.1", + "@astrojs/internal-helpers": "0.10.2", "@astrojs/prism": "4.0.2", "github-slugger": "^2.0.0", + "hast-util-from-html": "^2.0.3", "satteri": "^0.9.1" } }, "node_modules/@astrojs/mdx": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@astrojs/mdx/-/mdx-7.0.2.tgz", - "integrity": "sha512-l+sJY5U1KkGZUdr+bIL4Y6BefeS549qoSHVSkUSs6A9INwdCND+/0+vN0NroPBXwl5Vcg5u78t7VQRsJjePxbw==", + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/@astrojs/mdx/-/mdx-7.0.5.tgz", + "integrity": "sha512-wEM/HH1RiEntyPVagdiF+yArzfcYLKBB0C1RZspVidKZ97rRMbaqP1Nbl/GR0sJs8zwaceqxRymw8aOKKJRdYw==", "license": "MIT", "dependencies": { - "@astrojs/internal-helpers": "0.10.1", - "@astrojs/markdown-remark": "7.2.1", + "@astrojs/internal-helpers": "0.10.2", + "@astrojs/markdown-remark": "7.2.2", "@mdx-js/mdx": "^3.1.1", "acorn": "^8.16.0", "es-module-lexer": "^2.0.0", @@ -1560,27 +1573,30 @@ } }, "node_modules/@napi-rs/wasm-runtime": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.6.tgz", - "integrity": "sha512-ZLv/JdUfkvOy9eCnnBaGfiO+XimbjebAeO+MRQqD/B+FR1tnRN0tpKSJHRbE8sFfS6aqsXZ67TQjfwfsxULVbg==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.2.tgz", + "integrity": "sha512-JfB4kuJQjaoHuCTseIINHtHWeJnvgEcxjwA5t/Y00ZgaOO1Crz3fjT/p8kT28zA/Caz7oiUMn3d6H2yOVCVwuw==", "license": "MIT", "optional": true, "dependencies": { "@tybys/wasm-util": "^0.10.3" }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + }, "funding": { "type": "github", "url": "https://github.com/sponsors/Brooooooklyn" }, "peerDependencies": { - "@emnapi/core": "^1.7.1", - "@emnapi/runtime": "^1.7.1" + "@emnapi/core": "^1.7.1 || ^2.0.0-alpha.3", + "@emnapi/runtime": "^1.7.1 || ^2.0.0-alpha.3" } }, "node_modules/@nodable/entities": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@nodable/entities/-/entities-2.2.0.tgz", - "integrity": "sha512-9uGyhaQavEUMC8AIddIjau4NsnsXhou+j5sBAGojCM1oxmQpVKTWR/9JxABD6UAv12vpIms55fPZKFQEhG6uBg==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@nodable/entities/-/entities-3.0.0.tgz", + "integrity": "sha512-8L9xFeTYKhm49xfIypoe2W5wV1m/3Z58kT+7kR9A8OyFxcPduI4VmxaUMQyKYrRjUoLLSXv6EKKID5Tvj9cUVw==", "funding": [ { "type": "github", @@ -2209,14 +2225,14 @@ } }, "node_modules/astro": { - "version": "7.0.7", - "resolved": "https://registry.npmjs.org/astro/-/astro-7.0.7.tgz", - "integrity": "sha512-swqrKDSI/B83GFroYPZYMFcxqbSe9+tkynu1WDBk3GLgBfV9++qVM4Z+2uFT6uu9A53Q0TROnxLketfMEENuqQ==", + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/astro/-/astro-7.1.6.tgz", + "integrity": "sha512-83x9rYbHazMaZkYrAFRVZXSQx2moFkz0F7cjTDUF3GWfS0a3p2vZXG1ZdhV86rStHApQCodBJW+XTD37xISIrQ==", "license": "MIT", "dependencies": { - "@astrojs/compiler-rs": "^0.3.0", - "@astrojs/internal-helpers": "0.10.1", - "@astrojs/markdown-satteri": "0.3.3", + "@astrojs/compiler-rs": "^0.3.2", + "@astrojs/internal-helpers": "0.10.2", + "@astrojs/markdown-satteri": "0.3.5", "@astrojs/telemetry": "3.3.3", "@capsizecss/unpack": "^4.0.0", "@clack/prompts": "^1.1.0", @@ -2228,7 +2244,7 @@ "ci-info": "^4.4.0", "clsx": "^2.1.1", "common-ancestor-path": "^2.0.0", - "cookie": "^1.1.1", + "cookie": "^2.0.1", "devalue": "^5.8.1", "diff": "^8.0.3", "dset": "^3.1.4", @@ -2240,12 +2256,12 @@ "github-slugger": "^2.0.0", "html-escaper": "3.0.3", "http-cache-semantics": "^4.2.0", - "js-yaml": "^4.1.1", + "js-yaml": "^4.3.0", "jsonc-parser": "^3.3.1", - "magic-string": "^0.30.21", + "magic-string": "^1.0.0", "magicast": "^0.5.2", "mrmime": "^2.0.1", - "neotraverse": "^0.6.18", + "neotraverse": "^1.0.1", "obug": "^2.1.1", "p-limit": "^7.3.0", "p-queue": "^9.1.0", @@ -2284,7 +2300,7 @@ "sharp": "^0.34.0 || ^0.35.0" }, "peerDependencies": { - "@astrojs/markdown-remark": "7.2.1" + "@astrojs/markdown-remark": "7.2.2" }, "peerDependenciesMeta": { "@astrojs/markdown-remark": { @@ -2445,12 +2461,12 @@ } }, "node_modules/cookie": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz", - "integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-2.0.1.tgz", + "integrity": "sha512-yuToqVvRrj6pfDXREyQAAv8SkAEk/8GS3jQRTiUMm66TVtBYmqQeoEjL2Lmq8Rpo6271vH76InTChTitEAm65w==", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=22" }, "funding": { "type": "opencollective", @@ -2951,9 +2967,9 @@ } }, "node_modules/fast-xml-parser": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.9.3.tgz", - "integrity": "sha512-brCNCeScma/kqa54J4PIDriSSSLssRkuYaUCpvHJulGc3HGI/xxKUCTDcYkAdqJsyb//ydpbxecjC3hB9+tb/g==", + "version": "5.10.1", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.10.1.tgz", + "integrity": "sha512-IEMIf7298kXuZSRFoGfMYrl7is8LpavODgbNz1cwIudv7KwVFnuU+UsMporfq6PD6aXSlawZlARiA3UywCTfMw==", "funding": [ { "type": "github", @@ -2962,17 +2978,32 @@ ], "license": "MIT", "dependencies": { - "@nodable/entities": "^2.2.0", + "@nodable/entities": "^3.0.0", "fast-xml-builder": "^1.2.0", - "is-unsafe": "^1.0.1", - "path-expression-matcher": "^1.5.0", + "is-unsafe": "^2.0.0", + "path-expression-matcher": "^1.6.2", "strnum": "^2.4.1", - "xml-naming": "^0.1.0" + "xml-naming": "^0.3.0" }, "bin": { "fxparser": "src/cli/cli.js" } }, + "node_modules/fast-xml-parser/node_modules/xml-naming": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/xml-naming/-/xml-naming-0.3.0.tgz", + "integrity": "sha512-ghig2TBE/H11aOVgmahA3MhimvkBr6JIYknH/Dhdk10nXwdbIqBJsbfMxpvFPG8bAw77gN29aQWvKpmVoPlvPQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + } + ], + "license": "MIT", + "engines": { + "node": ">=16.0.0" + } + }, "node_modules/fdir": { "version": "6.5.0", "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", @@ -3413,9 +3444,9 @@ } }, "node_modules/is-unsafe": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-unsafe/-/is-unsafe-1.0.1.tgz", - "integrity": "sha512-CLK2+VdgERgD96EYm5lUQssZYlRg2tkZnbsxZoacmSiRxiFJ4Nk4SzjCl+Ur+v3kXIY9dTIdb3IH22y1mZ56LA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-unsafe/-/is-unsafe-2.0.0.tgz", + "integrity": "sha512-2LdV822R+wmI86unXA93WCFpL6g+av8ynWk0nrHyJqGop5VoocYsSLFgN8jrfalT6iGeLNM4KXuVSsULP53kEA==", "funding": [ { "type": "github", @@ -3721,9 +3752,9 @@ } }, "node_modules/magic-string": { - "version": "0.30.21", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", - "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.1.0.tgz", + "integrity": "sha512-kS3VHe0nEPST2saQV4Rbkchcd3UBRkVTQHo1D3h/ZTwFDhai/mfKkmtPAtD129EOI7K3HlHIsFOt0WrI2/oU9g==", "license": "MIT", "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" @@ -4803,9 +4834,9 @@ "license": "MIT" }, "node_modules/nanoid": { - "version": "3.3.15", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.15.tgz", - "integrity": "sha512-y7Wygv/7mEOvxTuEQDB8StXdMRBWf1kR/tlhAzBRUFkB2jfcLOAxO/SHmOO2zgz1pVgK29/kyupn059/bCHdjA==", + "version": "3.3.16", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.16.tgz", + "integrity": "sha512-bzlKTyNJ7+LdGIIwy8ijFpIqEQIvafahV7eYykJ8Cvh42EdJeODoJ6gUJXpQJvej1BddH8OqTXZNE/KfbWAu8Q==", "funding": [ { "type": "github", @@ -4821,9 +4852,9 @@ } }, "node_modules/neotraverse": { - "version": "0.6.18", - "resolved": "https://registry.npmjs.org/neotraverse/-/neotraverse-0.6.18.tgz", - "integrity": "sha512-Z4SmBUweYa09+o6pG+eASabEpP6QkQ70yHj351pQoEXIs8uHbaU2DWVmzBANKgflPa47A50PtB2+NgRpQvr7vA==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/neotraverse/-/neotraverse-1.0.1.tgz", + "integrity": "sha512-WmmLty1YWwJl9yZi77v2dVIV6X2kuYV8YYBI/G3LWGKdGHmHUvL1z7FW0iDvEvGAwNEoc5x1tOOOyDnf5jJw/w==", "license": "MIT", "engines": { "node": ">= 10" @@ -5078,9 +5109,9 @@ } }, "node_modules/postcss": { - "version": "8.5.16", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.16.tgz", - "integrity": "sha512-vuwillviilfKZsg0VGj5R/YwwcHx4SLsIOI/7K6mQkWx+l5cUHTjj5g0AasTBcyXsbfTgrwsUNmVUb5xVwyPwg==", + "version": "8.5.25", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.25.tgz", + "integrity": "sha512-DTPx3RWSSnWyzLxQnlH0rJP+EW5ekl16ZU4/psbIhA0e53kJfdgaN5vKM+xP7yJtXVu+nfdVFmlgFDEKAe4Pyw==", "funding": [ { "type": "opencollective", @@ -5097,7 +5128,7 @@ ], "license": "MIT", "dependencies": { - "nanoid": "^3.3.12", + "nanoid": "^3.3.16", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" }, @@ -5718,9 +5749,9 @@ } }, "node_modules/svgo": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/svgo/-/svgo-4.0.1.tgz", - "integrity": "sha512-XDpWUOPC6FEibaLzjfe0ucaV0YrOjYotGJO1WpF0Zd+n6ZGEQUsSugaoLq9QkEZtAfQIxT42UChcssDVPP3+/w==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-4.0.2.tgz", + "integrity": "sha512-ekx94z1rRc5LDi6oSUaeRnYhd0UOJxdtQCL2rF8xpWxD3TPAsISWOrxezqGovqS38GRZOdpDfvQe3ts6F7nsng==", "license": "MIT", "dependencies": { "commander": "^11.1.0", diff --git a/package.json b/package.json index 2a22514..59a9e5f 100644 --- a/package.json +++ b/package.json @@ -16,9 +16,9 @@ "astro": "astro" }, "dependencies": { - "@astrojs/mdx": "^7.0.2", + "@astrojs/mdx": "^7.0.5", "@astrojs/rss": "^4.0.19", "@astrojs/sitemap": "^3.7.3", - "astro": "^7.0.7" + "astro": "^7.1.6" } } From be7237d2c2d548776975506da296a950be2422ca Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sun, 2 Aug 2026 23:31:19 -0500 Subject: [PATCH 4/5] docs: publish 26.8.0 beta release story --- src/components/sections/Batteries.astro | 9 +- src/components/sections/Hero.astro | 2 +- src/components/sections/RunsEverywhere.astro | 8 +- src/content/blog/green-tea-26-8-0-beta-0.mdx | 107 +++++++++++++++++++ 4 files changed, 118 insertions(+), 8 deletions(-) create mode 100644 src/content/blog/green-tea-26-8-0-beta-0.mdx diff --git a/src/components/sections/Batteries.astro b/src/components/sections/Batteries.astro index 5870420..c653e16 100644 --- a/src/components/sections/Batteries.astro +++ b/src/components/sections/Batteries.astro @@ -1,14 +1,17 @@ --- const cards = [ - { title: 'Secure by default', body: 'Hardening headers, native TLS, CORS done right.' }, + { title: 'Secure by default', body: 'Hardened response headers and CORS; native TLS on Node.' }, { title: 'Real validation', - body: 'Standard Schema; bring zod, valibot, or arktype. The core stays dependency-free.', + body: 'Standard Schema; bring zod, valibot, or arktype. No validator dependency in core.', }, { title: 'OpenAPI 3.1', body: 'Projected from the same graph. No extra decorators.' }, { title: 'See the graph', body: 'Interactive, served by your app. Not behind a paywall.' }, { title: 'Loud boot', body: 'A missing dependency fails at startup, not in production.' }, - { title: 'One dependency', body: "No Express, no Inversify. Maintenance is the framework's job, not yours." }, + { + title: 'One dependency', + body: "reflect-metadata only. No Express or Inversify maintenance chain underneath you.", + }, ]; --- diff --git a/src/components/sections/Hero.astro b/src/components/sections/Hero.astro index a57b723..1d40917 100644 --- a/src/components/sections/Hero.astro +++ b/src/components/sections/Hero.astro @@ -15,7 +15,7 @@ import GraphMotif from '../GraphMotif.astro';

Green Tea is a zen, opinionated, type-safe framework: you declare what each step needs — it computes the - order. One runtime dependency. Runs wherever JavaScript runs. + order. One runtime dependency. Runs on Node, Deno, Bun, and Cloudflare Workers.

diff --git a/src/components/sections/RunsEverywhere.astro b/src/components/sections/RunsEverywhere.astro index ad6b78e..955a841 100644 --- a/src/components/sections/RunsEverywhere.astro +++ b/src/components/sections/RunsEverywhere.astro @@ -5,11 +5,11 @@ const chips = ['app.listen(port)', 'serveDeno(app)', 'serveBun(app)', 'edgeHandl

Runtime-agnostic

-

Write it once. Run it everywhere.

+

Write it once. Run it on four targets.

- Node, Deno, Bun — and the edge. The same src/ runs on all of them; the only line that changes is - how you serve it. + Node, Deno, Bun — and Cloudflare Workers at the edge. The same src/ runs on all four; the only line + that changes is how you serve it.

    @@ -18,7 +18,7 @@ const chips = ['app.listen(port)', 'serveDeno(app)', 'serveBun(app)', 'edgeHandl

    Built on web standards. Not hostage to a runtime's fate. (The edge has no filesystem, so file-backed views and static serving stay on the server runtimes.)(The edge has no filesystem or mesh, so those features stay on the server runtimes.)

diff --git a/src/content/blog/green-tea-26-8-0-beta-0.mdx b/src/content/blog/green-tea-26-8-0-beta-0.mdx new file mode 100644 index 0000000..2f56a8c --- /dev/null +++ b/src/content/blog/green-tea-26-8-0-beta-0.mdx @@ -0,0 +1,107 @@ +--- +title: "Green Tea 26.8.0-beta.0: the router stops guessing" +description: "Safe constrained routes, strict paths, complete HEAD and OPTIONS semantics, four runtime targets, and the limits we are deliberately leaving visible." +pubDate: 2026-08-02 +author: "Diego Reséndez" +tags: ["green-tea", "release", "routing", "security"] +--- + +A beta should not mean “we will figure out the boundaries later.” It should mean the boundaries are visible, tested, +and still allowed to move. + +Green Tea `26.8.0-beta.0` closes the largest gap in its HTTP surface: the router now understands constrained +parameters, chooses routes deterministically, handles `HEAD` and `OPTIONS` as first-class HTTP methods, and rejects +paths that would otherwise be normalized into something the caller did not send. + +It also keeps an important limit in plain sight: this is still a small linear matcher, not a radix tree pretending to +be one. + +## Constrained routes, with a deliberately boring regex subset + +Routes can now constrain a parameter to one decoded path segment: + +```ts +@Get('/users/:id(\\d+)') +findUser(@Param('id') id: string) { + return users.find(id); +} +``` + +The constraint is anchored to the complete segment automatically. Green Tea accepts character classes, escaped +classes such as `\d`, literal atoms, and bounded simple quantifiers. It rejects groups, alternation, lookarounds, +backreferences, anchors, oversized expressions, and unsafe adjacent unbounded quantifiers at boot. + +That is intentional. This feature handles useful typed-looking route shapes without turning application startup into +an arbitrary-regex or obvious ReDoS surface. + +When several routes could match, specificity is deterministic: + +```text +static segment > constrained parameter > plain parameter > catch-all +``` + +Registration order is no longer a hidden tie-breaker. Ambiguous routes with the same method and shape fail during +boot instead of waiting for production traffic to discover them. + +## A path is either the path you sent, or a 400 + +`/path` and `/path/` remain equivalent. Repeated separators such as `/path//item` do not. Green Tea rejects repeated +slashes and malformed percent encoding with `400 Bad Request` across Node and Fetch-based adapters, while retaining +the configured security and CORS headers. + +The router will not silently collapse an ambiguous URL into a different one. + +## HEAD and OPTIONS are HTTP behavior, not afterthoughts + +This release adds explicit `@Head` and `@Options` decorators. Explicit handlers always win. + +Without one, a buffered `GET` can provide a `HEAD` response with the same status and headers and no body. Streaming +GET routes do not become implicit HEAD routes. An existing path can answer `OPTIONS` automatically with `204` and a +deterministic `Allow` header; configured CORS preflight handling still takes priority. + +OpenAPI follows the declarations rather than inventing operations. Constrained parameters become `{param}` path +parameters with `schema.pattern`, while only explicitly declared HEAD and OPTIONS handlers appear as operations. + +## The same graph on four targets + +The same application code now serves HTTP, SSE, and WebSocket traffic on Node, Deno, Bun, and Cloudflare Workers. +The entry point changes — `app.listen`, `serveDeno`, `serveBun`, or `edgeHandler` — but the route graph does not. + +The runtime boundaries still matter. Edge deployments have no filesystem-backed HTML or static serving, and mesh is +limited to Node, Deno, and Bun. Deno also snapshots request and connection metadata before accepting a WebSocket +upgrade because Deno 2.9 invalidates that metadata afterward. + +## The supply chain got the same treatment + +The core, runtime, and documentation dependency trees were audited and updated before publication. While preparing +this release post, the public site's Astro toolchain was updated too, including patched PostCSS, SVGO, and XML parser +transitives. The automated builds now fail on moderate-or-higher npm advisories instead of leaving the check for the +next release. + +Green Tea still has one runtime dependency: `reflect-metadata`. `ws` and `busboy` remain optional peers for +WebSockets and multipart uploads. + +## What this release does not build + +Route matching remains a linear scan. That is fine for the route tables this beta targets, but it is not the data +structure we would choose for an enormous generated API. A radix-tree matcher remains post-beta work. + +Constraints are also a safe, bounded subset — not arbitrary JavaScript regular expressions. Expanding that surface +would require proving it stays predictable and resistant to pathological input; “accept every regex” is not a beta +checkbox. + +Mesh remains alpha, and the core API can still shift between beta releases. Pin the version and read the changelog +before upgrading. + +## Try it + +```sh +npm install @green-tea/core@beta reflect-metadata +``` + +Then start with the [routing guide](https://green-tea.expressive-tea.io/docs/guides/routing/) or read the complete +[`26.8.0-beta.0` changelog](https://github.com/Expressive-Tea/green-tea/blob/main/CHANGELOG.md). + +The router is still small. It is simply much harder to surprise now. + +That's the tea. 🍵 From 3145cbd9da0d44e4bad1bd22e458485e80193fa5 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sun, 2 Aug 2026 23:31:43 -0500 Subject: [PATCH 5/5] ci: audit site dependencies before release --- .github/workflows/ci.yml | 1 + .github/workflows/release.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 928fef6..b942336 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,4 +19,5 @@ jobs: with: node-version: '22' - run: npm ci + - run: npm audit --audit-level=moderate - run: npm run check diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8e9fdf6..f3bdf87 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,6 +24,7 @@ jobs: - name: Validate release tag run: npm run verify:release - run: npm ci + - run: npm audit --audit-level=moderate - run: npm run check - name: Package dist/ run: tar -czf "$ARCHIVE_NAME" -C dist .