Repository navigation
Releases
Releases · chasemccoy/amber
v0.8.10
- Follow-up to 0.8.9's SVG sprite support: server-rendered
<use>
references are now rewritten at build time — each recorded sprite inlined
once into a hidden<svg>— so the parser never requests the external file,
and the shim re-attaches a sprite when the app's re-render removes it from
<body>(React recovering from a hydration mismatch did, leaving the
references pointing at nothing).
Full changelog: v0.8.9...v0.8.10
v0.8.8
- Render auto-scroll drives the page with real wheel input instead of
window.scrollBy: smooth-scroll libraries (Lenis and kin) snap scripted
scrolls straight back, so on those pages the sweep never left the first
screens and nothing below the fold loaded. Reads the position back to know
when it has reached the bottom.
Full changelog: v0.8.7...v0.8.8
v0.8.7
- Keep-js renders now dwell while scrolling (a pause per viewport, a hold at
the bottom, and a longer idle wait) so IntersectionObserver-gated sections
fire and their lazy chunks and textures get recorded — anthropic.com's
WebGL prefooter was missing from the archive because the sweep passed it
in a few frames. - The planner recognises an article whose opening screen is a canvas hero
(title/contents revealed by the scene) as needing its runtime; new
article-with-canvas-heroeval fixture.
Full changelog: v0.8.6...v0.8.7
v0.8.6
currentScript.srcis the resolved absolute URL again (Next's
getAssetPrefixdoesnew URL(src)); 0.8.5 returned the root-relative
form there too and the app died one step after booting.
Full changelog: v0.8.5...v0.8.6
v0.8.5
- Follow-up to 0.8.4: Turbopack keys chunks by
currentScript.getAttribute('src')
as written (root-relative for same-origin chunks), not by the resolved
URL — the shim now hands that form back, and recognises chunks the runtime
injected itself (src already mapped to a local copy) by reverse lookup.
Full changelog: v0.8.4...v0.8.5
v0.8.4
- Keep-js works for Turbopack/Next.js apps. The single-file inliner
stripssrcfrom scripts, but Turbopack's runtime identifies the chunk
that just ran bydocument.currentScript.src— every chunk registration
rejected and the app never booted (anthropic.com). Inlined scripts now
carry their original URL asdata-amber-srcand the shim serves it back
throughcurrentScript, resolved against the archive's own location. - Analytics iframes (Segment's
isolated-segment.html) are removed in
keep-js mode like tracker scripts.
Full changelog: v0.8.3...v0.8.4
v0.8.3
- Browser renders wait for
loadand then give network-idle a 15s settle
window instead of requiring it: pages with analytics heartbeats or
long-polling never go idle and were failing the whole capture with
page.goto: Timeout exceeded.
Full changelog: v0.8.2...v0.8.3
v0.8.2
- A slug folder holding leftovers but no valid snapshot (an
assets/tree
with noindex.html/manifest.json, as an interrupted copy leaves) no
longer makes the archive fail withENOTEMPTY— it is cleared and the new
capture promoted over it;versions/is untouched.
Full changelog: v0.8.1...v0.8.2
v0.8.1
--overwriteon a historical version now replaces the folder's contents
and keeps the directory itself (the way the root has always been
overwritten). 0.8.0's rename-aside-then-delete still left an empty
<id> 2twin behind when~/Documentsis synced by iCloud Drive: any
deletion of a folder the sync hasn't reconciled yet gets it resurrected.
Full changelog: v0.8.0...v0.8.1
v0.8.0
- Historical versions via the Wayback Machine.
amber --at 2009-06 <url>
(or--at latest, or just a pastedweb.archive.orgURL — the extension's
button on a Wayback page does the same) archives a page as it was. Built
on Wayback's rawid_mode: the capture's original bytes, no toolbar or
rewriting, with every asset fetched through the archive at the served
timestamp. Filed under the original URL's slug and dated by the snapshot
(snapshotAt), so live and historical captures of one page form a single
timeline: a capture older than the current latest goes straight into
versions/and the root keeps the newest. The library index dates such
rows by the snapshot with a "wayback" mark. With--keep-jsthe historical
page is rendered in Chromium with every request answered from the archive,
so its era's JavaScript runs against its era's assets;--overwriteon a
historical capture replaces that version in place. - Non-UTF-8 pages decode correctly now.
Response.text()decodes UTF-8
unconditionally; amber now honours the declared charset (header, then
<meta>, with browser-like fallbacks) — Latin-1, windows-1252 smart quotes,
Shift_JIS, EUC-JP — and rewrites the archive's charset declaration to UTF-8
so browsers read what amber wrote. Affects any non-UTF-8 page, not just
historical ones. - Fetches retry transient network errors and 429/5xx with backoff; Wayback
requests are spaced out and identify amber in the User-Agent. - Keep-js replay covers 2010-era JavaScript. The shim now remaps
url()
in runtime-set inline styles (jQuery carousels swapping root-relative
backgrounds), runtime-created<script src>, and tags injected via
document.write(CDN jQuery, analytics) through the asset map — unrecorded
ones fail closed like every other load. The asset map is the first thing in
<head>and a lookup before it exists is no longer cached as a permanent
miss. Tracker scripts are stripped before the keep-js render too, so the
recording runs exactly the code the archive replays (a tracker's
Math.randomdraws were shifting every seeded choice after it). The
classic Google Analytics snippets and TellApart are recognised as trackers. - A render's non-2xx responses are no longer recorded as assets — a 404's
error page (a full HTML document from the Wayback Machine) was being
inlined into the<script>it stood in for. - Hardening from review.
--overwriteon a historical capture swaps the
version in by rename (delete-then-recreate left an empty<id> 2twin
behind under iCloud-synced Documents); a historical capture byte-identical
to today's root is still filed (the page was already like this then); a
pre-capturedAtroot is dated by its mtime so an older capture can't
displace it; same-second dedupe checks every-Nsibling. A Wayback
redirect off the archive is an error rather than an archive of wherever it
landed; calendar/wildcardweb.archive.orgURLs and an empty--atare
rejected up front; the extension's popup points at the filed version.
Retries no longer replay deterministic failures (bad URL, redirect loop).
<meta>charset sniffing ignores comments andcharset=prose in
unrelated meta tags; CSS files are decoded by their own charset (@charset,
header) and written as UTF-8. A slug can no longer be.or...
Full changelog: v0.7.0...v0.8.0