chore(release): 26.9.0-beta.2 to staging
The plugins repository builds against Plugin { name, mount } and app.boot(),
which only develop has. Staging the version publishes it to Verdaccio under
stg and nowhere else; the npm and JSR cut stays a separate decision.
The bump also moves the exported VERSION, which was two releases behind and had
no business being. Its comment claimed it was "replaced at publish time" and
nothing ever did that — not tsup, not stage.yml, not release.yml, which only
reads the version out of package.json. VERSION is what a consumer quotes in a
bug report, so a stale one sends someone to the changelog of a release they are
not running.
Pinning it to package.json is what keeps this from being a fix with a shelf
life: the next bump that forgets it now fails the build. smoke.test.ts was
never going to catch it, because it asserts the CalVer shape and a stale
version matches that perfectly.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
5 files changed
+30
-6
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@green-tea/core",
|
||||
"version": "26.9.0-beta.1",
|
||||
"version": "26.9.0-beta.2",
|
||||
"license": "MIT",
|
||||
// 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
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@green-tea/core",
|
||||
"version": "26.8.0-beta.0",
|
||||
"version": "26.9.0-beta.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@green-tea/core",
|
||||
"version": "26.8.0-beta.0",
|
||||
"version": "26.9.0-beta.2",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"reflect-metadata": "0.2.2"
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"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.",
|
||||
"license": "MIT",
|
||||
"author": "green-tea contributors <projects@expressive-tea.io>",
|
||||
|
||||
+10
-2
@@ -5,8 +5,16 @@
|
||||
*/
|
||||
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
|
||||
export { createApp } from './app';
|
||||
|
||||
@@ -3,6 +3,8 @@ import { resolve } from 'node:path';
|
||||
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
import { VERSION } from '../src/index';
|
||||
|
||||
interface PackageMetadata {
|
||||
readonly repository?: {
|
||||
readonly type?: string;
|
||||
@@ -75,3 +77,17 @@ describe('JSR manifest agrees with package.json', () => {
|
||||
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);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user