From 2a9e712d3bfbcea17cc33e472f9185b4e8657063 Mon Sep 17 00:00:00 2001 From: yuxizhe Date: Fri, 23 Oct 2026 16:11:17 +0800 Subject: [PATCH] chore(release): 0.4.0 Set the version to 0.4.0 and add the 0.4.0 changelog entries (English and Chinese). Co-Authored-By: Claude Opus 5.5 --- docs/about/changelog.md | 17 ++++++++++++++++- docs/about/changelog.zh.md | 14 ++++++++++++++ hyperdb/__init__.py | 2 +- pyproject.toml | 2 +- 4 files changed, 32 insertions(+), 3 deletions(-) diff --git a/docs/about/changelog.md b/docs/about/changelog.md index 015ebe3..0f009b2 100644 --- a/docs/about/changelog.md +++ b/docs/about/changelog.md @@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.4.0] - 2026-10-23 + +### Added +- 📄 HIF (Hypergraph Interchange Format) support: `to_hif()`, `save_as_hif()`, `from_hif()`, `load_from_hif()` (#9) +- 🛠️ Web admin console `hg.admin()` for browsing, searching and editing vertices and hyperedges, with an overview of statistics (#12) +- 🎨 New viewer built on [hypergraph-viz](https://www.npmjs.com/package/hypergraph-viz): hypergraph layout that keeps hyperedge members together, contours around nodes only, labels without overlap, click to highlight a hyperedge, Chinese / English UI (#13) + +### Changed +- 📦 The viewer and the admin console load hypergraph-viz and G6 from a CDN; the bundled `g6.min.js` is removed (#13) + +### Fixed +- 🐛 `draw()` showed no graph or "Vertex not found" errors when vertex IDs are not strings, e.g. `int` (#10, #11) +- 🔧 Vertices with degree > 50 are no longer pushed to the end of the vertex list (#13) + ## [0.3.0] - 2025-10-14 ### Added @@ -108,7 +122,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - 🔍 `nbr_e_of_v()` - Query adjacent hyperedges of hypervertex - 🎨 `draw()` - Visualize hypergraph -[Unreleased]: https://github.com/iMoonLab/Hypergraph-DB/compare/v0.3.0...HEAD +[Unreleased]: https://github.com/iMoonLab/Hypergraph-DB/compare/v0.4.0...HEAD +[0.4.0]: https://github.com/iMoonLab/Hypergraph-DB/compare/v0.3.0...v0.4.0 [0.3.0]: https://github.com/iMoonLab/Hypergraph-DB/compare/v0.2.0...v0.3.0 [0.2.0]: https://github.com/iMoonLab/Hypergraph-DB/compare/v0.1.2...v0.2.0 [0.1.2]: https://github.com/iMoonLab/Hypergraph-DB/compare/v0.1.1...v0.1.2 diff --git a/docs/about/changelog.zh.md b/docs/about/changelog.zh.md index b597e35..a560d1b 100644 --- a/docs/about/changelog.zh.md +++ b/docs/about/changelog.zh.md @@ -5,6 +5,20 @@ Hypergraph-DB 项目的所有重要变更都记录在此文件中。 格式基于 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.0.0/), 并且本项目遵循 [语义化版本控制](https://semver.org/lang/zh-CN/)。 +## [0.4.0] - 2026-10-23 + +### 新增 +- 📄 支持 HIF(Hypergraph Interchange Format):`to_hif()`、`save_as_hif()`、`from_hif()`、`load_from_hif()`(#9) +- 🛠️ Web 管理后台 `hg.admin()`:浏览、搜索、编辑顶点和超边,并提供统计概览(#12) +- 🎨 基于 [hypergraph-viz](https://www.npmjs.com/package/hypergraph-viz) 的新查看器:同一超边的成员聚在一起的超图布局、轮廓只圈节点、标签互不遮挡、点击高亮超边、中英文界面(#13) + +### 改进 +- 📦 查看器和管理后台从 CDN 加载 hypergraph-viz 与 G6,移除内置的 `g6.min.js`(#13) + +### 修复 +- 🐛 顶点 ID 不是字符串(如 `int`)时 `draw()` 不显示图或报 "Vertex not found"(#10、#11) +- 🔧 度数大于 50 的顶点不再被排到顶点列表末尾(#13) + ## [0.3.0] - 2025-10-14 ### 新增 diff --git a/hyperdb/__init__.py b/hyperdb/__init__.py index 6cdeb64..fe824a0 100644 --- a/hyperdb/__init__.py +++ b/hyperdb/__init__.py @@ -2,6 +2,6 @@ from .base import BaseHypergraphDB # noqa: F401 from .hypergraph import HypergraphDB # noqa: F401 -__version__ = "0.4.0-dev" +__version__ = "0.4.0" __all__ = ["AUTHOR_EMAIL", "BaseHypergraphDB", "HypergraphDB"] diff --git a/pyproject.toml b/pyproject.toml index c9ccd5a..0393559 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "hypergraph-db" -version = "0.4.0-dev" +version = "0.4.0" description = "A Lightweight Hypergraph Database with hypergraph visualization." authors = [ {name = "Yifan Feng", email = "evanfeng97@qq.com"}