diff --git a/.changeset/initial-changesets-adoption.md b/.changeset/initial-changesets-adoption.md deleted file mode 100644 index 35a1f53..0000000 --- a/.changeset/initial-changesets-adoption.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"lens": patch ---- - -Adopt changesets for versioning and release notes. Adds `@changesets/cli`, a release GitHub Actions workflow that opens a "Version Packages" PR for pending changesets and tags releases on merge, and contributor docs for the workflow. diff --git a/.changeset/price-history-snapshots.md b/.changeset/price-history-snapshots.md deleted file mode 100644 index 813834e..0000000 --- a/.changeset/price-history-snapshots.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"lens": minor ---- - -Add `/prices/history` endpoint backed by 1-minute price snapshots. A new `price_snapshots` table is appended to every minute by a snapshot ingester, queryable over a `[from, to]` window with optional `5m`/`1h` aggregation. A retention job prunes snapshots older than 30 days. diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fd27e9..10a1b1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 0.2.0 + +### Minor Changes + +- bbe48e4: Add `/prices/history` endpoint backed by 1-minute price snapshots. A new `price_snapshots` table is appended to every minute by a snapshot ingester, queryable over a `[from, to]` window with optional `5m`/`1h` aggregation. A retention job prunes snapshots older than 30 days. + +### Patch Changes + +- 5a68745: Adopt changesets for versioning and release notes. Adds `@changesets/cli`, a release GitHub Actions workflow that opens a "Version Packages" PR for pending changesets and tags releases on merge, and contributor docs for the workflow. + All notable changes to Lens are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). @@ -7,6 +17,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ## [Unreleased] ### Added + - CI pipeline (`.github/workflows/ci.yml`) running Prisma generate, typecheck, and build on every PR - Contributor documentation, issue templates, PR template - This changelog @@ -14,6 +25,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ## [0.1.0] — 2025 initial deployment ### Added + - Fastify REST API with `GET /price/:assetA/:assetB`, `GET /status`, `GET /pools` - GraphQL endpoint via Mercurius - SDEX trade ingestion with checkpoint tracking @@ -26,6 +38,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). - Deployed on Render at https://lens-ldtu.onrender.com ### Fixed + - `bestRoute.ts` AMM lookup — was using broken `code:code` join format; now queries via `pool_id` - Prisma binary target on Render (`debian-openssl-3.0.x`) - Supabase SSL cert error (scoped to supabase.com hosts) diff --git a/package.json b/package.json index e8e351b..5c0813c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lens", - "version": "0.1.0", + "version": "0.2.0", "description": "Unified Stellar price API — aggregates SDEX + AMM prices", "main": "dist/index.js", "scripts": {