Feature/purge upgrade#137
Open
godronus wants to merge 13 commits into
Open
Conversation
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
Chore/starling monkey bump
…e-sdk-js into chore/StarlingMonkey-bump
* Add purge to Cache API * Bump StarlingMonkey@0.3.0 * Upgrade @bytecodealliance/wizer@11.0.3
Contributor
There was a problem hiding this comment.
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 newcache-purgeexample and live fixtures. - Toolchain bumps: Wizer
^10→^11.0.3, compiler image0.0.2→0.0.3, Rust1.80.0→1.88.0; SDK version2.3.0→2.4.0. - Expanded prod-invocation test app with
/fetch,/secret,/echoendpoints, secret provisioning in the workflow, and a refactored multi-checkinvoke-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
|
🎉 This PR is included in version 2.4.0-beta.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
qrdl
approved these changes
Jun 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.