From 3dcd75e490131ff0eef766b1d7fa66e8703df244 Mon Sep 17 00:00:00 2001 From: Ganonmaster Date: Sat, 2 May 2026 02:53:09 +0200 Subject: [PATCH] v0.4.0 Co-authored-by: Copilot --- CHANGELOG.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d6e9076..af405ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.4.0] - 2026-05-02 + +### Added +- `POST /manage/import` — import emotes from a legacy JSON endpoint, downloading + each image and mirroring it to S3 with original timestamps preserved. +- Duplicate detection: emotes whose name already exists are skipped (compatible + with both SQLite and PostgreSQL). +- Host allowlist for import source URLs, configurable via `[import] + allowed_hosts` in `config.toml` (default: `["smutba.se"]`). +- Dry-run mode (`"dry_run": true` in request body): previews the import without + writing to S3 or the database. Result statuses are `"would_import"` and + `"would_skip"` instead of `"imported"` and `"skipped"`. + ## [0.3.0] - 2026-04-28 ### Added @@ -71,7 +84,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Database migrations run automatically on startup. - GitHub Actions release workflow building a Linux binary on `v*` tag push. -[Unreleased]: https://git.open3dlab.com/Open3DLab/mikebase/compare/v0.3.0...HEAD +[Unreleased]: https://git.open3dlab.com/Open3DLab/mikebase/compare/v0.4.0...HEAD +[0.4.0]: https://git.open3dlab.com/Open3DLab/mikebase/compare/v0.3.0...v0.4.0 [0.3.0]: https://git.open3dlab.com/Open3DLab/mikebase/compare/v0.2.4...v0.3.0 [0.2.4]: https://git.open3dlab.com/Open3DLab/mikebase/compare/v0.2.3...v0.2.4 [0.2.3]: https://git.open3dlab.com/Open3DLab/mikebase/compare/v0.2.2...v0.2.3