Compare commits
12
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
def572a876 | ||
|
|
2acd4561ff | ||
|
|
af2a853855 | ||
|
|
958d69dfd9 | ||
|
|
e58d230596 | ||
|
|
8573cdfb4b | ||
|
|
bcd5f79990 | ||
|
|
56b5d7581f | ||
|
|
0865d9a479 | ||
|
|
ecbd441eb4 | ||
|
|
53d54cf250 | ||
|
|
64ec413c25 |
No files matched your search
@@ -81,7 +81,8 @@ jobs:
|
|||||||
# checks both halves that matter: a good archive installs, and a bad checksum
|
# checks both halves that matter: a good archive installs, and a bad checksum
|
||||||
# aborts without leaving a binary behind.
|
# aborts without leaving a binary behind.
|
||||||
installer:
|
installer:
|
||||||
runs-on: ${{ matrix.os }}
|
# macos-14 is retired on GitHub but is the self-hosted runner's label on Gitea; see release.yml.
|
||||||
|
runs-on: ${{ matrix.os == 'macos-14' && github.server_url == 'https://github.com' && 'macos-15' || matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|||||||
@@ -48,7 +48,9 @@ jobs:
|
|||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
- target: aarch64-unknown-linux-musl
|
- target: aarch64-unknown-linux-musl
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
runs-on: ${{ matrix.os }}
|
# GitHub retired the macos-14 image (jobs are cancelled with "configuration not supported");
|
||||||
|
# on Gitea, macos-14 is the label of the self-hosted macOS runner, so only GitHub moves.
|
||||||
|
runs-on: ${{ matrix.os == 'macos-14' && github.server_url == 'https://github.com' && 'macos-15' || matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
|
|||||||
+13
-1
@@ -11,6 +11,17 @@ is pinned to is `CORE_VERSION` in `src/template.rs`, and each entry below says w
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [26.11.0-rc.2] - 2026-11-23
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- **New projects scaffold `@green-tea/core` 26.11.0-rc.2** (`CORE_VERSION`). That core release fixes
|
||||||
|
nine security advisories reported against 26.11.0-rc.1. Projects already scaffolded should run
|
||||||
|
`npm install @green-tea/core@26.11.0-rc.2` or the equivalent for their runtime.
|
||||||
|
- The scaffolded `AGENTS.md` lists every generator: `matcha add cookie`, `matcha create transformer`
|
||||||
|
and `matcha create plugin` were missing. It also points agents at the official plugins' READMEs.
|
||||||
|
- The README documents installing with Homebrew: `brew install expressive-tea/tap/matcha`.
|
||||||
|
|
||||||
## [26.11.0-rc.1] - 2026-11-17
|
## [26.11.0-rc.1] - 2026-11-17
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
@@ -264,7 +275,8 @@ First tagged release. A single native binary, no JS runtime needed to install it
|
|||||||
- **A `curl | sh` installer** with sha256 verification, and cross-platform binaries attached
|
- **A `curl | sh` installer** with sha256 verification, and cross-platform binaries attached
|
||||||
to each release.
|
to each release.
|
||||||
|
|
||||||
[Unreleased]: https://github.com/Expressive-Tea/matcha/compare/v26.11.0-rc.1...HEAD
|
[Unreleased]: https://github.com/Expressive-Tea/matcha/compare/v26.11.0-rc.2...HEAD
|
||||||
|
[26.11.0-rc.2]: https://github.com/Expressive-Tea/matcha/compare/v26.11.0-rc.1...v26.11.0-rc.2
|
||||||
[26.11.0-rc.1]: https://github.com/Expressive-Tea/matcha/compare/v26.9.0-beta.1...v26.11.0-rc.1
|
[26.11.0-rc.1]: https://github.com/Expressive-Tea/matcha/compare/v26.9.0-beta.1...v26.11.0-rc.1
|
||||||
[26.9.0-beta.1]: https://github.com/Expressive-Tea/matcha/compare/v26.9.0-beta.0...v26.9.0-beta.1
|
[26.9.0-beta.1]: https://github.com/Expressive-Tea/matcha/compare/v26.9.0-beta.0...v26.9.0-beta.1
|
||||||
[26.9.0-beta.0]: https://github.com/Expressive-Tea/matcha/compare/v26.8.0-beta.0...v26.9.0-beta.0
|
[26.9.0-beta.0]: https://github.com/Expressive-Tea/matcha/compare/v26.8.0-beta.0...v26.9.0-beta.0
|
||||||
|
|||||||
Generated
+1
-1
@@ -260,7 +260,7 @@ checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "matcha-cli"
|
name = "matcha-cli"
|
||||||
version = "26.11.0-rc.1"
|
version = "26.11.0-rc.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"assert_cmd",
|
"assert_cmd",
|
||||||
"clap",
|
"clap",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "matcha-cli"
|
name = "matcha-cli"
|
||||||
version = "26.11.0-rc.1"
|
version = "26.11.0-rc.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "The green-tea CLI: scaffold a project, generate controllers, steps and providers already wired into their module, and run with your runtime detected. One native binary, no JS runtime needed to install it."
|
description = "The green-tea CLI: scaffold a project, generate controllers, steps and providers already wired into their module, and run with your runtime detected. One native binary, no JS runtime needed to install it."
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|||||||
@@ -11,6 +11,12 @@ cargo install matcha-cli
|
|||||||
Builds from [crates.io](https://crates.io/crates/matcha-cli) and installs the `matcha`
|
Builds from [crates.io](https://crates.io/crates/matcha-cli) and installs the `matcha`
|
||||||
binary. Needs a Rust toolchain; takes a few seconds.
|
binary. Needs a Rust toolchain; takes a few seconds.
|
||||||
|
|
||||||
|
**Homebrew** (macOS, Linux):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
brew install expressive-tea/tap/matcha
|
||||||
|
```
|
||||||
|
|
||||||
**Prebuilt binary** (no Rust), from the latest GitHub release:
|
**Prebuilt binary** (no Rust), from the latest GitHub release:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
# project the current `@green-tea/core` will run — which is exactly how the
|
# project the current `@green-tea/core` will run — which is exactly how the
|
||||||
# templates sat two core releases behind for two months without a red build.
|
# templates sat two core releases behind for two months without a red build.
|
||||||
#
|
#
|
||||||
# Usage: scripts/starter-smoke.sh <node|deno|bun>
|
# Usage: scripts/starter-smoke.sh <node|deno|bun|edge>
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
RUNTIME="${1:?usage: starter-smoke.sh <node|deno|bun|edge>}"
|
RUNTIME="${1:?usage: starter-smoke.sh <node|deno|bun|edge>}"
|
||||||
@@ -30,8 +30,17 @@ PORT="${PORT:-$((20000 + RANDOM % 20000))}"
|
|||||||
|
|
||||||
WORK="$(mktemp -d)"
|
WORK="$(mktemp -d)"
|
||||||
SERVER=""
|
SERVER=""
|
||||||
|
# `matcha run` is started in its own process group (set -m below) so the whole tree dies
|
||||||
|
# together. `pkill -P` reached only direct children: on edge, wrangler's workerd is a
|
||||||
|
# grandchild, kept writing demo/.wrangler, and `rm -rf` failed with "Directory not empty".
|
||||||
|
stop_server() {
|
||||||
|
[ -n "$SERVER" ] || return 0
|
||||||
|
kill -- -"$SERVER" 2>/dev/null || true
|
||||||
|
wait "$SERVER" 2>/dev/null || true
|
||||||
|
SERVER=""
|
||||||
|
}
|
||||||
cleanup() {
|
cleanup() {
|
||||||
[ -n "$SERVER" ] && { pkill -P "$SERVER" 2>/dev/null || true; kill "$SERVER" 2>/dev/null || true; }
|
stop_server
|
||||||
rm -rf "$WORK"
|
rm -rf "$WORK"
|
||||||
}
|
}
|
||||||
trap cleanup EXIT
|
trap cleanup EXIT
|
||||||
@@ -55,8 +64,10 @@ echo "▸ ${CHECK[*]}"
|
|||||||
"${CHECK[@]}"
|
"${CHECK[@]}"
|
||||||
|
|
||||||
echo "▸ matcha run (boot on :$PORT)"
|
echo "▸ matcha run (boot on :$PORT)"
|
||||||
|
set -m
|
||||||
"$MATCHA" run >"$WORK/server.log" 2>&1 &
|
"$MATCHA" run >"$WORK/server.log" 2>&1 &
|
||||||
SERVER=$!
|
SERVER=$!
|
||||||
|
set +m
|
||||||
for _ in $(seq 1 60); do
|
for _ in $(seq 1 60); do
|
||||||
curl -fsS -o /dev/null "http://localhost:$PORT/" 2>/dev/null && break
|
curl -fsS -o /dev/null "http://localhost:$PORT/" 2>/dev/null && break
|
||||||
sleep 1
|
sleep 1
|
||||||
@@ -78,7 +89,7 @@ case "$zen" in
|
|||||||
esac
|
esac
|
||||||
echo "✓ serves / and streams /zen"
|
echo "✓ serves / and streams /zen"
|
||||||
|
|
||||||
pkill -P "$SERVER" 2>/dev/null || true; kill "$SERVER" 2>/dev/null || true; SERVER=""
|
stop_server
|
||||||
|
|
||||||
# Introspection runs against the same project, so it also proves the entry file
|
# Introspection runs against the same project, so it also proves the entry file
|
||||||
# the templates scaffold still exports the `app` that graph/explain import.
|
# the templates scaffold still exports the `app` that graph/explain import.
|
||||||
|
|||||||
+1
-1
@@ -14,7 +14,7 @@ use crate::runtime::Runtime;
|
|||||||
/// reaches a stable major this becomes a range (`^27`) and the exactness stops
|
/// reaches a stable major this becomes a range (`^27`) and the exactness stops
|
||||||
/// mattering; until then the `core-freshness` CI job fails when this falls
|
/// mattering; until then the `core-freshness` CI job fails when this falls
|
||||||
/// behind the `latest` dist-tag, which is what keeps it current.
|
/// behind the `latest` dist-tag, which is what keeps it current.
|
||||||
pub const CORE_VERSION: &str = "26.11.0-rc.1";
|
pub const CORE_VERSION: &str = "26.11.0-rc.2";
|
||||||
|
|
||||||
pub static SHARED: Dir = include_dir!("$CARGO_MANIFEST_DIR/template/shared");
|
pub static SHARED: Dir = include_dir!("$CARGO_MANIFEST_DIR/template/shared");
|
||||||
pub static RUNTIME_DENO: Dir = include_dir!("$CARGO_MANIFEST_DIR/template/runtimes/deno");
|
pub static RUNTIME_DENO: Dir = include_dir!("$CARGO_MANIFEST_DIR/template/runtimes/deno");
|
||||||
|
|||||||
@@ -38,8 +38,9 @@ matcha graph --format json # the whole graph
|
|||||||
- `src/app.ts` builds and exports `app` (`createApp({ modules: [...] })`). Introspection and tests import it.
|
- `src/app.ts` builds and exports `app` (`createApp({ modules: [...] })`). Introspection and tests import it.
|
||||||
- `src/main.ts` serves `app`. It is the only file that differs per runtime.
|
- `src/main.ts` serves `app`. It is the only file that differs per runtime.
|
||||||
- `src/app.module.ts` lists the providers, steps and controllers with `@Module`.
|
- `src/app.module.ts` lists the providers, steps and controllers with `@Module`.
|
||||||
- `matcha create controller|step|provider|module <Name>` generates a piece and wires it into the module.
|
- `matcha create controller|step|provider|module|transformer <Name>` generates a piece and wires it into the module.
|
||||||
- `matcha add sse|ws|upload|stream|buffer` adds a capability to a controller.
|
- `matcha create plugin` scaffolds a plugin, in-app or (`--package`) as its own package.
|
||||||
|
- `matcha add sse|stream|buffer|ws|upload|cookie` adds a capability to a controller.
|
||||||
|
|
||||||
## Check your work
|
## Check your work
|
||||||
|
|
||||||
@@ -55,4 +56,7 @@ itself:
|
|||||||
- npm / Bun: `node_modules/@green-tea/core/llms.txt`
|
- npm / Bun: `node_modules/@green-tea/core/llms.txt`
|
||||||
- Deno (JSR): `https://jsr.io/@green-tea/core/{{core_version}}/llms.txt`
|
- Deno (JSR): `https://jsr.io/@green-tea/core/{{core_version}}/llms.txt`
|
||||||
|
|
||||||
|
Official plugins (`@green-tea/jwt`, `@green-tea/metrics`, `@green-tea/rate-limit`, ...) ship no llms.txt;
|
||||||
|
read the installed one's `node_modules/@green-tea/<name>/README.md`.
|
||||||
|
|
||||||
The complete docs as one file: https://green-tea.expressive-tea.io/docs/llms-full.txt
|
The complete docs as one file: https://green-tea.expressive-tea.io/docs/llms-full.txt
|
||||||
+1
-1
@@ -191,7 +191,7 @@ fn package_jsr_writes_the_tree_into_dir() {
|
|||||||
);
|
);
|
||||||
let deno = std::fs::read_to_string(pkg.join("deno.json")).unwrap();
|
let deno = std::fs::read_to_string(pkg.join("deno.json")).unwrap();
|
||||||
assert!(deno.contains("\"name\": \"@acme/plugin-algo\""), "{deno}");
|
assert!(deno.contains("\"name\": \"@acme/plugin-algo\""), "{deno}");
|
||||||
assert!(deno.contains("npm:@green-tea/core@26.11.0-rc.1"), "{deno}");
|
assert!(deno.contains("npm:@green-tea/core@26.11.0-rc.2"), "{deno}");
|
||||||
// Without it `deno test` needs a `deno install` first, and then fails to
|
// Without it `deno test` needs a `deno install` first, and then fails to
|
||||||
// type-check `node:assert` for want of @types/node.
|
// type-check `node:assert` for want of @types/node.
|
||||||
assert!(deno.contains("\"nodeModulesDir\": \"auto\""), "{deno}");
|
assert!(deno.contains("\"nodeModulesDir\": \"auto\""), "{deno}");
|
||||||
|
|||||||
Reference in new issue
Block a user