Promote develop to main for 26.11.0-rc.1 #23

Merged
chrnx merged 14 commits from develop into main 2026-11-17 23:40:39 +00:00
7 changed files with 10 additions and 23 deletions
Showing only changes of commit 8e45c1170f - Show all commits

No files matched your search

+3 -3
View File
@@ -65,13 +65,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- name: Compare the scaffold pin against the beta dist-tag - name: Compare the scaffold pin against the latest dist-tag
run: | run: |
pinned=$(grep -oP 'CORE_VERSION: &str = "\K[^"]+' src/template.rs) pinned=$(grep -oP 'CORE_VERSION: &str = "\K[^"]+' src/template.rs)
latest=$(npm view @green-tea/core dist-tags.beta) latest=$(npm view @green-tea/core dist-tags.latest)
echo "pinned=$pinned latest=$latest" echo "pinned=$pinned latest=$latest"
if [ "$pinned" != "$latest" ]; then if [ "$pinned" != "$latest" ]; then
echo "::error::matcha scaffolds @green-tea/core@$pinned but the beta tag is $latest." echo "::error::matcha scaffolds @green-tea/core@$pinned but the latest tag is $latest."
echo "Bump CORE_VERSION in src/template.rs and let the starter job prove it still boots." echo "Bump CORE_VERSION in src/template.rs and let the starter job prove it still boots."
exit 1 exit 1
fi fi
+1 -1
View File
@@ -126,7 +126,7 @@ scripts/starter-smoke.sh <the runtime you touched>
``` ```
CI runs the smoke for all four runtimes on a matrix, plus a weekly `core-freshness` job CI runs the smoke for all four runtimes on a matrix, plus a weekly `core-freshness` job
that fails when `CORE_VERSION` in `src/template.rs` falls behind core's `beta` dist-tag. that fails when `CORE_VERSION` in `src/template.rs` falls behind core's `latest` dist-tag.
**Non-trivial logic leaves a check behind.** Not a suite — the smallest thing that fails if **Non-trivial logic leaves a check behind.** Not a suite — the smallest thing that fails if
the logic breaks. A generator gets a test that the generated code carries what it must; a the logic breaks. A generator gets a test that the generated code carries what it must; a
+2 -6
View File
@@ -70,7 +70,7 @@ prerelease-only, and npm's semver excludes a prerelease from any range whose
comparators carry a different `major.minor.patch` — so `^26.7.0-beta.0` never comparators carry a different `major.minor.patch` — so `^26.7.0-beta.0` never
resolves past `26.7.0-beta.0` however many betas ship after it. CI scaffolds, resolves past `26.7.0-beta.0` however many betas ship after it. CI scaffolds,
installs, boots and introspects a real starter on every runtime, and a weekly installs, boots and introspects a real starter on every runtime, and a weekly
job fails when the pin falls behind the `beta` dist-tag. job fails when the pin falls behind the `latest` dist-tag.
### Introspection ### Introspection
@@ -194,11 +194,7 @@ which boots real workerd locally.
Two differences the edge cannot hide. `@Html('file')`, `static` and multipart Two differences the edge cannot hide. `@Html('file')`, `static` and multipart
uploads need a filesystem workerd does not have, and shutdown teardown never uploads need a filesystem workerd does not have, and shutdown teardown never
runs — an isolate is discarded, not closed. And core is installed from **JSR** runs — an isolate is discarded, not closed.
here rather than npm: the npm ESM build carries a `createRequire(import.meta.url)`
banner that throws at load on workerd. The scaffolded `.npmrc` says so and links
[the issue](https://github.com/Expressive-Tea/green-tea/issues/93); both it and
the alias can go once that is fixed.
## Development ## Development
+2 -2
View File
@@ -13,8 +13,8 @@ use crate::runtime::Runtime;
/// pin to the oldest matching prerelease that nothing can move off. When core /// pin to the oldest matching prerelease that nothing can move off. When core
/// 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 `beta` 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.9.0-beta.2"; pub const CORE_VERSION: &str = "26.11.0-rc.1";
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");
-9
View File
@@ -1,9 +0,0 @@
# core is installed from JSR here, and from npm on every other runtime.
#
# Not a preference: the npm ESM build carries tsup's
# `createRequire(import.meta.url)` banner at module scope, and `import.meta.url`
# is undefined on workerd — so `@green-tea/core/edge` throws at load, before any
# of its own code runs. JSR publishes transpiled source with no bundler and no
# banner, and boots clean. See Green-Tea/core#93; once that is fixed this file
# and the `npm:@jsr/...` alias in package.json can both go.
@jsr:registry=https://npm.jsr.io
+1 -1
View File
@@ -4,6 +4,6 @@
"private": true, "private": true,
"engines": { "node": ">=22" }, "engines": { "node": ">=22" },
"scripts": { "dev": "wrangler dev", "deploy": "wrangler deploy" }, "scripts": { "dev": "wrangler dev", "deploy": "wrangler deploy" },
"dependencies": { "@green-tea/core": "npm:@jsr/green-tea__core@{{core_version}}" }, "dependencies": { "@green-tea/core": "{{core_version}}" },
"devDependencies": { "tsx": "^4", "typescript": "^5", "wrangler": "^4" } "devDependencies": { "tsx": "^4", "typescript": "^5", "wrangler": "^4" }
} }
+1 -1
View File
@@ -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.9.0-beta.2"), "{deno}"); assert!(deno.contains("npm:@green-tea/core@26.11.0-rc.1"), "{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}");