File tree Expand file tree Collapse file tree 2 files changed +31
-1
lines changed
Expand file tree Collapse file tree 2 files changed +31
-1
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## v0.2.1
4+
5+ Release date: 2026-03-26
6+
7+ ### Breaking Changes
8+
9+ - ` RefreshTrigger ` renamed to ` CacheHandle ` . Update all usages of ` phantom_frame::cache::RefreshTrigger ` to ` phantom_frame::cache::CacheHandle ` .
10+ - Methods on ` CacheHandle ` renamed:
11+ - ` trigger() ` → ` invalidate_all() `
12+ - ` trigger_by_key_match(pattern) ` → ` invalidate(pattern) `
13+ - ` create_proxy_with_trigger() ` renamed to ` create_proxy_with_handle() ` .
14+
15+ ### Added
16+
17+ - ** PreGenerate (SSG) mode** via ` ProxyMode::PreGenerate { paths, fallthrough } ` :
18+ - Specified paths are pre-fetched from the upstream server at startup and served exclusively from the cache.
19+ - ` fallthrough: false ` (default) — cache misses return 404 immediately without contacting the backend.
20+ - ` fallthrough: true ` — cache misses fall through to the upstream backend.
21+ - ` CacheHandle ` gains four async snapshot-management methods (only available in PreGenerate mode):
22+ - ` add_snapshot(path) ` — fetch and cache a new path, append it to the snapshot list.
23+ - ` refresh_snapshot(path) ` — re-fetch a single path from the backend and overwrite its cache entry.
24+ - ` remove_snapshot(path) ` — evict a path from the cache and remove it from the snapshot list.
25+ - ` refresh_all_snapshots() ` — re-fetch every tracked snapshot path.
26+ - ` ProxyMode ` enum exported from the crate root.
27+ - TOML config fields for PreGenerate mode:
28+ - ` proxy_mode = "pre_generate" ` (or ` "dynamic" ` , the default)
29+ - ` pre_generate_paths = ["/book/1", "/about"] `
30+ - ` pre_generate_fallthrough = false `
31+ - ` CreateProxyConfig::with_proxy_mode(mode) ` builder method.
32+
333## v0.1.19
434
535Release date: 2026-03-23
Original file line number Diff line number Diff line change 11[package ]
22name = " phantom-frame"
3- version = " 0.1.19 "
3+ version = " 0.2.1 "
44edition = " 2021"
55authors = [" Erdem Göksel <erdem.goksel.dev@gmail.com>" ]
66description = " A high-performance prerendering proxy engine with caching support"
You can’t perform that action at this time.
0 commit comments