Skip to content

Feature/purge upgrade#137

Open
godronus wants to merge 13 commits into
mainfrom
feature/purge-upgrade
Open

Feature/purge upgrade#137
godronus wants to merge 13 commits into
mainfrom
feature/purge-upgrade

Conversation

@godronus
Copy link
Copy Markdown
Collaborator

@godronus godronus commented Jun 1, 2026

  • Cache API - purge() and purgePrefix() added.
  • Updated StarlingMonkey@0.3.0
  • Updated @bytecodealliance/wizer@11.0.3
  • Created new compiler image in harbor clang-monkey-compiler:0.0.3 for Rust@1.88.0
  • Enhanced prod-invocation test-app for stronger regression testing coverage

godronus and others added 12 commits June 1, 2026 09:43
Added functionality for purge() and purgePrefix() to the Cache API
Updates the StarlingMonkey submodule from v0.2.0 to v0.3.0
(commit 9dda8ba — tag not yet pushed to remote).

Type change: adds `URLSearchParams.size` to globals.d.ts, which
was implemented in v0.3.0 (#296).

All other v0.2.1 and v0.3.0 changes (SPKI importKey support,
URLSearchParams bug fixes, WASI 0.2.10, weval) require no
type changes — existing commented-out stubs remain unchanged.
Bumped StarlingMonkey@0.3.0 - updated types in line with latest release - added more prod-invocation tests
* Bumped StarlingMonkey@0.3.0 - updated types in line with latest release
* Added more prod-invocation tests to validate sdk releases
* Add purge to Cache API
* Bump StarlingMonkey@0.3.0
* Upgrade @bytecodealliance/wizer@11.0.3
Copilot AI review requested due to automatic review settings June 1, 2026 16:24
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds bulk cache invalidation APIs (Cache.purge() and Cache.purgePrefix()) wired through every layer of the SDK: WIT interface, C bindings, C++ host API, JS builtin, and TypeScript declarations. Also bumps StarlingMonkey to 0.3.0 (compiler image 0.0.3, Rust 1.88.0) and Wizer to 11.0.3, and substantially expands the prod-invocation regression tests.

Changes:

  • New Cache.purge() / Cache.purgePrefix(prefix) API surface across WIT, host-api bindings, JS builtin, and TS types, with a new cache-purge example and live fixtures.
  • Toolchain bumps: Wizer ^10^11.0.3, compiler image 0.0.20.0.3, Rust 1.80.01.88.0; SDK version 2.3.02.4.0.
  • Expanded prod-invocation test app with /fetch, /secret, /echo endpoints, secret provisioning in the workflow, and a refactored multi-check invoke-test-app.js.

Reviewed changes

Copilot reviewed 25 out of 30 changed files in this pull request and generated no comments.

Show a summary per file
File Description
types/fastedge-cache.d.ts Adds purge / purgePrefix static method declarations on Cache.
types/globals.d.ts Adds URLSearchParams.size.
runtime/fastedge/host-api/wit/deps/fastedge/cache-sync.wit Declares new purge and purge-prefix WIT functions.
runtime/fastedge/host-api/include/fastedge_host_api.h Adds C++ host-API declarations for purge functions.
runtime/fastedge/host-api/fastedge_host_api.cpp Implements cache_purge / cache_purge_prefix host wrappers.
runtime/fastedge/host-api/bindings/bindings.h Adds u64-result struct and extern declarations for purge imports.
runtime/fastedge/host-api/bindings/bindings.c Generated trampolines + free function for purge bindings.
runtime/fastedge/builtins/cache.cpp Wires Cache.purge / Cache.purgePrefix into the JS builtin.
src/componentize/componentize.ts Comment-only refinement on the disabled --dir=../ flag.
package.json / pnpm-lock.yaml Wizer 11.0.3 upgrade and SDK version bump to 2.4.0.
Dockerfile, compiler/Dockerfile, compiler/README.md Bumps clang-monkey-compiler image to 0.0.3 and Rust to 1.88.0.
examples/cache-purge/* New example: source, README, package.json, and 3 paired test/live fixtures.
integration-tests/test-application/test-app.js Adds /fetch, /secret, /echo route handlers alongside the env check.
.github/workflows/prod-invocation.yaml Provisions a test secret and passes TEST_FETCH_URL/secrets to the deploy step.
.github/scripts/prod-invocation/invoke-test-app.js Rewrites validation as composable per-endpoint checks with throw-based flow.
.gitignore Ignores examples/**/.claude/.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

🎉 This PR is included in version 2.4.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants