Repository navigation
Releases
Releases · ISNIT0/glass-analytics
Dataflare 0.8.4
Patch Changes
- 6f59641: The dashboard signs in from a link:
<host>/app#key=<key>saves the key and wipes it from the address bar, so a QR code can sign a phone in without pasting. The key is in the URL fragment, which never reaches the server.
Dataflare 0.8.3
Patch Changes
- 9199ca1: Visitors from AI assistants are counted as "AI assistants" when the link carries the assistant in
utm_source(ChatGPT search addsutm_source=chatgpt.comand sends no referrer). They used to land in "Other campaigns".
Dataflare 0.8.2
Patch Changes
- 01072c6: All sites: deployments with more than one project get an "All sites" entry at the top of the project switcher and open on it, showing each project's visitors and pageviews against the previous period, a sparkline, the last pageview and a trend (gaining, losing, steady, new, stopped). Also
GET /api/sitesand thecompare_sitesMCP tool. One-project deployments are unchanged (#8, thanks @robertdoneill). - 629737c: Since 0.8.1, the CLI runs the wrangler installed with it instead of downloading the newest wrangler 4.x through
npxon every deploy. The lookup always failed because wrangler'sexportsdon't includebin/wrangler.js(#5, thanks @robertdoneill). - 629737c: Your own SQL (
POST /api/sql, the MCPsqltool,dataflare sql) can no longer hide a second, writing statement from the read-only guard, which accepts the read key. The guard now tokenizes the query in one pass the way SQLite does, so a/*or--inside a string, a quote inside a[bracketed]identifier, or a$name(...)parameter can't make it misread where a string ends (#3, thanks @robertdoneill; the one-pass scan shipped in 0.8.1, the bracket and parameter cases are new). As a backstop, a read-only query that changes the D1 database now fails with an error instead of returning normally. - 01072c6: An install made with
init --no-replaykeeps session replay off:dataflare upgradeno longer creates its R2 bucket, which also stopped upgrades failing on tokens without R2 permission. Installs from before this release can record the choice once withdataflare upgrade --no-replay; on an install that already has a replay bucket it refuses rather than strand the replays (#9, thanks @robertdoneill). - 629737c: Since 0.8.1, a Worker deployed on your own domain with
init --routeis no longer also reachable at its workers.dev address, which let traffic to/e,/rand/fskip the zone's WAF and rate limits (#4, thanks @robertdoneill). If anything still sends to your workers.dev host (a server-side SDK, a hard-coded snippet), point it at your route before upgrading to 0.8.1 or later: the upgrade turns workers.dev off and those requests will get a 404.
Dataflare 0.8.1
Patch Changes
-
133e7be: Fixes for five failures reported in #2:
- D1's 100-parameter limit. Ingesting a batch that touches more than 98 known people, and erasing a person with more than 32 device links, no longer fails. Person updates go 90 at a time, and erasure passes its ids as one JSON parameter.
- Erasure that finishes. A person's replays are deleted 50 sessions per slice with one D1 batch each, instead of two queries per session, which could pass D1's per-invocation limit. A request does two slices, and the hourly job finishes anything left. The person and their device links are deleted last, so
"complete": truemeans everything is gone. A failure part way leaves the rows that let the next run finish. Retention uses the same bounded slices. - Retried replay uploads count once. A chunk whose response was lost and is sent again no longer doubles the session's chunk, byte, page, click and error counts.
- EU replay buckets. The
REPLAYSbinding now names its jurisdiction. Before, an EU deployment's Worker wrote replays to a default-jurisdiction bucket of the same name that Wrangler created on deploy, so replays were stored outside the EU.dataflare upgradeswitches to the EU bucket and keeps the old one bound asREPLAYS_LEGACY: replays still read from it, and the hourly job moves its objects across. See privacy.md for removing it afterwards. - Routes on multi-label domains. The generated route no longer guesses the zone from the hostname's last two labels (
co.ukforanalytics.example.co.uk). Wrangler now resolves the zone by trying each parent domain against your account's zones, which also handles delegated subzones.
Dataflare 0.8.0
Minor Changes
- 859debb: The lake store leaves beta. Schema changes now have an upgrade path: a new version gets its own streams and tables (Cloudflare can't alter a stream or share a table between sinks), and queries, your own SQL and erasure read every version through a UNION ALL. The web report and overview count visitors in two exact steps instead of COUNT(DISTINCT), which Basin SQL rejected at tens of millions of events; every query kind now runs at 30 million events in 1–7 seconds.
Dataflare 0.7.0
Minor Changes
- 1e69d38: Lake mode can erase people and apply retention.
dataflare person <id> --deletequeues the person's events, and the newdataflare lake maintaindeletes them (and events past--retention-days) with PyIceberg through Basin Catalog; lake deployments' workflow runs it daily.init --laketurns on snapshot expiration and compaction so deleted rows leave R2 within a week. Every read API is now checked against DataFusion in CI, and ranked lists (top pages, referrers, events) break ties by name, so D1 and the lake order them the same.
Dataflare 0.6.3
Patch Changes
- fdea56f: Lake mode works against production Cloudflare. Queries no longer fail with "Illegal invocation" in the Worker;
init --lakelists Pipelines resources through the API (Wrangler's list output isn't JSON) and names streams, sinks and pipelines after the deployment, so a second lake deployment in one account gets its own instead of silently reusing the first's; and--lake --euis refused up front, since Basin Catalog doesn't support jurisdiction buckets yet.
Dataflare 0.6.2
Patch Changes
- c901828: Fix
npx dataflare-clidoing nothing: the CLI only started when its bin was namedglass, and npm links it asdataflare. It now compares real paths, so it runs under any bin name.
Dataflare 0.6.1
Patch Changes
- cf728a9: The CLI is published as
dataflare-cli(npm rejecteddataflareas too close to an existing package):npx dataflare-cli init,npx dataflare-cli@latest upgrade. Installed globally, the command is stilldataflare. Deploy workflows and.mcp.jsonwritten by the CLI usedataflare-cli, and/healthchecksdataflare-clion npm for new versions.
Glass 0.5.0
Minor Changes
- 19736d1: Session replay can record cookieless visitors. Add
data-replay-cookieless="true"(orreplay: { cookieless: true }) and visitors who haven't consented are recorded too, still with nothing stored on the device: the Worker files each page load's recording under the same daily-rotating visitor and session ids as its events, so the replay joins the visit.glass.consent(false)now stops replay for the rest of the page even if the recorder was still loading, andconsent(true)restarts a cookieless recording under the stored session.