Compare commits
23
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
96fadc4883 | ||
|
|
7238819520 | ||
|
|
9d82ec0f1f | ||
|
|
6fbff8eab9 | ||
|
|
3772222118 | ||
|
|
aa279c31f1 | ||
|
|
6a19f2981a | ||
|
|
67a1b48394 | ||
|
|
9c7eec883c | ||
|
|
73f8e1602f | ||
|
|
68c9f42aed | ||
|
|
ddcb5679ba | ||
|
|
c9159ff1bf | ||
|
|
41709bec46 | ||
|
|
30afa8b630 | ||
|
|
3145cbd9da | ||
|
|
be7237d2c2 | ||
|
|
4aff5192c5 | ||
|
|
d4192a3a12 | ||
|
|
1fe9e19d87 | ||
|
|
4195c00b63 | ||
|
|
a97ed9fb20 | ||
|
|
cd70472367 |
No files matched your search
@@ -0,0 +1,57 @@
|
|||||||
|
name: Dependency audit
|
||||||
|
|
||||||
|
# Weekly, on GITEA ONLY — this is maintenance, so it belongs in the internal tracker.
|
||||||
|
#
|
||||||
|
# This is the counterpart that makes release.yml's relaxed gate safe rather than
|
||||||
|
# negligent. Advisories still get found; they just arrive as an issue on Monday
|
||||||
|
# morning instead of as a failed release on a Friday afternoon. Learning about a
|
||||||
|
# vulnerability and being unable to publish should not be the same event.
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 13 * * 1' # Mondays, 07:00 America/Mexico_City
|
||||||
|
workflow_dispatch: # so it can be run — and tested — on demand
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
audit:
|
||||||
|
if: ${{ github.server_url != 'https://github.com' }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '22'
|
||||||
|
- run: npm ci
|
||||||
|
|
||||||
|
- name: Audit
|
||||||
|
id: audit
|
||||||
|
run: |
|
||||||
|
if npm audit --audit-level=moderate > audit.txt 2>&1; then
|
||||||
|
echo 'clean=true' >> "$GITHUB_OUTPUT"
|
||||||
|
else
|
||||||
|
echo 'clean=false' >> "$GITHUB_OUTPUT"
|
||||||
|
fi
|
||||||
|
cat audit.txt
|
||||||
|
|
||||||
|
- name: File an issue
|
||||||
|
if: steps.audit.outputs.clean == 'false'
|
||||||
|
env:
|
||||||
|
GT_TOKEN: ${{ github.token }}
|
||||||
|
API: ${{ github.server_url }}/api/v1/repos/${{ github.repository }}
|
||||||
|
TITLE: 'Dependency advisories: npm audit is failing'
|
||||||
|
run: |
|
||||||
|
set -eu
|
||||||
|
# One open issue at a time. A weekly cron must not file 52 duplicates.
|
||||||
|
open=$(curl -sSL -H "Authorization: token $GT_TOKEN" \
|
||||||
|
"$API/issues?state=open&type=issues" \
|
||||||
|
| jq --arg t "$TITLE" '[.[] | select(.title == $t)] | length')
|
||||||
|
if [ "$open" != "0" ]; then
|
||||||
|
echo "An issue is already open. Nothing to file."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
body=$(printf '`npm audit --audit-level=moderate` failed on the scheduled run.\n\nThe release gate does not fail on this by design — see the comment in `release.yml`. A static site ships built HTML, not `node_modules`, so a build-time advisory does not reach a visitor. This issue is how it reaches you instead.\n\nFix it in a normal PR, on your own schedule.\n\n```\n%s\n```\n' "$(head -c 4000 audit.txt)")
|
||||||
|
|
||||||
|
jq -n --arg t "$TITLE" --arg b "$body" '{title: $t, body: $b}' \
|
||||||
|
| curl -sS -X POST -H "Authorization: token $GT_TOKEN" \
|
||||||
|
-H 'Content-Type: application/json' -d @- "$API/issues" > /dev/null
|
||||||
|
echo "Issue filed."
|
||||||
@@ -19,4 +19,5 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '22'
|
node-version: '22'
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
- run: npm audit --audit-level=moderate
|
||||||
- run: npm run check
|
- run: npm run check
|
||||||
@@ -22,12 +22,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '22'
|
node-version: '22'
|
||||||
- name: Validate release tag
|
- name: Validate release tag
|
||||||
run: |
|
run: npm run verify:release
|
||||||
if [[ "$RELEASE_TAG" == */* ]]; then
|
|
||||||
echo "Release tag must not contain '/': $RELEASE_TAG" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
# Deliberately `critical`, not `moderate`. npm audit reads a live advisory feed,
|
||||||
|
# so a release gated on it fails by calendar date rather than by anything the
|
||||||
|
# release changed — and it fails at the exact moment there is least time to judge
|
||||||
|
# whether a fix is safe. What ships here is built HTML, CSS and JS: Astro, js-yaml
|
||||||
|
# and friends are build-time tools that never reach a visitor. `critical` keeps a
|
||||||
|
# tripwire for the catastrophic case without breaking releases on routine noise.
|
||||||
|
# Moderate and up still gate every PR in ci.yml, and audit.yml files an issue on a
|
||||||
|
# schedule, so advisories still surface — just not as a broken release.
|
||||||
|
- run: npm audit --audit-level=critical
|
||||||
- run: npm run check
|
- run: npm run check
|
||||||
- name: Package dist/
|
- name: Package dist/
|
||||||
run: tar -czf "$ARCHIVE_NAME" -C dist .
|
run: tar -czf "$ARCHIVE_NAME" -C dist .
|
||||||
@@ -36,4 +41,5 @@ jobs:
|
|||||||
- name: Attach to GitHub release
|
- name: Attach to GitHub release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
|
prerelease: true
|
||||||
files: ${{ env.ARCHIVE_NAME }}
|
files: ${{ env.ARCHIVE_NAME }}
|
||||||
@@ -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.
|
||||||
@@ -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.
|
||||||
Generated
+136
-117
@@ -1,46 +1,46 @@
|
|||||||
{
|
{
|
||||||
"name": "green-tea-site",
|
"name": "green-tea-site",
|
||||||
"version": "26.7.0-beta.0",
|
"version": "26.8.1-beta.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "green-tea-site",
|
"name": "green-tea-site",
|
||||||
"version": "26.7.0-beta.0",
|
"version": "26.8.1-beta.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/mdx": "^7.0.2",
|
"@astrojs/mdx": "^7.0.5",
|
||||||
"@astrojs/rss": "^4.0.19",
|
"@astrojs/rss": "^4.0.19",
|
||||||
"@astrojs/sitemap": "^3.7.3",
|
"@astrojs/sitemap": "^3.7.3",
|
||||||
"astro": "^7.0.7"
|
"astro": "^7.1.6"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=22.12.0"
|
"node": ">=22.12.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@astrojs/compiler-binding": {
|
"node_modules/@astrojs/compiler-binding": {
|
||||||
"version": "0.3.1",
|
"version": "0.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding/-/compiler-binding-0.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding/-/compiler-binding-0.3.2.tgz",
|
||||||
"integrity": "sha512-DaAUj29AIBU2XdJ8uwcab8lW5O2pk9pY8AXkcMw0sw77nVa3oeTYRcO+Dvbbpoexf6ThMc0FMWYCQ/wN1/T7oQ==",
|
"integrity": "sha512-8w/9CWmYrAJJ8N0SY3O43ws2BgxoW6u3QsD8u2mE140lMYAlwh+tlNoUeSBq22wVheFuiBbR212l6ixZ2IIgCQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^20.19.0 || >=22.12.0"
|
"node": "^20.19.0 || >=22.12.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"@astrojs/compiler-binding-darwin-arm64": "0.3.1",
|
"@astrojs/compiler-binding-darwin-arm64": "0.3.2",
|
||||||
"@astrojs/compiler-binding-darwin-x64": "0.3.1",
|
"@astrojs/compiler-binding-darwin-x64": "0.3.2",
|
||||||
"@astrojs/compiler-binding-linux-arm64-gnu": "0.3.1",
|
"@astrojs/compiler-binding-linux-arm64-gnu": "0.3.2",
|
||||||
"@astrojs/compiler-binding-linux-arm64-musl": "0.3.1",
|
"@astrojs/compiler-binding-linux-arm64-musl": "0.3.2",
|
||||||
"@astrojs/compiler-binding-linux-x64-gnu": "0.3.1",
|
"@astrojs/compiler-binding-linux-x64-gnu": "0.3.2",
|
||||||
"@astrojs/compiler-binding-linux-x64-musl": "0.3.1",
|
"@astrojs/compiler-binding-linux-x64-musl": "0.3.2",
|
||||||
"@astrojs/compiler-binding-wasm32-wasi": "0.3.1",
|
"@astrojs/compiler-binding-wasm32-wasi": "0.3.2",
|
||||||
"@astrojs/compiler-binding-win32-arm64-msvc": "0.3.1",
|
"@astrojs/compiler-binding-win32-arm64-msvc": "0.3.2",
|
||||||
"@astrojs/compiler-binding-win32-x64-msvc": "0.3.1"
|
"@astrojs/compiler-binding-win32-x64-msvc": "0.3.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@astrojs/compiler-binding-darwin-arm64": {
|
"node_modules/@astrojs/compiler-binding-darwin-arm64": {
|
||||||
"version": "0.3.1",
|
"version": "0.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-darwin-arm64/-/compiler-binding-darwin-arm64-0.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-darwin-arm64/-/compiler-binding-darwin-arm64-0.3.2.tgz",
|
||||||
"integrity": "sha512-IEmEF2fUIlTHtpeE/isyEGVOB14cEyh/LZOFYt6wn3jNyVpdC8aR5OZ+RzFUR/f+8ZDM1LaMwZKvoA7eMyJeFw==",
|
"integrity": "sha512-MM8tn8CSimcfytaOla4b6acN8mKWiL/rlAA1fpT3/Wl7dNGSE4y8FjTN/zJVNnb63CsLWG5zZwCt01TXtDKh9g==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -54,9 +54,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@astrojs/compiler-binding-darwin-x64": {
|
"node_modules/@astrojs/compiler-binding-darwin-x64": {
|
||||||
"version": "0.3.1",
|
"version": "0.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-darwin-x64/-/compiler-binding-darwin-x64-0.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-darwin-x64/-/compiler-binding-darwin-x64-0.3.2.tgz",
|
||||||
"integrity": "sha512-GF2kIxjpPDLsn94zbZNMsxEmkU828QqnmM7kiQJnaooS3jmI+I7kk6+oI6EpwOsK3femCMdcm+wmOsEqtGrmjQ==",
|
"integrity": "sha512-2lXOlzf8xb7jLomRsf/aswh61/NnGusynB2OwFkK6k4pmOtpfXMYnG0PLfXrEvxXYj69NdCnmUYXtHDd+JOOag==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -70,9 +70,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@astrojs/compiler-binding-linux-arm64-gnu": {
|
"node_modules/@astrojs/compiler-binding-linux-arm64-gnu": {
|
||||||
"version": "0.3.1",
|
"version": "0.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-arm64-gnu/-/compiler-binding-linux-arm64-gnu-0.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-arm64-gnu/-/compiler-binding-linux-arm64-gnu-0.3.2.tgz",
|
||||||
"integrity": "sha512-XJL3SDmOtVrqFhCirNcHwE91+IesJqlgNo23I4qW9QUYfwzm/TBZuH61fgqsb1ttgR1mMYz6ooPWs0JDhwMqpQ==",
|
"integrity": "sha512-BmU3kWj7qnLrd4vzm49zFEPJ5oFnn1tCT4Vt9hZbqdU5Cmb8GZl7fn6VFsnNfe7B18a2gIFtVzbLINtYl5kBjQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -86,9 +86,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@astrojs/compiler-binding-linux-arm64-musl": {
|
"node_modules/@astrojs/compiler-binding-linux-arm64-musl": {
|
||||||
"version": "0.3.1",
|
"version": "0.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-arm64-musl/-/compiler-binding-linux-arm64-musl-0.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-arm64-musl/-/compiler-binding-linux-arm64-musl-0.3.2.tgz",
|
||||||
"integrity": "sha512-xqE8BVbDoBueK/B47w30PtkVofUWJKGkwoMVE+EOMLf11rnoANxIAdA9FPqY+rng4oNI5ndHGsri1yPj2k8vZQ==",
|
"integrity": "sha512-f0heT9ZZEseSu5bHCeb80eL2DH07ArE6U9xi1WT/PEusNjzPmEr3GJsjG1tRLo5VYUUYX7h3ScaqGmGrMOVGmw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -102,9 +102,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@astrojs/compiler-binding-linux-x64-gnu": {
|
"node_modules/@astrojs/compiler-binding-linux-x64-gnu": {
|
||||||
"version": "0.3.1",
|
"version": "0.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-x64-gnu/-/compiler-binding-linux-x64-gnu-0.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-x64-gnu/-/compiler-binding-linux-x64-gnu-0.3.2.tgz",
|
||||||
"integrity": "sha512-1y0StU1qiCuDFH3rmbRJXcxdfHxFPrES1Rd+RLffosvUR7I2cH5SF5SFnBN9vXpzpkmyElZm3Yr47iJBPN7vVA==",
|
"integrity": "sha512-M8fOUt0itRpqiGyoEA/ij184s8O+hqbCz3+YozRusOOM3osgGljpDThhbKAJjqh82wOo6FioQ4w8PBvU1XMD5Q==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -118,9 +118,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@astrojs/compiler-binding-linux-x64-musl": {
|
"node_modules/@astrojs/compiler-binding-linux-x64-musl": {
|
||||||
"version": "0.3.1",
|
"version": "0.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-x64-musl/-/compiler-binding-linux-x64-musl-0.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-x64-musl/-/compiler-binding-linux-x64-musl-0.3.2.tgz",
|
||||||
"integrity": "sha512-16q0fYf7kpbmdObZEeZJEup8hQv/whgNwVjrSvT8umrKwLDSnNIWiQpm09lQQu6bweZB0XyIvHwlPitvJhC+hg==",
|
"integrity": "sha512-/Kebk8sO6HnLeSd691JkaAPfN7CqR9/KEXmWvyNPkaKNGmj8rTZ/lf2uXtnPu92Lan84UrKdIKVPy1fSo2encQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -134,25 +134,25 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@astrojs/compiler-binding-wasm32-wasi": {
|
"node_modules/@astrojs/compiler-binding-wasm32-wasi": {
|
||||||
"version": "0.3.1",
|
"version": "0.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-wasm32-wasi/-/compiler-binding-wasm32-wasi-0.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-wasm32-wasi/-/compiler-binding-wasm32-wasi-0.3.2.tgz",
|
||||||
"integrity": "sha512-cB456shIwDv/PrVT+2QG7LFndpHkVge5HjqADKZgGaAc9JHVktCtjSrcdkRQ+3tbkPazNKaTLRjXLIiz2NIx9g==",
|
"integrity": "sha512-pUA6xbcOSB7DhfzIArB8BCAkFfAIqriiR7zl5zOStd6oU2G0kIKj+GUdGnyXyhfiv881Hffyk5tC0mR18sDjDw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"wasm32"
|
"wasm32"
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@napi-rs/wasm-runtime": "^1.1.6"
|
"@napi-rs/wasm-runtime": "^1.2.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14.0.0"
|
"node": ">=14.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@astrojs/compiler-binding-win32-arm64-msvc": {
|
"node_modules/@astrojs/compiler-binding-win32-arm64-msvc": {
|
||||||
"version": "0.3.1",
|
"version": "0.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-win32-arm64-msvc/-/compiler-binding-win32-arm64-msvc-0.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-win32-arm64-msvc/-/compiler-binding-win32-arm64-msvc-0.3.2.tgz",
|
||||||
"integrity": "sha512-ur/9+If/yTE69mmeX5MqSZndL0HOyx67GeNZUy3N7wVdWpLz9UTJXwyWS4UR2PUQHitghjsM5xoX0Ge56WRVQQ==",
|
"integrity": "sha512-ESruf+6Qkl1trHUFxI6GSf6t52j8yN2kCNSzMWdzt7V/T09tFHrYzrVaJQohb2C9bJUH76pNvX6Zb51+xCQc9Q==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -166,9 +166,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@astrojs/compiler-binding-win32-x64-msvc": {
|
"node_modules/@astrojs/compiler-binding-win32-x64-msvc": {
|
||||||
"version": "0.3.1",
|
"version": "0.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-win32-x64-msvc/-/compiler-binding-win32-x64-msvc-0.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-win32-x64-msvc/-/compiler-binding-win32-x64-msvc-0.3.2.tgz",
|
||||||
"integrity": "sha512-k0W+kDBzDkNZOqu4kElDvCOIbKw5Ut9S1WZ1Krj3KTgNuBERNKXsMMsRLLcbgfdMdbe7bTekQLshZrrvmYpmwA==",
|
"integrity": "sha512-wzzVrEbOwbsLWOdEbocskjMRx2aZPxJ7ZbmL+jnpBamFwmigm+2M/wzuM6JWncocgYwLic1csSpalBh96kQKXA==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -182,26 +182,26 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@astrojs/compiler-rs": {
|
"node_modules/@astrojs/compiler-rs": {
|
||||||
"version": "0.3.1",
|
"version": "0.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/@astrojs/compiler-rs/-/compiler-rs-0.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/@astrojs/compiler-rs/-/compiler-rs-0.3.2.tgz",
|
||||||
"integrity": "sha512-aT7xkgsbNoS6nriY5qKpbihK43slFHO41iqgHCTdOvn1ifaQxLCc5yXy+6GzAtiafoaC1zA7OwVXCXMsvUZOkg==",
|
"integrity": "sha512-xlx/T7JovIKduu4ucbTQUxQ5+Q8wxkHxhLjnZk3VlJbhbQ9RLvvuDk1p2YYFYFQ5y14dVm3FGGO4isQXa4F+Tg==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/compiler-binding": "0.3.1"
|
"@astrojs/compiler-binding": "0.3.2"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=22.12.0"
|
"node": ">=22.12.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@astrojs/internal-helpers": {
|
"node_modules/@astrojs/internal-helpers": {
|
||||||
"version": "0.10.1",
|
"version": "0.10.2",
|
||||||
"resolved": "https://registry.npmjs.org/@astrojs/internal-helpers/-/internal-helpers-0.10.1.tgz",
|
"resolved": "https://registry.npmjs.org/@astrojs/internal-helpers/-/internal-helpers-0.10.2.tgz",
|
||||||
"integrity": "sha512-5phcroT/vmOOrYuuAxtkbPixy5hePtlz9i8K4OeDv3dNK6/UQRuXPOSRTxIOBbUY5Sonw2UaxjbuVc43Mcir6Q==",
|
"integrity": "sha512-yt7fMgPYqSM4Tmr+taTW6Per+hjJ8Pk6lA1PAcDyqzOt8HzJ6Kje5WzCxA2Sd+9wsUW7uhkLeoTMK0cXPwH9rQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/hast": "^3.0.4",
|
"@types/hast": "^3.0.4",
|
||||||
"@types/mdast": "^4.0.4",
|
"@types/mdast": "^4.0.4",
|
||||||
"js-yaml": "^4.1.1",
|
"js-yaml": "^4.3.0",
|
||||||
"picomatch": "^4.0.4",
|
"picomatch": "^4.0.4",
|
||||||
"retext-smartypants": "^6.2.0",
|
"retext-smartypants": "^6.2.0",
|
||||||
"shiki": "^4.0.2",
|
"shiki": "^4.0.2",
|
||||||
@@ -210,12 +210,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@astrojs/markdown-remark": {
|
"node_modules/@astrojs/markdown-remark": {
|
||||||
"version": "7.2.1",
|
"version": "7.2.2",
|
||||||
"resolved": "https://registry.npmjs.org/@astrojs/markdown-remark/-/markdown-remark-7.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/@astrojs/markdown-remark/-/markdown-remark-7.2.2.tgz",
|
||||||
"integrity": "sha512-jPVNIqTvk+yKviikszv/Y1U4jGUSKpp/Nw48QZV4qjWgp70j4Lkq3lhSDRbWwCfgKvEyO9GHuVbV1dM2WYXy1w==",
|
"integrity": "sha512-FGfmK84zSNcrsBd0dl1gXE9JvZYElp8EXQa2jpHVAxG4deGKAp43wspxFupjADJX7MSsMRHwYCnfT6EyVmgeFQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/internal-helpers": "0.10.1",
|
"@astrojs/internal-helpers": "0.10.2",
|
||||||
"@astrojs/prism": "4.0.2",
|
"@astrojs/prism": "4.0.2",
|
||||||
"github-slugger": "^2.0.0",
|
"github-slugger": "^2.0.0",
|
||||||
"hast-util-from-html": "^2.0.3",
|
"hast-util-from-html": "^2.0.3",
|
||||||
@@ -235,25 +235,26 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@astrojs/markdown-satteri": {
|
"node_modules/@astrojs/markdown-satteri": {
|
||||||
"version": "0.3.3",
|
"version": "0.3.5",
|
||||||
"resolved": "https://registry.npmjs.org/@astrojs/markdown-satteri/-/markdown-satteri-0.3.3.tgz",
|
"resolved": "https://registry.npmjs.org/@astrojs/markdown-satteri/-/markdown-satteri-0.3.5.tgz",
|
||||||
"integrity": "sha512-Lje33Ittd8UQGgbIIWQvhPkj5X5c4b1sZnZWX3JQV/AWpfbuQGxVi2ONt6+ScydcwfR4egilslEWyczMclrJ1g==",
|
"integrity": "sha512-CvWVEFAbay7YO+i9SaqDJubipA5ckiVB89QWoMJ5XC0m5CtFg8JwZ7Kau6X9sYY7FZURH0w2l03ISH2jOS/RDQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/internal-helpers": "0.10.1",
|
"@astrojs/internal-helpers": "0.10.2",
|
||||||
"@astrojs/prism": "4.0.2",
|
"@astrojs/prism": "4.0.2",
|
||||||
"github-slugger": "^2.0.0",
|
"github-slugger": "^2.0.0",
|
||||||
|
"hast-util-from-html": "^2.0.3",
|
||||||
"satteri": "^0.9.1"
|
"satteri": "^0.9.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@astrojs/mdx": {
|
"node_modules/@astrojs/mdx": {
|
||||||
"version": "7.0.2",
|
"version": "7.0.5",
|
||||||
"resolved": "https://registry.npmjs.org/@astrojs/mdx/-/mdx-7.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/@astrojs/mdx/-/mdx-7.0.5.tgz",
|
||||||
"integrity": "sha512-l+sJY5U1KkGZUdr+bIL4Y6BefeS549qoSHVSkUSs6A9INwdCND+/0+vN0NroPBXwl5Vcg5u78t7VQRsJjePxbw==",
|
"integrity": "sha512-wEM/HH1RiEntyPVagdiF+yArzfcYLKBB0C1RZspVidKZ97rRMbaqP1Nbl/GR0sJs8zwaceqxRymw8aOKKJRdYw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/internal-helpers": "0.10.1",
|
"@astrojs/internal-helpers": "0.10.2",
|
||||||
"@astrojs/markdown-remark": "7.2.1",
|
"@astrojs/markdown-remark": "7.2.2",
|
||||||
"@mdx-js/mdx": "^3.1.1",
|
"@mdx-js/mdx": "^3.1.1",
|
||||||
"acorn": "^8.16.0",
|
"acorn": "^8.16.0",
|
||||||
"es-module-lexer": "^2.0.0",
|
"es-module-lexer": "^2.0.0",
|
||||||
@@ -1560,27 +1561,30 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@napi-rs/wasm-runtime": {
|
"node_modules/@napi-rs/wasm-runtime": {
|
||||||
"version": "1.1.6",
|
"version": "1.2.2",
|
||||||
"resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.6.tgz",
|
"resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.2.tgz",
|
||||||
"integrity": "sha512-ZLv/JdUfkvOy9eCnnBaGfiO+XimbjebAeO+MRQqD/B+FR1tnRN0tpKSJHRbE8sFfS6aqsXZ67TQjfwfsxULVbg==",
|
"integrity": "sha512-JfB4kuJQjaoHuCTseIINHtHWeJnvgEcxjwA5t/Y00ZgaOO1Crz3fjT/p8kT28zA/Caz7oiUMn3d6H2yOVCVwuw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tybys/wasm-util": "^0.10.3"
|
"@tybys/wasm-util": "^0.10.3"
|
||||||
},
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "^20.19.0 || ^22.13.0 || >=23.5.0"
|
||||||
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"type": "github",
|
"type": "github",
|
||||||
"url": "https://github.com/sponsors/Brooooooklyn"
|
"url": "https://github.com/sponsors/Brooooooklyn"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@emnapi/core": "^1.7.1",
|
"@emnapi/core": "^1.7.1 || ^2.0.0-alpha.3",
|
||||||
"@emnapi/runtime": "^1.7.1"
|
"@emnapi/runtime": "^1.7.1 || ^2.0.0-alpha.3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@nodable/entities": {
|
"node_modules/@nodable/entities": {
|
||||||
"version": "2.2.0",
|
"version": "3.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@nodable/entities/-/entities-2.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/@nodable/entities/-/entities-3.0.0.tgz",
|
||||||
"integrity": "sha512-9uGyhaQavEUMC8AIddIjau4NsnsXhou+j5sBAGojCM1oxmQpVKTWR/9JxABD6UAv12vpIms55fPZKFQEhG6uBg==",
|
"integrity": "sha512-8L9xFeTYKhm49xfIypoe2W5wV1m/3Z58kT+7kR9A8OyFxcPduI4VmxaUMQyKYrRjUoLLSXv6EKKID5Tvj9cUVw==",
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"type": "github",
|
"type": "github",
|
||||||
@@ -2209,14 +2213,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/astro": {
|
"node_modules/astro": {
|
||||||
"version": "7.0.7",
|
"version": "7.1.6",
|
||||||
"resolved": "https://registry.npmjs.org/astro/-/astro-7.0.7.tgz",
|
"resolved": "https://registry.npmjs.org/astro/-/astro-7.1.6.tgz",
|
||||||
"integrity": "sha512-swqrKDSI/B83GFroYPZYMFcxqbSe9+tkynu1WDBk3GLgBfV9++qVM4Z+2uFT6uu9A53Q0TROnxLketfMEENuqQ==",
|
"integrity": "sha512-83x9rYbHazMaZkYrAFRVZXSQx2moFkz0F7cjTDUF3GWfS0a3p2vZXG1ZdhV86rStHApQCodBJW+XTD37xISIrQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/compiler-rs": "^0.3.0",
|
"@astrojs/compiler-rs": "^0.3.2",
|
||||||
"@astrojs/internal-helpers": "0.10.1",
|
"@astrojs/internal-helpers": "0.10.2",
|
||||||
"@astrojs/markdown-satteri": "0.3.3",
|
"@astrojs/markdown-satteri": "0.3.5",
|
||||||
"@astrojs/telemetry": "3.3.3",
|
"@astrojs/telemetry": "3.3.3",
|
||||||
"@capsizecss/unpack": "^4.0.0",
|
"@capsizecss/unpack": "^4.0.0",
|
||||||
"@clack/prompts": "^1.1.0",
|
"@clack/prompts": "^1.1.0",
|
||||||
@@ -2228,7 +2232,7 @@
|
|||||||
"ci-info": "^4.4.0",
|
"ci-info": "^4.4.0",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"common-ancestor-path": "^2.0.0",
|
"common-ancestor-path": "^2.0.0",
|
||||||
"cookie": "^1.1.1",
|
"cookie": "^2.0.1",
|
||||||
"devalue": "^5.8.1",
|
"devalue": "^5.8.1",
|
||||||
"diff": "^8.0.3",
|
"diff": "^8.0.3",
|
||||||
"dset": "^3.1.4",
|
"dset": "^3.1.4",
|
||||||
@@ -2240,12 +2244,12 @@
|
|||||||
"github-slugger": "^2.0.0",
|
"github-slugger": "^2.0.0",
|
||||||
"html-escaper": "3.0.3",
|
"html-escaper": "3.0.3",
|
||||||
"http-cache-semantics": "^4.2.0",
|
"http-cache-semantics": "^4.2.0",
|
||||||
"js-yaml": "^4.1.1",
|
"js-yaml": "^4.3.0",
|
||||||
"jsonc-parser": "^3.3.1",
|
"jsonc-parser": "^3.3.1",
|
||||||
"magic-string": "^0.30.21",
|
"magic-string": "^1.0.0",
|
||||||
"magicast": "^0.5.2",
|
"magicast": "^0.5.2",
|
||||||
"mrmime": "^2.0.1",
|
"mrmime": "^2.0.1",
|
||||||
"neotraverse": "^0.6.18",
|
"neotraverse": "^1.0.1",
|
||||||
"obug": "^2.1.1",
|
"obug": "^2.1.1",
|
||||||
"p-limit": "^7.3.0",
|
"p-limit": "^7.3.0",
|
||||||
"p-queue": "^9.1.0",
|
"p-queue": "^9.1.0",
|
||||||
@@ -2284,7 +2288,7 @@
|
|||||||
"sharp": "^0.34.0 || ^0.35.0"
|
"sharp": "^0.34.0 || ^0.35.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@astrojs/markdown-remark": "7.2.1"
|
"@astrojs/markdown-remark": "7.2.2"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
"@astrojs/markdown-remark": {
|
"@astrojs/markdown-remark": {
|
||||||
@@ -2445,12 +2449,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/cookie": {
|
"node_modules/cookie": {
|
||||||
"version": "1.1.1",
|
"version": "2.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/cookie/-/cookie-2.0.1.tgz",
|
||||||
"integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==",
|
"integrity": "sha512-yuToqVvRrj6pfDXREyQAAv8SkAEk/8GS3jQRTiUMm66TVtBYmqQeoEjL2Lmq8Rpo6271vH76InTChTitEAm65w==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=22"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"type": "opencollective",
|
"type": "opencollective",
|
||||||
@@ -2951,9 +2955,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/fast-xml-parser": {
|
"node_modules/fast-xml-parser": {
|
||||||
"version": "5.9.3",
|
"version": "5.10.1",
|
||||||
"resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.9.3.tgz",
|
"resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.10.1.tgz",
|
||||||
"integrity": "sha512-brCNCeScma/kqa54J4PIDriSSSLssRkuYaUCpvHJulGc3HGI/xxKUCTDcYkAdqJsyb//ydpbxecjC3hB9+tb/g==",
|
"integrity": "sha512-IEMIf7298kXuZSRFoGfMYrl7is8LpavODgbNz1cwIudv7KwVFnuU+UsMporfq6PD6aXSlawZlARiA3UywCTfMw==",
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"type": "github",
|
"type": "github",
|
||||||
@@ -2962,17 +2966,32 @@
|
|||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nodable/entities": "^2.2.0",
|
"@nodable/entities": "^3.0.0",
|
||||||
"fast-xml-builder": "^1.2.0",
|
"fast-xml-builder": "^1.2.0",
|
||||||
"is-unsafe": "^1.0.1",
|
"is-unsafe": "^2.0.0",
|
||||||
"path-expression-matcher": "^1.5.0",
|
"path-expression-matcher": "^1.6.2",
|
||||||
"strnum": "^2.4.1",
|
"strnum": "^2.4.1",
|
||||||
"xml-naming": "^0.1.0"
|
"xml-naming": "^0.3.0"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"fxparser": "src/cli/cli.js"
|
"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": {
|
"node_modules/fdir": {
|
||||||
"version": "6.5.0",
|
"version": "6.5.0",
|
||||||
"resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
|
"resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
|
||||||
@@ -3413,9 +3432,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/is-unsafe": {
|
"node_modules/is-unsafe": {
|
||||||
"version": "1.0.1",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/is-unsafe/-/is-unsafe-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/is-unsafe/-/is-unsafe-2.0.0.tgz",
|
||||||
"integrity": "sha512-CLK2+VdgERgD96EYm5lUQssZYlRg2tkZnbsxZoacmSiRxiFJ4Nk4SzjCl+Ur+v3kXIY9dTIdb3IH22y1mZ56LA==",
|
"integrity": "sha512-2LdV822R+wmI86unXA93WCFpL6g+av8ynWk0nrHyJqGop5VoocYsSLFgN8jrfalT6iGeLNM4KXuVSsULP53kEA==",
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"type": "github",
|
"type": "github",
|
||||||
@@ -3425,9 +3444,9 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/js-yaml": {
|
"node_modules/js-yaml": {
|
||||||
"version": "4.3.0",
|
"version": "4.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.1.tgz",
|
||||||
"integrity": "sha512-1td788aAnnZ5qs7V2QIRl1owjtYpbKt749Y3xauqQgwIIGF/xXWz1wMTEBx5O3LK3lXLVuqXPdPxj2BoFHaW9Q==",
|
"integrity": "sha512-CY6crGq313MX8GkwvB7tzgp99vjQxY1++5y10/BKN/GUfHqWaOGQMNZkBvqSzsZKWk/ijwHlWzzkLulsGHhjWQ==",
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"type": "github",
|
"type": "github",
|
||||||
@@ -3721,9 +3740,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/magic-string": {
|
"node_modules/magic-string": {
|
||||||
"version": "0.30.21",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",
|
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.1.0.tgz",
|
||||||
"integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",
|
"integrity": "sha512-kS3VHe0nEPST2saQV4Rbkchcd3UBRkVTQHo1D3h/ZTwFDhai/mfKkmtPAtD129EOI7K3HlHIsFOt0WrI2/oU9g==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@jridgewell/sourcemap-codec": "^1.5.5"
|
"@jridgewell/sourcemap-codec": "^1.5.5"
|
||||||
@@ -4803,9 +4822,9 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/nanoid": {
|
"node_modules/nanoid": {
|
||||||
"version": "3.3.15",
|
"version": "3.3.18",
|
||||||
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.15.tgz",
|
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.18.tgz",
|
||||||
"integrity": "sha512-y7Wygv/7mEOvxTuEQDB8StXdMRBWf1kR/tlhAzBRUFkB2jfcLOAxO/SHmOO2zgz1pVgK29/kyupn059/bCHdjA==",
|
"integrity": "sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==",
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"type": "github",
|
"type": "github",
|
||||||
@@ -4821,9 +4840,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/neotraverse": {
|
"node_modules/neotraverse": {
|
||||||
"version": "0.6.18",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/neotraverse/-/neotraverse-0.6.18.tgz",
|
"resolved": "https://registry.npmjs.org/neotraverse/-/neotraverse-1.0.1.tgz",
|
||||||
"integrity": "sha512-Z4SmBUweYa09+o6pG+eASabEpP6QkQ70yHj351pQoEXIs8uHbaU2DWVmzBANKgflPa47A50PtB2+NgRpQvr7vA==",
|
"integrity": "sha512-WmmLty1YWwJl9yZi77v2dVIV6X2kuYV8YYBI/G3LWGKdGHmHUvL1z7FW0iDvEvGAwNEoc5x1tOOOyDnf5jJw/w==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 10"
|
"node": ">= 10"
|
||||||
@@ -5078,9 +5097,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/postcss": {
|
"node_modules/postcss": {
|
||||||
"version": "8.5.16",
|
"version": "8.5.25",
|
||||||
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.16.tgz",
|
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.25.tgz",
|
||||||
"integrity": "sha512-vuwillviilfKZsg0VGj5R/YwwcHx4SLsIOI/7K6mQkWx+l5cUHTjj5g0AasTBcyXsbfTgrwsUNmVUb5xVwyPwg==",
|
"integrity": "sha512-DTPx3RWSSnWyzLxQnlH0rJP+EW5ekl16ZU4/psbIhA0e53kJfdgaN5vKM+xP7yJtXVu+nfdVFmlgFDEKAe4Pyw==",
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"type": "opencollective",
|
"type": "opencollective",
|
||||||
@@ -5097,7 +5116,7 @@
|
|||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nanoid": "^3.3.12",
|
"nanoid": "^3.3.16",
|
||||||
"picocolors": "^1.1.1",
|
"picocolors": "^1.1.1",
|
||||||
"source-map-js": "^1.2.1"
|
"source-map-js": "^1.2.1"
|
||||||
},
|
},
|
||||||
@@ -5718,9 +5737,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/svgo": {
|
"node_modules/svgo": {
|
||||||
"version": "4.0.1",
|
"version": "4.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/svgo/-/svgo-4.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/svgo/-/svgo-4.0.2.tgz",
|
||||||
"integrity": "sha512-XDpWUOPC6FEibaLzjfe0ucaV0YrOjYotGJO1WpF0Zd+n6ZGEQUsSugaoLq9QkEZtAfQIxT42UChcssDVPP3+/w==",
|
"integrity": "sha512-ekx94z1rRc5LDi6oSUaeRnYhd0UOJxdtQCL2rF8xpWxD3TPAsISWOrxezqGovqS38GRZOdpDfvQe3ts6F7nsng==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"commander": "^11.1.0",
|
"commander": "^11.1.0",
|
||||||
|
|||||||
+5
-3
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "green-tea-site",
|
"name": "green-tea-site",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "26.7.0-beta.0",
|
"version": "26.8.1-beta.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=22.12.0"
|
"node": ">=22.12.0"
|
||||||
},
|
},
|
||||||
@@ -9,14 +9,16 @@
|
|||||||
"dev": "astro dev",
|
"dev": "astro dev",
|
||||||
"build": "astro build",
|
"build": "astro build",
|
||||||
"check": "npm run build && npm run verify:build",
|
"check": "npm run build && npm run verify:build",
|
||||||
|
"test": "node --test scripts/*.test.mjs",
|
||||||
"verify:build": "node scripts/verify-build.mjs",
|
"verify:build": "node scripts/verify-build.mjs",
|
||||||
|
"verify:release": "node scripts/verify-release-tag.mjs",
|
||||||
"preview": "astro preview",
|
"preview": "astro preview",
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/mdx": "^7.0.2",
|
"@astrojs/mdx": "^7.0.5",
|
||||||
"@astrojs/rss": "^4.0.19",
|
"@astrojs/rss": "^4.0.19",
|
||||||
"@astrojs/sitemap": "^3.7.3",
|
"@astrojs/sitemap": "^3.7.3",
|
||||||
"astro": "^7.0.7"
|
"astro": "^7.1.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
import assert from 'node:assert/strict';
|
||||||
|
import { readFile } from 'node:fs/promises';
|
||||||
|
import test from 'node:test';
|
||||||
|
|
||||||
|
test('publishes beta tags as GitHub prereleases', async () => {
|
||||||
|
const workflow = await readFile(new URL('../.github/workflows/release.yml', import.meta.url), 'utf8');
|
||||||
|
|
||||||
|
assert.match(
|
||||||
|
workflow,
|
||||||
|
/uses: softprops\/action-gh-release@v2[\s\S]*?with:\s*\n\s+prerelease: true\s*\n\s+files:/,
|
||||||
|
);
|
||||||
|
});
|
||||||
@@ -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();
|
||||||
|
}
|
||||||
@@ -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,
|
||||||
|
);
|
||||||
|
});
|
||||||
@@ -1,22 +1,37 @@
|
|||||||
---
|
---
|
||||||
const cards = [
|
const cards = [
|
||||||
{ title: 'Secure by default', body: 'Hardening headers, native TLS, CORS done right.' },
|
{ title: 'Derive execution', body: 'Green Tea topologically sorts the graph. Stop maintaining execution order by hand.' },
|
||||||
|
{
|
||||||
|
title: 'Fail before traffic',
|
||||||
|
body: 'A missing dependency or an ambiguous route fails loudly at boot, not in production.',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: 'Real validation',
|
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: 'See what was derived',
|
||||||
|
body: 'Print the ordered pipeline, open the live graph, project the same metadata into OpenAPI 3.1.',
|
||||||
|
},
|
||||||
|
{ title: 'Secure by default', body: 'Hardened response headers and CORS; native TLS on Node.' },
|
||||||
|
{
|
||||||
|
title: 'A small foundation',
|
||||||
|
body: 'reflect-metadata is the only runtime dependency; ws and busboy are optional peers for sockets and uploads.',
|
||||||
},
|
},
|
||||||
{ 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." },
|
|
||||||
];
|
];
|
||||||
---
|
---
|
||||||
|
|
||||||
<section class="batteries">
|
<section class="batteries">
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<div class="batteries__head">
|
<div class="batteries__head">
|
||||||
<p class="kicker">Batteries, calm by design</p>
|
<p class="kicker">Foundation ownership</p>
|
||||||
<h2>Serious defaults. Zero ceremony.</h2>
|
<h2>We maintain the foundation. You maintain the product.</h2>
|
||||||
|
<p class="batteries__lede">
|
||||||
|
Routing, graph execution, validation integration, streaming, security defaults, errors, OpenAPI, lifecycle,
|
||||||
|
runtime adapters — the framework work your application would otherwise assemble and then keep working. The
|
||||||
|
goal isn't fewer dependencies for a badge; it's fewer moving parts your team has to understand, upgrade and
|
||||||
|
debug.
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="batteries__grid">
|
<ul class="batteries__grid">
|
||||||
@@ -43,6 +58,13 @@ const cards = [
|
|||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.batteries__lede {
|
||||||
|
margin: 1rem 0 0;
|
||||||
|
max-width: 46rem;
|
||||||
|
color: var(--dim);
|
||||||
|
line-height: 1.75;
|
||||||
|
}
|
||||||
|
|
||||||
.batteries__grid {
|
.batteries__grid {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|||||||
@@ -0,0 +1,109 @@
|
|||||||
|
---
|
||||||
|
const slices = [
|
||||||
|
{
|
||||||
|
route: 'GET /prices',
|
||||||
|
chain: ['market', 'handler'],
|
||||||
|
note: 'A public endpoint never asks for a user, so authentication is not in its graph slice.',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
route: 'GET /portfolio',
|
||||||
|
chain: ['session', 'auth', 'user', 'portfolio', 'handler'],
|
||||||
|
note: 'A protected endpoint needs the user, so Green Tea follows the graph and includes it.',
|
||||||
|
},
|
||||||
|
];
|
||||||
|
---
|
||||||
|
|
||||||
|
<section class="demand section--panel">
|
||||||
|
<div class="wrap demand__inner">
|
||||||
|
<div class="demand__head">
|
||||||
|
<p class="kicker">Route slicing</p>
|
||||||
|
<h2>Run what the route needs. Not everything registered around it.</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<ul class="demand__slices">
|
||||||
|
{
|
||||||
|
slices.map((slice) => (
|
||||||
|
<li class="demand__slice">
|
||||||
|
<p class="demand__route"><code>{slice.route}</code></p>
|
||||||
|
<p class="demand__chain">
|
||||||
|
{slice.chain.map((node, i) => (
|
||||||
|
<>
|
||||||
|
{i > 0 && <span class="demand__arrow" aria-hidden="true">→</span>}
|
||||||
|
<code>{node}</code>
|
||||||
|
</>
|
||||||
|
))}
|
||||||
|
</p>
|
||||||
|
<p class="demand__note">{slice.note}</p>
|
||||||
|
</li>
|
||||||
|
))
|
||||||
|
}
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p class="demand__punch">
|
||||||
|
Routes don't inherit infrastructure just because it was registered nearby. Execution follows dependency
|
||||||
|
demand.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.demand {
|
||||||
|
padding-block: clamp(3rem, 8vw, 5.5rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.demand__head {
|
||||||
|
margin-bottom: 2.2rem;
|
||||||
|
max-width: 46rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.demand__head h2 {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.demand__slices {
|
||||||
|
list-style: none;
|
||||||
|
margin: 0 0 2rem;
|
||||||
|
padding: 0;
|
||||||
|
display: grid;
|
||||||
|
gap: 1.5rem;
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
|
||||||
|
}
|
||||||
|
|
||||||
|
.demand__slice {
|
||||||
|
padding: 1.3rem 1.4rem;
|
||||||
|
border: 1px solid color-mix(in srgb, var(--dim) 18%, transparent);
|
||||||
|
border-radius: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.demand__route {
|
||||||
|
margin: 0 0 0.8rem;
|
||||||
|
font-family: var(--font-heading);
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.demand__chain {
|
||||||
|
margin: 0 0 0.9rem;
|
||||||
|
line-height: 2.1;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.demand__arrow {
|
||||||
|
color: var(--matcha);
|
||||||
|
margin-inline: 0.35rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.demand__note {
|
||||||
|
margin: 0;
|
||||||
|
color: var(--dim);
|
||||||
|
line-height: 1.7;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.demand__punch {
|
||||||
|
margin: 0;
|
||||||
|
max-width: 46rem;
|
||||||
|
font-size: 1.05rem;
|
||||||
|
line-height: 1.7;
|
||||||
|
color: var(--ink);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -7,11 +7,17 @@ import GraphMotif from '../GraphMotif.astro';
|
|||||||
|
|
||||||
<div class="wrap graph-idea__inner">
|
<div class="wrap graph-idea__inner">
|
||||||
<p class="kicker">The idea</p>
|
<p class="kicker">The idea</p>
|
||||||
<h2>A graph, not a chain.</h2>
|
<h2>Declare what your code needs. Not when it should run.</h2>
|
||||||
|
|
||||||
<p class="graph-idea__body">
|
<p class="graph-idea__body">
|
||||||
Express-style frameworks make ordering your job — what runs here, what runs there, where you wire it. Green
|
A handler needs <code>user</code>. Authorization needs <code>user</code>. User comes from authentication.
|
||||||
Tea inverts it. You ask for the highest-level thing you need, and its dependencies resolve transitively.
|
Authentication needs a session. That is already enough information to describe execution order — so Green Tea
|
||||||
|
builds the graph from it, validates the wiring at boot, and runs only the slice the route requires.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p class="graph-idea__chain" aria-label="session, then auth, then user, then authorization, then permissions, then handler">
|
||||||
|
<code>session</code> → <code>auth</code> → <code>user</code> → <code>authorization</code> →
|
||||||
|
<code>permissions</code> → <code>handler</code>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<ul class="graph-idea__examples">
|
<ul class="graph-idea__examples">
|
||||||
@@ -23,9 +29,10 @@ import GraphMotif from '../GraphMotif.astro';
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p class="graph-idea__punch">
|
<p class="graph-idea__punch">
|
||||||
This is pure composition. DI frameworks resolve a graph of <em>services</em>; Green Tea resolves your <em
|
You describe the application; the framework derives the pipeline. DI frameworks resolve a graph of <em
|
||||||
>request pipeline</em
|
>services</em
|
||||||
> the same way — the steps a route runs are computed from what it asks for, not the order you wrote them in.
|
> — Green Tea resolves your <em>request pipeline</em> the same way, from what each route asks for rather than
|
||||||
|
from the order you happened to write things in.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -96,6 +103,13 @@ import GraphMotif from '../GraphMotif.astro';
|
|||||||
color: var(--ink);
|
color: var(--ink);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.graph-idea__chain {
|
||||||
|
margin: 0 0 1.6rem;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
line-height: 2.1;
|
||||||
|
color: var(--dim);
|
||||||
|
}
|
||||||
|
|
||||||
.graph-idea__punch {
|
.graph-idea__punch {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 1.25rem 1.5rem;
|
padding: 1.25rem 1.5rem;
|
||||||
|
|||||||
@@ -11,13 +11,16 @@ import GraphMotif from '../GraphMotif.astro';
|
|||||||
<span class="hero__wordmark">Green Tea<span class="hero__dot">.</span></span>
|
<span class="hero__wordmark">Green Tea<span class="hero__dot">.</span></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h1>Your API is a graph, not a middleware chain.</h1>
|
<h1>Declare intent. Derive execution. Build your product.</h1>
|
||||||
|
|
||||||
<p class="hero__subhead">
|
<p class="hero__subhead">
|
||||||
Green Tea is a zen, opinionated, type-safe framework: you declare what each step needs — it computes the
|
A zen, opinionated, type-safe TypeScript framework that turns what your code needs into a validated
|
||||||
order. One runtime dependency. Runs wherever JavaScript runs.
|
execution graph. Green Tea derives the order, runs only the dependencies each route actually requires,
|
||||||
|
and shows you exactly what it built.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<p class="hero__promise">You focus on business logic. Green Tea maintains the foundation.</p>
|
||||||
|
|
||||||
<div class="btn-row hero__ctas">
|
<div class="btn-row hero__ctas">
|
||||||
<a class="btn btn--primary" href="https://green-tea.expressive-tea.io/docs" target="_blank" rel="noopener noreferrer">
|
<a class="btn btn--primary" href="https://green-tea.expressive-tea.io/docs" target="_blank" rel="noopener noreferrer">
|
||||||
Get started
|
Get started
|
||||||
@@ -30,7 +33,7 @@ import GraphMotif from '../GraphMotif.astro';
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="hero__micro">Beta · calm by design</p>
|
<p class="hero__micro">Beta · Node · Deno · Bun · Edge</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<GraphMotif class="hero__motif" width={460} height={400} opacity={0.55} />
|
<GraphMotif class="hero__motif" width={460} height={400} opacity={0.55} />
|
||||||
@@ -87,7 +90,15 @@ import GraphMotif from '../GraphMotif.astro';
|
|||||||
color: var(--dim);
|
color: var(--dim);
|
||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
line-height: 1.7;
|
line-height: 1.7;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 1.1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero__promise {
|
||||||
|
margin: 0 0 2rem;
|
||||||
|
font-family: var(--font-heading);
|
||||||
|
font-size: 1.02rem;
|
||||||
|
line-height: 1.6;
|
||||||
|
color: var(--ink);
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero__ctas {
|
.hero__ctas {
|
||||||
|
|||||||
@@ -6,8 +6,11 @@
|
|||||||
<h2>Honest: it's beta.</h2>
|
<h2>Honest: it's beta.</h2>
|
||||||
|
|
||||||
<p class="honest__body">
|
<p class="honest__body">
|
||||||
Express and Fastify have a decade of ecosystem. Green Tea doesn't — yet. You come for the model and the
|
Express and Fastify have a decade of ecosystem behind them; NestJS has mature enterprise tooling. Green Tea
|
||||||
ergonomics. If you're tired of maintaining someone else's foundation, come try it.
|
doesn't pretend otherwise. Choose it today because the model fits your application — explicit dependencies,
|
||||||
|
derived execution, inspectable infrastructure, one real-time mental model, and a foundation you don't have to
|
||||||
|
assemble. If your team needs a large plugin catalogue today, that gap is real, and the API can still change
|
||||||
|
before stable.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<form class="subscribe" action="/subscribe.php" method="post">
|
<form class="subscribe" action="/subscribe.php" method="post">
|
||||||
|
|||||||
@@ -4,18 +4,30 @@
|
|||||||
<section class="realtime section--panel">
|
<section class="realtime section--panel">
|
||||||
<div class="wrap realtime__inner">
|
<div class="wrap realtime__inner">
|
||||||
<p class="kicker">Real-time</p>
|
<p class="kicker">Real-time</p>
|
||||||
<h2>One primitive for real-time.</h2>
|
<h2>One mental model. Different transports.</h2>
|
||||||
|
|
||||||
<p class="realtime__body">
|
<p class="realtime__body">
|
||||||
SSE, ndjson, or a duplex WebSocket — one primitive, an <code>AsyncIterable</code>. You declare the transport
|
Your business code has one idea — values arriving over time — and in Green Tea that idea is an <code
|
||||||
with a decorator (<code>@Sse</code>, <code>@Ws</code>, <code>@Stream</code>); only that one line changes. No
|
>AsyncIterable</code
|
||||||
separate gateway, no bolt-on package — and your wire contract is what you declared, never a surprise sprung by
|
>. Declare the transport with a decorator (<code>@Sse</code>, <code>@Ws</code>, <code>@Stream</code>) and
|
||||||
a return value.
|
return the stream; the framework handles framing, backpressure, cleanup and disconnects. Only that one line
|
||||||
|
changes between them, and your wire contract is what you declared — never a surprise sprung by a return value.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p class="realtime__tree">
|
||||||
|
<code>AsyncIterable</code> → <code>SSE</code> · <code>NDJSON</code> · <code>WebSocket</code>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
.realtime__tree {
|
||||||
|
margin: 1.2rem 0 0;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
line-height: 2.1;
|
||||||
|
color: var(--dim);
|
||||||
|
}
|
||||||
|
|
||||||
.realtime__inner {
|
.realtime__inner {
|
||||||
max-width: 60ch;
|
max-width: 60ch;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|||||||
@@ -4,12 +4,13 @@ const chips = ['app.listen(port)', 'serveDeno(app)', 'serveBun(app)', 'edgeHandl
|
|||||||
|
|
||||||
<section class="runs">
|
<section class="runs">
|
||||||
<div class="wrap runs__inner">
|
<div class="wrap runs__inner">
|
||||||
<p class="kicker">Runtime-agnostic</p>
|
<p class="kicker">Portability</p>
|
||||||
<h2>Write it once. Run it everywhere.</h2>
|
<h2>Your application model shouldn't belong to a runtime.</h2>
|
||||||
|
|
||||||
<p class="runs__body">
|
<p class="runs__body">
|
||||||
Node, Deno, Bun — and the edge. The same <code>src/</code> runs on all of them; the only line that changes is
|
The graph, routes, validation and business logic stay the same on Node, Deno, Bun and Cloudflare Workers.
|
||||||
how you serve it.
|
Runtime-specific serving is isolated at the transport boundary — the only line that changes is how the
|
||||||
|
application is served.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<ul class="runs__chips">
|
<ul class="runs__chips">
|
||||||
@@ -17,8 +18,8 @@ const chips = ['app.listen(port)', 'serveDeno(app)', 'serveBun(app)', 'edgeHandl
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p class="runs__micro">
|
<p class="runs__micro">
|
||||||
Built on web standards. Not hostage to a runtime's fate. <span class="runs__caveat"
|
Your product code shouldn't have to care which runtime won this year. <span class="runs__caveat"
|
||||||
>(The edge has no filesystem, so file-backed views and static serving stay on the server runtimes.)</span
|
>(The edge has no filesystem or mesh, so those features stay on the server runtimes.)</span
|
||||||
>
|
>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -26,18 +26,34 @@ class MeController {
|
|||||||
<div class="wrap see-it__inner">
|
<div class="wrap see-it__inner">
|
||||||
<div class="see-it__head">
|
<div class="see-it__head">
|
||||||
<p class="kicker">See it</p>
|
<p class="kicker">See it</p>
|
||||||
<h2>The whole model, in one screen.</h2>
|
<h2>The signature is the contract.</h2>
|
||||||
|
<p class="see-it__lede">
|
||||||
|
If your handler needs it, it says so. Green Tea knows what the handler requires, which steps produce those
|
||||||
|
values, and what those steps need in turn — and if the graph can't satisfy that contract, it fails before
|
||||||
|
serving traffic. No hoping auth ran first, no archaeology through <code>app.use()</code>.
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="see-it__code">
|
<div class="see-it__code">
|
||||||
<Code code={snippet} lang="ts" theme="github-dark-high-contrast" />
|
<Code code={snippet} lang="ts" theme="github-dark-high-contrast" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="see-it__caption">Declare what you need. The framework figures out the order.</p>
|
<p class="see-it__caption">
|
||||||
|
Then make the framework show its work: <code>app.explain()</code> prints the ordered pipeline, the live graph
|
||||||
|
is served by your own app, and the same metadata projects into OpenAPI. Automated does not have to mean
|
||||||
|
invisible.
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
.see-it__lede {
|
||||||
|
margin: 1rem 0 0;
|
||||||
|
max-width: 46rem;
|
||||||
|
color: var(--dim);
|
||||||
|
line-height: 1.75;
|
||||||
|
}
|
||||||
|
|
||||||
.see-it__inner {
|
.see-it__inner {
|
||||||
max-width: 780px;
|
max-width: 780px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
@@ -68,10 +84,10 @@ class MeController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.see-it__caption {
|
.see-it__caption {
|
||||||
margin: 1.5rem 0 0;
|
margin: 1.5rem auto 0;
|
||||||
text-align: center;
|
max-width: 46rem;
|
||||||
color: var(--dim);
|
color: var(--dim);
|
||||||
font-style: italic;
|
line-height: 1.75;
|
||||||
font-size: 0.95rem;
|
font-size: 0.95rem;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -0,0 +1,121 @@
|
|||||||
|
---
|
||||||
|
const rows = [
|
||||||
|
{ job: 'Execution order', owner: 'Green Tea' },
|
||||||
|
{ job: 'Dependency validation', owner: 'Green Tea' },
|
||||||
|
{ job: 'Route-specific pipeline', owner: 'Green Tea' },
|
||||||
|
{ job: 'Missing dependency checks', owner: 'Green Tea' },
|
||||||
|
{ job: 'Streaming mechanics', owner: 'Green Tea' },
|
||||||
|
{ job: 'OpenAPI projection', owner: 'Green Tea' },
|
||||||
|
{ job: 'Secure transport defaults', owner: 'Green Tea' },
|
||||||
|
{ job: 'Runtime serving boundary', owner: 'Green Tea' },
|
||||||
|
];
|
||||||
|
---
|
||||||
|
|
||||||
|
<section class="who">
|
||||||
|
<div class="wrap who__inner">
|
||||||
|
<div class="who__head">
|
||||||
|
<p class="kicker">Ownership</p>
|
||||||
|
<h2>Who should do the infrastructure work?</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<dl class="who__list">
|
||||||
|
{
|
||||||
|
rows.map((row) => (
|
||||||
|
<div class="who__row">
|
||||||
|
<dt>{row.job}</dt>
|
||||||
|
<dd>{row.owner}</dd>
|
||||||
|
</div>
|
||||||
|
))
|
||||||
|
}
|
||||||
|
<div class="who__row who__row--you">
|
||||||
|
<dt>Business rules</dt>
|
||||||
|
<dd>You</dd>
|
||||||
|
</div>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<p class="who__punch">
|
||||||
|
The framework should carry framework complexity. Your application should carry product complexity.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.who {
|
||||||
|
padding-block: clamp(3rem, 8vw, 5.5rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.who__head {
|
||||||
|
margin-bottom: 2.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.who__head h2 {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.who__list {
|
||||||
|
margin: 0 0 2rem;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
|
column-gap: clamp(2rem, 6vw, 4.5rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.who__row {
|
||||||
|
display: flex;
|
||||||
|
align-items: baseline;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 1rem;
|
||||||
|
padding-block: 0.75rem;
|
||||||
|
border-bottom: 1px solid color-mix(in srgb, var(--dim) 18%, transparent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.who__row dt {
|
||||||
|
margin: 0;
|
||||||
|
color: var(--dim);
|
||||||
|
}
|
||||||
|
|
||||||
|
.who__row dd {
|
||||||
|
margin: 0;
|
||||||
|
font-family: var(--font-heading);
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--matcha);
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.who__row--you {
|
||||||
|
grid-column: 1 / -1;
|
||||||
|
border-bottom: none;
|
||||||
|
border-top: 1px solid var(--matcha);
|
||||||
|
margin-top: 1.4rem;
|
||||||
|
padding-top: 1.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.who__row--you dt {
|
||||||
|
color: var(--ink);
|
||||||
|
font-size: 1.05rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.who__row--you dd {
|
||||||
|
color: var(--violet);
|
||||||
|
font-size: 1.35rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.who__punch {
|
||||||
|
margin: 0;
|
||||||
|
max-width: 52rem;
|
||||||
|
font-size: 1.05rem;
|
||||||
|
line-height: 1.7;
|
||||||
|
color: var(--ink);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 700px) {
|
||||||
|
.who__list {
|
||||||
|
grid-template-columns: minmax(0, 1fr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
.who__row {
|
||||||
|
font-size: 0.95rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -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. 🍵
|
||||||
@@ -0,0 +1,101 @@
|
|||||||
|
---
|
||||||
|
title: "Green Tea 26.8.0-beta.1: you can see what it's doing"
|
||||||
|
description: "A correlated event stream and an injectable logger, shutdown as an extension point instead of a SIGTERM handler you write yourself, and one routing behaviour change that ends a difference between runtimes."
|
||||||
|
pubDate: 2026-08-19
|
||||||
|
author: "Diego Reséndez"
|
||||||
|
tags: ["green-tea", "release", "observability", "shutdown"]
|
||||||
|
draft: true
|
||||||
|
---
|
||||||
|
|
||||||
|
The last release made the router stop guessing. This one makes the framework stop being quiet.
|
||||||
|
|
||||||
|
Green Tea `26.8.0-beta.1` closes the gap a team hits in week one of a real evaluation: until now you could run an
|
||||||
|
application on this framework and have no idea what it was doing. That was written down as a known gap. It isn't one
|
||||||
|
any more.
|
||||||
|
|
||||||
|
## Every request has an identity, and every event carries it
|
||||||
|
|
||||||
|
Core emits a correlated lifecycle event stream. Each request gets an id — if a gateway already sent an
|
||||||
|
`x-request-id`, that one is adopted rather than replaced — and every event of that request carries it, alongside the
|
||||||
|
matched route **pattern** rather than the concrete URL, so `/users/:id` aggregates instead of exploding into a
|
||||||
|
million distinct strings. Each step reports its own duration.
|
||||||
|
|
||||||
|
```ts
|
||||||
|
const app = createApp({ modules: [AppModule], logger: myLogger, logRequests: true });
|
||||||
|
```
|
||||||
|
|
||||||
|
The logger is any object with `debug`, `info`, `warn` and `error`. Given none, the default writes JSON, or a
|
||||||
|
readable line when it is attached to a TTY. **Nothing in core writes to `console`** — that is enforced by a lint rule
|
||||||
|
over the whole source tree, not by intention — so every diagnostic the framework produces is something your
|
||||||
|
application can redirect.
|
||||||
|
|
||||||
|
What is deliberately *not* here: no metrics registry, no OpenTelemetry exporter. Core keeps one runtime dependency,
|
||||||
|
and an exporter is a package, not a framework feature. A `traceparent` header is carried through untouched for one
|
||||||
|
to read. Green Tea ships an observability contract, not an observability integration.
|
||||||
|
|
||||||
|
The cost was measured rather than assumed: about 7% of the framework's own per-request work, which is roughly 2%
|
||||||
|
once a real socket is involved.
|
||||||
|
|
||||||
|
## Shutdown is somewhere you can hook into
|
||||||
|
|
||||||
|
Closing what your application opened no longer means writing `process.on('SIGTERM', …)` yourself.
|
||||||
|
|
||||||
|
```ts
|
||||||
|
@Provider({ provides: 'db' })
|
||||||
|
class Db {
|
||||||
|
provide() { return { db: this.#pool }; }
|
||||||
|
async dispose() { await this.#pool.end(); }
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
A provider that opened a pool closes it in `dispose()`. A plugin registers `onShutdown`. An application that wants
|
||||||
|
neither passes `createApp({ hooks })`. All three land in one registry, all three are **awaited** — unlike a bus
|
||||||
|
listener, which is fire-and-forget — and they run in reverse boot order, so a `cache` that needs `db` closes before
|
||||||
|
the `db` does. A failure is logged and the rest still run, because one broken teardown must not leave a process up.
|
||||||
|
|
||||||
|
It happens inside `close()`'s deadline, so a slow teardown cannot hold a deploy open, and
|
||||||
|
`createApp({ teardownTimeoutMs })` reserves part of that budget when a connection has to get its chance. On the edge
|
||||||
|
none of it applies — workerd has no shutdown to hook, and saying so is better than pretending otherwise.
|
||||||
|
|
||||||
|
## One behaviour change worth reading before you upgrade
|
||||||
|
|
||||||
|
**`.` and `..` in a request path now resolve instead of returning 404.** `GET /public/../admin` reaches a route
|
||||||
|
declared as `/admin`, and `%2e` counts as a dot.
|
||||||
|
|
||||||
|
This changes Node only, and it exists to end a difference rather than to be lenient. Deno, Bun and Workers resolve
|
||||||
|
dot segments inside the `Request` constructor, before the framework sees anything — so the same bytes on the wire
|
||||||
|
were already reaching different routes depending on where you deployed. Rejecting instead was not implementable on
|
||||||
|
three of the four runtimes, so Node converged on resolving.
|
||||||
|
|
||||||
|
If a proxy or WAF in front of your application matches on the literal path, it now sees something different from
|
||||||
|
what the application routes. That is worth ten minutes of your attention before you deploy this.
|
||||||
|
|
||||||
|
## Smaller things you may have been waiting for
|
||||||
|
|
||||||
|
- **`createApp({ shutdownTimeoutMs })`** sets the shutdown deadline app-wide, for when `close()` is reached from a
|
||||||
|
signal handler you do not own.
|
||||||
|
- **`limits.maxConnections`** caps concurrent sockets on Node, which was previously unbounded. Non-positive values
|
||||||
|
leave it unlimited.
|
||||||
|
- **A bounded `close()` on the Deno and Bun adapters.** One difference the deadline cannot hide: Node and Bun force
|
||||||
|
the remainder shut, Deno cannot — there the deadline bounds how long `close()` waits, not when connections die.
|
||||||
|
- **The documentation moved to its own repository**, so a docs fix no longer waits on a framework release.
|
||||||
|
|
||||||
|
## Thank you
|
||||||
|
|
||||||
|
Two people shipped code in this release.
|
||||||
|
|
||||||
|
**[@YxnnXriel](https://github.com/YxnnXriel)** contributed the timeout on `app.close()`. Every shutdown deadline
|
||||||
|
above is built on it — the app-wide option, the bounded adapters, the teardown budget. Before it, one stuck handler
|
||||||
|
could hold a deploy open indefinitely.
|
||||||
|
|
||||||
|
**[@hgshreyas](https://github.com/hgshreyas)** contributed the concurrent connection limit. Node's socket count was
|
||||||
|
unbounded, which meant the framework had no answer at all to load it could not serve.
|
||||||
|
|
||||||
|
There is more on this in a longer post, because "thanks to our contributors" is worth nothing next to a sentence
|
||||||
|
someone can point at.
|
||||||
|
|
||||||
|
## Still beta
|
||||||
|
|
||||||
|
The API can still change before stable, mesh is still alpha, and the plugin ecosystem is still one person. The
|
||||||
|
freeze belongs to the release candidate — and freezing the API before observability landed would have frozen a
|
||||||
|
framework still missing its contract.
|
||||||
@@ -0,0 +1,119 @@
|
|||||||
|
---
|
||||||
|
title: "Trust is a feature, and I had shipped it as a TODO"
|
||||||
|
description: "What it took to make green-tea operable: an observability contract, shutdown that actually lets go, a routing difference between runtimes I did not know I had — and two people who contributed to a project with no stars."
|
||||||
|
pubDate: 2026-08-19
|
||||||
|
author: "Diego Reséndez"
|
||||||
|
tags: ["green-tea", "story", "observability", "contributors"]
|
||||||
|
draft: true
|
||||||
|
---
|
||||||
|
|
||||||
|
There is a difference between a framework you can demo and a framework you can run, and for most of this year
|
||||||
|
green-tea was firmly the first one.
|
||||||
|
|
||||||
|
The demo was good. Declare what a route needs, get a validated execution graph, run only the slice that route
|
||||||
|
requires. That part works and I still think it is the right idea. But when someone asked me the question every
|
||||||
|
serious evaluation asks in week one — *what is it doing in production?* — the honest answer was: I don't know, and
|
||||||
|
neither will you.
|
||||||
|
|
||||||
|
This release is about that gap and the two others hiding behind it.
|
||||||
|
|
||||||
|
## "No observability layer" was a sentence in my README for months
|
||||||
|
|
||||||
|
I want to be precise about how bad that was, because I was oddly proud of having written it down.
|
||||||
|
|
||||||
|
Declaring a gap is not the same as not having one. Every request that went through green-tea was anonymous. There
|
||||||
|
was no id to correlate a slow response with the step that caused it, no per-step timing, and — worst of the three —
|
||||||
|
the framework wrote to `console` in a handful of places, which means an application had no way to redirect its own
|
||||||
|
framework's output. You could ship it, but you could not operate it.
|
||||||
|
|
||||||
|
What shipped is a correlated event stream: an id per request, adopted from an incoming `x-request-id` when a gateway
|
||||||
|
already made one, carried on every event, alongside the matched route *pattern* rather than the concrete URL. That
|
||||||
|
last detail matters more than it looks — pattern cardinality is bounded, URL cardinality is not, and a metrics
|
||||||
|
backend fed the second one falls over.
|
||||||
|
|
||||||
|
The `console` calls are gone, and what replaced discipline is a lint rule over `src/**`. I do not trust myself to
|
||||||
|
remember, and neither should you.
|
||||||
|
|
||||||
|
What I did not build: a metrics registry, an OpenTelemetry exporter. Both were in the original issue and both would
|
||||||
|
have been the second runtime dependency this project has. A `traceparent` header is carried through untouched so an
|
||||||
|
exporter package can do that job. The framework ships the contract; the integration is somebody's package,
|
||||||
|
possibly mine, later.
|
||||||
|
|
||||||
|
I measured the cost instead of guessing at it — about 7% of the framework's own per-request work, roughly 2% once a
|
||||||
|
real socket is in the path. I mention the number because the first three times I measured it I got three different
|
||||||
|
wrong answers, one with the sign inverted. That is a story for another post.
|
||||||
|
|
||||||
|
## Shutdown: the framework was holding things it never let go of
|
||||||
|
|
||||||
|
The second gap was quieter. Green-tea would boot your providers, hand you a database pool, and then, at shutdown,
|
||||||
|
do nothing about it. `app.close()` drained requests and closed streams — it never told your code that the process
|
||||||
|
was going away. So every application built on it re-implemented the same `process.on('SIGTERM')` block, and every
|
||||||
|
one of them got the ordering slightly wrong, because the order you need is the reverse of the order things booted
|
||||||
|
in and nothing was telling you what that order was.
|
||||||
|
|
||||||
|
The framework already knew it. It computes a topological order to run your graph. Using it for teardown was not a
|
||||||
|
feature so much as an admission that the information was already sitting there.
|
||||||
|
|
||||||
|
Now a provider closes its pool in `dispose()`, a plugin registers `onShutdown`, an application passes `hooks`, and
|
||||||
|
all three land in one registry that awaits them in reverse boot order inside the existing deadline. A failure gets
|
||||||
|
logged, and the rest still run.
|
||||||
|
|
||||||
|
The part I want to flag is the one that is *not* symmetric: on the edge, none of this exists. Workerd has no
|
||||||
|
shutdown to hook into. I could have quietly no-opped it and let the docs imply parity. It says so instead.
|
||||||
|
|
||||||
|
## The bug I found by looking, and the bug CI found by not trusting me
|
||||||
|
|
||||||
|
While profiling the router I noticed `GET /public/../admin` returned 404 on Node. On Deno, Bun and Workers, the same
|
||||||
|
request reached `/admin`. The fetch-based runtimes resolve dot segments inside the `Request` constructor, before my
|
||||||
|
code ever sees the path.
|
||||||
|
|
||||||
|
So the same bytes on the wire were routing differently depending on where you deployed. A framework whose entire
|
||||||
|
pitch is *the same application model everywhere* had a silent routing divergence, and my own cross-runtime parity
|
||||||
|
tests could not catch it, because they go through `fetch()` — which normalizes the path before it hits the wire. The
|
||||||
|
new tests write the request line to a socket by hand.
|
||||||
|
|
||||||
|
The second one is more embarrassing and more useful. CI failed the observability work on Node 18 with
|
||||||
|
`ReferenceError: crypto is not defined`. The global `crypto` landed in Node 19. My `engines` field promises Node 18.
|
||||||
|
Every machine I own runs Node 20 or newer, and the other three runtimes have the global — so I had shipped code that
|
||||||
|
made the framework unusable on its own declared floor, and *nothing I could run locally would ever have told me*.
|
||||||
|
|
||||||
|
That job exists because I pinned it to the version I promise rather than the version I use. It is the single most
|
||||||
|
valuable thing in my CI configuration.
|
||||||
|
|
||||||
|
## The part I actually want to write
|
||||||
|
|
||||||
|
Two people contributed code to this release. I want to be specific about why that matters, and it is not politeness.
|
||||||
|
|
||||||
|
This project had no stars, no discussion threads, and no visibility. Contributing to a project in that state buys
|
||||||
|
you nothing — no reputation, no line on a résumé anybody has heard of, no guarantee the maintainer will even reply.
|
||||||
|
You are betting your evening on a stranger's repository on the strength of the idea alone. I have been on the other
|
||||||
|
side of that decision and I usually decided not to.
|
||||||
|
|
||||||
|
**[@YxnnXriel](https://github.com/YxnnXriel)** added a timeout to `app.close()`. On the surface: one option. In
|
||||||
|
practice, every shutdown guarantee in this release is standing on it. The app-wide `shutdownTimeoutMs`, the bounded
|
||||||
|
`close()` on Deno and Bun, the teardown budget that stops a slow `dispose()` from holding a deploy hostage — all of
|
||||||
|
it is built on the deadline that pull request introduced. I did not plan that. It just turned out to be the piece
|
||||||
|
everything else needed.
|
||||||
|
|
||||||
|
**[@hgshreyas](https://github.com/hgshreyas)** capped concurrent connections on Node, which had been unbounded —
|
||||||
|
the framework had no answer whatsoever to load it could not serve. Then followed it with the fix that makes a
|
||||||
|
non-positive value mean *unlimited* rather than *zero*, which is what anyone typing `0` actually intends. The review
|
||||||
|
on that one taught me something about my own architecture: the counting cannot live in the shared `app.fetch` path,
|
||||||
|
because `app.fetch` is not on Node's `listen()` route. I did not know that cleanly until someone else's patch forced
|
||||||
|
me to say it out loud.
|
||||||
|
|
||||||
|
Both of them are still working on things. One of those pull requests is currently blocked on *me* — it needs a piece
|
||||||
|
of plumbing that does not exist yet, and telling a contributor "your change is right, the missing part is mine" is a
|
||||||
|
better use of a review than asking them to work around it.
|
||||||
|
|
||||||
|
If you are looking for somewhere to start: unassigned issues are genuinely free, the contributing guide covers the
|
||||||
|
branch model and the sign-off, and a maintainer will write the documentation change if you would rather not. Being
|
||||||
|
early costs something. I would rather say thank you in a way that names what you built than in a badge.
|
||||||
|
|
||||||
|
## Where this leaves the beta
|
||||||
|
|
||||||
|
The graph is settled. The plugin API and `createApp`'s options still move. Mesh is still alpha. The API freeze
|
||||||
|
belongs to the release candidate, and freezing it before this release would have frozen a framework that still could
|
||||||
|
not tell you what it was doing.
|
||||||
|
|
||||||
|
That's the tea. 🍵
|
||||||
@@ -21,7 +21,7 @@ interface Props {
|
|||||||
|
|
||||||
const {
|
const {
|
||||||
title = 'Green Tea — A zen, type-safe graph-pipeline HTTP framework',
|
title = 'Green Tea — A zen, type-safe graph-pipeline HTTP framework',
|
||||||
description = 'Green Tea is a graph-pipeline HTTP framework: declare what you need, not the order to build it. Runtime-agnostic, type-safe, calm by design.',
|
description = 'Green Tea is a dependency-driven TypeScript backend framework: declare what your code needs and it derives, validates and executes the graph. Runtime-agnostic, type-safe, calm by design.',
|
||||||
image = '/og.png',
|
image = '/og.png',
|
||||||
ogType = 'website',
|
ogType = 'website',
|
||||||
robots = 'index, follow',
|
robots = 'index, follow',
|
||||||
@@ -89,6 +89,12 @@ const serializedStructuredData = structuredData
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<meta name="generator" content={Astro.generator} />
|
<meta name="generator" content={Astro.generator} />
|
||||||
|
|
||||||
|
{/* GoatCounter — no cookies, no personal data, no consent banner needed. */}
|
||||||
|
<script
|
||||||
|
data-goatcounter="https://greentea.goatcounter.com/count"
|
||||||
|
async
|
||||||
|
src="//gc.zgo.at/count.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<Header />
|
<Header />
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
---
|
---
|
||||||
import Base from '../layouts/Base.astro';
|
import Base from '../layouts/Base.astro';
|
||||||
import Hero from '../components/sections/Hero.astro';
|
import Hero from '../components/sections/Hero.astro';
|
||||||
|
import WhoDoesTheWork from '../components/sections/WhoDoesTheWork.astro';
|
||||||
import GraphNotChain from '../components/sections/GraphNotChain.astro';
|
import GraphNotChain from '../components/sections/GraphNotChain.astro';
|
||||||
|
import FollowsDemand from '../components/sections/FollowsDemand.astro';
|
||||||
import HowItCompares from '../components/sections/HowItCompares.astro';
|
import HowItCompares from '../components/sections/HowItCompares.astro';
|
||||||
import RunsEverywhere from '../components/sections/RunsEverywhere.astro';
|
import RunsEverywhere from '../components/sections/RunsEverywhere.astro';
|
||||||
import RealTime from '../components/sections/RealTime.astro';
|
import RealTime from '../components/sections/RealTime.astro';
|
||||||
@@ -10,9 +12,9 @@ import SeeIt from '../components/sections/SeeIt.astro';
|
|||||||
import Faq from '../components/sections/Faq.astro';
|
import Faq from '../components/sections/Faq.astro';
|
||||||
import HonestBeta from '../components/sections/HonestBeta.astro';
|
import HonestBeta from '../components/sections/HonestBeta.astro';
|
||||||
|
|
||||||
const title = 'Green Tea — Type-safe graph-pipeline framework for Node, Deno & Bun';
|
const title = 'Green Tea — Dependency-driven TypeScript backend framework';
|
||||||
const description =
|
const description =
|
||||||
'Your API is a graph, not a middleware chain. Declare what each step needs and Green Tea computes the order — one runtime dependency, type-safe, runtime-agnostic, calm by design.';
|
'Build TypeScript backends with less infrastructure in your head. Declare what your code needs and Green Tea derives, validates and executes the graph across Node, Deno, Bun and the edge.';
|
||||||
const canonicalURL = new URL('/', Astro.site).toString();
|
const canonicalURL = new URL('/', Astro.site).toString();
|
||||||
const repositoryURL = 'https://github.com/Expressive-Tea/green-tea';
|
const repositoryURL = 'https://github.com/Expressive-Tea/green-tea';
|
||||||
const structuredData = {
|
const structuredData = {
|
||||||
@@ -47,12 +49,14 @@ const structuredData = {
|
|||||||
|
|
||||||
<Base title={title} description={description} structuredData={structuredData}>
|
<Base title={title} description={description} structuredData={structuredData}>
|
||||||
<Hero />
|
<Hero />
|
||||||
|
<WhoDoesTheWork />
|
||||||
<GraphNotChain />
|
<GraphNotChain />
|
||||||
<HowItCompares />
|
<FollowsDemand />
|
||||||
<RunsEverywhere />
|
<SeeIt />
|
||||||
<RealTime />
|
<RealTime />
|
||||||
<Batteries />
|
<Batteries />
|
||||||
<SeeIt />
|
<RunsEverywhere />
|
||||||
|
<HowItCompares />
|
||||||
<Faq />
|
<Faq />
|
||||||
<HonestBeta />
|
<HonestBeta />
|
||||||
</Base>
|
</Base>
|
||||||
Reference in new issue
Block a user