Feat v0.9.1 server side subpath routing (#74)
All checks were successful
CI/CD / detect-changes (push) Successful in 4s
CI/CD / test-runners (push) Has been skipped
CI/CD / e2e-smoke (push) Has been skipped
CI/CD / test-frontend (push) Successful in 5s
CI/CD / test-go-pg (push) Successful in 2m55s
CI/CD / test-sqlite (push) Successful in 2m58s
CI/CD / build-and-deploy (push) Successful in 1m12s
All checks were successful
CI/CD / detect-changes (push) Successful in 4s
CI/CD / test-runners (push) Has been skipped
CI/CD / e2e-smoke (push) Has been skipped
CI/CD / test-frontend (push) Successful in 5s
CI/CD / test-go-pg (push) Successful in 2m55s
CI/CD / test-sqlite (push) Successful in 2m58s
CI/CD / build-and-deploy (push) Successful in 1m12s
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com> Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
This commit was merged in pull request #74.
This commit is contained in:
44
CHANGELOG.md
44
CHANGELOG.md
@@ -2,6 +2,50 @@
|
||||
|
||||
All notable changes to Armature are documented here.
|
||||
|
||||
## v0.9.1 — Server-Side Sub-Path Routing
|
||||
|
||||
Hardens multi-surface routing so full-page refreshes on sub-paths work
|
||||
correctly server-side, with early auth optimization and back-button
|
||||
resilience.
|
||||
|
||||
**Route consolidation**
|
||||
|
||||
- Root (`/s/:slug`) and catch-all (`/s/:slug/*path`) handlers now share
|
||||
a single `dispatch` function. The root handler injects `path="/"` and
|
||||
delegates, eliminating the separate code path.
|
||||
|
||||
**Early auth short-circuit**
|
||||
|
||||
- New `aggregateAccess()` function scans all surfaces to determine
|
||||
whether a package is all-public, all-authenticated, or mixed.
|
||||
- All-authenticated packages redirect to login before surface matching,
|
||||
skipping `matchSurface()` + `evaluateAccess()` overhead.
|
||||
- Mixed-access packages fall through to per-surface checks as before.
|
||||
|
||||
**SDK back-button fix**
|
||||
|
||||
- On boot, `history.replaceState()` seeds the initial history entry
|
||||
with `__SURFACE_PATH__` and `__SURFACE_PARAMS__`. This fixes
|
||||
back-button navigation from `sw.navigate()` to the initial
|
||||
server-rendered view.
|
||||
- SDK version bumped to `0.9.1`.
|
||||
|
||||
**Tests: 13 new**
|
||||
|
||||
- 5 `aggregateAccess` unit tests (all-public, all-auth, mixed,
|
||||
default-access, single-public).
|
||||
- 8 handler integration tests covering root refresh, sub-path static
|
||||
and param refresh, unauth redirect, public anonymous, mixed-access,
|
||||
non-matching sub-path, and early auth short-circuit.
|
||||
|
||||
**Modified files:**
|
||||
|
||||
- `server/pages/pages.go` — `aggregateAccess()`, route consolidation,
|
||||
early auth short-circuit in `RenderExtensionSurface`
|
||||
- `server/pages/pages_surface_match_test.go` — 5 new unit tests
|
||||
- `server/pages/pages_handler_test.go` — 8 new integration tests
|
||||
- `src/js/sw/sdk/index.js` — `history.replaceState()` seed, version bump
|
||||
|
||||
## v0.9.0 — Multi-Surface Packages
|
||||
|
||||
Packages can now declare multiple surfaces — each with its own path, access
|
||||
|
||||
Reference in New Issue
Block a user