Skip to content

Commit d0f56ea

Browse files
erdemgokselerdemgoksel
authored andcommitted
chore: bump version to 0.2.1
1 parent 6ae1d99 commit d0f56ea

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
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

535
Release date: 2026-03-23

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "phantom-frame"
3-
version = "0.1.19"
3+
version = "0.2.1"
44
edition = "2021"
55
authors = ["Erdem Göksel <erdem.goksel.dev@gmail.com>"]
66
description = "A high-performance prerendering proxy engine with caching support"

0 commit comments

Comments
 (0)