Merge pull request 'chore(release): 26.9.0-beta.2 to staging' (#97) from release/26.9.0-beta.2 into develop
CI / dco (push) Has been skipped
CI / runtimes (bun) (push) Successful in 16s
CI / build (push) Successful in 30s
CI / runtimes (deno) (push) Successful in 19s
CI / runtimes (edge) (push) Successful in 13s
Promote → GitHub / push-github (push) Successful in 7s

This commit was merged in pull request #97.
This commit is contained in:
chrnx committed 2026-09-18 03:53:29 +00:00
commit cbeab73626
6 files changed
+37 -6

No files matched your search

+7
View File
@@ -1,6 +1,13 @@
# Local specs & plans — not committed # Local specs & plans — not committed
.specs/ .specs/
# Per-developer agent state: local settings and tool locks, one directory per assistant. Nothing
# here is shared configuration — `.serena/` even ships its own .gitignore. A repository-wide
# `.claude/settings.json` is a real convention and would need a `!` line here to be committable;
# none exists today, so this stays a blanket ignore rather than a rule for a file nobody wrote.
.claude/
.serena/
# Node # Node
node_modules/ node_modules/
dist/ dist/
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@green-tea/core", "name": "@green-tea/core",
"version": "26.9.0-beta.1", "version": "26.9.0-beta.2",
"license": "MIT", "license": "MIT",
// JSR serves TypeScript source, not the tsup build, so these point at `src/` where npm's // JSR serves TypeScript source, not the tsup build, so these point at `src/` where npm's
// `exports` point at `dist/`. Same four entry points on purpose: a docs example that imports // `exports` point at `dist/`. Same four entry points on purpose: a docs example that imports
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "@green-tea/core", "name": "@green-tea/core",
"version": "26.8.0-beta.0", "version": "26.9.0-beta.2",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@green-tea/core", "name": "@green-tea/core",
"version": "26.8.0-beta.0", "version": "26.9.0-beta.2",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"reflect-metadata": "0.2.2" "reflect-metadata": "0.2.2"
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@green-tea/core", "name": "@green-tea/core",
"version": "26.9.0-beta.1", "version": "26.9.0-beta.2",
"description": "A zen, opinionated, type-safe framework \u2014 your API is a graph, not a middleware chain.", "description": "A zen, opinionated, type-safe framework \u2014 your API is a graph, not a middleware chain.",
"license": "MIT", "license": "MIT",
"author": "green-tea contributors <projects@expressive-tea.io>", "author": "green-tea contributors <projects@expressive-tea.io>",
+10 -2
View File
@@ -5,8 +5,16 @@
*/ */
import 'reflect-metadata'; import 'reflect-metadata';
/** Package version, replaced at publish time. */ /**
export const VERSION = '26.8.0-beta.0'; * Package version. Kept in step with `package.json` and `deno.json` by hand, and pinned to them by
* `test/package-metadata.test.ts`.
*
* It used to say it was "replaced at publish time", which nothing ever did — not `tsup`, not
* `stage.yml`, not `release.yml`, which only ever *reads* the version out of `package.json`. So the
* constant drifted two releases behind while the comment explained why it could not, and the only
* test touching it checked the CalVer shape, which a stale version satisfies perfectly.
*/
export const VERSION = '26.9.0-beta.2';
// Application // Application
export { createApp } from './app'; export { createApp } from './app';
+16
View File
@@ -3,6 +3,8 @@ import { resolve } from 'node:path';
import { describe, expect, it } from 'vitest'; import { describe, expect, it } from 'vitest';
import { VERSION } from '../src/index';
interface PackageMetadata { interface PackageMetadata {
readonly repository?: { readonly repository?: {
readonly type?: string; readonly type?: string;
@@ -75,3 +77,17 @@ describe('JSR manifest agrees with package.json', () => {
expect(Object.keys(denoJson.exports ?? {})).toEqual(npmEntries); expect(Object.keys(denoJson.exports ?? {})).toEqual(npmEntries);
}); });
}); });
// The third place the version is written, and the one nothing was watching. `VERSION` is what a
// consumer reads at runtime — a bug report, a health endpoint, a support thread all quote it — so a
// stale one sends someone to the changelog of a release they are not running.
//
// It carried a comment promising it was "replaced at publish time", and no such step existed: not in
// `tsup.config.ts`, not in `stage.yml`, not in `release.yml`, which only reads the version out of
// `package.json`. Two releases of drift went unnoticed because `smoke.test.ts` asserts the CalVer
// *shape*, which any stale version still matches. Shape was never the question.
describe('the exported VERSION agrees with package.json', () => {
it('is the version this package publishes under', () => {
expect(VERSION).toBe(packageJson.version);
});
});