Commit Graph
6 Commits
Author SHA1 Message Date
chrnx 8342fd844c chore(release): 26.11.0-rc.2
CI / dco (pull_request) Successful in 21s
CI / build (pull_request) Successful in 14s
CI / runtimes (deno) (pull_request) Successful in 27s
CI / runtimes (edge) (pull_request) Successful in 8s
CI / runtimes (bun) (pull_request) Successful in 16m28s
Versions track core, so all three packages move from 26.9.0-beta.0 to 26.11.0-rc.2. That core
release fixes nine security advisories reported against rc.1. The range floor follows it:
deno.json imports ^26.11.0-rc.2, and the core devDependency (and so the tested core) is 26.11.0-rc.2.

Refs: Expressive-Tea/green-tea#73
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-11-23 12:25:04 -06:00
chrnx 3e55a1c081 chore: depend on a core range, ^26.11.0-rc.1
Each plugin's deno.json imported an exact npm:@green-tea/core@26.9.0-beta.2.
JSR consumers resolve that import, so an application on a newer core
got a second, older copy under the plugin. Plugins import core as types
only, so it never ran, but tsc could resolve a plugin's Plugin type
against it.

Import ^26.11.0-rc.1 instead: the floor is the core the tests run
against, now rc.1 (devDependency and lockfile bumped), and ^ stops at
the next year, the only core release that may break under core's
versioning policy. The workspace test now requires that range shape,
and the README no longer says no range can express compatibility.

Refs: Expressive-Tea/green-tea#73
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-11-20 00:39:23 -06:00
chrnx 686a4527cf docs(plugins): give each package a header, and stop leaning on a marketplace
CI / dco (pull_request) Successful in 7s
CI / build (pull_request) Successful in 12s
CI / runtimes (bun) (pull_request) Successful in 12s
CI / runtimes (deno) (pull_request) Successful in 11s
CI / runtimes (edge) (pull_request) Successful in 10s
Each README now opens the way core's does — logo, name, one line saying what
the package is for. The package README is the page JSR renders, so it is the
first thing anyone sees, and three of them opened with a bare `# @green-tea/x`.

The logo is an absolute URL rather than a relative path, deliberately. Core's
README points at `./assets/logo.png`, and core's `publish.include` does not ship
`assets/` — so that image 404s on core's JSR page today. Repeating the pattern
three more times would have repeated the bug three more times.

Also drops the claim that npmjs.org discovery does not matter "where the
marketplace is the channel anyway". There is no marketplace yet, and a plugin
should stand on its own rather than on a site that has not shipped. The cost is
now stated plainly instead of argued away.

Corrects "their built code never imports it": with JSR publishing the source,
the build is JSR's, not ours. What holds is that a type import leaves nothing
behind, so the published JavaScript never mentions core.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-23 11:24:09 -05:00
chrnx 16f8329794 docs(plugins): say how to install now that npm is not an option
CI / dco (pull_request) Successful in 5s
CI / build (pull_request) Successful in 15s
CI / runtimes (bun) (pull_request) Successful in 11s
CI / runtimes (edge) (pull_request) Successful in 9s
CI / runtimes (deno) (pull_request) Successful in 11s
The READMEs still described a dual publish, and none of them carried an install
command at all — so the instruction a reader would infer, `npm i
@green-tea/jwt`, is the one command that no longer works. Each package README is
also the page JSR renders, which makes it the first thing anyone sees.

Adds `npx jsr add` to all three, with the deno and bun forms, and says plainly
that there is no npmjs.org package rather than letting someone find out from a
404.

Also corrects a claim in the root README that this branch made false: "installing
one never pulls a second copy of core". Measured while deciding this change — a
plugin names an exact core in `deno.json`, and across a minor boundary npm nests
a second copy instead of deduplicating. The copy is inert, since a plugin's built
code never imports core, and that is worth saying precisely: what is guaranteed
is which core *runs*, not how many are on disk.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-23 10:26:10 -05:00
chrnx 772f4d11a9 docs: list every package, and show the graph doing the work
CI / dco (pull_request) Successful in 3s
CI / runtimes (bun) (pull_request) Successful in 10s
CI / build (pull_request) Successful in 18s
CI / runtimes (deno) (pull_request) Successful in 11s
CI / runtimes (edge) (pull_request) Successful in 10s
The root README still advertised one package, three releases in.

jwt and rate-limit both demonstrated themselves from inside a handler, which
reads as a middleware chain with extra steps. Signing does belong there — it is
the response to that one request — but verifying is a precondition shared by
every protected route, and its result is what those routes are actually asking
for. Shown as a `@Step` that provides `user`, so the handler asks for `user` and
never for `jwt`.

rate-limit gains the same treatment plus the constraint that makes it work:
the step must provide a token the handler names. `subgraphFor` builds each
route's closure backwards from the handler's `needs`, so a step providing
something nobody asks for is not in the closure and never runs — the limit
would silently not apply, which is the worst way for a rate limiter to fail.
The inline call is kept as the smaller option, with what it costs.

metrics is left alone: rendering a scrape really is a route's job.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-19 12:24:23 -05:00
chrnx 9745a2f9aa chore: start the official plugins repository
One package per plugin, typed against core without depending on it at runtime.
The convention lives in AGENTS.md because the design it comes from is not
published anywhere a contributor can read.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-17 22:55:16 -05:00