Skip to content

Releases: GeoVerseLabs/geoverse-precise

geoverse-precise v0.5.1

Choose a tag to compare

@github-actions github-actions released this 12 Oct 08:33
f42fc67

首个由 CI 通过 npm 可信发布(OIDC)发布、带构建来源证明(provenance)的版本。计算功能与 0.5.0 相同。

工程

  • npm 发布任务:发布失败且为 E403 时给出可信发布配置的排查提示;发布后核对 npm 上的 SHA-1 与 Release 附件一致,并检查 provenance。

安装

npm install @geoverse/geoverse-precise@0.5.1

离线安装可下载附件 geoverse-geoverse-precise-0.5.1.tgz。附件的 SHA256 见 SHA256SUMS.txt;
构建来源证明可用 gh attestation verify geoverse-geoverse-precise-0.5.1.tgz -R GeoVerseLabs/geoverse-precise 校验。

geoverse-precise v0.5.0

Choose a tag to compare

@github-actions github-actions released this 12 Oct 07:48
9679aad

首个发布到 npm 的版本,包名为 @geoverse/geoverse-precise(归属 npm 组织 geoverse)。计算功能与 0.4.0 相同。

⚠ 不兼容变更

  • npm 包名 geoverse-precise → @geoverse/geoverse-precise。
    迁移:import … from 'geoverse-precise' 改为 from '@geoverse/geoverse-precise',安装改为 npm install @geoverse/geoverse-precise。
    仓库名、Rust crate 名(geoverse-precise-core / geoverse-precise-wasm)、wasm 产物文件名与结果属性键名(geoverse-precise:fixes 等)均不变。
  • Release 附件的文件名随之变为 geoverse-geoverse-precise-X.Y.Z.tgz。

工程

  • Release 工作流新增 npm 发布任务:以可信发布(OIDC)方式发布 Release 中的同一个 .tgz,自动生成 provenance;
    版本号含 - 时发布到 next dist-tag;该版本已在 npm 上时跳过。由仓库变量 NPM_PUBLISH=true 开启。
  • package.json 增加 publishConfig.access = public。

安装

npm install @geoverse/geoverse-precise@0.5.0

离线安装可下载附件 geoverse-geoverse-precise-0.5.0.tgz。附件的 SHA256 见 SHA256SUMS.txt;
构建来源证明可用 gh attestation verify geoverse-geoverse-precise-0.5.0.tgz -R GeoVerseLabs/geoverse-precise 校验。

geoverse-precise v0.4.0

Choose a tag to compare

@github-actions github-actions released this 12 Oct 02:24
704c8c4

以 geoverse-precise 之名的首个发布版本:计算功能与 0.3.0 相同,项目更名并补齐了发布所需的工程配置。
预编译的 npm 包随 GitHub Release 提供。

⚠ 不兼容变更

项目更名为 geoverse-precise。 仓库迁至 GeoVerseLabs/geoverse-precise,所有包名随之更改:

项 0.3.0 及以前 0.4.0
npm 包 geoprecise geoverse-precise
Rust crate geoprecise-core / geoprecise-wasm geoverse-precise-core / geoverse-precise-wasm
Rust 路径 geoprecise_core::… geoverse_precise_core::…
wasm 产物 geoprecise_wasm*.{js,wasm} geoverse_precise_wasm*.{js,wasm}
源码目录 packages/geoprecise packages/geoverse-precise
makeValid 结果属性 geoprecise:fixes geoverse-precise:fixes
snapTo 结果属性 geoprecise:moved geoverse-precise:moved

迁移:import … from 'geoprecise' 改为 from 'geoverse-precise';读取上述两个结果属性的代码同步改键名。
函数名、参数与计算结果均无变化。bench/out/ 下的历史结果文件保留 0.3.0 运行时的原始键名。

Node.js 最低版本为 20(engines: node >= 20;Node 18 已停止维护)。CI 在 Node 20 / 22 / 24 上运行测试。

新增

  • npm 包自带 README(安装、初始化、用法、从 turf 迁移)与许可证文件。
  • 许可证文件 LICENSE-MIT、LICENSE-APACHE(此前仅在清单中声明 MIT OR Apache-2.0)。
  • 演示页(turf 与 geoverse-precise 缓冲区对比)可部署到 GitHub Pages。

变更

  • 批量接口中固定步长的 chunks_exact(N) 改为 as_chunks::<N>()(行为不变;消除 Rust 1.99 clippy 新增的 chunks_exact_with_const_size 告警)。
  • Cargo 与 npm 清单补充 repository / homepage / bugs / author 等元数据;
    geoverse-precise-core 打包时排除依赖仓库数据的对照测试。
  • 依赖:thiserror 2.0.20 → 2.0.21。

工程

  • 全部 Rust 源码按 rustfmt.toml 统一格式化(纯格式,无逻辑改动)。
  • CI:fmt / clippy(门禁固定 1.97.0,另以最新 stable 做提示性检查)/ 测试;最低 Rust 版本(1.88)检查;
    编译 wasm 后在 Node 20 / 22 / 24 上跑 TS 测试;publint 检查包结构;构建演示页并在无头浏览器中做冒烟测试。
  • Release 工作流:发版 PR 合并到 main 后,若该版本尚无标签,自动校验版本号与 CHANGELOG、编译测试打包、
    生成构建来源证明,创建标签与 GitHub Release(附 npm 包与 SHA256SUMS.txt),并部署演示页;
    也支持手动推送标签发版与手动演练。
  • Dependabot、Issue 模板(缺陷 / 精度问题 / 功能建议)、PR 模板、CODEOWNERS。
  • 文档:本更新日志、CONTRIBUTING.md、SECURITY.md,README 增加安装、版本管理与反馈渠道。

安装

npm install https://github.com/GeoVerseLabs/geoverse-precise/releases/download/v0.4.0/geoverse-precise-0.4.0.tgz

附件的 SHA256 见 SHA256SUMS.txt;构建来源证明可用 gh attestation verify geoverse-precise-0.4.0.tgz -R GeoVerseLabs/geoverse-precise 校验。